
It was suggested by Nova team to not deploying Nova API in WSGI with Apache in production. It's causing some issues that we didn't catch until now (see in the bug report). Until we figure out what was wrong, let's disable it so we can move forward in the upgrade process. Note: we also need to fix orchestration in provision to make sure Keystone is ready before creating nova flavors, and other resources. Depends-On: I1688eae1369f6da2c7084dc3864d19708d15c78d Change-Id: I4a0d999d5290785a416bbb11953fee7a5028a00b Related-Bug: 1661360
60 lines
1.6 KiB
Puppet
60 lines
1.6 KiB
Puppet
# Deploy OpenStack resources needed to run Tempest
|
|
|
|
class openstack_integration::provision {
|
|
|
|
include ::openstack_integration::config
|
|
|
|
nova_flavor { 'm1.nano':
|
|
ensure => present,
|
|
id => '42',
|
|
ram => '128',
|
|
disk => '0',
|
|
vcpus => '1',
|
|
}
|
|
nova_flavor { 'm1.micro':
|
|
ensure => present,
|
|
id => '84',
|
|
ram => '128',
|
|
disk => '0',
|
|
vcpus => '1',
|
|
}
|
|
Keystone_user_role <||>-> Nova_flavor<||>
|
|
Keystone_endpoint <||>-> Nova_flavor<||>
|
|
|
|
neutron_network { 'public':
|
|
tenant_name => 'openstack',
|
|
router_external => true,
|
|
provider_physical_network => 'external',
|
|
provider_network_type => 'flat',
|
|
}
|
|
Keystone_user_role <||>-> Neutron_network<||>
|
|
Keystone_endpoint <||>-> Neutron_network<||>
|
|
|
|
neutron_subnet { 'public-subnet':
|
|
cidr => '172.24.5.0/24',
|
|
ip_version => '4',
|
|
allocation_pools => ['start=172.24.5.10,end=172.24.5.200'],
|
|
gateway_ip => '172.24.5.1',
|
|
enable_dhcp => false,
|
|
network_name => 'public',
|
|
tenant_name => 'openstack',
|
|
}
|
|
|
|
glance_image { 'cirros':
|
|
ensure => present,
|
|
container_format => 'bare',
|
|
disk_format => 'qcow2',
|
|
is_public => 'yes',
|
|
source => '/tmp/openstack/tempest/cirros-0.3.4-x86_64-disk.img'
|
|
}
|
|
glance_image { 'cirros_alt':
|
|
ensure => present,
|
|
container_format => 'bare',
|
|
disk_format => 'qcow2',
|
|
is_public => 'yes',
|
|
source => '/tmp/openstack/tempest/cirros-0.3.4-x86_64-disk.img'
|
|
}
|
|
Keystone_user_role <||>-> Glance_image<||>
|
|
Keystone_endpoint <||>-> Glance_image<||>
|
|
}
|