No Valid Host From Host Aggregates Resulted in Instance Spawning Failure

Problem

  • Cold Migration for the instance failed as it could not find any valid host for the instance to be deployed on.
  • It queried the hosts available within host aggregates, however, since the flavor used for the instance did not match with any of the host aggregate metadata, migration failed.
Copy
Copy

Environment

  • Platform9 Managed OpenStack - All Versions

Cause

Host aggregate to match the instance flavor specifications is not present.

Copy
Copy

Resolution

  1. Create a host aggregate matching the Instance flavor specifications.
Copy
  1. If the flavor properties is not set, it is mandatory to specify one or more key-value pairs that match the key-value pairs on the host aggregates with the scope aggregate_instance_extra_specs. For our case, it is the aggregate_instance_extra_specs: host='AggregateMatch' key-value pair.
  2. Set the key-value pair using the following command.
Copy

Additional Information

OpenStack Host Aggregate Document

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