summary |
shortlog | log |
commit |
commitdiff |
review |
tree
first ⋅ prev ⋅ next
Markos Chandras [Thu, 30 Mar 2017 14:00:48 +0000 (15:00 +0100)]
prototypes: bifrost: Remove ironic templates
This effectively reverts
d8235c3c97f4 and
7c1b8bf89d6ce since
upstream has now fixed the issues reported in
https://review.openstack.org/#/c/450681/
Change-Id: I35588146654d9141bc9357faa3d44e8799c5b706
Signed-off-by: Markos Chandras <mchandras@suse.de>
Fatih Degirmenci [Thu, 30 Mar 2017 12:11:59 +0000 (14:11 +0200)]
xci: Networking fixes to introduce role and interface var
Network configuration task and accompanied handler put into a role
and handler is converted to task.
Distro specific var, interface, is introduced to ensure we do not
hardcode the interface which might not be available.
Update the templates accordingly.
Change-Id: I667620fe22c93a9b20a1d8c1b7b0051d7647b591
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Thu, 30 Mar 2017 12:07:06 +0000 (14:07 +0200)]
xci: Ensure using flavor inventory
This is needed in order to configure target hosts that are in the
flavor inventory file rather than what is there by default, which
is aio.
Change-Id: Iab27ed71a3d7c03f8fbbec8ceb7af92259320412
Fatih Degirmenci [Thu, 30 Mar 2017 08:50:50 +0000 (10:50 +0200)]
xci: Add common and OS family ansible var files
OS family vars_files are currently empty and put there to show
the intend. (kind of TODO)
opnfv.yml holds non-distro and non-flavor specific variables.
Change-Id: I65aff2650257f2df00fd1f0a0638fd1aff596ac4
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Wed, 29 Mar 2017 14:59:02 +0000 (16:59 +0200)]
xci: Add main playbooks and files
This patch adds the main/common playbooks, files, and templates to
be used for all flavors.
The provisioning and OpenStack installation process will be as below
- provision VMs for flavor using bifrost
- once the VMs are provisioned, configure-localhost.yml playbook will
be run, preparing the localhost in order to ensure the right playbooks
(configure-opnfvhost.yml and configure-targethosts.yml), inventory files
and var files are in place before we proceed with configuring opnfv host.
- after getting the right files for the flavor, opnfv host will be
configured using configure-opnfvhost.yml playbook.
- finally, the target hosts will be configured.
- once the above process is completed, openstack-ansible playbooks will
be run, setting up hosts, infrastructure and OpenStack.
Change-Id: I6e08b2cfdab9627f765e6fc414917b09f953cab2
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Markos Chandras [Wed, 29 Mar 2017 14:40:03 +0000 (15:40 +0100)]
prototypes: bifrost: Remove /opt/stack from previous deployments
/opt/stack is being created by bifrost so the destroy-env.sh
script should be responsible for cleaning up all the remnants.
That way we can use the destroy-env.sh script outside of Jenkins
as well.
Change-Id: I72d9737cf2446ff3ffc02f195337a6873eceb5c0
Signed-off-by: Markos Chandras <mchandras@suse.de>
Fatih Degirmenci [Tue, 28 Mar 2017 17:20:37 +0000 (19:20 +0200)]
xci: Destroy/undefine only the VMs we created
Destroying/undefining all the VMs on host might cause issues for the
users. This change tries to reduce the possibility of it by removing
VMs listed by vbmc.
Change-Id: I5134043309722632df68a0800c6403e6f39a8d16
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Markos Chandras [Wed, 29 Mar 2017 08:09:03 +0000 (09:09 +0100)]
prototypes: bifrost: Fix Ironic drivers for VMs
Commit
d8235c3c97f4("Set database pool_size in ironic.conf and
inspector.conf templates") added a copy of the ironic.conf.j2
template file to workaround an upstream bug but it also changed
the default ironic drivers leading to broken introspection. We use
virtual BMC for controlling the VMs and this expects ipmi ironic
drivers so we fix that.
Change-Id: Ibb2cc58738ec1693e136bdce7335cd1b861ec613
Fixes:
d8235c3c97f4("Set database pool_size in ironic.conf and inspector.conf templates")
Signed-off-by: Markos Chandras <mchandras@suse.de>
Fatih Degirmenci [Tue, 28 Mar 2017 18:41:28 +0000 (20:41 +0200)]
xci: Make OSA playbook to use during installation configurable
Change-Id: Ie6f079bb61905ca0458778b78fef799777b24efa
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Tue, 28 Mar 2017 17:02:19 +0000 (19:02 +0200)]
xci: Rename the deployment host to opnfv
Reflect the changes to other impacted files as well.
Change-Id: I106f4e47fe5c75d288f4878fe6ec9f8ff39c652e
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Tue, 28 Mar 2017 13:20:43 +0000 (15:20 +0200)]
xci: Add/update variables to tool, user, and flavors
Updates
- RAM allocations for the flavors mini and noha increased to 12GB.
- Distro variables introduced to tool as it will be used by the CI and
the developers.
- LOG_PATH and RUN_TEMPEST are now available in user variables.
Change-Id: I4a73d7b79761d81f605cdb3fa9771ca40e9f9f02
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Mon, 27 Mar 2017 23:04:27 +0000 (01:04 +0200)]
xci: Yet another try to find how best to structure stuff
Summary of changes are
- flavors directory has been removed and the flavor config files are
moved into config and renamed to <flavor>-vars
- common files are put under file
- files specific to flavors are put under file/<flavor> directories
- templates and var files are stored in template and var directories
respectively
- 3 playbooks are created
Change-Id: I8a93e0947ccb02f93a6c8f00da27e0cc6b4dc21e
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Tue, 28 Mar 2017 09:34:54 +0000 (11:34 +0200)]
Set database pool_size in ironic.conf and inspector.conf templates
min_pool_size and max_pool_size are undefined in ironic.conf and inspector.conf
templates, causing issues during ironic-dbsync and ironic-inspector-dbsync.
https://build.opnfv.org/ci/job/opnfv-bifrost-verify-trusty-virtual-master/224/console
This issue is there for stable/ocata as well.
These should be got rid of once the patch on openstack/bifrost is merged.
https://review.openstack.org/#/c/450681/
Change-Id: I678835e763022a7168e498047bb65d140895e019
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Mon, 27 Mar 2017 08:29:01 +0000 (10:29 +0200)]
xci: Enable node provisioning and shuffle/rename stuff
This change enables node provisioning using bifrost based on the chosen
flavor.
Other changes include
- move flavor specific stuff (playbooks, inventory, vars) into their own
folders so it is easier to copy them over.
- rename flavors and get rid of xci from them.
- introduce env-vars to keep variables that are not really user variables.
Please note that this patch contains empty files and so on due to still
trying to find best way to structurei things. Apart from this, there will
probably be lots of duplications here and there which will be taken care
of once things settle.
Change-Id: I04a5d422e5b018439bafea5e68e65255ae38d22b
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Fri, 24 Mar 2017 14:06:16 +0000 (15:06 +0100)]
xci: Set up the basics for xci developer sandbox
This change creates
- initial version of the script to initiate the VM node creation and
provisioning with bifrost and OpenStack installation with openstack-ansible
- pinned-versions to hold the "known working" versions. releng will use master
until the development is complete.
- user-vars to hold user variables
- configuration files to keep settings for different flavors
- ansible files (playbooks, inventory files, variables) per flavor. These
files are empty at the moment in order to save the chosen path makes sense.
Once the way is agreed on, these will be similar to the files listed below
with different content per flavor.
https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=blob;f=prototypes/openstack-ansible/playbooks/inventory
https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=blob;f=prototypes/openstack-ansible/playbooks/configure-xcimaster.yml
https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=blob;f=prototypes/openstack-ansible/var/ubuntu.yml
These new files will be the ones used when the actual deployment is done
with openstack-ansible based on the flavor chosen by developer (or CI).
Change-Id: Ia2f38416a161abd186cbcca61e105c6a68f78b54
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Fri, 24 Mar 2017 10:19:42 +0000 (11:19 +0100)]
xci: Configure ansible verbosity based on job type
Daily jobs will use pinned versions of bifrost and openstack-ansible in
order to make sure we use known good versions for them since focus of
the daily jobs is OPNFV platform testing.
Ansible log can easily become massive depending on the level it is set
and it is not so relevant for daily jobs to have it like this due to
less probability of dailies failing to provision/deploy.
On the other hand, the jobs that verify/test bifrost and openstack-ansible
will have max verbosity enabled to troubleshoot these components themselves.
New set of jobs will be created running periodically against the HEAD
of master for bifrost and openstack-ansible to catch working versions
and help us promote them to use for daily platform jobs. Verbosity of these
jobs will be enabled like how we are doing for bifrost-verify jobs.
Change-Id: Ic9fd2ff418fdaa3ad7fbfc22d8ec2dc1174df65f
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Fri, 24 Mar 2017 09:28:33 +0000 (10:28 +0100)]
xci: Merge bifrost provisioning scripts and rename
Jobs are adjusted as well.
Change-Id: I0bc5bdda37277053d81d7da394e0156902da817a
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Thu, 23 Mar 2017 22:37:09 +0000 (23:37 +0100)]
xci: Adjust how bifrost inventory files are specified
First step towards creating env-vars files based on the use of these
scripts so the scripts can be merged into one.
Change-Id: I4ee1d9af520aa684a5367a2645d709835bc4a5a1
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Wed, 22 Mar 2017 22:04:54 +0000 (23:04 +0100)]
xci: Make it possible to select component versions
By replacing the branch with version, we now can specify sha1s
per project; opnfv/releng, openstack-ansible, and bifrost.
If nothing is specified manually (or via promotion), the defaults
will be set to branches, master and stable/ocata.
Change also includes further logging.
Change-Id: Iae0f8cc60391caeb0f2735610050007014374a70
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Wed, 22 Mar 2017 12:43:00 +0000 (13:43 +0100)]
xci: Fix grep, switch to opnfv playbook and log playbooks to console
Change-Id: I4a576d45b71267f672e55c93e4f0c95410af019a
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Wed, 22 Mar 2017 11:08:30 +0000 (12:08 +0100)]
xci: Fix the script name and remove openstack services
Change-Id: I774e12f15561de75920ca50bcb2fbaf917e004a9
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Wed, 22 Mar 2017 10:29:21 +0000 (11:29 +0100)]
xci: Logging, naming, and job updates
- adjust build blockers in daily jobs.
- explicity set SLAVE_LABEL for provision, deploy, and functest jobs
so they run on correct nodes even if they are started manually.
- rename files and update scripts accordingly.
osa_deploy.sh -> osa-deploy.sh
targethost_configuration.yml -> configure-targethosts.yml
jumphost_configuration.yml -> configure-xcimaster.yml
- add/fix console logging in osa-deploy.sh.
- add license header to osa-deploy.sh.
Change-Id: I57a37dccaa4bcda554ef79969e5d288b49937807
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Tue, 21 Mar 2017 21:34:52 +0000 (22:34 +0100)]
xci: Updates to releng/osa to make it work on Jenkins
- change OSA_BRANCH to OPENSTACK_BRANCH to be consistent everywhere.
- create opnfv-setup-openstack.yml playbook, getting rid of some components
and copy it to xcimaster to use during the deployment.
- switch to opnfv-setup-openstack.yml from setup-openstack.yml.
- create Jenkins job wrapper to execute osa deploy script.
- disable ansible strict host key checking.
- use sudo -E as needed in order to make env vars set by Jenkins
job and wrapper available to other scripts and to ansible.
- rename jumphost to xcimaster so people do not mix it with actual
jumphost located in Pharos PODs.
- other minor fixes.
Change-Id: I5736fa700c2aa39c598d301bc74450d766b74411
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Tue, 21 Mar 2017 21:16:18 +0000 (22:16 +0100)]
xci: Updates to releng/bifrost to make it work on Jenkins
- get rid of BAREMETAL_DATA_FILE and use BIFROST_INVENTORY_SOURCE
so it works both for master and ocata for osa-bifrost.
- set BIFROST_INVENTORY_SOURCE file according to branch bifrost is
executed from for osa-bifrost.
- explicitly set what the SSH public key file is as ansible copies
the wrong public key to nodes if bifrost is executed on Jenkins
using sudo.
- set branches if they are not set so the scripts can be used manually
as well.
- rename jumphost to xcimaster so people do not mix it with actual
jumphost located in Pharos PODs.
Change-Id: Iff7631fa99816ad75316b62c5ac20714f67cd86a
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Tue, 21 Mar 2017 11:36:23 +0000 (12:36 +0100)]
xci: Remove obsolete bifrost dib ELEMENTS_PATH
Change-Id: I7baa0db9c8193e4041883d5997529df98919c7af
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Mon, 20 Mar 2017 14:01:52 +0000 (15:01 +0100)]
xci: Enable VM provisioning using bifrost for daily runs
- create script to provision VMs (log upload is not enabled yet)
- remove leftover inventory files (baremetal.csv, baremetal.json)
- set BIFROST_INVENTORY_SOURCE as needed by stable/ocata
- rename playbook used during bifrost and adjust scripts using it
- remove puppet-infracloud stuff
Change-Id: I1c4412d0725c00ab9a1b3497e358d33998b4e7e6
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Markos Chandras [Mon, 20 Mar 2017 10:21:37 +0000 (10:21 +0000)]
prototypes: bifrost: destroy-env: Delete nodes from vbmc
Upstream commit
12376b958e76 ("Use virtualbmc for virtual BM nodes")
moved the VM IPMI management from the ssh drivers to the vbmc one.
As a result, we need to clear all the nodes from vbmc during cleanup.
Change-Id: I2a4e7233874c4fad8df525c8f7b526df17a8211f
Signed-off-by: Markos Chandras <mchandras@suse.de>
wutianwei [Tue, 7 Feb 2017 03:40:40 +0000 (11:40 +0800)]
bifrost: Create bifrost script for openstack-ansible
This change creates a separate script to provision 6 VMs for HA
to use for openstack-ansible.
- create 1 jumphost, 3 controller, 2 compute
- set the mumber of vCPU to 8
- use 16GB RAM per VM
- use xenial and add additional packages required by openstack-ansible
Change-Id: I858340c5bd13a1cd35cf4334ab2b8c362c5c5e7f
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Yolanda Robla [Mon, 20 Mar 2017 09:13:49 +0000 (10:13 +0100)]
Read OSA_BRANCH from an env var
Currently the OSA_BRANCH was sent in the deploy script,
but not being picked by ansible. Enable this OSA_BRANCH in
ansible, that will read from the populated env var in the
deploy script.
Change-Id: I77cffaee647a6f2a67baa49b1ddf022061398d86
Jessica Wagantall [Wed, 15 Mar 2017 01:08:27 +0000 (18:08 -0700)]
prototypes: fix yamllint issues
Linting openstack-ansible files
Change-Id: Id9e3ffa7753f25cd57c4d706b26cbb76d0bd99c7
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Jessica Wagantall [Wed, 15 Mar 2017 01:04:29 +0000 (18:04 -0700)]
prototypes: fix yamllint issues
Linting puppet-infracloud files
Change-Id: I37ccf9537a8d56e8209c6dbf17a62901d1cc441c
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Markos Chandras [Thu, 9 Mar 2017 16:14:58 +0000 (16:14 +0000)]
prototypes: bifrost: Fix ELEMENTS_PATH for latest diskimage-builder release
Upcoming diskimage-builder version (2.0.0) changed the location on
where dib elements are installed from /usr/share/diskimage-builder to
/usr/lib/$python/diskimage_builder/. However, base elements are included
by default so fix the script to set ELEMENTS_PATH to the path of our
out-of-tree elements.
Change-Id: Ib5c4e1465a67a819c9d495b0e0a64addeb0294cb
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Thu, 9 Mar 2017 18:21:13 +0000 (18:21 +0000)]
prototypes: bifrost: Switch to JSON for inventory
Upstream commit
3aaed64e88e3 ("Use JSON baremetal data in testing")
switched from CSV to JSON for the inventory file in order to support
the *_ipmitool drivers and virtualbmc. This commit mimics the upstream
one.
Depends-On: Ib5c4e1465a67a819c9d495b0e0a64addeb0294cb
Change-Id: If66810db445cf997c5eb61090815abe186e002fa
Signed-off-by: Markos Chandras <mchandras@suse.de>
wutianwei [Tue, 7 Feb 2017 08:35:27 +0000 (16:35 +0800)]
Add scripts and playbook to deploy OSA
The script and playbooks defined on this repo will deploy an OpenStack cloud
based on OpenStack-Ansible.
You just need to run the osa_deploy.sh.
More information please refer to the README.md
Change-Id: I731c366ab7197aefd7726150477ba1cc4d2932d3
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Markos Chandras [Thu, 16 Feb 2017 17:21:04 +0000 (17:21 +0000)]
prototypes: bifrost: Collect logs even if deployment fails
Move the collect-test-info.sh script to the 'exit' trap so we can
collect whatever logs we can even if the bifrost deployment failed.
Upstream change: https://review.openstack.org/433532
Change-Id: Icfbec01d894ff33e83730a40a09dc5540008dbaa
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Tue, 7 Feb 2017 09:35:58 +0000 (10:35 +0100)]
bifrost: Destroy all VMs from the slave nodes
New patchsets may introduce (or remove) testing VMs so make sure the
script destroys all of them
Change-Id: Ic96142823b9a8b044306327ce3454fbdc6fa5eb4
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Thu, 2 Feb 2017 10:12:39 +0000 (10:12 +0000)]
prototypes: bifrost: Cleanup old VM console logs
The VM logs may not be rotated by logrotate so they are accumulated
over time. Make sure they are gone when we start a new job.
Change-Id: Iecf7e53015740db98c17a42612da7f44f3c4a676
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Thu, 2 Feb 2017 15:18:09 +0000 (15:18 +0000)]
prototypes: bifrost: Drop the entire ironic database
There is no reason to only drop a few tables from it, so
just drop the entire database.
Change-Id: Iea9757fc5ccd85bc223d3c86d6a4c3ecf65fa130
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Tue, 31 Jan 2017 15:08:39 +0000 (15:08 +0000)]
bifrost: Use 'unsafe' disk cache for test VMs
The VMs which are created by bifrost are not meant to be used in
production so improve the overall CI job performance by switching
to the 'unsafe' disk cache mode. Make it also the default mode when
using bifrost outside of the Jenkins job.
Change-Id: If88f6c9395617a4aa860f8d00e22abfdd18d2922
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Fri, 27 Jan 2017 15:17:54 +0000 (15:17 +0000)]
jjb: infra: prototypes: bifrost: Ignore mysql and ironic failures
On brand new hosts ironic may not be installed yet so attemping to
restart ironic services will lead to failures. Similarly, mysql may
also not be installed so do not try to wipe the tables.
Change-Id: Ic77d9358aeecb11f5c076a47cfea18ee4f0dff9f
Signed-off-by: Markos Chandras <mchandras@suse.de>
Ricardo Noriega [Tue, 17 Jan 2017 11:49:37 +0000 (12:49 +0100)]
Removing SELINUX class from server manifest
Duplicated in controller.pp
Change-Id: I4817e23cfc1ff3862fc4fe9bc69b8e90c28073cc
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Co-authored-by: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Tue, 8 Nov 2016 16:38:02 +0000 (17:38 +0100)]
Add dependency on ::opnfv::server
Manifests give several failures on first run, if
::opnfv::server class is not applied first.
Change-Id: Iaddc9f5b81f134c15d051417a93c1d687ad035c4
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Markos Chandras [Wed, 30 Nov 2016 21:55:47 +0000 (21:55 +0000)]
prototypes: bifrost: Increase default provision timeout to 3600 seconds
Sometimes, the current '2400 seconds' timeout is not enough to all 3 VMs
to become reachable especially when the qcow2 images are becoming bigger
and bigger. This leads to spurious CI failures. Increase the timeout to
3600 seconds which should be enough for VMs boot properly
Change-Id: I06942952667df28341e5ce43d30619fe2e30326b
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Tue, 29 Nov 2016 18:21:51 +0000 (18:21 +0000)]
bifrost: test-bifrost-deployment.sh: Use the new 'openssh-server' dib element
This is a follow-up for
b0a9b75e7481a24676c9488f17583c13b8b8026e
("Make use of the new 'openssh-server' dib element"). Remove the
openssh-server package from the default packages and use the
'openssh-server' element instead.
Change-Id: Ie14cdf93769ebefcae00f35d9e1ac149a31e7711
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Fri, 18 Nov 2016 16:34:02 +0000 (16:34 +0000)]
bifrost: Make use of the new 'openssh-server' dib element
Make use of the new 'openssh-server' dib element to achieve a consistent
behavior of ssh server across all distributions.
Change-Id: Ib10066a244fe44530969702cd465cdd79454b8fe
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Mon, 21 Nov 2016 15:09:45 +0000 (15:09 +0000)]
bifrost: test-bifrost-deployment: Allow overriding VM hardware options
Make VM disk, cpu and memory settings configurable to allow less
powerful hosts to host the bifrost VMs.
Change-Id: If819451536dd518690f3808c55de940169b90346
Signed-off-by: Markos Chandras <mchandras@suse.de>
Yolanda Robla Mota [Thu, 10 Nov 2016 09:52:18 +0000 (10:52 +0100)]
Fix typo in mac address
Change-Id: I3feb14a2c055563392bf70836b8e1ad46e3ae24e
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Thu, 10 Nov 2016 08:53:22 +0000 (09:53 +0100)]
Fix bug in setting udp ports
There was a typo that prevented to configure udp ports
properly, causing dhcp boot to fail.
Change-Id: Ib853a9b9a21da113bda12b5cc1f33b3819442139
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Tue, 8 Nov 2016 16:59:44 +0000 (17:59 +0100)]
Add missing step on the baremetal documentation
Change-Id: Ib9ef5d342f1efe624464df249c950eb7807322e1
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Tue, 1 Nov 2016 10:26:58 +0000 (11:26 +0100)]
Start using centos7 instead of centos-minimal
Current builds with centos-minimal are failing on 7,
so start using centos7 element instead.
Change-Id: I80d986fd7613e1807a119447a01c62e6f8a93ddf
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Fri, 21 Oct 2016 04:49:59 +0000 (06:49 +0200)]
Add step to customize create bridge template
Change-Id: I0f4e7353773291e810f70059e4a015ac641bd2c8
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Markos Chandras [Fri, 21 Oct 2016 09:36:09 +0000 (10:36 +0100)]
playbooks: Do not serialize ironic deployment
[This is similar to upstream https://review.openstack.org/389079]
This somewhat reverts
0a82e3d8d29f85229e1ed29d90de47346bc1d9b1
("Serialize localhost actions during final host deployment").
The only point where we want to serialize the steps is when accessing
common files on the host. In the bifrost-deploy-nodes-dynamic role,
all tasks are accessing files based on the 'inventory_hostname'
variable, which means there is no conflict there and tasks on these
role can run in parallel. This allows bifrost to provision machines
in parallel during pxe boot which speeds up the entire operation.
Change-Id: I64b1f2832c333c89e33e8f9d19f03e4d653d74b4
Signed-off-by: Markos Chandras <mchandras@suse.de>
Markos Chandras [Thu, 20 Oct 2016 13:18:27 +0000 (14:18 +0100)]
prototypes: bifrost: Ignore dnsmasq service failures
If this is the first time we run bifrost on a host or if we haven't
run bifrost since the last reboot, restarting the dnsmasq service will
fail because of conflicts with the dnsmasq process running by libvirt.
This is later on 'fixed' by bifrost by killing the one from libvirt.
Make sure that this spurious failure will not prevent the rest of the
cleanup process to move on.
Change-Id: Iebf37881570c27cb07cea3cecdb0fa8ac3fc511b
Signed-off-by: Markos Chandras <mchandras@suse.de>
Yolanda Robla Mota [Tue, 18 Oct 2016 09:46:28 +0000 (11:46 +0200)]
Add documentation for deploying on baremetal
Change-Id: I9685b733ae2e3e732c78e78381778c944eace90c
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Fri, 14 Oct 2016 14:16:50 +0000 (16:16 +0200)]
Disable selinux for RHEL
It is causing some unexpected permission errors if
that is enabled.
Change-Id: I96c3131a55a1b7c83a655738938645f537ab48f6
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Thu, 13 Oct 2016 10:26:46 +0000 (12:26 +0200)]
Fix macs in inventory
Change-Id: I834155dbd3451b06c2b45299bc64f76992b8e1b2
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>y
Yolanda Robla Mota [Thu, 13 Oct 2016 07:53:59 +0000 (09:53 +0200)]
Add console password to images
It is useful to have a user/pass to login from console.
Change-Id: I10ca00e80c07f3506710dc3133baf8012f7856ae
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Thu, 13 Oct 2016 05:53:13 +0000 (07:53 +0200)]
Fix network interface on vm
When spinning on a vm, interface is normally eth1, not eno1.
Change-Id: I2be7a252b06f155908d207817a1c5302bd40677e
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Tue, 11 Oct 2016 09:26:39 +0000 (11:26 +0200)]
Tune sudo settings on server
We need to have passwordless sudo, and not require
a tty.
Change-Id: Iee11cade89a45b49d6b623f07d8ccb76f9e5882d
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Thu, 6 Oct 2016 16:13:31 +0000 (18:13 +0200)]
Add script to properly install puppet
This will be needed specially on jumphost,
when deploying puppet from scratch.
Change-Id: Ife7d3fff98826ee53edb74585b7cbfc7cad2e0a8
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Thu, 6 Oct 2016 13:09:47 +0000 (15:09 +0200)]
Add management of /root/.ssh key
It is generally needed to have this file created,
for next manifests to run properly.
Change-Id: I3ca1dd05a44ecdd6bee9abcfd6ba7fa875022ed4
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Thu, 6 Oct 2016 10:08:37 +0000 (12:08 +0200)]
Add new hiera with default for baremetal
Refactor the common.yaml with the settings only for
vms, and create a new common_baremetal file that will
contain all settings needed for baremetal deploys,
with sane defaults.
Change-Id: I5ae3ed6d870086544792cb41f166246a3a153251
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Tue, 4 Oct 2016 15:32:11 +0000 (17:32 +0200)]
Convert harcoded values to hiera ones
Settings like neutron config and virt type
will be different depending on environments.
Change-Id: I0945025645b40a02f9a13d0699f442d3a949ebb4
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Tue, 4 Oct 2016 11:43:51 +0000 (13:43 +0200)]
Fix naming and ips for controller and compute
hostname needs to match manifest, and ips need to match
the provided range.
Change-Id: I059ed9df273f984ac032bd9ded2892e8758c6dab
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Mon, 3 Oct 2016 08:33:17 +0000 (10:33 +0200)]
Add missing dhcp_static_mask value
Change-Id: I1ba1aeea6a9a5a97b592e484b205868811b9f4e9
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Mon, 3 Oct 2016 09:11:48 +0000 (11:11 +0200)]
Add missing bridge_name parameter
Change-Id: If233efe79fd3058c4ca4ef16abf7f66b1a9c4203
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Markos Chandras [Mon, 3 Oct 2016 12:41:38 +0000 (13:41 +0100)]
bifrost: Serialize localhost actions during final host deployment
Several tasks in the final playbooks run locally and there is a chance
to encounter race conditions when multiple tasks run in parallel
and all access or modify the same local files. We fix this by splitting
the final steps into multiple plays and serializing those that run
locally.
Change-Id: I38c3465d9c4714d9db772f9ff9e32ec1d4a91db8
Signed-off-by: Markos Chandras <mchandras@suse.de>
Yolanda Robla Mota [Mon, 3 Oct 2016 08:18:36 +0000 (10:18 +0200)]
Add missing hiera vars for bifrost
Change-Id: I88a9acb221c7c33d12c8d68492551c39a8cb212c
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Markos Chandras [Tue, 27 Sep 2016 15:35:57 +0000 (16:35 +0100)]
Set the wait_timeout variable to the deployment script
There is no point in us keeping our own copy of the upstream
bifrost-prepare-for-test-dynamic playbook just for overriding
the wait_timeout variable. Delete the duplicate role and move the
variable definition to the deployment script instead.
Change-Id: Ib8066fefe80e9a3190d878eb5dba7b8d86a85e07
Signed-off-by: Markos Chandras <mchandras@suse.de>
Fatih Degirmenci [Sat, 24 Sep 2016 23:49:57 +0000 (01:49 +0200)]
bifrost: Refactor bifrost jobs
This change
- Creates job templates to verify opnfv/bifrost patches
- Introduces type in order to prepare verification on baremetal
- Fixes git cloning so the job shows changes for the corresponding project
- Gets rid of unnecessary slave parameters from slave-params.yml
- Fixes build blocking
- Updates the bifrost-verify.sh script and includes in shell so we don't have
to clone releng repo separately
- Updates destroy-env.sh to create /httpboot and /tftpboot with permissions 755
- Removes daily infra-bifrost job and scripts as we don't use them at the moment
Change-Id: Icb5a543628d3321bfe4e549ab92c67443ac578d8
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Fatih Degirmenci [Fri, 23 Sep 2016 12:03:02 +0000 (14:03 +0200)]
bifrost: Get rid of httpboot and tftpboot directories
Change-Id: If2af5177e8614651664c7de9cde3e681ec2bb43c
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Yolanda Robla Mota [Tue, 20 Sep 2016 14:58:20 +0000 (16:58 +0200)]
Stop using sudoers on all servers defined
Insteaf of that, add only on compute and controller that
are going to be fully automated, but avoid running that on
jumphosts, as this may mess with exiting config.
Change-Id: I79f1fa05d3e6da49a7f78b2efecb791022f5b11d
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla Mota [Fri, 16 Sep 2016 15:32:44 +0000 (17:32 +0200)]
Add baremetal node for puppet-infracloud
Change-Id: Ie18b25634016dcc98ec83e30c51b4c386ffd9ecc
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Markos Chandras [Wed, 14 Sep 2016 14:58:20 +0000 (15:58 +0100)]
prototypes: bifrost: README: Run the deployment script using sudo
It's necessary to run the deployment script using 'sudo' so that
exported variables within the script are preserved in playbooks
once we gain elevated privileges.
Change-Id: I824b44199d57b6acf14804c3ab1825d7aa80da4e
Signed-off-by: Markos Chandras <mchandras@suse.de>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
Aric Gardner [Tue, 28 Mar 2017 12:47:50 +0000 (12:47 +0000)]
Initial empty repository