Commit Graph

92 Commits

Author SHA1 Message Date
Monty Taylor 0568a3e20c Retire repo
Depends-On: https://review.opendev.org/720892
Change-Id: Iac68bd9001ef9d0bd70492d7e28e115b4f9d3ed7
2020-04-22 10:19:06 -05:00
Paul Belanger 6a10fc12d4 Remove dns_servers from provider-subnet-infracloud
Because of the way glean works, we don't actually need to have a DNS
server setup to boot our images. In this case, it is actually
problematic for centos-7, because glean overwrites our
/etc/resolv.conf file.

Change-Id: Ie81bc593ac3257021e0636b6c111c37e8b87b747
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-10 19:52:56 -04:00
Paul Belanger 442ddf36ea
Fix puppet-lint job
Lets make our puppet-lint job happy again.

Change-Id: Ib15234192291158f0fe9668e615f7cb8f400918c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-02 09:37:46 -04:00
Yolanda Robla Mota 0308967fd8 Add missing restart flag to mysql
If that is not set, it is not picking the max_connection
updates until next restart, causing manifest to fail at
first run.

Change-Id: Ia6ff2700b564801e647b88d68d6a4ecb579b96c1
2016-10-17 15:41:21 +02:00
Yolanda Robla Mota 900fc12950 Allow to parameterize mysql connections
Depending on the cores and memory of the server, this needs
to be parameterized properly or is causing issues on
neutron and nova.

Change-Id: Id5a0e5af031175cc0a9d8b5a3bb97ae4adfbdf1e
2016-10-17 10:12:08 +02:00
Yolanda Robla Mota 52fab00daa Use right parameter ipv4_gateway
The external gateway is passed with the parameter
gateway_ip, this ipv4_gateway was the old one, and
hardcoded on the manifest.

Change-Id: I0eb532bf423e45ac683fc6bf23d80699d074bd17
2016-10-13 14:11:47 +02:00
Yolanda Robla Mota 724bf44094 Ensure that directories to create bridge are present
Change-Id: I5dc785ad3c8966669ed37db5e3fd34c4f4e87efd
2016-10-06 14:00:21 +02:00
Jenkins 7e4bee3724 Merge "Add the ability to pass devuser password to DIB" 2016-10-03 12:07:58 +00:00
Yolanda Robla Mota 2125a34b3e Add the ability to pass devuser password to DIB
This can be useful to debug, when ssh is not available,
but a console can be gained through ILO.

Change-Id: Id1861792a7ca0b3fb87f0a06f96d4d0667f55615
2016-10-03 10:51:54 +02:00
Yolanda Robla Mota 6816096706 Add the ability to configure dhcp_static_mask
It may not be 255.255.255.0 under all environments,
so add the ability to configure it.

Change-Id: I1239fa8a2414febe79fa47e9d4d78b3769eab47e
2016-10-03 10:29:33 +02:00
Jenkins 988c4d7e74 Merge "Add the ability to configure bridge name" 2016-09-28 09:49:30 +00:00
Jenkins 015f4ee71d Merge "Add libselinux-python as a dependency on RHEL" 2016-09-23 16:57:58 +00:00
Yolanda Robla Mota 2fbabecfbf Add the ability to configure bridge name
Naming with dashes is causing issues on CentOS,
because glean is called with interface br/xxx instead
of br-xxx due some naming translation.
Also interface name and vlans can differ on environments,
causing all puppet modules to change their naming. Instead of
depending on vlan or nic to configure bridge name, add the
ability to pass that name as a parameter, and likely set
to br_infracloud on our deployments.
At the moment, leaving the default naming to do not break
existing cloud deployment.

Change-Id: I0790bab2fd63f525e8b9c8d47ee79ea63a72750a
2016-09-21 10:28:04 +02:00
Jenkins bc7b2bdd01 Merge "Don't force images to raw format" 2016-09-20 15:26:25 +00:00
Yolanda Robla Mota 0870346039 Add libselinux-python as a dependency on RHEL
If not, bifrost fails with:
Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!

