Re: [Openstack] Problem in essex nova-manage service list

2012-12-12 Thread Gurjar, Unmesh
1.   Compute service - Looks like your Nova Compute service did not 
register itself. If Compute service is not running on the same host as other 
Nova services, check the 'sql_connection' string in nova.conf.

2.   Network service - The network service hasn't updated its heartbeat 
(services table in nova db) for quite some time hence the 'XXX' status. Try 
restarting the Nova Network service and check for errors in service logs.

Hope this helps.

Thanks  Regards,
Unmesh Gurjar | Lead Engineer | NTT DATA Global Technology Services Private 
Limited | w. +91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Learn more at 
nttdata.com/americas

From: openstack-bounces+unmesh.gurjar=nttdata@lists.launchpad.net 
[mailto:openstack-bounces+unmesh.gurjar=nttdata@lists.launchpad.net] On 
Behalf Of Guilherme Russi
Sent: Wednesday, December 12, 2012 6:28 PM
To: openstack@lists.launchpad.net
Subject: [Openstack] Problem in essex nova-manage service list

Hi all,

 Can anybody help me with this, when I type nova-manage service list I cannot 
see the nova-compute in the processes and the nova-network has this XXX. What 
should I do?

Thank you all.

2012-12-12 10:36:53 DEBUG nova.utils [req-6e9f672a-c484-40be-9796-a9b8b000358f 
None None] backend module 'nova.db.sqlalchemy.api' from 
'/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc' from (pid=5630) 
__get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658

Binary Host Zone 
Status State Updated_At
nova-scheduler   mypcnova enabled   
 :-)   2012-12-12 12:36:51
nova-consoleauth mypcnova enabled   
 :-)   2012-12-12 12:36:50
nova-console mypcnova enabled   
 :-)   2012-12-12 12:36:51
nova-certmypcnova enabled   
 :-)   2012-12-12 12:36:50
nova-network mypcnova enabled   
 XXX   2012-12-12 12:25:59

__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] MAC address uniqueness in folsom

2012-10-26 Thread Gurjar, Unmesh
Hi,

I can think of two alternative  solutions for maintaining uniqueness:

1.   DB look up: After generating a new MAC address, checking uniqueness by 
doing  a DB look up.

2.   Having a 'unique' constraint on the 'mac_address' column and handle 
the DB IntegrityError and retry generating a new MAC address.

I also think, initializing the 'random.seed' in start-up process of Quantum 
server (with a different value - configurable one; on each server) could help 
in reducing conflicts.

I think either of the above solutions could be used for fixing LP bug #1050924.

Thanks  Regards,
Unmesh Gurjar | Lead Engineer | NTT DATA Global Technology Services Private 
Limited | w. +91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Learn more at 
nttdata.com/americas

From: openstack-bounces+unmesh.gurjar=nttdata@lists.launchpad.net 
[mailto:openstack-bounces+unmesh.gurjar=nttdata@lists.launchpad.net] On 
Behalf Of Neelakantam Gaddam
Sent: Friday, October 26, 2012 11:37 AM
To: mth...@mthode.org
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] MAC address uniqueness in folsom

Hi,

We want unique MAC addresses in our environment only but across multiple 
tenants.

Thanks for quick reply.

---
Neelakantam
On Fri, Oct 26, 2012 at 9:38 AM, Matthew Thode 
mth...@mthode.orgmailto:mth...@mthode.org wrote:
On 10/25/2012 11:02 PM, Neelakantam Gaddam wrote:
 Hi All,

 Does the MAC address generated in quantum is unique across tenants in
 folsom?
 I am developing an application that requires unique MAC address. If not
 unique, is there any way to make MAC address unique?

 Please help me. Thanks in advance.




 ___
 Mailing list: 
 https://launchpad.net/~openstackhttps://launchpad.net/%7Eopenstack
 Post to : 
 openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
 Unsubscribe : 
 https://launchpad.net/~openstackhttps://launchpad.net/%7Eopenstack
 More help   : https://help.launchpad.net/ListHelp

Do you need it to be globally unique (amongst all macs on earth) or
simply unique in your environment?

