New instance is always in "spawning" status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Bundles |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Compute (nova) |
Triaged
|
Wishlist
|
Unassigned | ||
OpenStack Nova Compute Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
bundle: openstack-
hardware: 2 d05 and 2 d06 (the log of the compute node is from one of the d06. Please note they are arm64 arch.)
When trying to create new instances on the deployed openstack, the instance is always in the status of "spawning"
[Steps to Reproduce]
1. Deploy with the above bundle and hardware by following the instruction of https:/
2. Wait about 1.5 until the deployment is ready. By ready it means every unit shows its message as "ready" e.g. https:/
3. Follow the instruction of https:/
[Expected Behavior]
An instance is created a few seconds later
[Actual Behavior]
The status of the instance is always (> 20 minutes) "spawning"
[Additional Information]
1. [workaround] Use `ps aux | grep qemu-img` to check if a qemu-img image converting process exists or not. The process should complete within ~20 sec. If the process exists for more than 1 minutes, use `pkill -f qemu-img` to terminate the process and re-create instances again.
The image converting process looks like this one:
```
qemu-img convert -t none -O raw -f qcow2 /var/lib/
```
2. By investing in more details, this issue is a coupled issue of 1) nova should timeout instance process (comment#21) 2) qemu does not terminate the process to convert the image successfully (comment#20)
It seems that the image download produced a file '/var/lib/ nova/instance s/_base/ 9b8156fbecaa194 804a637226c8ffd ed93a57489. part' that is not really usable by qemu-img convert. If you still have that file (or can reproduce the problem) then it would be nice to compare hash of the image in glance and the hash of the downloaded .part file. Also if you reproduce could you please set debug=True in the [DEFAULT] section in the nova.conf of your nova-compute service and attach the logs?
Setting this to Invalid until the requested input is provided, please set it back to New when you did that.