summaryrefslogtreecommitdiffstats
path: root/jjb/xci/bifrost-verify.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-12-14jjb: xci: Use the correct SSH configuration fileMarkos Chandras1-4/+1
We need to use the XCI specific SSH configuration file so rsync can tranfer the working directory to the virtual machine. This also drop the ironic command like we do in the XCI jobs. Change-Id: I10ce38db6777d5dbfbe62961c88b3902de2160e2 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-11-30jjb: xci: bifrost-verify.sh: Do not build OS imagesMarkos Chandras1-1/+4
Use the images we provide in artifacts.opnfv.org instead of building new ones on every CI run. Moreover, enter the correct directory before executing the CI script. Change-Id: Iffa0080ab8f746344aa13bca6a26395a8a0953f2 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-11-30jjb: xci: bifrost-verify: Simplify bifrost jobMarkos Chandras1-5/+3
We no longer test OPNFV commits that affect bifrost since these are being tested as part of the XCI jobs. As such, simplify the job to only test incoming upstream patchsets. Moreover, we need to block when an XCI job is running since both jobs run on the same hosts and create the same VMs. Change-Id: I5c11ae5b6a4d719ec41a6e663ddf6ecbd71ac1a5 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-10-20jjb: xci: bifrost: Enable jobs and use XCI ssh configurationMarkos Chandras1-5/+10
Enable the 'bifrost' jobs and also make use of the XCI specific ssh configuration file. Change-Id: I04d15610b596191622cf028b3408b4d63ee7090b Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-10-04jjb: xci: Refactor bifrost jobs to use the XCI clean VMMarkos Chandras1-98/+11
We no longer run opnfv/bifrost jobs so drop all the references from the configuration file. Moreover, make use of the releng-xci XCI clean VM virtual machine to run the tests on a clean environment. Finally, we drop the support for uploading logs to the artifacts.opnfv.org. This needs to be done for XCI as well so we will bring it back when we develop a universal solution. Change-Id: I9bad17508ab8ee6594aec444ab864b99331b616d Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-08-16jjb: xci: bifrost-verify: Disable errexit when uploading logsMarkos Chandras1-5/+9
The errexit option is there to catch failures when the job is executed. We don't want to mark the entire job as failed when we have troubles uploading the logs when the actual job has passed so we disable the errexit option to make the whole process less aggressive. Moreover, we move the build log upload to the end of the operation so we can catch as much output as possible. Change-Id: Ice126471a8c837c54c95c8ef0935c059d37ea91b Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-08-11Update repository with new location of XCITrevor Bramwell1-3/+3
With the releng-xci code moving to it's own repository, the Jenkins jobs need to be modify to clone the correct repo and point at the right paths: * The git repo is changed to 'releng-xci' * The cloned directory is changed to '$WORKSPACE/releng-xci' * References to the 'prototypes' directory path have been removed Change-Id: Ia1d2ad0a2fb6cc9d1848356edf448b92ab67b017 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2017-06-05bifrost: Switch Ubuntu targets to Xenial (16.04)Fatih Degirmenci1-1/+1
Switch default target OS to Ubuntu Xenial (16.04) which is also the version supported by bifrost. Change-Id: Ia139af9d03c85225e741c78ce35ecc59cd990108 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-05-11jjb: xci: bifrost: Clone git repositories to $WORKSPACEMarkos Chandras1-8/+8
Commit 0638af211db1 ("jjb: xci: xci-deploy.sh: Run the deployment script as normal user") dropped 'sudo' from the bifrost provisioning script. However this broke the jobs since the repositories were being cloned into /opt where the jenkins user has not access to. As such, clone the repositories in the $WORKSPACE directory instead. Fixes: 0638af211db1 ("jjb: xci: xci-deploy.sh: Run the deployment script as normal user") Change-Id: I55baceaada04496884470997562e3f512f2444a0 Signed-off-by: Markos Chandras <mchandras@suse.de>
2017-05-08jjb: xci: Run bifrost provisioning as normal userMarkos Chandras1-2/+2
Ansible can request elevated privileges using the 'become' directive. As such there is no need to run ansible using sudo. Furthermore, OpenStack CI runs all jobs as normal user and we need to do the same in order to compare behavior and results properly. Change-Id: Id198efd1d6fdf4619de931fbedc7caba8d68d2a0
2017-05-03prototypes: bifrost: Add keystone rolesMarkos Chandras1-2/+2
The os_client_config Ansible module used by all the ironic-* roles depends on the keystone roles so we need to make use of them even though they do not affect the end result. This fixes the following OPNFV CI problem due to not having a clouds.yaml file present to be consumed by the os_client_config Ansible module. fatal: [controller00]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"} An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/tmp/ansible_ApkCUQ/ansible_module_os_client_config.py", line 75, in <module> main() File "/tmp/ansible_ApkCUQ/ansible_module_os_client_config.py", line 63, in main for cloud in config.get_all_clouds(): File "/usr/lib/python2.7/site-packages/os_client_config/config.py", line 798, in get_all_clouds cloud, region_name=region['name'])) File "/usr/lib/python2.7/site-packages/os_client_config/config.py", line 1071, in get_one_cloud auth_plugin = loader.load_from_options(**config['auth']) File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 162, in load_from_options raise exceptions.MissingRequiredOptions(missing_required) keystoneauth1.exceptions.auth_plugins.MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url fatal: [opnfv]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"} Moreover, we cleanup the ~/openstack directory which may contain some bifrost artifacts such as a clouds.yaml file. Finally, we use 'sudo -H' because for the keystone roles we need the HOME variable to be set properly. Change-Id: I45b08bd33dd8ea9505fe10eb4b2b10956b3b683c
2017-03-29prototypes: bifrost: Remove /opt/stack from previous deploymentsMarkos Chandras1-1/+1
/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>
2017-03-24xci: Merge bifrost provisioning scripts and renameFatih Degirmenci1-1/+1
Jobs are adjusted as well. Change-Id: I0bc5bdda37277053d81d7da394e0156902da817a Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-03-22xci: Updates to releng/bifrost to make it work on JenkinsFatih Degirmenci1-1/+1
- 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>
2017-03-20xci: Enable VM provisioning using bifrost for daily runsFatih Degirmenci1-9/+1
- 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>
2017-03-20xci: Create skeletons for jobs and rename directoryFatih Degirmenci1-0/+134
This patch - creates job skeletongs based on the structure of other OPNFV jobs upstream job per scenario triggering and controlling the downstream jobs downstream jobs to run provisioning, deployment and functest - renames infra directory to xci Change-Id: I9a7ac3590d660f4270ab387598586e4270787ecb Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>