releng-xci.git
7 years agoprototypes: bifrost: Check we are running the destroy-env.sh as root
Markos Chandras [Tue, 13 Sep 2016 19:28:28 +0000 (20:28 +0100)]
prototypes: bifrost: Check we are running the destroy-env.sh as root

Nearly all operations in the destroy-env.sh script need to be executed
as root so make sure that's the case before we try to do anything.
This also fixes the dnsmasq.leases path and we check that the file
exists before we try to wipe it. The dnsmasq is also restarted to take
the empty leases file into consideration. Finally, we improve the
documentation to run the necessary commands using sudo.

Change-Id: I56df821ca8a93307117a94a11abd0867b27d8443
Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoChange naming for bridge in CentOS
Yolanda Robla Mota [Mon, 12 Sep 2016 16:02:08 +0000 (18:02 +0200)]
Change naming for bridge in CentOS

Change-Id: I7a35a1222ce7524fbf74848daec68dfd57616026
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
7 years agoParameterize infracloud playbook by platforms
Yolanda Robla Mota [Mon, 5 Sep 2016 13:38:32 +0000 (15:38 +0200)]
Parameterize infracloud playbook by platforms

This will allow to run on different distros depending on
settings exported.

Change-Id: I068d7bb2eebfd009dceeff057c8a65361483788b
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
7 years agoStop disabling selinux
Yolanda Robla Mota [Fri, 9 Sep 2016 15:26:33 +0000 (17:26 +0200)]
Stop disabling selinux

It is already disabled in origin in puppet-infracloud,
and it is causing an error with duplicates now.

Change-Id: Ie40232c03138f1c8a1516895828c6cfd5730f9f7
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
7 years agoUpdate documentation about disabling selinux
Yolanda Robla Mota [Thu, 8 Sep 2016 10:09:50 +0000 (12:09 +0200)]
Update documentation about disabling selinux

Change-Id: Ic3729d9450edabd809eed53525632e2b36752401
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
7 years agoFix script when CLEAN_DIB_IMAGES var is not set
Yolanda Robla Mota [Thu, 8 Sep 2016 09:48:41 +0000 (11:48 +0200)]
Fix script when CLEAN_DIB_IMAGES var is not set

It relies on this var being exported, and if the script
is ran manually and this var is not set, it crashes. Adding
a default to this var to avoid this failure.

Change-Id: I5c61a1d9f1aafe2d6c64af70d3237b6c5b0d1e1d
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
7 years agoFix problems and add missing info to puppet-infracloud instructions
Fatih Degirmenci [Fri, 2 Sep 2016 11:08:20 +0000 (13:08 +0200)]
Fix problems and add missing info to puppet-infracloud instructions

The instructions in README file will be automated later on so they
are just documented for the timebeing in order to prevent others
from facing issues while they try to follow the steps.

Change-Id: I38fe2609da6389a1cd120075f8eea243edd28e58
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
7 years agoReflect upstream change to local script fixing playbook syntax check
Fatih Degirmenci [Fri, 2 Sep 2016 10:16:31 +0000 (12:16 +0200)]
Reflect upstream change to local script fixing playbook syntax check

Upstream change: https://review.openstack.org/#/c/358477/

Change-Id: Ibfef32aec4b62d8d1d13728abec374a2d4560d81
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
7 years agoinfra: Fix small doc/script issues and enable mail notification
Fatih Degirmenci [Thu, 1 Sep 2016 12:46:51 +0000 (14:46 +0200)]
infra: Fix small doc/script issues and enable mail notification

This change
- Fixes readme of puppet-infracloud
- renames destroy_env.sh script
- enables mail notification
- disables removal of DIB images by default

Change-Id: I628b26b976e38772cbbc69b737a545fe801639ba
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
7 years agoDisable selinux on RHEL case
Yolanda Robla Mota [Thu, 25 Aug 2016 13:52:32 +0000 (15:52 +0200)]
Disable selinux on RHEL case

This is causing several puppet moduels to fail (for example
rabbit not starting). Set that to permissive as a workaround,
but with the intention of fixing the configuration and enabling
selinux on next steps.

Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I34b388792699a9563dacedf87dd6ff85e482e431

7 years agoAdd jumphost to the managed servers
Yolanda Robla Mota [Thu, 25 Aug 2016 12:29:05 +0000 (14:29 +0200)]
Add jumphost to the managed servers

