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

  1. 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.
Copy
  1. Restart the compute service by running the below command on all the hypervisors to make the change effective.
Copy

Additional Information

You can refer Config Drive documentation in OpenStack for more details.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard