[Nova] Injection metadata disappears after instance resize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
In Progress
|
Medium
|
MOS Nova | ||
9.x |
Fix Released
|
Medium
|
MOS Nova |
Bug Description
--- Environment ---
MOS 9 (ISO build 528)
--- Steps to reproduce ---
1. Launch a VM with injected file:
vim /root/inject.txt
nova boot --flavor m1.micro --image TestVM --nic net-id=
2. Check the content of config drive on the compute node
mkdir /mnt/config/
mount /var/lib/
cat /mnt/config/
[
{
"content_path": "/content/0000",
"path": "/root/inject.txt"
}
]
3. Resize the instance
nova resize test_vm1 m1.tiny
nova resize-confirm test_vm1
4. Check the content of config drive on the new compute node
mkdir /mnt/config/
mount /var/lib/
cat /mnt/config/
--- Actual result ---
The information about the injected file is not present in metadata:
cat /mnt/config/
null
--- Expected result ---
The information about the injected file is present in metadata:
cat /mnt/config/
[
{
"content_path": "/content/0000",
"path": "/root/inject.txt"
}
]
sla2 for 9.0-updates