Change-Id: I8b9cc5996b414362bf86cfa8f0cedd5753981d7b
2016-09-20 17:05:09 +02:00
Paul Belanger 9dc122c3dd
Don't force images to raw format
We upload our images today as qcow2 format, however compute nodes will
force them to raw format. To improve performance when first booting a
node, do bother converting the image to raw format.

Change-Id: I82e16825a90a1a8995b6dd3c8769954e3976a15f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-20 09:20:24 -04:00
Yolanda Robla Mota 70f4c4f19e Start parameterizing the network config in bifrost
This doesn't have to be hardcoded in the module, but
parameterized, and ideally shall be configured using
hiera. As an initial step, add the parameters with
default values, to pass tests until the corresponding
change for system-config lands.

Change-Id: Ic1f0368a1cb6c94405a4cb52dec1b83131164035
2016-09-16 16:07:22 +02:00
Yolanda Robla Mota d7040706ba Cleanup not used element
We do not rely anymore on infra-cloud-networking element,
replaced by infra-cloud-bridge. So removing not needed
templates, and files from the manifest.
Also remove global vars for hpuswest, as this is not
used anymore.

Change-Id: Ie05d4c1e5bf5801cf0a3d2dd5cf5203c480ed53e
2016-09-16 12:58:56 +02:00
Yolanda Robla Mota cad3ddc59c Install required packages for infracloud
Current ansible install fails when does not find gcc
or openssl-dev. Add this before calling the ansible class.
Also remove uuid dependency from RHEL as package does
not exist.

Change-Id: I1c9002d669ec8df30ef09b3086f9f5297e032da1
2016-09-16 11:39:53 +02:00
Yolanda Robla Mota 0e145fbe7c Add correct path for certificate in compute
Change-Id: Id02b80e34439afc1a1441f835f839aba06f985f0
2016-09-13 10:48:45 +02:00
Ricardo Carrillo Cruz e4d5b25eaa Final removal of region param
Change-Id: If555bcb1c96d9678dd1f769164ac25b1e10c6aa9
2016-09-12 15:50:36 +02:00
Ricardo Carrillo Cruz cff7cf98dc Remove per-region handling
Since vanilla and chocolate are on the same VLAN, we don't have
two different bifrost machines, just one to handle both.
Therefore, the per-region split logic is not needed anymore and makes
it impossible to have on the current baremetal machine in prod
having both inventories at the same time.

Note: I'm leaving the 'region' parameter on purpose, otherwise
the apply tests fail.
Will remove it in a subsequent patch.

Change-Id: I433cdb8675c3acd2e699272aaf6a0e67eb9200b0
2016-09-12 15:13:09 +02:00
Yolanda Robla Mota 8b0d04ce89 Disable selinux on RHEL
It is causing troubles on rabbit and linuxbridge, crashing
because permission denied errors. Initially disable it to
have a working cloud, and add the right settings on future
patches to re-enable it.

Change-Id: Ibc3303966e7bc450f9d9dbaa4fce7104fcb90635
2016-09-05 12:56:32 +02:00
Jenkins d96206a4cc Merge "Fix rabbitmq install for RHEL/CentOS" 2016-09-05 07:31:36 +00:00
Fatih Degirmenci 5ce0e7208c Fix path to update-ca-certificates for Debian
Change-Id: I4529fcfede81c8103662c4de06dafcc3aa2ddf07
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-08-27 21:43:09 +02:00
Jenkins 23e791aeb1 Merge "Parameterize certificates in infracloud" 2016-08-25 15:03:16 +00:00
Yolanda Robla Mota d7a0e48e4a Fix rabbitmq install for RHEL/CentOS
The puppet rabbit module is affected by
https://tickets.puppetlabs.com/browse/MODULES-3599.

On rabbit install, we are seeing error:
Error: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y
install rabbitmq-server-3.6.3-1' returned 1: Error: Package:
rabbitmq-server-3.6.3-1.noarch (rabbitmq_rabbitmq-server)
           Requires: erlang >= R16B-03

