← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1638961] Re: evacuating an instance loses files specified via "--file" on the cli

 

OK so this is a wishlist bug. Rebuild takes a list of files to inject:

https://github.com/openstack/nova/blob/14.0.2/nova/compute/api.py#L2731

Evacuate doesn't:

https://github.com/openstack/nova/blob/14.0.2/nova/compute/api.py#L3729

Since we don't store the injected files and evacuate is an admin
operation, we can't get those back into the guest when it's rebuilt on
another compute node. Rebuild is a user operation so they can rebuild
with the same files to inject.

We've been talking about getting rid of file injection for a long time
so I'm not sure we're going to consider fixing this, but I'll bring it
up in the dev ML since we always talk about dropping file injection but
never seen to get serious about it.

** Changed in: nova
       Status: New => Confirmed

** Changed in: nova
   Importance: Undecided => Wishlist

** Changed in: nova
       Status: Confirmed => Opinion

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1638961

Title:
  evacuating an instance loses files specified via "--file" on the cli

Status in OpenStack Compute (nova):
  Opinion

Bug description:
  I booted up an instance as follows in my stable/mitaka devstack
  environment:

  $ echo "this is a test" > /tmp/my_user_data.txt
  $ echo "blah1" > /tmp/file1
  $ echo "blah2" > /tmp/file2
  $ nova boot --flavor m1.tiny --image cirros-0.3.4-x86_64-uec  --config-drive true --user-data /tmp/my_user_data.txt --file /root/file1=/tmp/file1 --file /tmp/file2=/tmp/file2 testing

  
  This booted up an instance, and within the guest I ran the following:

  $ mkdir mnt
  $ mount /dev/sr0 mnt
  $ cat mnt/openstack/latest/user_data
  this is a test
  $ umount mnt
  $ cat /root/file1
  blah1
  $ cat /tmp/file2
  blah2

  Then I killed the compute node and ran "nova evacuate testing".

  The evacuated instance had a config drive at /dev/sr0, but it did not
  have the /root/file1 or /tmp/file2 files.  This is arguably incorrect.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1638961/+subscriptions


References