--
-- Matthew Thode


___
Mailing list: 
https://launchpad.net/~openstackhttps://launchpad.net/%7Eopenstack
Post to : 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Unsubscribe : 
https://launchpad.net/~openstackhttps://launchpad.net/%7Eopenstack
More help   : https://help.launchpad.net/ListHelp



--
Thanks  Regards
Neelakantam Gaddam

__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Process for targetting blueprint for RC1

2012-08-23 Thread Gurjar, Unmesh
Hi,

I have submitted implementation of 
https://blueprints.launchpad.net/openstack-common/+spec/http-notification-driver
 blueprint (review request https://review.openstack.org/#/c/11016/) and it is 
currently under review. I intend this implementation to get released in RC1.

Can someone please let me know the process to propose it for getting added in 
RC1.

Thanks  Regards,
Unmesh Gurjar | Lead Engineer | NTT DATA Global Technology Services Private 
Limited | w. +91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Learn more at 
nttdata.com/americas


__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Review required: https://review.openstack.org/#/c/11016/

2012-08-15 Thread Gurjar, Unmesh
Hi All,

Please review: https://review.openstack.org/#/c/11016/ - HTTP POST Notifier for 
OpenStack projects.


Thanks  Regards,
Unmesh Gurjar | Lead Engineer | NTT DATA Global Technology Services Private 
Limited | w. +91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.com | Learn more at nttdata.com/americas

__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Review required - https://review.openstack.org/#/c/11016/

2012-08-13 Thread Gurjar, Unmesh
Hi All,

I have added HTTP POST notifier to the openstack-common project and needs 
review.

Please review: https://review.openstack.org/#/c/11016/.


Thanks  Regards,
Unmesh Gurjar | Lead Engineer | NTT DATA Global Technology Services Private 
Limited | w. +91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Learn more at 
nttdata.com/americas


__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Keystone user name validation (Review needed)

2012-05-30 Thread Gurjar, Unmesh
Hi,

I have addressed all the review comments for 
https://review.openstack.org/#/c/6140/.
Can someone please do the needful.

Thanks  Regards,
Unmesh Gurjar | Lead Engineer | Vertex Software Private Ltd. | w. 
+91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Follow us on 
Twitter@NTTDATAAmericas


__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Compute] nova-compute does not show up as :-) in nova-manage service list

2012-05-16 Thread Gurjar, Unmesh
Hi Leander,

The issue is the Compute is not updating its heartbeat (services table in the 
nova database), which is causing this.
You probably need to check database connection string in the nova.conf on the  
Compute host and the db connection from the Compute host is working.

Thanks  Regards,
Unmesh Gurjar | Lead Engineer | Vertex Software Private Ltd. | w. 
+91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Follow us on 
Twitter@NTTDATAAmericas

From: openstack-bounces+unmesh.gurjar=nttdata@lists.launchpad.net 
[mailto:openstack-bounces+unmesh.gurjar=nttdata@lists.launchpad.net] On 
Behalf Of Leander Bessa Beernaert
Sent: Wednesday, May 16, 2012 4:30 PM
To: openstack@lists.launchpad.net
Subject: [Openstack] [Compute] nova-compute does not show up as :-) in 
nova-manage service list

Hello,


I can't get nova-compute to show up as :-) under 'nova-manager service list'. 
I've checked the logs and can't find any error or warning.

I'm using the default packages shipped with ubuntu 12.04 and have installed 
everything in a virtual machine.

Regards,

Leander

__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Compute] nova-compute does not show up as :-) in nova-manage service list

2012-05-16 Thread Gurjar, Unmesh
Restarting libvirt service seemed to resolve the issue for me in the past.

Thanks  Regards,
Unmesh Gurjar | Lead Engineer | Vertex Software Private Ltd. | w. 
+91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Follow us on 
Twitter@NTTDATAAmericas

From: Leander Bessa Beernaert [mailto:leande...@gmail.com]
Sent: Wednesday, May 16, 2012 5:54 PM
To: Day, Phil
Cc: Gurjar, Unmesh; openstack@lists.launchpad.net
Subject: Re: [Openstack] [Compute] nova-compute does not show up as :-) in 
nova-manage service list

