pci device lost when error in the configuration file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
pci passthrough is lost when you restart nova-compute with the wrong configuration.
I have this issue on Queens release.
====
step to reproduce:
====
1- configurare passthrough for a pci device
2- start a vm with the pci device
3- change the config /etc/nova/nova.conf
[pci]
-passthrough_
+pci_passthroug
4- restart nova-compute
5- nova.pci_devices , device gets deleted in the DB.
6- hard reboot the vm, the pci devices are not in the libvirt conf anymore.
7- fix the config in nova.conf, and restart. new devices are created, but cannot be assigned to the running vm.
I had a small issue during an upgrade, (made a typo for the nova.conf file, [Default] > pci_passthrough
Are you able to workaround the issue with the lost PCI devices assigned to the one VM that was rebooted by cold migrating it? I'm not sure why the reboot wouldn't have fixed it, except I think the PCI devices are more or less "assigned" to the instance when a resource "claim" is made, which would be during server create or a move operation like cold migrate (resize).