Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Failed to restart a stopped VM caused by a handled signal #660

Closed
innobead opened this issue Aug 15, 2020 · 0 comments · Fixed by #661
Closed

Failed to restart a stopped VM caused by a handled signal #660

innobead opened this issue Aug 15, 2020 · 0 comments · Fixed by #661
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@innobead
Copy link
Contributor

innobead commented Aug 15, 2020

When a VM stopped by a handled signal, ignite-spawn will update the VM running status to false but it does not handle the VM networking correctly to cause the VM unable to start due to duplicated IP allocation error.

Steps to reproduce:

  • ignite run starts a VM
  • kill -2 <ignite spawn/VM PID>
  • ignite stop <VM ID> failed to forcibly stop the VM
ignite stop b5d26a20c03fc678
FATA[0000] VM "b5d26a20c03fc678" is not running 
  • ignite start <VM ID> failed with duplicated IP allocation error
ignite start b5d26a20c03fc678
ERRO[0000] failed to setup network for namespace "ignite-b5d26a20c03fc678": failed to allocate for range 0: 10.61.0.42 has been allocated to ignite-b5d26a20c03fc678, duplicate allocation is not allowed 
FATA[0000] failed to allocate for range 0: 10.61.0.42 has been allocated to ignite-b5d26a20c03fc678, duplicate allocation is not allowed 
@innobead innobead changed the title Failed to restart a stopped VM by ignite-spawn Failed to restart a stopped VM caused by a handled signal Aug 15, 2020
@darkowlzz darkowlzz added the kind/bug Categorizes issue or PR as related to a bug. label Aug 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants