[Openstack-operators] nova boot with inject file

Pádraig Brady P at draigBrady.com
Wed Oct 16 21:10:59 UTC 2013


On 10/16/2013 10:46 AM, Shyam Goud wrote:
> All,
> 
> We are trying to inject a xml file to a Server while booting with nova boot --file option.
> 
>     --file <dst-path=src-path>
>                             Store arbitrary files from <src-path> locally to <dst-
>                             path> on the new server. You may store up to 5 files.
> 
> But seeing some exception.
> 
>     NovaException: Failed to mount filesystem: Unexpected error while running command.\nCommand: sudo nova-rootwrap /etc/nova/rootwrap.conf mount /dev/nbd8p1 /tmp/openstack-vfs-localfs5Co36y\nExit code: 32\nStdout: ''*\nStderr: 'mount: you must specify the filesystem type\*\n'\n"]
> 
> So, anyone successful in injecting a file to a Server ?
> 
> Appreciate any help.

You have to be aware of the partitioning in your image currently.
Have a look at the libvirt_inject_partition config option in nova.conf
for example.  It doesn't look like libguestfs is available to you
(or at least you don't have python-libguestfs installed), so the
inspection option documented in the config file would then not
be available to you.  Perhaps specifying a different static partition
will suffice for you.  Note if you have a more complicated structure,
like LVM or something, then again libguestfs is required.

thanks,
Pádraig.



More information about the OpenStack-operators mailing list