in flat network mode ip not get injected

asked 2011-08-08 18:00:17 -0600

avdhooth gravatar image

nova-compute log 2011-08-09 04:36:19,782 nova.compute.disk: aug_get: no matching node (nova.compute.disk): TRACE: Traceback (most recent call last): (nova.compute.disk): TRACE: File "/usr/lib/python2.6/site-packages/nova/virt/", line 81, in inject_data (nova.compute.disk): TRACE: devices = g.inspect_os() (nova.compute.disk): TRACE: File "/usr/lib/python2.6/site-packages/", line 681, in inspect_os (nova.compute.disk): TRACE: return libguestfsmod.inspect_os (self._o) (nova.compute.disk): TRACE: RuntimeError: aug_get: no matching node (nova.compute.disk): TRACE: 2011-08-09 04:36:19,787 nova.virt.libvirt_conn: instance instance-00000015: ignoring error injecting data into image 40 (aug_get: no matching node)


--verbose=false --ec2_url= --s3_host= --cc_host= --rabbit_host= --sql_connection=mysql://nova:nova@ --glance_api_servers= --use_s3=true --libvirt_type=kvm --use_syslog=false --node_availability_zone=nova --logdir=/var/log/nova --logging_context_format_string=%(asctime)s %(name)s: %(levelname)s [%(request_id)s %(user)s %(project)s] %(message)s --logging_default_format_string=%(asctime)s %(name)s: %(message)s --logging_debug_format_suffix= --use_cow_images=true --auth_driver=nova.auth.dbdriver.DbDriver --fixed_range= --flat_injected=true --image_service=nova.image.glance.GlanceImageService --use_ipv6=false --ca_path=/var/lib/nova/CA --keys_path=/var/lib/nova/keys --images_path=/var/lib/nova/images --buckets_path=/var/lib/nova/buckets --instances_path=/var/lib/nova/instances --networks_path=/var/lib/nova/networks --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --injected_network_template=/usr/share/nova/interfaces/ --libvirt_xml_template=/usr/share/nova/libvirt.xml.template --vpn_client_template=/usr/share/nova/client.ovpn.template --credentials_template=/usr/share/nova/novarc.template --state_path=/var/lib/nova --lock_path=/var/lib/nova/tmp --vnc_enabled=true --vncproxy_url= --vncserver_host= --vnc_token_ttl=300

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2011-08-08 20:27:29 -0600

libguestfs is having problems with CentOS images.

however, fix is easy for you:

mkdir loop

mount -o loop centos.5-3.x86-64.img loop/

echo 'HOSTNAME=centos' >> loop/etc/sysconfig/network

umount loop/

That's all you need to do once for your CentOS image.

I tested it on D3 and it works - with or without network injection.

Let me know if you have other issues with our build of Nova.

edit flag offensive delete link more

answered 2011-08-09 09:18:45 -0600

avdhooth gravatar image

Thanks Andrey Brindeyev, that solved my question.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-08-08 18:00:17 -0600

Seen: 133 times

Last updated: Aug 09 '11