Public bug reported: 2015-03-12 02:47:49.802 19706 ERROR nova.notifications [req-88f518da-f29e-4e85-9a23-093bdd40287c - - - - -] [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] Failed to send state update notification 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] Traceback (most recent call last): 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] File "/usr/lib/python2.7/site-packages/nova/notifications.py", line 148, in send_update 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] old_display_name=old_display_name) 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] File "/usr/lib/python2.7/site-packages/nova/notifications.py", line 228, in _send_instance_update_notification 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] payload = info_from_instance(context, instance, None, None) 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] File "/usr/lib/python2.7/site-packages/nova/notifications.py", line 371, in info_from_instance 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] instance_type = instance.get_flavor() 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] AttributeError: 'Instance' object has no attribute 'get_flavor'
This error is thrown when "self.compute_api.update(context, inst, **base_options)" get called, debugged that the parameter is: (Pdb) self.compute_api <nova.compute.api.API object at 0x32ca190> (Pdb) inst.get_flavor <bound method Instance.get_flavor of Instance(access_ip_v4=None,access_ip_v6=None,architecture='ppc64',auto_disk_config=False,availability_zone=None,cell_name=None,cleaned=False,config_drive=None,created_at=2015-03-10T05:53:08Z,default_ephemeral_device=None,default_swap_device=None,deleted=False,deleted_at=None,disable_terminate=False,display_description='2312',display_name='2312',ephemeral_gb=0,ephemeral_key_uuid=None,fault=<?>,flavor=<?>,host='789522X_067E30B',hostname='789522X_067E30B',id=2,image_ref='b213b06c-d094-45de-8839-2805b060f1fd',info_cache=InstanceInfoCache,instance_type_id=22,kernel_id=None,key_data=None,key_name=None,launch_index=1,launched_at=2015-02-02T09:18:46Z,launched_on='87023b1b94e3de73dba2f197fdabbd93de976d71a8952f6dfe012e2a',locked=False,locked_by=None,memory_mb=2048,metadata=<?>,new_flavor=<?>,node='789522X_067E30B',numa_topology=<?>,old_flavor=<?>,os_type=None,pci_devices=<?>,pci_requests=<?>,power_state=1,progress=0,project_id='09cd06c5ca3748cf9cbac839339d7d19',ramdisk_id=None,reservation_id=None,root_device_name='/dev/sda',root_gb=10,scheduled_at=2015-03-12T06:32:18Z,security_groups=SecurityGroupList,shutdown_terminate=False,system_metadata=<?>,tags=<?>,task_state=None,terminated_at=None,updated_at=2015-03-12T06:32:18Z,user_data=None,user_id='b3ad1780a3434f4dacda30d7f4135f39',uuid=b8a02182-68d1-4255-b0e4-25a3608a9812,vcpu_model=<?>,vcpus=1,vm_mode=None,vm_state='active')> (Pdb) base_options {'vm_state': u'active', 'ephemeral_gb': 0, 'instance_type_id': 22, 'root_device_name': u'/dev/sda', 'display_name': u'2312', 'hostname': u'789522X_067E30B', 'launched_on': u'87023b1b94e3de73dba2f197fdabbd93de976d71a8952f6dfe012e2a', 'display_description': u'2312', 'power_state': 1, 'progress': 0, 'project_id': u'09cd06c5ca3748cf9cbac839339d7d19', 'launched_at': datetime.datetime(2015, 2, 2, 9, 18, 46, 163124, tzinfo=<iso8601.iso8601.Utc object at 0x14ef0d0>), 'metadata': {u'powervm:health_status.health_value': u'WARNING', u'powervm:min_vcpus': u'0.50', u'pvc_id': u'17222b7c-ee2f-440f-9dcf-4638c9405aca', u'powervm:max_cpus': 1, u'powervm:root_gb': 10, u'powervm:max_vcpus': u'0.50', u'powervm:min_cpus': 1, u'powervm:min_memory_mb': 2048, u'powervm:max_memory_mb': 2048, u'powervm:cpus': 1}, 'node': u'789522X_067E30B', 'access_ip_v4': None, 'host': u'789522X_067E30B', 'user_id': u'b3ad1780a3434f4dacda30d7f4135f39', 'task_state': None, 'root_gb': 10, 'locked': False, 'launch_time': datetime.datetime(2015, 2, 2, 9, 18, 46, 163124, tzinfo=<iso8601.iso8601.Utc object at 0x14ef0d0>), 'memory_mb': 2048, 'vcpus': 1, 'image_ref': u'b213b06c-d094-45de-8839-2805b060f1fd', 'architecture': 'ppc64', 'scheduled_at': datetime.datetime(2015, 3, 12, 6, 47, 33, 347752)} "inst" is the instance object that has the "get_flavor()" method but doesn't get recoginized in "self.compute_api.update“ method, I believe this is a defect that need to take care. Thanks. ** Affects: nova Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1432969 Title: "'Instance' object has no attribute 'get_flavor'" when call compute_api.update Status in OpenStack Compute (Nova): New Bug description: 2015-03-12 02:47:49.802 19706 ERROR nova.notifications [req-88f518da-f29e-4e85-9a23-093bdd40287c - - - - -] [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] Failed to send state update notification 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] Traceback (most recent call last): 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] File "/usr/lib/python2.7/site-packages/nova/notifications.py", line 148, in send_update 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] old_display_name=old_display_name) 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] File "/usr/lib/python2.7/site-packages/nova/notifications.py", line 228, in _send_instance_update_notification 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] payload = info_from_instance(context, instance, None, None) 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] File "/usr/lib/python2.7/site-packages/nova/notifications.py", line 371, in info_from_instance 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] instance_type = instance.get_flavor() 2015-03-12 02:47:49.802 19706 TRACE nova.notifications [instance: b8a02182-68d1-4255-b0e4-25a3608a9812] AttributeError: 'Instance' object has no attribute 'get_flavor' This error is thrown when "self.compute_api.update(context, inst, **base_options)" get called, debugged that the parameter is: (Pdb) self.compute_api <nova.compute.api.API object at 0x32ca190> (Pdb) inst.get_flavor <bound method Instance.get_flavor of Instance(access_ip_v4=None,access_ip_v6=None,architecture='ppc64',auto_disk_config=False,availability_zone=None,cell_name=None,cleaned=False,config_drive=None,created_at=2015-03-10T05:53:08Z,default_ephemeral_device=None,default_swap_device=None,deleted=False,deleted_at=None,disable_terminate=False,display_description='2312',display_name='2312',ephemeral_gb=0,ephemeral_key_uuid=None,fault=<?>,flavor=<?>,host='789522X_067E30B',hostname='789522X_067E30B',id=2,image_ref='b213b06c-d094-45de-8839-2805b060f1fd',info_cache=InstanceInfoCache,instance_type_id=22,kernel_id=None,key_data=None,key_name=None,launch_index=1,launched_at=2015-02-02T09:18:46Z,launched_on='87023b1b94e3de73dba2f197fdabbd93de976d71a8952f6dfe012e2a',locked=False,locked_by=None,memory_mb=2048,metadata=<?>,new_flavor=<?>,node='789522X_067E30B',numa_topology=<?>,old_flavor=<?>,os_type=None,pci_devices=<?>,pci_requests=<?>,power_state=1,progress=0,project_id='09cd06c5ca3748cf9cbac839339d7d19',ramdisk_id=None,reservation_id=None,root_device_name='/dev/sda',root_gb=10,scheduled_at=2015-03-12T06:32:18Z,security_groups=SecurityGroupList,shutdown_terminate=False,system_metadata=<?>,tags=<?>,task_state=None,terminated_at=None,updated_at=2015-03-12T06:32:18Z,user_data=None,user_id='b3ad1780a3434f4dacda30d7f4135f39',uuid=b8a02182-68d1-4255-b0e4-25a3608a9812,vcpu_model=<?>,vcpus=1,vm_mode=None,vm_state='active')> (Pdb) base_options {'vm_state': u'active', 'ephemeral_gb': 0, 'instance_type_id': 22, 'root_device_name': u'/dev/sda', 'display_name': u'2312', 'hostname': u'789522X_067E30B', 'launched_on': u'87023b1b94e3de73dba2f197fdabbd93de976d71a8952f6dfe012e2a', 'display_description': u'2312', 'power_state': 1, 'progress': 0, 'project_id': u'09cd06c5ca3748cf9cbac839339d7d19', 'launched_at': datetime.datetime(2015, 2, 2, 9, 18, 46, 163124, tzinfo=<iso8601.iso8601.Utc object at 0x14ef0d0>), 'metadata': {u'powervm:health_status.health_value': u'WARNING', u'powervm:min_vcpus': u'0.50', u'pvc_id': u'17222b7c-ee2f-440f-9dcf-4638c9405aca', u'powervm:max_cpus': 1, u'powervm:root_gb': 10, u'powervm:max_vcpus': u'0.50', u'powervm:min_cpus': 1, u'powervm:min_memory_mb': 2048, u'powervm:max_memory_mb': 2048, u'powervm:cpus': 1}, 'node': u'789522X_067E30B', 'access_ip_v4': None, 'host': u'789522X_067E30B', 'user_id': u'b3ad1780a3434f4dacda30d7f4135f39', 'task_state': None, 'root_gb': 10, 'locked': False, 'launch_time': datetime.datetime(2015, 2, 2, 9, 18, 46, 163124, tzinfo=<iso8601.iso8601.Utc object at 0x14ef0d0>), 'memory_mb': 2048, 'vcpus': 1, 'image_ref': u'b213b06c-d094-45de-8839-2805b060f1fd', 'architecture': 'ppc64', 'scheduled_at': datetime.datetime(2015, 3, 12, 6, 47, 33, 347752)} "inst" is the instance object that has the "get_flavor()" method but doesn't get recoginized in "self.compute_api.update“ method, I believe this is a defect that need to take care. Thanks. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1432969/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp