kvm: ssh commands during resize instance gets stuck up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Scenario:
I have an OpenStack set up (using master branch) with 2 Compute nodes, following are the Nova configurations details:
allow_
compute_
connection_
libvirt_
Note: There is no password less ssh connection setup between the two Compute nodes.
To reproduce this issue, spawn an instance, once it comes up, resize it. I used the nova CLI command to resize (nova resize d24f03d8-
Branch: master
Expected Behavior: The instance should get resized.
Actual Behavior: The instance gets stuck in the following state: vm_state=resizing, task_state=
On further analysis, it seems that the source Compute host has destroyed the instance and has got stuck in an 'ssh' command (in migrate_
if same_host:
else:
Effectively, the instance directory on the source Compute host has the 'instance-
To proceed further, I killed the blocking 'ssh' command, however, it further got stuck in removing the instance directory on the remote Compute host. Here is the related code snippet:
try:
if os.path.
except Exception:
On killing this ssh command, the instance went into following state:
vm_state=error, task_state=
Allowing resize on the same host doesn't it force it to be that way. You would have to customize the scheduler to do that. You just need to set up ssh for this work.