From eb711ffff7d9cda6b91d75be0450aeabeb645487 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 23 Sep 2015 22:11:00 -0400 Subject: [PATCH] scenario001: enable orchestration service * install & configure Heat * run Tempest orchestration tests Change-Id: Ibf5ca75302ef3212873a41f69c4c4e4bf5dad7b8 --- fixtures/scenario001.pp | 40 ++++++++++++++++++++++++++++++++++++++-- run_tests.sh | 2 +- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/fixtures/scenario001.pp b/fixtures/scenario001.pp index f64a21ad2..12fa1f573 100644 --- a/fixtures/scenario001.pp +++ b/fixtures/scenario001.pp @@ -68,13 +68,13 @@ rabbitmq_vhost { '/': provider => 'rabbitmqctl', require => Class['rabbitmq'], } -rabbitmq_user { ['neutron', 'nova', 'cinder', 'ceilometer', 'glance', 'sahara']: +rabbitmq_user { ['neutron', 'nova', 'cinder', 'ceilometer', 'glance', 'sahara', 'heat']: admin => true, password => 'an_even_bigger_secret', provider => 'rabbitmqctl', require => Class['rabbitmq'], } -rabbitmq_user_permissions { ['neutron@/', 'nova@/', 'cinder@/', 'ceilometer@/', 'glance@/', 'sahara@/']: +rabbitmq_user_permissions { ['neutron@/', 'nova@/', 'cinder@/', 'ceilometer@/', 'glance@/', 'sahara@/', 'heat@/']: configure_permission => '.*', write_permission => '.*', read_permission => '.*', @@ -367,6 +367,41 @@ class { '::sahara::notify': enable_notifications => true, } +# Deploy Heat +class { '::heat': + rabbit_userid => 'heat', + rabbit_password => 'an_even_bigger_secret', + rabbit_host => '127.0.0.1', + database_connection => 'mysql://heat:heat@127.0.0.1/heat?charset=utf8', + identity_uri => 'http://127.0.0.1:35357/', + keystone_password => 'a_big_secret', + debug => true, + verbose => true, +} +class { '::heat::db::mysql': + password => 'heat', +} +class { '::heat::keystone::auth': + password => 'a_big_secret', + configure_delegated_roles => true, +} +class { '::heat::keystone::domain': + domain_password => 'oh_my_no_secret', +} +class { '::heat::client': } +class { '::heat::api': + workers => '2', +} +class { '::heat::engine': + auth_encryption_key => '1234567890AZERTYUIOPMLKJHGFDSQ12', +} +class { '::heat::api_cloudwatch': + workers => '2', +} +class { '::heat::api_cfn': + workers => '2', +} + # Configure Tempest and the resources $os_auth_options = '--os-username admin --os-password a_big_secret --os-tenant-name openstack --os-auth-url http://127.0.0.1:5000/v2.0' @@ -464,6 +499,7 @@ class { '::tempest': neutron_available => true, ceilometer_available => true, sahara_available => true, + heat_available => true, public_network_name => 'public', flavor_ref => '42', flavor_ref_alt => '84', diff --git a/run_tests.sh b/run_tests.sh index 3bc1be330..359df6b04 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -84,5 +84,5 @@ fi # TODO(emilien) later, we should use local image if present. That would be a next iteration. wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img -P /tmp/openstack/tempest -# run a scenario that validates Keystone, Nova, Glance, Neutron, Ceilometer, Cinder and Sahara +# run a scenario that validates Keystone, Nova, Glance, Neutron, Ceilometer, Cinder, Sahara and Heat cd /tmp/openstack/tempest; tox -eall -- --concurrency=2 smoke