I tried 'virsh list', and the command hangs. At first i thought it was because 
of KVM, since the vm does not support it. I remember having the same problem 
with diablo, but it would only result in error when the instance was being 
launched on the compute service. So i changed libvirt_type=kvm to 
libvirt_type=qemu.

However, the problem still remains: virsh list still hangs and compute 
refuses to leave the state XXX.
On Wed, May 16, 2012 at 12:51 PM, Day, Phil 
philip@hp.commailto:philip@hp.com wrote:
So the things to check are:


-  Is the nova-compute service running ?  If not the nova-compute.log 
should show why its failing


-  If it is running then it probably means that its getting stuck on 
some long running issue (e.g as down loading an image, problems talking to 
libvirt, slow response from the DB, etc). XXX in this case means that its 
slow in updating its services entry rather than failed as such


Phil

From: 
openstack-bounces+philip.day=hp@lists.launchpad.netmailto:hp@lists.launchpad.net
 
[mailto:openstack-bounces+philip.daymailto:openstack-bounces%2Bphilip.day=hp@lists.launchpad.netmailto:hp@lists.launchpad.net]
 On Behalf Of Leander Bessa Beernaert
Sent: 16 May 2012 12:19
To: Gurjar, Unmesh
Cc: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] [Compute] nova-compute does not show up as :-) in 
nova-manage service list

Shouldn't nova-network and nova-scheduler also fail then, since they share the 
same config file? If so, that's not what's happening with me, only the compute 
service is listed as XXX.
On Wed, May 16, 2012 at 12:10 PM, Gurjar, Unmesh 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com wrote:
Hi Leander,

The issue is the Compute is not updating its heartbeat (services table in the 
nova database), which is causing this.
You probably need to check database connection string in the nova.conf on the  
Compute host and the db connection from the Compute host is working.

Thanks  Regards,
Unmesh Gurjar | Lead Engineer | Vertex Software Private Ltd. | w. 
+91.20.6604.1500 x 379tel:%2B91.20.6604.1500%20x%20379 | m. 
+91.982.324.7631tel:%2B91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Follow us on 
Twitter@NTTDATAAmericas

From: 
openstack-bounces+unmesh.gurjar=nttdata@lists.launchpad.netmailto:nttdata@lists.launchpad.net
 
[mailto:openstack-bounces+unmesh.gurjarmailto:openstack-bounces%2Bunmesh.gurjar=nttdata@lists.launchpad.netmailto:nttdata@lists.launchpad.net]
 On Behalf Of Leander Bessa Beernaert
Sent: Wednesday, May 16, 2012 4:30 PM
To: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: [Openstack] [Compute] nova-compute does not show up as :-) in 
nova-manage service list

Hello,


I can't get nova-compute to show up as :-) under 'nova-manager service list'. 
I've checked the logs and can't find any error or warning.

I'm using the default packages shipped with ubuntu 12.04 and have installed 
everything in a virtual machine.

Regards,

Leander

__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data. If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding



__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Quantum - Keystone integration in stable/essex broken?

2012-05-08 Thread Gurjar, Unmesh
Hi,

I am using stable/essex release and have enabled Quantum with Keystone 
authentication. I had to update the authN filter to use the 
'keystone.middleware.auth_token:filter_factory' (instead of the default 
'keystone.middleware.quantum_auth_token:filter_factory'). However, seems like 
enabling Keystone with Quantum is not completely supported (since the 
nova-manage network creation fails with authentication error). Looks like the 
Quantum Manager in Nova does not support Keystone authentication.

Can someone please confirm whether enabling Quantum with Keystone is completely 
supported.

