Trying to deploy OpenStack environment consisting of ironic nova
hypervisor & hardware Ironic node (not VM Ironic node) with devstack
got failed.
Devstack error says error occurred while calling configure_libvirt
in configure_nova_hypervisor. This happens because libvirt related
packages are not installed when specifying "VIRT_DRIVER=ironic"
and "IRONIC_IS_HARDWARE=True".
To fix this problem, this commit add "if" statement to check
Ironic node is hardware or not using "is_ironic_hardware" function
in "function-common" file.
Change-Id: I1113478175fadec79d0f8bf6ae842ed86e5e686b
Closes-Bug: #1834985
| ... | ... |
@@ -36,7 +36,9 @@ function cleanup_nova_hypervisor {
|
| 36 | 36 |
|
| 37 | 37 |
# configure_nova_hypervisor - Set config files, create data dirs, etc |
| 38 | 38 |
function configure_nova_hypervisor {
|
| 39 |
- configure_libvirt |
|
| 39 |
+ if ! is_ironic_hardware; then |
|
| 40 |
+ configure_libvirt |
|
| 41 |
+ fi |
|
| 40 | 42 |
LIBVIRT_FIREWALL_DRIVER=${LIBVIRT_FIREWALL_DRIVER:-"nova.virt.firewall.NoopFirewallDriver"}
|
| 41 | 43 |
|
| 42 | 44 |
iniset $NOVA_CONF DEFAULT compute_driver ironic.IronicDriver |