← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1405533] Re: After the instance cold migration, the injected contents in the file "disk.config" is missing.

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

-- 
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/1405533

Title:
  After the instance cold migration, the injected contents in the file
  "disk.config" is missing.

Status in OpenStack Compute (Nova):
  Expired

Bug description:
  1. Boot a instance with setting config-drive true and a injected file.

  [root@lxlconductor1 ~(keystone_admin)]# nova boot --image fb6d667d-
  79d3-4aa7-9fce-ffe23d3259fc --flavor f2e4ce16-4f00-4d9a-968b-
  54eb778c39d7 --nic net-id=7e63938c-ba9d-448a-be92-c868669c52b4
  --config-drive true --file /home/hanrong/ip.txt=/home/hanrong/ip.txt
  hanrong9

  [root@lxlconductor1 ~(keystone_admin)]# nova list
  +--------------------------------------+----------+--------+------------+-------------+-------------------+
  | ID                                   | Name     | Status | Task State | Power State | Networks          |
  +--------------------------------------+----------+--------+------------+-------------+-------------------+
  | 122e21e1-6f9a-46ce-835a-a05a4e5f5c95 | hanrong9 | ACTIVE | -          | Running     | test=192.168.0.37 |
  +--------------------------------------+----------+--------+------------+-------------+-------------------+

  2.  Check the cd-rom file.
  [root@lxlconductor1 ~(keystone_admin)]# cd /var/lib/nova/instances/122e21e1-6f9a-46ce-835a-a05a4e5f5c95

  [root@lxlconductor1 122e21e1-6f9a-46ce-835a-a05a4e5f5c95(keystone_admin)]# ll
  total 1808
  -rw-rw---- 1 root root   25335 Feb 23 10:45 console.log
  -rw-r--r-- 1 root root 1441792 Feb 23 10:45 disk
  -rw-r--r-- 1 root root  428032 Feb 23 10:44 disk.config
  -rw-r--r-- 1 root root     162 Feb 23 10:44 disk.info
  -rw-r--r-- 1 root root    1928 Feb 23 10:44 libvirt.xml

  3. Mount this cd-rom file to a path, and view it's content.
  [root@lxlconductor1 122e21e1-6f9a-46ce-835a-a05a4e5f5c95(keystone_admin)]# mount -o loop disk.config /home
  mount: /dev/loop1 is write-protected, mounting read-only
  [root@lxlconductor1 122e21e1-6f9a-46ce-835a-a05a4e5f5c95(keystone_admin)]# cd /home/openstack/
  [root@lxlconductor1 openstack(keystone_admin)]# ll
  total 10
  dr-xr-xr-x 2 root root 2048 Feb 23 10:44 2012-08-10
  dr-xr-xr-x 2 root root 2048 Feb 23 10:44 2013-04-04
  dr-xr-xr-x 2 root root 2048 Feb 23 10:44 2013-10-17
  dr-xr-xr-x 2 root root 2048 Feb 23 10:44 content
  dr-xr-xr-x 2 root root 2048 Feb 23 10:44 latest

  4. Migrate this instance.
  [root@lxlconductor1 ~(keystone_admin)]# nova migrate hanrong9
  [root@lxlconductor1 ~(keystone_admin)]# nova list
  +--------------------------------------+----------+---------------+------------+-------------+-------------------+
  | ID                                   | Name     | Status        | Task State | Power State | Networks          |
  +--------------------------------------+----------+---------------+------------+-------------+-------------------+
  | 122e21e1-6f9a-46ce-835a-a05a4e5f5c95 | hanrong9 | VERIFY_RESIZE | -          | Running     | test=192.168.0.37 |
  +--------------------------------------+----------+---------------+------------+-------------+-------------------+

  [root@lxlconductor1 ~(keystone_admin)]# nova resize-confirm hanrong9
  [root@lxlconductor1 ~(keystone_admin)]# nova list
  +--------------------------------------+----------+---------------+------------+-------------+-------------------+
  | ID                                   | Name     | Status        | Task State | Power State | Networks          |
  +--------------------------------------+----------+---------------+------------+-------------+-------------------+
  | 122e21e1-6f9a-46ce-835a-a05a4e5f5c95 | hanrong9 | ACTIVE | -          | Running     | test=192.168.0.37 |
  +--------------------------------------+----------+---------------+------------+-------------+-------------------+

  5. Check the cd-rom file at the destination host.
  [root@lxlcompute1]# cd /var/lib/nova/instances/122e21e1-6f9a-46ce-835a-a05a4e5f5c95/
  [root@lxlcompute1 122e21e1-6f9a-46ce-835a-a05a4e5f5c95]# ll
  total 18716
  -rw-rw---- 1 root root    13188 Feb 23 10:28 console.log
  -rw-r--r-- 1 root root 19398656 Feb 23 10:17 disk
  -rw-r--r-- 1 root root   419840 Feb 23 10:27 disk.config
  -rw-r--r-- 1 root root      162 Feb 23 10:27 disk.info
  -rw-r--r-- 1 root root     1928 Feb 23 10:28 libvirt.xml

  6. Mount this cd-rom file to a path, and view it's content at the destination host.
  [root@lxlcompute1 122e21e1-6f9a-46ce-835a-a05a4e5f5c95]# mount -o loop disk.config /home
  mount: /dev/loop0 is write-protected, mounting read-only
  [root@lxlcompute1 122e21e1-6f9a-46ce-835a-a05a4e5f5c95]# cd /home/openstack/
  [root@lxlcompute1 openstack]# ll
  total 10
  dr-xr-xr-x 2 root root 2048 Feb 23 10:15 2012-08-10
  dr-xr-xr-x 2 root root 2048 Feb 23 10:15 2013-04-04
  dr-xr-xr-x 2 root root 2048 Feb 23 10:15 2013-10-17
  dr-xr-xr-x 2 root root 2048 Feb 23 10:15 latest

  7. We can see the problem, the folder  named "content" is missing.
  This disk.config file is a new and empty cd-rom file.

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


References