Another observation is that the Nova Quantum client 
(https://github.com/openstack/nova/blob/stable/essex/nova/network/quantum/client.py)
 is using the Quantum API version 1.1, however, the CURRENT version in Quantum 
API 
(https://github.com/openstack/quantum/blob/stable/essex/quantum/api/versions.py)
 is 1.0 (version 1.1 is PROPOSED). Shouldn't Nova Quantum client (of 
stable/essex) be using version 1.0 instead?


Thanks  Regards,
Unmesh Gurjar | Lead Engineer | Vertex Software Private Ltd. | w. 
+91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Follow us on 
Twitter@NTTDATAAmericas


__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Issue in KVM block migration

2012-04-13 Thread Gurjar, Unmesh
The user running the compute server is a member of libvirt group.
I tried the migration via virsh, however that too returns the same result. I 
get similar logs in the qemu log file.

Thanks  Regards,
Unmesh Gurjar | Lead Engineer | Vertex Software Private Ltd. | w. 
+91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Follow us on 
Twitter@NTTDATAAmericas

From: Razique Mahroua [mailto:razique.mahr...@gmail.com]
Sent: Friday, April 13, 2012 2:22 PM
To: Gurjar, Unmesh
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] Issue in KVM block migration

Hi,
sorry for the late reply.
Does the user nova belong to the libvirt group ?
Can you try manually the migration via virsh ?
$ virsh --migrate --live --copy-storage-all $domain qemu+tcp://user@server/sytem

thanks


Nuage  Co - Razique Mahroua
razique.mahr...@gmail.commailto:razique.mahr...@gmail.com

[cid:image001.jpg@01CD199E.79A758F0]

Le 11 avr. 2012 à 16:44, Gurjar, Unmesh a écrit :


Thanks Razique for taking up this one.

Libvirt version on both Compute hosts:
$ libvirtd --version
libvirtd (libvirt) 0.9.2
$ virsh --version
0.9.2

Here are my libvirtd.conf details:
listen_tls = 0
listen_tcp = 1
unix_sock_group = libvirtd
unix_sock_rw_perms = 0770
auth_unix_ro = none
auth_unix_rw = none
auth_tcp = none


Thanks  Regards,
Unmesh Gurjar | Lead Engineer | Vertex Software Private Ltd. | w. 
+91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Follow us on 
Twitter@NTTDATAAmericas

From: Razique Mahroua 
[mailto:razique.mahr...@gmail.com]mailto:[mailto:razique.mahr...@gmail.com]
Sent: Wednesday, April 11, 2012 7:33 PM
To: Gurjar, Unmesh
Cc: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] Issue in KVM block migration

