Ask Your Question
0

'Instance' object has no attribute 'mac_addresses'

asked 2011-09-01 14:46:47 -0500

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 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-04-29 00:46:20 -0500

fifieldt gravatar image

Hi Vincent,

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

Regards,

Tom

edit flag offensive delete link more
0

answered 2011-09-01 15:19:00 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-09-01 14:46:47 -0500

Seen: 56 times

Last updated: Apr 29 '12