Refactor nova migration config into client & target profiles
authorOliver Walsh <owalsh@redhat.com>
Wed, 7 Jun 2017 22:26:25 +0000 (23:26 +0100)
committerOliver Walsh <owalsh@redhat.com>
Mon, 3 Jul 2017 13:34:08 +0000 (14:34 +0100)
commit6140d801f1e51397d3ee3ae010434f07b8e891ec
tree90547c0b9e0cb0426ef1d9faa2c601b40156110f
parentd5582dd84bb0df561132e258f3dbdd16b42eb676
Refactor nova migration config into client & target profiles

The nova migration config has always been applied by the base::nova profile.
It assumed that libvirtd/nova-compute and are all running on the
same host.
Where this config didn't apply (e.g a nova api host) it was disabled by a flag.

This approach is not compatible with containers. Hieradata for all containers
are combined so per-host flags no longer work, and we can no longer assume
libvirtd and nova-compute run in the same context.

This change refactors the profiles out of the base nova profile and into
a client profile and a target profile that can be included where appropriate.

Change-Id: I063a84a8e6da64ae3b09125cfa42e48df69adc12
Implements: blueprint tripleo-cold-migration
14 files changed:
manifests/profile/base/nova.pp
manifests/profile/base/nova/compute/libvirt.pp
manifests/profile/base/nova/libvirt.pp
manifests/profile/base/nova/migration.pp [new file with mode: 0644]
manifests/profile/base/nova/migration/client.pp [new file with mode: 0644]
manifests/profile/base/nova/migration/target.pp [new file with mode: 0644]
spec/classes/tripleo_profile_base_nova_compute_libvirt_spec.rb
spec/classes/tripleo_profile_base_nova_compute_spec.rb
spec/classes/tripleo_profile_base_nova_libvirt_spec.rb
spec/classes/tripleo_profile_base_nova_migration_client_spec.rb [new file with mode: 0644]
spec/classes/tripleo_profile_base_nova_migration_spec.rb [new file with mode: 0644]
spec/classes/tripleo_profile_base_nova_migration_target_spec.rb [new file with mode: 0644]
spec/classes/tripleo_profile_base_nova_spec.rb
spec/fixtures/hieradata/default.yaml