So at least it gets the dns, ports, and extra
config setup.

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Iceb075b7491a9098b10a40b0a549023129739883

7 years agoSet bridge name in hiera
Yolanda Robla Mota [Thu, 25 Aug 2016 10:45:03 +0000 (12:45 +0200)]
Set bridge name in hiera

It is different from debian/centos, and will be different
in baremetal as well, where vlans will be used. Add the ability
to manage in hiera, so it can just be edited on the yaml
file directly.

Change-Id: I5f5ac3adec6606ca34b3c8ad86c99d8e3aee52d1
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
7 years agoCreate daily job for infra deployment, remove sandbox jobs and fix bugs
Fatih Degirmenci [Fri, 26 Aug 2016 22:25:37 +0000 (00:25 +0200)]
Create daily job for infra deployment, remove sandbox jobs and fix bugs

This change
- creates upstream daily job to trigger and control the execution of jobs
that provision nodes using bifrost, deployment using puppet-infracloud,
and simple smoke test job.
- fixes the hashbang placement in 2 of the scripts.
- removes sandbox dummy jobs as the infra jobs can serve as examples now.

Only the node provisioning job is functional at the moment.

Change-Id: I311d159956d8b7ce3f7a500fac5a7dcb459104cf
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
7 years agoAdd initial puppet and hiera files
Yolanda Robla Mota [Thu, 18 Aug 2016 08:45:31 +0000 (10:45 +0200)]
Add initial puppet and hiera files

Include the basic site.pp and initial modules, as long as default
hieras, to manage opnfv infracloud.

Change-Id: I891bc414b102257534f1d28df8299bf41c12e8f2
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
7 years agoAdd missing curl package for infracloud
Yolanda Robla Mota [Mon, 22 Aug 2016 13:10:06 +0000 (15:10 +0200)]
Add missing curl package for infracloud

It is needed on rabbit install

Change-Id: I0ebf66883cc7c66771b3b5b4c2cccc590e61e5ca
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
7 years agoIncrease the disk in the infracloud vms
Yolanda Robla Mota [Mon, 22 Aug 2016 09:40:46 +0000 (11:40 +0200)]
Increase the disk in the infracloud vms

The 10g disk space is not enough to spin up some vms and test. With
default flavors, just a m1.small needs 20g of disk. Increasing to
100g of disk in each vm, so we can test with better conditions.

Change-Id: I7b273dc5881cb6af67b7852c1318ea739217602f
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
7 years agoIncrease the number of vcpus in testing
Yolanda Robla Mota [Fri, 19 Aug 2016 11:37:41 +0000 (13:37 +0200)]
Increase the number of vcpus in testing

It defaults to 1 cpu, and that means that computes won't be able
to spin up any node because the number of cpus are exhausted.
Currently the playbook doesn't allow to individually set cpus,
so defaulting everything to 4 temporarily.

Change-Id: Ic6058b28f5d75a270e3897157ba034f804af8ab0
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
7 years agoAdjust bifrost node provisioning timeout and fix file permissions
Fatih Degirmenci [Thu, 18 Aug 2016 16:52:51 +0000 (18:52 +0200)]
Adjust bifrost node provisioning timeout and fix file permissions

This change
- increases the node provisioning timeout to 1900 seconds since the original
timeout used by upstream bifrost (900 seconds) is not suited for provisioning
VMs with Ubuntu.
- fixes permissions of the scripts.
- removes .gitkeep.

This change is not upstreamed since bifrost uses cirros for test & development
purposes and it is probably not in their interest to have increased timeout.

Change-Id: I4b59a321fa26f8b5895ec577a19d10f5cdcace0f
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
7 years agoAdd initial playbooks and scripts for bifrost POCS
Yolanda Robla Mota [Thu, 18 Aug 2016 08:34:39 +0000 (10:34 +0200)]
Add initial playbooks and scripts for bifrost POCS

Change-Id: Ic7e33f53d0111b0e833d7547fff16458506b063b
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
7 years agoAdd directories for openstack-infra prototyping
Fatih Degirmenci [Fri, 12 Aug 2016 07:50:23 +0000 (09:50 +0200)]
Add directories for openstack-infra prototyping

Change-Id: I890d36d0db54efcbcb9911707b72bf58416550b3
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
7 years agoInitial empty repository
Aric Gardner [Tue, 28 Mar 2017 12:47:50 +0000 (12:47 +0000)]
Initial empty repository