Does file injection work with CentOS images in Grizzly ? [closed]

asked 2013-12-03 17:52:59 -0500

imtiaz.chowdhury gravatar image

updated 2013-12-06 19:03:31 -0500

Does file injection during VM instance creation work in Grizzly and Havana? In Folsom release, I was able to inject files into the VMs with the nova boot command (e.g. nova boot --flavor 1 --image <> --file /etc/chef/validation.pem=./validation.pem <vm name=""> but this is no longer working for me from Grizzly release. </vm>

I am using CentOS 5.8 and 6.4 images. The VMs get created without any error messages and I can successfully connect to them. However, the injected files are not where they are expected to be.

The compute.log file only reflects the available resources:

2013-12-07 00:58:58.379 52137 INFO nova.compute.manager [-] Updating host status
2013-12-07 01:00:00.299 52137 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
2013-12-07 01:00:01.146 52137 AUDIT nova.compute.resource_tracker [-] Free ram (MB): 233206
2013-12-07 01:00:01.147 52137 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 60
2013-12-07 01:00:01.147 52137 AUDIT nova.compute.resource_tracker [-] Free VCPUS: 18

The libvirtd.log file shows the following errors. However, these errors occurred few months ago and I don't see any new error messages.

2013-09-19 22:28:10.842+0000: 5716: error : virNWFilterSnoopLeaseFileRefresh:1903 : open("/var/run/libvirt/network/nwfilter.ltmp"): No such file or directory
2013-09-20 00:04:17.416+0000: 5705: error : virNetSocketReadWire:1184 : End of file while reading data: Input/output error
2013-09-20 00:06:20.164+0000: 5705: error : virNetSocketReadWire:1184 : End of file while reading data: Input/output error
2013-09-20 18:22:02.540+0000: 5705: error : virNetSocketReadWire:1184 : End of file while reading data: Input/output error
2013-09-20 20:09:57.070+0000: 5705: error : virNetSocketReadWire:1184 : End of file while reading data: Input/output error
2013-09-23 16:50:38.227+0000: 2665: info : libvirt version: 0.10.2, package: 18.el6_4.9 (CentOS BuildSystem <http://bugs.centos.org>, 2013-07-02-11:19:29, c6b8.bsys.dev.centos.org)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by rbowen
close date 2016-06-21 14:12:43.801690

Comments

what is the issue you are hitting ? Command not working or instance is not getting created ?

dheeru gravatar imagedheeru ( 2013-12-03 20:52:13 -0500 )edit

The VM gets created and I don't see any errors while running the command itself. However, upon logging into the VM, I don't see the file I tried to inject.

imtiaz.chowdhury gravatar imageimtiaz.chowdhury ( 2013-12-03 21:09:00 -0500 )edit
1

file injection could be failing on centos due to guestfs. Can you see compute.log and libvertd.log ? What do they say ?

dheeru gravatar imagedheeru ( 2013-12-03 21:18:11 -0500 )edit

There are no error message in the compute.log or libvirt log files.

imtiaz.chowdhury gravatar imageimtiaz.chowdhury ( 2013-12-04 14:06:49 -0500 )edit

Just tried injecting file on a VM running on cirros image and it worked. So the problem only manifests itself when I use CentOS VMs. However, file injection used to work with the same version of CentOS in Folsom.

imtiaz.chowdhury gravatar imageimtiaz.chowdhury ( 2013-12-04 14:19:26 -0500 )edit