Installing package properly before rabbitmq class solves the
install problem for us.

Change-Id: Ie145c70859013c927a3ee0f14c003cca739c996e
2016-08-25 13:08:15 +02:00
Yolanda Robla Mota 93a562cb39 Parameterize certificates in infracloud
SSL cert path and command are different from Debian/Redhat.
So parameterize it to be able to reuse on different components.

Change-Id: I8c1332e36f9b6a288a5736bee2a7171476aab739
2016-08-25 10:00:36 +02:00
Ricardo Carrillo Cruz 3b186237d7 Create /etc/nova/ssl folder on compute
Otherwise, the file resource for creating /etc/nova/ssl/private fails.

Change-Id: I0417df5e11afccaa958458873d256d950d75cf65
2016-08-24 11:33:17 +02:00
Yolanda Robla Mota df4884b880 Set the ssl_key_file_contents to mandatory
Once the corresponding change to pass the
parameter from system-config has landed, set this
as mandatory so we can fail if not passing it properly.

Change-Id: Ibff909139dc003c69b443577af87df929fb1f819
2016-08-23 17:34:12 +02:00
Yolanda Robla Mota a227f9a210 Add management of /etc/nova/ssl/private directory
If not present, key cannot be updated successfully.
This is not done by infracloud::ssl_key module, because we are
using a custom path.

Change-Id: I85522619623ae2dec7fb813359d060e403279ae5
2016-08-23 11:14:57 +00:00
Yolanda Robla Mota 6a6a455a1d Set nova key to compute
If not set, it currently fails when spinning vms, giving
errors in nova compute logs about nova pem key not being
present.

Change-Id: I407137d5cdbe957acd5ee865808ed62121680d79
2016-08-22 12:25:40 +02:00
Ricardo Carrillo Cruz 8682851240 Bump bifrost Ansible version to 2.1.1.0
The current bifrost playbooks now depend on a role that is present
on Ansible 2.1.1.0, thus we need to bump it.

Depends-On: Ie4120c8744eed78022ebcc3ea696142d1a1375aa
Change-Id: I801064cf9dd4578b8d1135d986c0c2f0578092b3
2016-08-11 11:50:23 +02:00
Yolanda Robla e7ded211e6 Update trust certificates for Redhat
Our current way to trust on our self-signed certs was hardcoded
for Debian. Run this for Redhat family as well.

Change-Id: I3faae7fc3507c131addbfebf1bc902fc8112d7e6
2016-07-09 08:44:21 +02:00
Jenkins 1c0e61b929 Merge "Fix certificate path naming and races" 2016-07-08 10:20:26 +00:00
Jenkins 92c1e6235f Merge "Fix glance service and package dependencies" 2016-07-08 10:18:26 +00:00
Jenkins c727a4b61b Merge "Ensure we compare with a valid file in log fix" 2016-07-08 10:17:50 +00:00
Jenkins 714e2a08d3 Merge "Improve coverage of openstack packages in infra cloud" 2016-07-07 15:38:35 +00:00
Jenkins d56e631687 Merge "Fix dependency on keystone keys" 2016-07-05 09:37:10 +00:00
Yolanda Robla b1c33e50f2 Fix dependency on keystone keys
If /etc/ssl/private directory does not exist, the
manifest fails when creating keys under it.

Change-Id: I63f2bb696a0d9872899af148d548f763175b206e
2016-07-04 21:02:21 +02:00
Yolanda Robla 729967fd03 Fix certificate path naming and races
Certificate path was pointing to incorrect one. Point
to the path generated by the cacert class, and add
right dependency to rabbit to prevent races.

Change-Id: If0b79cb8e080bb9b1bb71230f85502004c1349ff
2016-06-28 13:16:53 +02:00
Yolanda Robla ddaeea4827 Ensure that ca-certificates directory is created
Under certain environments where /usr/local/share/ca-certificates
does not exist, the play fails not finding that directory.
Create it with right ownership and permissions.

