Raja, Prasad, Is there any update on this ? On latest 1.10, we still have this issue.
Vedu
On 6/18/14, 3:40 AM, "prasad miriyala" <email address hidden> wrote:
>Replaced modified contrail libvirtd(0.9.8 +) with normal libvirtd >(0.9.8), then interface detach goes through fine. i.e., VM's interface is >gone and VM up and running after interface-detach. >/Prasad > >** Changed in: juniperopenstack > Assignee: prasad miriyala (pmiriyala) => Raja Sivaramakrishnan >(raja-u) > >-- >You received this bug notification because you are a member of Contrail >Systems engineering, which is subscribed to Juniper Openstack. >https://bugs.launchpad.net/bugs/1323204 > >Title: > Doing a interface-detach shuts down the VM > >Status in Juniper Openstack distribution: > New > >Bug description: > Build : 1.10main-2189 > > On doing a interface-detach, even though the command completes > successfully, in the compute logs, it says that the interface detach > has failed. > > The VM is moved to Shutoff state. Tried with both cirros and ubuntu > vms. > > Also, the port is removed as well. > > root@nodec34:/var/log/nova# nova interface-detach VeduTest1_ubuntu_vm >6d9bed5c-5b43-4912-a4d9-0d8481333edd > root@nodec34:/var/log/nova# > > > 2014-05-26 13:16:27.178 27978 ERROR nova.virt.libvirt.driver >[req-b04ec504-b9a6-4477-bc43-6f385ebdbade >925c9e7872064722a5a8720e0955abbf 319f38f1aedb4b699243eb4e08594af9] >[instance: 746cfaeb-6b73-4108-a6f0-d547be5eaf91] detaching network >adapter failed. > 2014-05-26 13:16:27.179 27978 ERROR nova.openstack.common.rpc.amqp >[req-b04ec504-b9a6-4477-bc43-6f385ebdbade >925c9e7872064722a5a8720e0955abbf 319f38f1aedb4b699243eb4e08594af9] >Exception during message handling > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >Traceback (most recent call last): > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >File >"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", >line 461, in _process_data > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >**args) > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >File >"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py" >, line 172, in dispatch > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >result = getattr(proxyobj, method)(ctxt, **kwargs) > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line >3902, in detach_interface > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >self.driver.detach_interface(instance, condemned) > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line >1281, in detach_interface > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >raise exception.InterfaceDetachFailed(instance) > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp >InterfaceDetachFailed: {u'vm_state': u'active', u'availability_zone': >None, u'terminated_at': None, u'ephemeral_gb': 0, u'instance_type_id': 5, >u'user_data': None, u'cleaned': False, u'vm_mode': None, u'deleted_at': >None, u'reservation_id': u'r-pku96sxd', u'id': 29, u'security_groups': >[], u'disable_terminate': False, u'display_name': u'VeduTest1_ubuntu_vm', >u'uuid': u'746cfaeb-6b73-4108-a6f0-d547be5eaf91', u'default_swap_device': >None, u'info_cache': {u'instance_uuid': >u'746cfaeb-6b73-4108-a6f0-d547be5eaf91', u'network_info': >[{u'ovs_interfaceid': None, u'network': {u'bridge': None, u'subnets': >[{u'ips': [{u'floating_ips': [], u'meta': {}, u'type': u'fixed', >u'version': 4, u'address': u'20.1.1.253'}], u'version': 4, u'meta': {}, >u'dns': [{u'meta': {}, u'type': u'dns', u'version': 4, u'address': >u'169.254.169.254'}], u'routes': [], u'cidr': u'20.1.1.0/24', u'gateway': >{u'meta': {}, u'type': u'gateway', u'version': 4, u'address': >u'20.1.1.254'}}], u'meta': {u'injected': False, u'tenant_id': >u'319f38f1aedb4b699243eb4e08594af9'}, u'id': >u'e99a37a5-2cb1-40fe-8efc-2c6414b3d140', u'label': u'vn2'}, u'devname': >u'tap6d9bed5c-5b', u'qbh_params': None, u'meta': {}, u'address': >u'02:6d:9b:ed:5c:5b', u'type': u'vrouter', u'id': >u'6d9bed5c-5b43-4912-a4d9-0d8481333edd', u'qbg_params': None}]}, >u'hostname': u'vedutest1-ubuntu-vm', u'launched_on': u'nodec34', >u'display_description': u'VeduTest1_ubuntu_vm', u'key_data': None, >u'kernel_id': u'', u'power_state': 1, u'default_ephemeral_device': None, >u'progress': 0, u'project_id': u'319f38f1aedb4b699243eb4e08594af9', >u'launched_at': u'2014-05-26T07:32:06.000000', u'scheduled_at': >u'2014-05-26T07:32:03.000000', u'node': u'nodec34.englab.juniper.net', >u'ramdisk_id': u'', u'access_ip_v6': None, u'access_ip_v4': None, >u'deleted': False, u'key_name': None, u'updated_at': >u'2014-05-26T07:32:06.000000', u'host': u'nodec34', u'architecture': >None, u'user_id': u'925c9e7872064722a5a8720e0955abbf', >u'system_metadata': {u'image_min_disk': u'20', >u'instance_type_memory_mb': u'2048', u'instance_type_swap': u'0', >u'instance_type_vcpu_weight': None, u'instance_type_root_gb': u'20', >u'instance_type_id': u'5', u'instance_type_name': u'm1.small', >u'instance_type_ephemeral_gb': u'0', u'instance_type_rxtx_factor': u'1', >u'instance_type_flavorid': u'2', u'image_container_format': u'ovf', >u'instance_type_vcpus': u'1', u'image_min_ram': u'0', >u'image_disk_format': u'qcow2', u'image_base_image_ref': >u'd40ea5b4-fe45-4142-881f-a1bb0376947e'}, u'task_state': None, >u'shutdown_terminate': False, u'cell_name': None, u'root_gb': 20, >u'locked': False, u'name': u'instance-0000001d', u'created_at': >u'2014-05-26T07:32:03.000000', u'locked_by': None, u'launch_index': 0, >u'metadata': {}, u'memory_mb': 2048, u'vcpus': 1, u'image_ref': >u'd40ea5b4-fe45-4142-881f-a1bb0376947e', u'root_device_name': >u'/dev/vda', u'auto_disk_config': False, u'os_type': None, >u'config_drive': u''} > 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.common.rpc.amqp > 2014-05-26 13:16:27.180 27978 INFO nova.compute.manager [-] Lifecycle >event 1 on VM 746cfaeb-6b73-4108-a6f0-d547be5eaf91 > 2014-05-26 13:16:27.356 27978 WARNING nova.compute.manager [-] >[instance: 746cfaeb-6b73-4108-a6f0-d547be5eaf91] Instance shutdown by >itself. Calling the stop API. > 2014-05-26 13:16:27.687 27978 INFO nova.virt.libvirt.driver [-] >[instance: 746cfaeb-6b73-4108-a6f0-d547be5eaf91] Instance destroyed >successfully. > >To manage notifications about this bug go to: >https://bugs.launchpad.net/juniperopenstack/+bug/1323204/+subscriptions
Raja, Prasad,
Is there any update on this ?
On latest 1.10, we still have this issue.
Vedu
On 6/18/14, 3:40 AM, "prasad miriyala" <email address hidden> wrote:
>Replaced modified contrail libvirtd(0.9.8 +) with normal libvirtd /bugs.launchpad .net/bugs/ 1323204 /var/log/ nova# nova interface-detach VeduTest1_ubuntu_vm 5b43-4912- a4d9-0d8481333e dd /var/log/ nova# libvirt. driver b9a6-4477- bc43-6f385ebdba de 22a5a8720e0955a bbf 319f38f1aedb4b6 99243eb4e08594a f9] 6b73-4108- a6f0-d547be5eaf 91] detaching network common. rpc.amqp b9a6-4477- bc43-6f385ebdba de 22a5a8720e0955a bbf 319f38f1aedb4b6 99243eb4e08594a f9] common. rpc.amqp common. rpc.amqp lib/python2. 7/dist- packages/ nova/openstack/ common/ rpc/amqp. py", common. rpc.amqp common. rpc.amqp lib/python2. 7/dist- packages/ nova/openstack/ common/ rpc/dispatcher. py" common. rpc.amqp common. rpc.amqp python2. 7/dist- packages/ nova/compute/ manager. py", line common. rpc.amqp detach_ interface( instance, condemned) common. rpc.amqp python2. 7/dist- packages/ nova/virt/ libvirt/ driver. py", line common. rpc.amqp InterfaceDetach Failed( instance) common. rpc.amqp hFailed: {u'vm_state': u'active', u'availability_ zone': type_id' : 5, terminate' : False, u'display_name': u'VeduTest1_ ubuntu_ vm', 6b73-4108- a6f0-d547be5eaf 91', u'default_ swap_device' : 6b73-4108- a6f0-d547be5eaf 91', u'network_info': interfaceid' : None, u'network': {u'bridge': None, u'subnets': 254.169. 254'}], u'routes': [], u'cidr': u'20.1.1.0/24', u'gateway': 4b699243eb4e085 94af9'} , u'id': 2cb1-40fe- 8efc-2c6414b3d1 40', u'label': u'vn2'}, u'devname': 9b:ed:5c: 5b', u'type': u'vrouter', u'id': 5b43-4912- a4d9-0d8481333e dd', u'qbg_params': None}]}, ubuntu- vm', u'launched_on': u'nodec34', description' : u'VeduTest1_ ubuntu_ vm', u'key_data': None, ephemeral_ device' : None, b699243eb4e0859 4af9', 05-26T07: 32:06.000000' , u'scheduled_at': 05-26T07: 32:03.000000' , u'node': u'nodec34. englab. juniper. net', 05-26T07: 32:06.000000' , u'host': u'nodec34', u'architecture': 722a5a8720e0955 abbf', metadata' : {u'image_min_disk': u'20', type_memory_ mb': u'2048', u'instance_ type_swap' : u'0', type_vcpu_ weight' : None, u'instance_ type_root_ gb': u'20', type_id' : u'5', u'instance_ type_name' : u'm1.small', type_ephemeral_ gb': u'0', u'instance_ type_rxtx_ factor' : u'1', type_flavorid' : u'2', u'image_ container_ format' : u'ovf', type_vcpus' : u'1', u'image_min_ram': u'0', disk_format' : u'qcow2', u'image_ base_image_ ref': fe45-4142- 881f-a1bb037694 7e'}, u'task_state': None, terminate' : False, u'cell_name': None, u'root_gb': 20, 0000001d' , u'created_at': 05-26T07: 32:03.000000' , u'locked_by': None, u'launch_index': 0, fe45-4142- 881f-a1bb037694 7e', u'root_ device_ name': disk_config' : False, u'os_type': None, common. rpc.amqp manager [-] Lifecycle 6b73-4108- a6f0-d547be5eaf 91 manager [-] 6b73-4108- a6f0-d547be5eaf 91] Instance shutdown by libvirt. driver [-] 6b73-4108- a6f0-d547be5eaf 91] Instance destroyed /bugs.launchpad .net/juniperope nstack/ +bug/1323204/ +subscriptions
>(0.9.8), then interface detach goes through fine. i.e., VM's interface is
>gone and VM up and running after interface-detach.
>/Prasad
>
>** Changed in: juniperopenstack
> Assignee: prasad miriyala (pmiriyala) => Raja Sivaramakrishnan
>(raja-u)
>
>--
>You received this bug notification because you are a member of Contrail
>Systems engineering, which is subscribed to Juniper Openstack.
>https:/
>
>Title:
> Doing a interface-detach shuts down the VM
>
>Status in Juniper Openstack distribution:
> New
>
>Bug description:
> Build : 1.10main-2189
>
> On doing a interface-detach, even though the command completes
> successfully, in the compute logs, it says that the interface detach
> has failed.
>
> The VM is moved to Shutoff state. Tried with both cirros and ubuntu
> vms.
>
> Also, the port is removed as well.
>
> root@nodec34:
>6d9bed5c-
> root@nodec34:
>
>
> 2014-05-26 13:16:27.178 27978 ERROR nova.virt.
>[req-b04ec504-
>925c9e78720647
>[instance: 746cfaeb-
>adapter failed.
> 2014-05-26 13:16:27.179 27978 ERROR nova.openstack.
>[req-b04ec504-
>925c9e78720647
>Exception during message handling
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>Traceback (most recent call last):
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>File
>"/usr/
>line 461, in _process_data
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>**args)
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>File
>"/usr/
>, line 172, in dispatch
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>result = getattr(proxyobj, method)(ctxt, **kwargs)
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>File "/usr/lib/
>3902, in detach_interface
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>self.driver.
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>File "/usr/lib/
>1281, in detach_interface
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>raise exception.
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
>InterfaceDetac
>None, u'terminated_at': None, u'ephemeral_gb': 0, u'instance_
>u'user_data': None, u'cleaned': False, u'vm_mode': None, u'deleted_at':
>None, u'reservation_id': u'r-pku96sxd', u'id': 29, u'security_groups':
>[], u'disable_
>u'uuid': u'746cfaeb-
>None, u'info_cache': {u'instance_uuid':
>u'746cfaeb-
>[{u'ovs_
>[{u'ips': [{u'floating_ips': [], u'meta': {}, u'type': u'fixed',
>u'version': 4, u'address': u'20.1.1.253'}], u'version': 4, u'meta': {},
>u'dns': [{u'meta': {}, u'type': u'dns', u'version': 4, u'address':
>u'169.
>{u'meta': {}, u'type': u'gateway', u'version': 4, u'address':
>u'20.1.1.254'}}], u'meta': {u'injected': False, u'tenant_id':
>u'319f38f1aedb
>u'e99a37a5-
>u'tap6d9bed5c-5b', u'qbh_params': None, u'meta': {}, u'address':
>u'02:6d:
>u'6d9bed5c-
>u'hostname': u'vedutest1-
>u'display_
>u'kernel_id': u'', u'power_state': 1, u'default_
>u'progress': 0, u'project_id': u'319f38f1aedb4
>u'launched_at': u'2014-
>u'2014-
>u'ramdisk_id': u'', u'access_ip_v6': None, u'access_ip_v4': None,
>u'deleted': False, u'key_name': None, u'updated_at':
>u'2014-
>None, u'user_id': u'925c9e7872064
>u'system_
>u'instance_
>u'instance_
>u'instance_
>u'instance_
>u'instance_
>u'instance_
>u'image_
>u'd40ea5b4-
>u'shutdown_
>u'locked': False, u'name': u'instance-
>u'2014-
>u'metadata': {}, u'memory_mb': 2048, u'vcpus': 1, u'image_ref':
>u'd40ea5b4-
>u'/dev/vda', u'auto_
>u'config_drive': u''}
> 2014-05-26 13:16:27.179 27978 TRACE nova.openstack.
> 2014-05-26 13:16:27.180 27978 INFO nova.compute.
>event 1 on VM 746cfaeb-
> 2014-05-26 13:16:27.356 27978 WARNING nova.compute.
>[instance: 746cfaeb-
>itself. Calling the stop API.
> 2014-05-26 13:16:27.687 27978 INFO nova.virt.
>[instance: 746cfaeb-
>successfully.
>
>To manage notifications about this bug go to:
>https:/