Hi,
it looks like the user under which libvirt is running doesn't have the rights 
to manage server's IF.
What version of libvirt are you using ?
Can I see the file /etc/libvirt/libvirtd.com ? (cat /etc/libvirt/libvirtd.conf 
| grep -v -e # -e ^$

Raz

Nuage  Co - Razique Mahroua
razique.mahr...@gmail.commailto:razique.mahr...@gmail.com

image001.jpg

Le 11 avr. 2012 à 14:48, Gurjar, Unmesh a écrit :



Hi,

I have setup two Compute nodes (using Openstack master branch) and configured 
libvirt for block migration (by  following step #1 and #4 mentioned 
herehttp://docs.openstack.org/diablo/openstack-compute/admin/content/configuring-live-migrations.html).
 In addition, I have also disabled apparmor for libvirtd profile and have an 
entry in '/etc/hosts' of both the Compute hosts.

From both the Compute hosts, I am able to connect and fetch the list of 
running instances on the other host (using the hostname), as follows:
virsh # connect qemu+tcp://ubuntu-dev-001/system
virsh # list

The issue is block migrating an instance between these hosts fails with the 
following error in the source Compute host console:
libvir: QEMU error : operation failed: migration job: unexpectedly failed
2012-04-11 03:15:54 DEBUG nova.rpc.amqp [-] Making asynchronous call on network 
... from (pid=18487) multicall /opt/stack/nova/nova/rpc/amqp.py:318
2012-04-11 03:15:54 DEBUG nova.rpc.amqp [-] MSG_ID is 
8d91158236ae4de0bd8b89533f060892 from (pid=18487) multicall 
/opt/stack/nova/nova/rpc/amqp.py:321
2012-04-11 03:15:54 DEBUG nova.rpc.amqp [-] Making asynchronous cast on 
compute.ubuntu-dev-001... from (pid=18487) cast 
/opt/stack/nova/nova/rpc/amqp.py:343
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-packages/eventlet/hubs/poll.py, line 97, in 
wait
readers.get(fileno, noop).cb(fileno)
  File /usr/lib/python2.7/dist-packages/eventlet/greenthread.py, line 192, in 
main
result = function(*args, **kwargs)
  File /opt/stack/nova/nova/virt/libvirt/connection.py, line 2179, in 
_live_migration
recover_method(ctxt, instance_ref, dest, block_migration)
  File /usr/lib/python2.7/contextlib.py, line 24, in __exit__
self.gen.next()
  File /opt/stack/nova/nova/virt/libvirt/connection.py, line 2175, in 
_live_migration
FLAGS.live_migration_bandwidth)
  File /usr/lib/python2.7/dist-packages/libvirt.py, line 689, in migrateToURI
if ret == -1: raise libvirtError ('virDomainMigrateToURI() failed', 
dom=self)
libvirtError: operation failed: migration job: unexpectedly failed
Removing descriptor: 12

I find the following in the qemu log file 
(/var/log/libvirt/qemu/instance-0003.log ) on the destination Compute host:
2012-04-11 04:14:25.971: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin 
QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 512 -smp 
1,sockets=1,cores=1,threads=1 -name instance-0003 -uuid 
f58d5f32-6d55-43fb-89ed-c33ebf72d1ed -nodefconfig -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0003.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc

Re: [Openstack] Issue in KVM block migration

2012-04-11 Thread Gurjar, Unmesh
Thanks Razique for taking up this one.

Libvirt version on both Compute hosts:
$ libvirtd --version
libvirtd (libvirt) 0.9.2
$ virsh --version
0.9.2

Here are my libvirtd.conf details:
listen_tls = 0
listen_tcp = 1
unix_sock_group = libvirtd
unix_sock_rw_perms = 0770
auth_unix_ro = none
auth_unix_rw = none
auth_tcp = none


Thanks  Regards,
Unmesh Gurjar | Lead Engineer | Vertex Software Private Ltd. | w. 
+91.20.6604.1500 x 379 | m. +91.982.324.7631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Follow us on 
Twitter@NTTDATAAmericas

From: Razique Mahroua [mailto:razique.mahr...@gmail.com]
Sent: Wednesday, April 11, 2012 7:33 PM
To: Gurjar, Unmesh
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] Issue in KVM block migration

