yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #89224
[Bug 1980511] Re: user-data not getting updated when instance is rebuild using the snapshot taken from the same server
speaking on irc the reporter confirmed that if they curl the metadata
API the user data is correct
it my belief therefor that the issue is cause by not debootstraping the instance with cloud-init clean
https://cloudinit.readthedocs.io/en/latest/topics/cli.html#clean
before taking the snapshot or a similar cloud-init config error.
it's likely that cloud-init is checking the instance id and first boot
files that it is creating and determining it does not need to redownload
the user-data form the metadata API.
setting this as invalid as this is out of scope of nova.
** Changed in: nova
Status: Incomplete => Invalid
--
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/1980511
Title:
user-data not getting updated when instance is rebuild using the
snapshot taken from the same server
Status in OpenStack Compute (nova):
Invalid
Bug description:
Description
===========
user-data not getting updated when the instance is rebuilt using the snapshot taken from the same instance
Steps to reproduce
==================
1. create an instance with the user-data
openstack server create --image c2022d1d-5549-46f1-b220-810019ae7d5e --user-data user_data.txt 5b75696f-1f8a-45ea-ac8e-12b4988cb2d4 --os-compute-api-version=2.57
2. login to instance and check user-data
3. create a snapshot
openstack server image create --name snapshot1 5b75696f-1f8a-45ea-ac8e-12b4988cb2d4
4. rebuild the server with the snapshot and a different user-data
openstack server rebuild --image c2022d1d-5549-46f1-b220-810019ae7d5e --user-data user_data_new.txt 5b75696f-1f8a-45ea-ac8e-12b4988cb2d4 --os-compute-api-version=2.57
5. login to the instance and check user-data. the user-data passed during the rebuild is not present in /var/lib/cloud/instnace/user-data.txt. Its the old user-data which is passed during the instance creation
Expected result
===============
the user-data passed during the rebuild should be applied
Actual result
=============
user-data passed during rebuid is not getting applied
Environment
===========
$ rpm -qa | grep nova
openstack-nova-conductor-20.6.0-1.el7.noarch
python2-novaclient-15.1.1-1.el7.noarch
openstack-nova-scheduler-20.6.0-1.el7.noarch
openstack-nova-common-20.6.0-1.el7.noarch
openstack-nova-api-20.6.0-1.el7.noarch
python2-nova-20.6.0-1.el7.noarch
openstack-nova-novncproxy-20.6.0-1.el7.noarch
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1980511/+subscriptions
References