Using the flavor extra_specs property "hw_watchdog_action" was broken.
Scheduling of a new instance always failed with NoValidHostFound error
because of ComputeCapabilitiesFilter, which treated this property as a
host capability to be checked.
Commit f0ff4d51057080e769407e873e5ed212f15b773d caused the problem.
To fix this watchdog_action property is put into 'hw:' scope, so
that it will be ignored by ComputeCapabilitiesFilter in scheduler and
handled in libvirt driver. The doc must be fixed accordingly.
Now driver accepts both 'hw_watchdog_action' and
'hw:watchdog_action', tests were edited for these cases.
Were added TODO items to delete the compat code in L release.
DocImpact
Closes-Bug: #1367344
Conflicts:
nova/tests/virt/libvirt/test_driver.py
Change-Id: Ic5344ec34a130ee5a0ed2c7348af0b9d79e3508e
(cherry picked from commit 79bfb1bf343484e98aa36dcc663a5370baf4cab7)
Reviewed: https:/ /review. openstack. org/133922 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8a3b609580a e6a72767eebb1af 9e0d71a1412897
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 8a3b609580ae6a7 2767eebb1af9e0d 71a1412897
Author: pkholkin <email address hidden>
Date: Fri Sep 12 19:31:54 2014 +0400
Fix libvirt watchdog support
Using the flavor extra_specs property "hw_watchdog_ action" was broken. tiesFilter, which treated this property as a
Scheduling of a new instance always failed with NoValidHostFound error
because of ComputeCapabili
host capability to be checked.
Commit f0ff4d51057080e 769407e873e5ed2 12f15b773d caused the problem.
To fix this watchdog_action property is put into 'hw:' scope, so tiesFilter in scheduler and
that it will be ignored by ComputeCapabili
handled in libvirt driver. The doc must be fixed accordingly.
Now driver accepts both 'hw_watchdog_ action' and watchdog_ action' , tests were edited for these cases.
'hw:
Were added TODO items to delete the compat code in L release.
DocImpact
Closes-Bug: #1367344
Conflicts: tests/virt/ libvirt/ test_driver. py
nova/
Change-Id: Ic5344ec34a130e e5a0ed2c7348af0 b9d79e3508e 98aa36dcc663a53 70baf4cab7)
(cherry picked from commit 79bfb1bf343484e