Fix integration testing for deploying Queens on Bionic
Change-Id: I28d93b04804bf3ee593b9dfee86f4be0e4713e7d
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
parent: openstack-chef-integration-bionic
|
||||
nodeset: ubuntu-xenial
|
||||
description: Run integration tests with openstack-chef on Ubuntu Xenial
|
||||
vars:
|
||||
chef_test_env: integration-xenial
|
||||
|
||||
- project-template:
|
||||
name: openstack-chef-jobs
|
||||
|
||||
3
Rakefile
3
Rakefile
@@ -141,6 +141,7 @@ task integration: %i(create_key berks_vendor) do
|
||||
# This is a workaround for allowing chef-client to run in local mode
|
||||
sh %(sudo mkdir -p /etc/chef && sudo cp .chef/encrypted_data_bag_secret /etc/chef/openstack_data_bag_secret)
|
||||
_run_env_queries
|
||||
test_env = ENV['TEST_ENVIRONMENT']
|
||||
|
||||
# Three passes to ensure idempotency. prefer each to times, even if it
|
||||
# reads weird
|
||||
@@ -148,7 +149,7 @@ task integration: %i(create_key berks_vendor) do
|
||||
begin
|
||||
puts "####### Pass #{i}"
|
||||
# Kick off chef client in local mode, will converge OpenStack right on the gate job "in place"
|
||||
sh %(sudo chef-client #{client_opts} -E integration -r 'role[minimal]' > #{log_dir}/chef-client-pass#{i}.txt 2>&1 )
|
||||
sh %(sudo chef-client #{client_opts} -E #{test_env} -r 'role[minimal]' > #{log_dir}/chef-client-pass#{i}.txt 2>&1 )
|
||||
_run_basic_queries
|
||||
rescue => e
|
||||
raise "####### Pass #{i} failed with #{e.message}"
|
||||
|
||||
67
environments/integration-xenial.json
Normal file
67
environments/integration-xenial.json
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"name": "integration-xenial",
|
||||
"description": "Chef environment file for building OpenStack in CI settings running on Ubuntu Xenial. Certain Tempest services are disabled in this scenario",
|
||||
"default_attributes": {
|
||||
"apache": {
|
||||
"listen": [
|
||||
|
||||
]
|
||||
},
|
||||
"yum": {
|
||||
"epel": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"override_attributes": {
|
||||
"openstack": {
|
||||
"is_release": true,
|
||||
"apt": {
|
||||
"update_apt_cache": true
|
||||
},
|
||||
"telemetry": {
|
||||
"conf": {
|
||||
"DEFAULT": {
|
||||
"meter_dispatchers": "database"
|
||||
}
|
||||
}
|
||||
},
|
||||
"integration-test": {
|
||||
"conf": {
|
||||
"service_available": {
|
||||
"ceilometer": false,
|
||||
"heat": false,
|
||||
"horizon": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"dashboard": {
|
||||
"server_hostname": "localhost"
|
||||
},
|
||||
"memcached_servers": [
|
||||
"127.0.0.1:11211"
|
||||
],
|
||||
"mq": {
|
||||
"user": "admin"
|
||||
},
|
||||
"network": {
|
||||
"conf": {
|
||||
"DEFAULT": {
|
||||
"service_plugins": "router"
|
||||
}
|
||||
}
|
||||
},
|
||||
"image": {
|
||||
"image_upload": true
|
||||
},
|
||||
"compute": {
|
||||
"conf": {
|
||||
"libvirt": {
|
||||
"cpu_type": "none",
|
||||
"virt_type": "qemu"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,16 @@
|
||||
|
||||
]
|
||||
},
|
||||
"mariadb": {
|
||||
"install": {
|
||||
"version": "10.1"
|
||||
}
|
||||
},
|
||||
"openstack": {
|
||||
"apt": {
|
||||
"live_updates_enabled": false
|
||||
}
|
||||
},
|
||||
"yum": {
|
||||
"epel": {
|
||||
"enabled": false
|
||||
@@ -64,4 +74,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,5 @@
|
||||
cmd: chef exec rake integration
|
||||
chdir: '{{ ansible_user_dir }}/src/git.openstack.org/openstack/openstack-chef'
|
||||
environment:
|
||||
TEST_ENVIRONMENT: '{{ chef_test_env | default("integration") }}'
|
||||
WORKSPACE: '{{ ansible_user_dir }}'
|
||||
|
||||
Reference in New Issue
Block a user