← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1980511] [NEW] user-data not getting updated when instance is rebuild using the snapshot taken from the same server

 

Public bug reported:

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 rebuild --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

** Affects: nova
     Importance: Undecided
         Status: New

** Description changed:

  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 rebuild --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

** Summary changed:

- user-data not getting updated when instance is rebuild using the snapshot image
+ user-data not getting updated when instance is rebuild using the snapshot taken from the same server

-- 
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):
  New

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 rebuild --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



Follow ups