'Instance' object has no attribute 'mac_addresses'

Asked by Vincent Caron on 2011-09-01

Diablo version is
2011.3-dev (2011.3-nova-milestone-tarball:tarmac-20110825234031-sqwfb0kwnj0aw26t)

When I try to run an instance on my ESX server, I have got the following message in nova-compute.log :
2011-09-01 15:41:25,538 ERROR nova.compute.manager [-] Instance '7' failed to spawn. Is virtualization enabled in the BIOS? Details: 'Instance' object
 has no attribute 'mac_addresses'
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/compute/manager.py", line 440, in _run_instance
(nova.compute.manager): TRACE: network_info, block_device_info)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi_conn.py", line 130, in spawn
(nova.compute.manager): TRACE: self._vmops.spawn(context, instance, network_info)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vmops.py", line 189, in spawn
(nova.compute.manager): TRACE: network_obj)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/vm_util.py", line 65, in get_vm_create_spec
(nova.compute.manager): TRACE: if instance['mac_addresses']:
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/db/sqlalchemy/models.py", line 76, in __getitem__
(nova.compute.manager): TRACE: return getattr(self, key)
(nova.compute.manager): TRACE: AttributeError: 'Instance' object has no attribute 'mac_addresses'

Here are my config parameters :
--storage_availability_zone=nova
--ca_file=cacert.pem
--ec2_dmz_host=$my_ip
--fixed_range=10.0.0.0/8
--compute_topic=compute
--dmz_mask=255.255.255.0
--fixed_range_v6=fd00::/48
--glance_api_servers=10.0.3.15:9292
--rabbit_password=guest
--user_cert_subject=/C=US/ST=California/L=MountainView/O=AnsoLabs/OU=NovaDev/CN=%s-%s-%s
--s3_dmz=192.168.1.201
--quota_ram=51200
--find_host_timeout=30
--aws_access_key_id=admin
--vncserver_host=0.0.0.0
--network_size=1024
--enable_new_services
--my_ip=10.0.3.15
--live_migration_retry_count=30
--lockout_attempts=5
--credential_cert_file=cert.pem
--quota_max_injected_files=5
--zone_capabilities=hypervisor=xenserver;kvm,os=linux;windows
--logdir=/var/log/nova
--sqlite_db=nova.sqlite
--nouse_forwarded_for
--cpuinfo_xml_template=/usr/lib/pymodules/python2.7/nova/virt/cpuinfo.xml.template
--num_networks=1
--boot_script_template=/usr/lib/pymodules/python2.7/nova/cloudpipe/bootscript.template
--live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE, VIR_MIGRATE_PEER2PEER
--notification_driver=nova.notifier.no_op_notifier
--osapi_max_limit=1000
--rabbit_port=5672
--s3_access_key=notchecked
--rabbit_max_retries=12
--noresume_guests_state_on_host_boot
--sql_max_pool_size=10
--ajax_console_proxy_url=http://127.0.0.1:8000
--injected_network_template=/usr/lib/pymodules/python2.7/nova/virt/interfaces.template
--network_host=192.168.1.201
--snapshot_name_template=snapshot-%08x
--vncproxy_url=http://lcc.louvrex.net:6080
--s3_secret_key=notchecked
--ajax_console_proxy_topic=ajax_proxy
--minimum_root_size=10737418240
--quota_cores=20
--nouse_project_ca
--rabbit_userid=guest
--volume_topic=volume
--volume_name_template=volume-%08x
--lock_path=/var/lock/nova
--live_migration_uri=qemu+tcp://%s/system
--allow_same_net_traffic
--flat_network_dns=8.8.4.4
--live_migration_bandwidth=0
--connection_type=vmwareapi
--noupdate_dhcp_on_disassociate
--default_project=openstack
--s3_port=3333
--logfile_mode=420
--logging_context_format_string=%(asctime)s %(levelname)s %(name)s [%(request_id)s %(user_id)s %(project_id)s] %(message)s
--instance_name_template=instance-%08x
--ec2_host=$my_ip
--norabbit_durable_queues
--credential_key_file=pk.pem
--vpn_cert_subject=/C=US/ST=California/L=MountainView/O=AnsoLabs/OU=NovaDev/CN=project-vpn-%s-%s
--logging_debug_format_suffix=from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d
--stub_network=False
--console_manager=nova.console.manager.ConsoleProxyManager
--keystone_ec2_url=http://localhost:5000/v2.0/ec2tokens
--rpc_backend=nova.rpc.amqp
--default_log_levels=amqplib=WARN,sqlalchemy=WARN,boto=WARN,eventlet.wsgi.server=WARN
--osapi_scheme=http
--credential_rc_file=%src
--sql_connection=mysql://nova:root@192.168.1.201/nova
--console_topic=console
--instances_path=$state_path/instances
--flat_injected
--use_local_volumes
--host=vincent-VirtualBox
--fixed_ip_disassociate_timeout=600
--console_host=vincent-VirtualBox
--quota_instances=10
--quota_max_injected_file_content_bytes=10240
--libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtBridgeDriver
--floating_range=4.4.4.0/24
--nomulti_host
--lockout_window=15
--db_backend=sqlalchemy
--credentials_template=/usr/lib/pymodules/python2.7/nova/auth/novarc.template
--dmz_net=10.0.0.0
--sql_retry_interval=10
--vpn_start=1000
--volume_driver=nova.volume.driver.ISCSIDriver
--crl_file=crl.pem
--sql_min_pool_size=10
--rpc_conn_pool_size=30
--s3_host=192.168.1.201
--qemu_img=qemu-img
--max_nbd_devices=16
--scheduler_topic=scheduler
--verbose
--sql_max_retries=12
--default_instance_type=m1.small
--firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
--password_length=12
--libvirt_type=kvm
--image_decryption_dir=/tmp
--vpn_key_suffix=-vpn
--use_cow_images
--block_size=268435456
--null_kernel=nokernel
--libvirt_xml_template=/usr/lib/pymodules/python2.7/nova/virt/libvirt.xml.template
--vpn_client_template=/usr/lib/pymodules/python2.7/nova/cloudpipe/client.ovpn.template
--sql_pool_timeout=30
--credential_vpn_file=nova-vpn.conf
--service_down_time=60
--default_notification_level=INFO
--nopublish_errors
--quota_metadata_items=128
--allowed_roles=cloudadmin,itsec,sysadmin,netadmin,developer
--logging_exception_prefix=(%(name)s): TRACE:
--enabled_apis=ec2,osapi
--quota_max_injected_file_path_bytes=255
--scheduler_manager=nova.scheduler.manager.SchedulerManager
--ec2_port=8773
--rescue_kernel_id=aki-rescue
--osapi_port=8774
--auth_token_ttl=3600
--quota_volumes=10
--libvirt_uri=
--ec2_scheme=http
--keys_path=$state_path/keys
--vpn_image_id=0
--host_state_interval=120
--block_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE, VIR_MIGRATE_PEER2PEER, VIR_MIGRATE_NON_SHARED_INC
--noauto_assign_floating_ip
--quota_floating_ips=10
--nofake_call
--state_path=/var/lib/nova
--sql_idle_timeout=3600
--vpn_ip=$my_ip
--default_image=ami-11111
--aws_secret_access_key=admin
--nouse_ipv6
--key_file=private/cakey.pem
--fake_network
--osapi_extensions_path=/var/lib/nova/extensions
--quota_gigabytes=1000
--region_list=
--auth_driver=nova.auth.dbdriver.DbDriver
--network_manager=nova.network.manager.VlanManager
--noenable_zone_routing
--root_helper=sudo
--osapi_host=$my_ip
--zone_name=nova
--rescue_image_id=ami-rescue
--logging_default_format_string=%(asctime)s %(levelname)s %(name)s [-] %(message)s
--timeout_nbd=10
--compute_driver=nova.virt.connection.get_connection
--libvirt_vif_type=bridge
--nofake_rabbit
--rabbit_host=192.168.1.201
--vnc_keymap=en-us
--rescue_timeout=0
--ca_path=$state_path/CA
--nouse_syslog
--superuser_roles=cloudadmin
--osapi_path=/v1.1/
--nouse_deprecated_auth
--ec2_path=/services/Cloud
--norabbit_use_ssl
--rabbit_retry_interval=10
--node_availability_zone=nova
--lockout_minutes=15
--db_driver=nova.db.api
--create_unique_mac_address_attempts=5
--ajaxterm_portrange=10000-12000
--volume_manager=nova.volume.manager.VolumeManager
--nostart_guests_on_host_boot
--vlan_start=100
--rpc_thread_pool_size=1024
--ipv6_backend=rfc2462
--novnc_enabled
--global_roles=cloudadmin,itsec
--rabbit_virtual_host=/
--rescue_ramdisk_id=ari-rescue
--network_driver=nova.network.linux_net
--ajax_console_proxy_port=8000
--project_cert_subject=/C=US/ST=California/L=MountainView/O=AnsoLabs/OU=NovaDev/CN=project-ca-%s-%s
--image_service=nova.image.glance.GlanceImageService
--control_exchange=nova
--cnt_vpn_clients=0
--vncproxy_topic=vncproxy
--compute_manager=nova.compute.manager.ComputeManager
--network_topic=network

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
2011-09-01
Last reply:
2012-04-29
Vincent Caron (vcaron70) said : #1

In fact, the migratio file 30_multi_nic.py shows that the 'mac_address' has disapeared, but the vmware code seems to still use it.

Tom Fifield (fifieldt) said : #2

Hi Vincent,

It looks like the bug here (https://bugs.launchpad.net/nova/+bug/839383) was solved some time ago, so I propose closing this Question :)

Regards,

Tom

Can you help with this problem?

Provide an answer of your own, or ask Vincent Caron for more information if necessary.

To post a message you must log in.