summaryrefslogtreecommitdiffstats
path: root/prototypes
AgeCommit message (Collapse)AuthorFilesLines
2016-12-27Add dependency on ::opnfv::serverYolanda Robla Mota1-5/+8
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>
2016-12-21Merge "Fix typo in mac address"Aric Gardner1-1/+1
2016-12-07Merge "bifrost: test-bifrost-deployment.sh: Use the new 'openssh-server' dib ↵Aric Gardner1-3/+3
element"
2016-12-01prototypes: bifrost: Increase default provision timeout to 3600 secondsMarkos Chandras1-1/+1
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>
2016-11-30bifrost: test-bifrost-deployment.sh: Use the new 'openssh-server' dib elementMarkos Chandras1-3/+3
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>
2016-11-28bifrost: Make use of the new 'openssh-server' dib elementMarkos Chandras2-1/+5
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>
2016-11-21bifrost: test-bifrost-deployment: Allow overriding VM hardware optionsMarkos Chandras1-3/+3
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>
2016-11-11Merge "Add missing step on the baremetal documentation"Aric Gardner1-0/+1
2016-11-10Fix typo in mac addressYolanda Robla Mota1-1/+1
Change-Id: I3feb14a2c055563392bf70836b8e1ad46e3ae24e Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-11-10Fix bug in setting udp portsYolanda Robla Mota1-1/+1
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>
2016-11-08Add missing step on the baremetal documentationYolanda Robla Mota1-0/+1
Change-Id: Ib9ef5d342f1efe624464df249c950eb7807322e1 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-11-02Start using centos7 instead of centos-minimalYolanda Robla Mota1-1/+1
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>
2016-11-02Add step to customize create bridge templateYolanda Robla Mota1-5/+8
Change-Id: I0f4e7353773291e810f70059e4a015ac641bd2c8 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-11-02playbooks: Do not serialize ironic deploymentMarkos Chandras1-4/+4
[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>
2016-10-20Merge "Add documentation for deploying on baremetal"Fatih Degirmenci1-0/+57
2016-10-20prototypes: bifrost: Ignore dnsmasq service failuresMarkos Chandras1-1/+1
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>
2016-10-18Add documentation for deploying on baremetalYolanda Robla Mota1-0/+57
Change-Id: I9685b733ae2e3e732c78e78381778c944eace90c Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-14Disable selinux for RHELYolanda Robla Mota1-0/+8
It is causing some unexpected permission errors if that is enabled. Change-Id: I96c3131a55a1b7c83a655738938645f537ab48f6 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-14Fix macs in inventoryYolanda Robla Mota1-0/+2
Change-Id: I834155dbd3451b06c2b45299bc64f76992b8e1b2 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>y
2016-10-14Add console password to imagesYolanda Robla Mota2-0/+2
It is useful to have a user/pass to login from console. Change-Id: I10ca00e80c07f3506710dc3133baf8012f7856ae Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-14Fix network interface on vmYolanda Robla Mota1-1/+1
When spinning on a vm, interface is normally eth1, not eno1. Change-Id: I2be7a252b06f155908d207817a1c5302bd40677e Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-11Tune sudo settings on serverYolanda Robla Mota1-1/+15
We need to have passwordless sudo, and not require a tty. Change-Id: Iee11cade89a45b49d6b623f07d8ccb76f9e5882d Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-07Add script to properly install puppetYolanda Robla Mota1-0/+297
This will be needed specially on jumphost, when deploying puppet from scratch. Change-Id: Ife7d3fff98826ee53edb74585b7cbfc7cad2e0a8 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-07Add management of /root/.ssh keyYolanda Robla Mota1-0/+8
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>
2016-10-06Add new hiera with default for baremetalYolanda Robla Mota2-86/+170
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>
2016-10-05Convert harcoded values to hiera onesYolanda Robla Mota2-6/+9
Settings like neutron config and virt type will be different depending on environments. Change-Id: I0945025645b40a02f9a13d0699f442d3a949ebb4 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-04Fix naming and ips for controller and computeYolanda Robla Mota1-8/+8
hostname needs to match manifest, and ips need to match the provided range. Change-Id: I059ed9df273f984ac032bd9ded2892e8758c6dab Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-04Merge "bifrost: Serialize localhost actions during final host deployment"Fatih Degirmenci1-3/+8
2016-10-03Merge "Add missing bridge_name parameter"Fatih Degirmenci1-0/+1
2016-10-03Add missing dhcp_static_mask valueYolanda Robla Mota2-0/+2
Change-Id: I1ba1aeea6a9a5a97b592e484b205868811b9f4e9 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-03Add missing bridge_name parameterYolanda Robla Mota1-0/+1
Change-Id: If233efe79fd3058c4ca4ef16abf7f66b1a9c4203 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-03bifrost: Serialize localhost actions during final host deploymentMarkos Chandras1-3/+8
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>
2016-10-03Add missing hiera vars for bifrostYolanda Robla Mota2-3/+87
Change-Id: I88a9acb221c7c33d12c8d68492551c39a8cb212c Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-30Set the wait_timeout variable to the deployment scriptMarkos Chandras2-5/+3
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>
2016-09-27bifrost: Refactor bifrost jobsFatih Degirmenci1-2/+3
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>
2016-09-23bifrost: Get rid of httpboot and tftpboot directoriesFatih Degirmenci1-2/+2
Change-Id: If2af5177e8614651664c7de9cde3e681ec2bb43c Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-09-20Stop using sudoers on all servers definedYolanda Robla Mota2-1/+4
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>
2016-09-16Add baremetal node for puppet-infracloudYolanda Robla Mota2-0/+29
Change-Id: Ie18b25634016dcc98ec83e30c51b4c386ffd9ecc Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-14prototypes: bifrost: README: Run the deployment script using sudoMarkos Chandras1-1/+1
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>
2016-09-14prototypes: bifrost: Check we are running the destroy-env.sh as rootMarkos Chandras2-6/+14
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>
2016-09-12Change naming for bridge in CentOSYolanda Robla Mota1-1/+1
Change-Id: I7a35a1222ce7524fbf74848daec68dfd57616026 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-12Merge "Stop disabling selinux"Fatih Degirmenci2-16/+0
2016-09-12Merge "Update documentation about disabling selinux"Fatih Degirmenci1-4/+6
2016-09-12Merge "Parameterize infracloud playbook by platforms"Fatih Degirmenci2-2/+22
2016-09-12Parameterize infracloud playbook by platformsYolanda Robla Mota2-2/+22
This will allow to run on different distros depending on settings exported. Change-Id: I068d7bb2eebfd009dceeff057c8a65361483788b Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
2016-09-09Stop disabling selinuxYolanda Robla Mota2-16/+0
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>
2016-09-08Update documentation about disabling selinuxYolanda Robla Mota1-4/+6
Change-Id: Ic3729d9450edabd809eed53525632e2b36752401 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-08Fix script when CLEAN_DIB_IMAGES var is not setYolanda Robla Mota1-0/+2
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>
2016-09-07Fix problems and add missing info to puppet-infracloud instructionsFatih Degirmenci1-5/+14
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>
2016-09-02Reflect upstream change to local script fixing playbook syntax checkFatih Degirmenci1-11/+11
Upstream change: https://review.openstack.org/#/c/358477/ Change-Id: Ibfef32aec4b62d8d1d13728abec374a2d4560d81 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>