Hi,
it looks like the user under which libvirt is running doesn't have the rights 
to manage server's IF.
What version of libvirt are you using ?
Can I see the file /etc/libvirt/libvirtd.com ? (cat /etc/libvirt/libvirtd.conf 
| grep -v -e # -e ^$

Raz

Nuage  Co - Razique Mahroua
razique.mahr...@gmail.commailto:razique.mahr...@gmail.com

[cid:image001.jpg@01CD181B.15CF4060]

Le 11 avr. 2012 à 14:48, Gurjar, Unmesh a écrit :


Hi,

I have setup two Compute nodes (using Openstack master branch) and configured 
libvirt for block migration (by  following step #1 and #4 mentioned 
herehttp://docs.openstack.org/diablo/openstack-compute/admin/content/configuring-live-migrations.html).
 In addition, I have also disabled apparmor for libvirtd profile and have an 
entry in '/etc/hosts' of both the Compute hosts.

From both the Compute hosts, I am able to connect and fetch the list of 
running instances on the other host (using the hostname), as follows:
virsh # connect qemu+tcp://ubuntu-dev-001/system
virsh # list

The issue is block migrating an instance between these hosts fails with the 
following error in the source Compute host console:
libvir: QEMU error : operation failed: migration job: unexpectedly failed
2012-04-11 03:15:54 DEBUG nova.rpc.amqp [-] Making asynchronous call on network 
... from (pid=18487) multicall /opt/stack/nova/nova/rpc/amqp.py:318
2012-04-11 03:15:54 DEBUG nova.rpc.amqp [-] MSG_ID is 
8d91158236ae4de0bd8b89533f060892 from (pid=18487) multicall 
/opt/stack/nova/nova/rpc/amqp.py:321
2012-04-11 03:15:54 DEBUG nova.rpc.amqp [-] Making asynchronous cast on 
compute.ubuntu-dev-001... from (pid=18487) cast 
/opt/stack/nova/nova/rpc/amqp.py:343
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-packages/eventlet/hubs/poll.py, line 97, in 
wait
readers.get(fileno, noop).cb(fileno)
  File /usr/lib/python2.7/dist-packages/eventlet/greenthread.py, line 192, in 
main
result = function(*args, **kwargs)
  File /opt/stack/nova/nova/virt/libvirt/connection.py, line 2179, in 
_live_migration
recover_method(ctxt, instance_ref, dest, block_migration)
  File /usr/lib/python2.7/contextlib.py, line 24, in __exit__
self.gen.next()
  File /opt/stack/nova/nova/virt/libvirt/connection.py, line 2175, in 
_live_migration
FLAGS.live_migration_bandwidth)
  File /usr/lib/python2.7/dist-packages/libvirt.py, line 689, in migrateToURI
if ret == -1: raise libvirtError ('virDomainMigrateToURI() failed', 
dom=self)
libvirtError: operation failed: migration job: unexpectedly failed
Removing descriptor: 12

I find the following in the qemu log file 
(/var/log/libvirt/qemu/instance-0003.log ) on the destination Compute host:
2012-04-11 04:14:25.971: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin 
QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 512 -smp 
1,sockets=1,cores=1,threads=1 -name instance-0003 -uuid 
f58d5f32-6d55-43fb-89ed-c33ebf72d1ed -nodefconfig -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0003.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c 
-kernel /opt/stack/nova/instances/instance-0003/kernel -initrd 
/opt/stack/nova/instances/instance-0003/ramdisk -append root=/dev/vda 
console=ttyS0 -drive 
file=/opt/stack/nova/instances/instance-0003/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
 -device 
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 
-netdev tap,ifname=tapfcfa2a6c-35,script=,id=hostnet0 -device 
rtl8139,netdev=hostnet0,id=net0,mac=fa:16:3e:7d:32:27,bus=pci.0,addr=0x3 
-chardev 
file,id=charserial0,path=/opt/stack/nova/instances/instance-0003/console.log
 -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 
-device isa-serial,chardev=charserial1,id=serial1 -usb -device 
usb-tablet,id=input0 -vnc 127.0.0.1:0 -k en-us -vga cirrus -incoming 
tcp:0.0.0.0:49166 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
Domain id=15 is tainted: high-privileges
Domain id=15 is tainted: shell-scripts
char device redirected to /dev/pts/17
2012-04-11 04:14:26.406: shutting down
can't delete tapfcfa2a6c

[Openstack] Keypair injection failure should fail instance creation

2012-04-05 Thread Gurjar, Unmesh
Hi Vishy,

While launching an instance if key-pair injection fails, still the instance 
comes up running. It is possible to change the administrator password for an 
instance by performing the 'changePassword' action, however the support is 
available in Xen but not in KVM. I am therefore inclined towards having the 
instance creation fail if key-pair injection fails.

Please refer: https://bugs.launchpad.net/nova/+bug/967994
Launchpad answers: https://answers.launchpad.net/nova/+question/192108

Thanks  Regards,
Unmesh Gurjar | Lead Engineer | Vertex Software Private Ltd. | w. 
+91.20.6604.1500 x 379 | m. +91.9823.247.631 | 
unmesh.gur...@nttdata.commailto:unmesh.gur...@nttdata.com | Follow us on 
Twitter@NTTDATAAmericas

__
Disclaimer:This email and any attachments are sent in strictest confidence for 
the sole use of the addressee and may contain legally privileged, confidential, 
and proprietary data.  If you are not the intended recipient, please advise the 
sender by replying promptly to this email and then delete and destroy this 
email and any attachments without any further use, copying or forwarding___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp