summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-10-18Merge "Add ODL variables to env file"Manuel Buil3-0/+31
2018-10-18Add ODL variables to env fileManuel Buil3-0/+31
ODL testcases in functest require new variables: https://git.opnfv.org/functest/tree/functest/utils/env.py#n22 Otherwise the test fails because it cannot contact ODL To find those variables, we fetch the ml2_conf.ini file from the neutron container and then we parse the values. This is only run when the scenario has odl deploy-scenario:os-odl-sfc installer-type:osa Change-Id: If175bb7642e66e151b30e1ccd1b9040aa3481d8f Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-17[Baremetal] Add baremetal support to create-nodesManuel Buil6-14/+122
Information about baremetal servers is collected for ironic to do the provisioning. Two main things are done: 1 - baremetalhoststojson.yml fills the json config file fed to ironic so that it knows how to boot the blades. In the baremetal case, the create_vm.yml playbook will only create opnfv vm. The variable vms_to_create holds that information. The variable baremetal_nodes specifies the physical nodes (empty when non baremetal deployments) 2 - For PXE to work, we create a file called baremetalstaticips that has the mapping between mac address from servers and its ip. That file is moved into the dnsmasq config directory Change-Id: I0e788db1deb50769c183b71524a68ac0b925f8aa Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-15[baremetal] Add two interfaces to the opnfv vmManuel Buil8-16/+74
opnfv vm requires connectivity to two physical interfaces of the host. These interfaces are: 1 - admin, where DHCP requests will arrive from blades to do PXE boot 2 - mgmt, which connects to the mgmt of the blades to do the ansible configuration To achive this, it is required: 1 - Two libvirt networks that connect to two different linux bridges. The important physical interfaces are connected to them. The interfaces name is fetched from the idf 2 - Two templates representing the new libvirt networks (net-mgmt.xml.j2 and net-admin.xml.j2) 3 - Two interfaces defined in vm.xml.j2 Change-Id: I9037aa36802cfde44717b9394bab79b22d7dfaab Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-15[Baremetal] Modify interaction with bifrost rolesManuel Buil4-5/+40
Change some of the variables when calling opnfv-virtual.yml and baremetal=true: 1 - We want to configure DHCP mapping between ip and mac when doing baremetal. The create-nodes role will generate a file with that mapping for us (baremetalstaticips) 2 - Don't download the standard IPA image but build one with Fedora (only one that works in ericsson-pod2) when doing baremetal 3 - Wait for the blade to complete its booting. Its ssh port becomes available with the IPA provision but that is not the final state. We need to wait until the required distro gets installed. When not doing baremetal, this is fine as the VMs boot very fast with the chosen distro but for baremetal it takes a while (ericsson-pod2 servers take around 2 minutes to finish all BIOS booting). The playbook wait-for-baremetal.yml does this. Change-Id: I5536517209ff7f46ec034554d29566707778e397 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-13Merge "Simplify external networking for os"Fatih Degirmenci2-19/+5
2018-10-12Simplify external networking for osManuel Buil2-19/+5
We were right now creating an overlay network with gateway in the opnfv vm. This makes floating ips work but if we need internet connection from vms, things get complicated and messy. As we are only using up to 7 ips from the 192.168.122.0/24, we can consider it the provider network for openstack and use ips starting from 192.168.122.100 as floating ips or ips for routing (doing SNAT as always) Change-Id: I09af663069ae95a9d265d98f1531778eb37134e2 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-12Fix idf for k8sManuel Buil3-0/+24
deploy-scenario:k8-calico-nofeature installer-type:kubespray Change-Id: If1c9f5908f39f9c09efb86e27a3f3883b4cd75b9 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-12Update bifrost SHAsManuel Buil2-9/+43
There is a bug when ironic communicates with rabbitmq due to a parameter deprecation. This patch fixes it: https://review.openstack.org/#/c/609499/ And we can take the opportunity to update all SHAs THere is a problem: "Unable to retrieve file contents\nCould not find or access '/home/opnfv/releng-xci/xci/infra/bifrost/playbooks/roles/common/venv_python_path.yml'"} That file is in: /home/opnfv/releng-xci/.cache/repos/bifrost/playbooks/roles/common/venv_python_path.yml As I am not sure how to fix the ansible PATH, for the time being, I just added to where Ansible is searching for it Change-Id: I8e60f43ed7fc78a8925efaa36e41b0d872ea9a74 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-04Merge "[Baremetal] - Change roles and playbooks names"Manuel Buil15-23/+18
2018-10-04Bug fix: Remove use_prebuilt_images conditionManuel Buil1-4/+2
The creation or not of the IPA image does not depend on the value of the use_prebuilt_images. This variable is intended to control the following call to bifrost-create-dib-image role. I added a few comments to clarify what we are doing in each call to the bifrost-create-dib-image role Change-Id: Id66e1a969ca279a055640481719f118744eedf38 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-03[Baremetal] - Change roles and playbooks namesManuel Buil15-23/+18
A few playbooks and the create-vm-nodes role should change the name to reflect the new reality once the baremetal patches are merged. The playbooks that must change the name are: - xci-prepare-virtual.yml - xci-create-virtual.yml Change-Id: Iaed1f93561fa9d39c7916e0643a5445cdddf4f97 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-01[Baremetal] Include a baremetal variableManuel Buil2-0/+5
It switches between parts of the code which are specific for baremetal or non-baremetal. Those parts come with this patch: https://gerrit.opnfv.org/gerrit/#/c/60797 It also selects different variables when calling the opnfv-virtual.yml playbook: https://gerrit.opnfv.org/gerrit/#/c/60795 It decides the value of BAREMETAL based on the vendor value of the pdf Change-Id: I8e6171f4f21db7f814a472e6ed1bacb30220b4ec Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-09-28[baremetal] idf for opnfv_vm and update the pdfManuel Buil8-42/+80
Physical hardware PODs provide a pdf and a idf to describe hardware and other information (e.g. what is the purpose for each interface). To reuse the same code for opnfv vm and also become consistent, we should also describe the opnfv vm with an idf and a pdf. This patch simplifies what needs to be done for baremetal, especially for this (future) patch: https://gerrit.opnfv.org/gerrit/#/c/60797/11 As we add an idf, we should update dynamic_inventory and how we create the opnfv vm. Obviously, he opnfv_vm.yml gets removed. Change-Id: I930728474631fc214e4a9adc8581e0c16d230176 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-09-21Add idf and pdf to the xci-create-virtual.ymlManuel Buil2-1/+4
This patch complements this other: https://gerrit.opnfv.org/gerrit/#/c/62575/2 We require the pdf and the idf (when doing baremetal) in the create-vm role, so we should propagate that variable to the playbook that triggers those roles Change-Id: I15806d386db4e6b11192829f2dbc61662bffec2b Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-09-20Merge "xci: Add ability to pass command line options to xci-deploy.sh"Markos Chandras3-2/+36
2018-09-20Merge "Docs transition"Fatih Degirmenci5-3/+35
2018-09-19xci: Add ability to pass command line options to xci-deploy.shMarkos Chandras3-2/+36
We now support multiple PDF files so instead of introducing another env variable, we can simply pass this information as command line arguments to xci-deploy.sh. We can extend the script to allow more options line verbosity, scenario name, functest details etc so we can get rid of multiple env variables. Change-Id: I6c4a8d6e8b70e91746a659de923fee19019ed5e0 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-19Merge "[Baremetal] Add ericsson-pod2 pdf and idf"Manuel Buil2-0/+401
2018-09-18Switch to Functest HunterFatih Degirmenci3-2/+3
A new var FUNCTEST_VERSION is introduced to jobs to control the version to use for Functest. Change-Id: Ice7aa9f910db2353ce3d0bef198bef9fa3efe9fd Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-16Merge "xci: Drop custom XCI certificates"Fatih Degirmenci9-51/+1
2018-09-14xci: Drop custom XCI certificatesMarkos Chandras9-51/+1
OSM requires a CA even when we create a self-signed certificate. We don't actually need to do that since HAproxy and friends can create the whole chain for us, so we can finally get rid of this playbook. installer-type:osa deploy-scenario:os-nosdn-nofeature Change-Id: I14a3adbe3492cd6c562c5167c42dd45756e8e3dd Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-13Docs transitionFatih Degirmenci5-3/+35
Changes are made by following https://docs.opnfv.org/en/latest/how-to-use-docs/local-build-transition.html Change-Id: If0ee2031894d4dbd54098548640b8cc71481e49f Signed-off-by: Fatih Degirmenci <fdegir@gmail.com> Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2018-09-13Enable post-deployment for k8s based scenariosFatih Degirmenci2-2/+59
k8-calico-onap scenario will have post deployment tasks to install ONAP using OOM so post-deployment tasks are required to do that. deploy-scenario:k8-calico-nofeature installer-type:kubespray Change-Id: I67c8188cb573f6fc5c80e15a9101cacca1b7b10e Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-12xci: osa: Bump SHA for os_neutronManuel Buil1-1/+1
We require the following patch to deploy ODL when using Ubuntu https://review.openstack.org/#/c/597003/1 This SHA bump adds it Change-Id: I0382a4c3946aeff2ddd86a932055dd770c520c74 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-09-10xci: osa: Bump the SHA for the openstack_openrc roleMarkos Chandras1-1/+1
Previous bump missed the latest SHA for this role and yardstick started failing again due to the incomplete openrc file. Change-Id: I73f024250c73a42a6c2a36acaf8b1f8c6867dd2a Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-07xci: osa: Update OSA SHAs to the HEAD of the Rocky branchMarkos Chandras4-23/+60
Change-Id: I012f829c124d665d7d8d9ebb6b18a72d6d73258f Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-06Merge "playbooks: configure-opnfvhost: Ensure we copy only the tracked files"Markos Chandras2-2/+36
2018-09-06Merge "xci: infra: bifrost: Allow DNS overrides"Markos Chandras1-4/+2
2018-09-05Merge "Fix the default scenario name for K8S Yardstick testing"Markos Chandras1-1/+1
2018-09-05Merge "Revert "Set OS_INSECURE to true for Yardstick""Markos Chandras1-1/+0
2018-09-05Revert "Set OS_INSECURE to true for Yardstick"Fatih Degirmenci1-1/+0
The issue is fixed upstream. This reverts commit 40ecfaf96e73520f3a2358c46cd97c1f6c3b58c6. Change-Id: I8268372173721157d239c1978cdfe8d035613854
2018-09-05Merge "xci: osa: Update openrc role"Markos Chandras1-2/+2
2018-09-05xci: osa: Update openrc roleMarkos Chandras1-2/+2
This update fixes the values for OS_INSECURE and OS_VERIFY Change-Id: I7d49bd493bde18f40122721188b006052cf7a901 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-05Set OS_INSECURE to true for YardstickFatih Degirmenci1-0/+1
Change-Id: I0ec6755cb9f9a5b79b359d544082f966903d42bd Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-05Fix the default scenario name for K8S Yardstick testingFatih Degirmenci1-1/+1
deploy-scenario:k8-nosdn-nofeature installer-type:kubespray Change-Id: Ieb531b66bd36bbf8c28f755a52a98f0b41ae5efa Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-05Merge "Enable yardstick k8s"Fatih Degirmenci1-5/+8
2018-09-04Enable yardstick k8sFatih Degirmenci1-5/+8
installer-type:kubespray deploy-scenario:k8-nosdn-nofeature Change-Id: If81aef632b064565fbf5c308909b44ff7409c33e Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-04Fix openrc OS_CACERT for yardstick docker containerFatih Degirmenci1-1/+1
The openrc should contain the path to OS_CACERT within container, not on opnfv vm. Change-Id: Ief4cb4ae647ff0f2cd4f3ebe8a2993bb71b0363f Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-04Create script to run yardstickFatih Degirmenci2-0/+50
The created script runs the yardstick in similar way the functest script does. installer-type:osa deploy-scenario:os-nosdn-nofeature Change-Id: Ic03445ec03fcfec8dc0d09f638e7cb1187fef883 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-04xci: infra: bifrost: Allow DNS overridesMarkos Chandras1-4/+2
Deployers may want to use a different DNS server so allow them to override the ipv4_nameserver option. If the variable is not set, then we use the libvirt DNS if we are behind a proxy, otherwise we default to the Google DNS. Change-Id: I96cf63758902d4aae3d155b2e8beef650449ebc9 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-04playbooks: configure-opnfvhost: Ensure we copy only the tracked filesMarkos Chandras2-2/+36
This prevents rsync spending time copying temporary files which may have been created during a CI run. deploy-scenario:os-nosdn-nofeature installer-type:osa Change-Id: Ie02e0dbfc06b8fac40d6b90c4c99e361ecf1c0b2 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-04xci: osa: Restore self-signed XCI certificateMarkos Chandras7-0/+48
This reverts commit cc583f30f881ba956fb4f1402aa4dd1608b27da2. We still need to have control over the generated certificates so lets keep creating our own. deploy-scenario:os-nosdn-nofeature installer-type:osa Change-Id: I9e730bce2dba578ca0b561b168eaf1c2eca1282d
2018-09-03xci: osa: Update ansible role for configuring the proxy serverMarkos Chandras4-4/+4
The old role has disappeared so we have to use another one. Change-Id: I8533912a19680e93a9cf061109019a0801485936 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-03Rename functest-prepare role to prepare-testsFatih Degirmenci7-54/+67
This change renames functest prepare-tole to prepare tests and makes other adjustments to the role to move common test preparation steps to its own script so we can prepare for Functest and Yardstick at one go. Similar things are required to be prepared for running Functest and Yardstick such as - installed packages - external network creation - creation of run-functest.sh and run-yardstick scripts from templates - preparation of environment variables This change will fail verification until the changes below is submitted. https://gerrit.opnfv.org/gerrit/#/c/61645/ Change-Id: Id1020d3e61abd3f087863c06a132c5021339d655 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-03Merge "Revert "xci: osa: Disable haproxy ssl configuration""Markos Chandras8-64/+8
2018-09-03Revert "xci: osa: Disable haproxy ssl configuration"Markos Chandras8-64/+8
This reverts commit 42501f0ef7e0f0729b1c780102fb9713ef383fb3. This also removes the entire SSL management code and we let the haproxy_server role generate the certificates for us. We also need to bump the openrc role to include an upstream patch which fixes the openrc template file. deploy-scenario:os-nosdn-nofeature installer-type:osa Change-Id: I9bb590c9f1d5bc63519cfb4794dc15f794cc5b07 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-31xci: Bump Bifrost components to the HEAD of Rocky releaseMarkos Chandras2-12/+12
The bifrost and ironic SHAs are from the Stein release which is still in early days of development. We should use Rocky SHAs for the time being. However, bifrost from Rocky does not support Ansible > 2.4 so we have to use bifrost from master branch but all the ironic components have to be from the Rocky release. Change-Id: I1acb28e4a292c774d681519517be19a2da230851 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-08-31Merge "Download only necessary images for functest-smoke"Fatih Degirmenci1-2/+9
2018-08-31Merge "xci: roles: create-vm-nodes: Always provision VM nodes"Markos Chandras3-23/+18