Change-Id: Icef55cc083f59e55b564edca2b20e05ef0f916b0
2016-06-28 12:36:27 +02:00
Yolanda Robla 11146bbe71 Fix glance service and package dependencies
Depending on distros, the glance package is called with
different names, so hardcoding to glance-api causes failures.
Reuse glance parameters instead, that are properly setting
the names.

Change-Id: I011addf10c9648e7f2ca64cfa44c0d72fc269845
2016-06-28 11:30:43 +02:00
Yolanda Robla 3e8939f9d6 Ensure we compare with a valid file in log fix
mod_enable_dir is not necessarily defined under all the
operating systems. For example, for Redhat it has undef value.
It is causing puppet manifest to fail, so just execute that fix
when that directory has some value.

Change-Id: Iab56636151ac4d7da24a5a5ce18356b81adad832
2016-06-28 11:16:02 +02:00
Yolanda Robla 481fe97430 Improve coverage of openstack packages in infra cloud
Add support for Debian and RedHat packaging as well,
and allow to pass release as parameter, so we can choose
the packaging versions we want to deploy.

Change-Id: I95407bd1f504e679be329b36442535793841536e
2016-06-26 18:42:26 +02:00
Ricardo Carrillo Cruz 97a933064c Remove special config for west bifrost host
The infracloud servers are all now in the same location, thus
it will be likely we'll just have one bifrost host managing
the provisioning of vanilla/chocolate regions.
The glean and bifrost changes now allows to do all the network
config without a double dhcp, thus removing this logic.

Change-Id: I649334fbc657c9a27378360d2763d378d59cb763
2016-06-16 15:30:54 +02:00
Colleen Murphy 6ab8b27aec Upgrade to Mitaka
This patch makes the following changes to use the Mitaka release of
OpenStack and to be compatible with the stable/mitaka branches of the
OpenStack Puppet modules:

 - use the 'mitaka' Ubuntu Cloud Archive repository
 - avoid using deprecated or removed parameters
 - use unversioned endpoints for the [neutron] config in nova.conf and
   specify 'password' as the auth_plugin, since it defaults to 'v3'
   password in the mitaka version of the nova module[1] even though
   that's not necessarily desired[2]
 - add the nova_api database
 - explicitly use the Image v1 API in the functional tests since
   openstackclient now defaults to v2

[1] http://git.openstack.org/cgit/openstack/puppet-nova/commit/?id=d09868a59c451932d67c66101b725182d7066a14
[2] https://review.openstack.org/#/c/312300/

Depends-On: I5ed2d851ffab26a45a58a9ef6f990e72f5d14380
Change-Id: Ie290802d655cb74491153c56cf58a6b3b5af8388
2016-05-03 21:17:03 -07:00
Colleen Murphy 70a96a3290 Fix ssl_key relationships
Some of these defined types were properly ordered to require the
packages that creates their parent directories, and some of them
weren't, which sometimes causes failures. This patch makes sure all the
ssl_key resources require their related packages so that this never has
to happen again.

Change-Id: If77eeba7d5891d109e6da6f9a6480bb63f11e7f9
2016-05-03 19:53:34 -07:00
Jenkins 754dbe98b9 Merge "Fix apache failure" 2016-04-12 01:49:52 +00:00
Colleen Murphy 76f5da5fe9 Parameterize libvirt virt type
This change allows us to control the virtualization technology running
under nova. In production, we will always use KVM as described in the
infra-cloud documentation[1]. However, in functional tests (coming in a
followup change) we'll need to change it to qemu since we don't have
nested virtualization[2]. This is technically volkswagoning but this
will still be effective for testing the majority of our puppet changes.

[1] http://docs.openstack.org/infra/system-config/infra-cloud.html#architecture
[2] http://logs.openstack.org/40/288840/4/check/gate-puppet-infracloud-puppet-beaker-rspec-dsvm-trusty-nv/6f0501c/logs/nova/nova-compute.txt.gz

Change-Id: I85b739763cde9610a2bf09090d4ca76a32c58a51
2016-04-08 09:20:35 -07:00