Unable To Assign Static IP Address To Instances Created Using Heat Templates
Problem
Unable to assign a static IP address to instances created using Heat Orchestration.
Environment
Platform9 Managed OpenStack - All versions
Nova
Neutron
Cause
The force_config_drive option if not set to true will result in failure to assign the static IP address to provide in heat templates when the DHCP is disabled for the subnet. The config drive option is disabled by default on compute hosts.
Resolution
Enable the config drive option on all the hypervisros by adding the option in file /opt/pf9/etc/nova/conf.d/nova_overrides.conf in the DEFAULT section.
/opt/pf9/etc/nova/conf.d/nova_overrides.conf:[DEFAULT]force_config_drive = trueRestart the compute service by running the below command on all the hypervisors to make the change effective.
# systemctl restart pf9-ostackhostAdditional Information
You can refer Config Drive documentation in OpenStack for more details.
PreviousUnable to Attach a Volume With Error "libvirtError: XML error: invalid secret uuid
NextVolume is smaller than the minimum size specified in image metadata.
Last updated
