summaryrefslogtreecommitdiffstats
path: root/apex
AgeCommit message (Collapse)AuthorFilesLines
2017-10-19Fix interface role mapping config for odl-fdio scenariosFeng Pan2-22/+48
This patch fixes a bug in deploy config function that will make performance parameters overwrite interface role mapping config for honeycomb. apex-os-net-config: Ifa3b18aa6370c79ad6ad3ce983f1648ff0d1d79d Change-Id: Icdb7603577bc7edf1959238ddd3d686c310544ce Signed-off-by: Feng Pan <fpan@redhat.com> (cherry picked from commit da99ee8cf99824a7ee5ff19544d3eec4788edd68)
2017-10-12Adding apex/overcloud/* unittestsDan Radez4-10/+493
Change-Id: I02cd512ba1ddaee2538bee7739e27b136112a0c6 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit d158a48f4f10e9abb1403b1178b8c2f31b36e992)
2017-10-12Merge "Updates to Inventory object" into stable/euphratesDan Radez3-61/+52
2017-10-11Updates to Inventory objectDan Radez3-61/+52
- moved get_node_counts over from overcloud/deploy.py - added more test coverage Change-Id: I7774bebb99169aa1da0f07cb2cfc0c1d197af5ca Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit ca7b8665dce213c51ae1e15dceede7cc9fba97c1)
2017-10-11Increase ssh timeout and add retry for AnsibleTim Rozet1-1/+2
Several users have experienced random disconnections from the undercloud during deployment. This should help to stop deployments from aborting. Change-Id: Idb7619d493b329944f21ea6641f6826a8fcc3907 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 0fc3c2190ad304052d0ec210c94ab3f09e95b71d)
2017-10-10Increasing clean.py unittest coverageDan Radez1-45/+82
Change-Id: Iae3e80b399d1431382614449488238475b47b103 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit 88230c898808ecefffed413c36d3a558dcb7f763)
2017-10-06Pass flags to allow domain undefine with NVRAMDan Radez1-1/+1
Change-Id: I8365dd327d4bf7abebc72922e030b3049cd66de9 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit 30c7c9e4de1bbd4d4cdc6f0c775d52f80a3103fb)
2017-10-02nosdn-fdio scenarios fixesFeng Pan1-0/+6
- pin vpp/networking-vpp versions - Add external_network_bridge config back to puppet-neutron Change-Id: Ia58fb55638390757ea3350b2921897c4d315f9b5 Signed-off-by: Feng Pan <fpan@redhat.com>
2017-10-02Adding unittests for undercloud.pyDan Radez1-0/+196
Change-Id: I65d73f7a1ad27f319857a72b7d9f738b04318aa6 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit 11be8e73043eeaa9ec18508410ec28faecbccc08)
2017-09-30Adds Calipso scenarioTim Rozet2-1/+5
Change-Id: Icc8a23e49c9ccc011481f6b97599d4f75873ebb1 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 1a824cf106f1996f184a7f699c754a7b72c501be)
2017-09-30Fixes nova migrationTim Rozet1-4/+7
Nova migration was failing in rally sanity test. Looking at the keys nova is configured with, the newlines in the private key were being converted to spaces in hieradata, thus making the key invalid. This patch corrects the yaml so it is multiline data. Also, corrects the parameter being set to the right THT parameter and adds sshd service to the control/compute roles which is required for migration to work. JIRA: APEX-525 Change-Id: Ic57db5c0b27df2e1f584f3c1a379e067291d892d Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 8a8cb8e901db314fa59ed5275040b9e49b36663c)
2017-09-29re-enable support for fdio dvr scenarioFeng Pan4-28/+79
- Update FDIO scenarios to use master branch images - Update VPP/HC version to master for all fdio scenarios apex-os-net-config: Ie6aee86eaccad5fc98820a28f10adc7475cc5e33 apex-tripleo-heat-templates: Ie8b284f64bd6491c389129d8afdaeae8a399b607 apex-puppet-tripleo: I9954240529278e74d93fdf89d2ebc2536249245a Change-Id: I31740f97052947b5e4688cca47320bc49a902d7c Signed-off-by: Feng Pan <fpan@redhat.com> (cherry picked from commit a3c2c8c746470c993d70d92d13415e2b4263cc25)
2017-09-29Merge "Adding python unittests for apex/virtual/*" into stable/euphratesTim Rozet6-7/+210
2017-09-28Adding python unittests for apex/virtual/*Dan Radez6-7/+210
Change-Id: I13dd395cd6270cbf0a02855b1d29794ecca06d76 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit 9d24ddc56a76175a4b7514cea5c789e2612b2528)
2017-09-28Fix RT KVM scenarioFeng Pan1-12/+10
Also change first-boot.yaml to handle updated kernel for rt kvm Change-Id: I66b7159731dd286c4a97ba4f3583e229afbb73b3 Signed-off-by: Feng Pan <fpan@redhat.com> (cherry picked from commit 68095d704d1aea94f5890f54eefa13929aab737c)
2017-09-26Fix ovs-dpdk failuresFeng Pan1-8/+6
- Add quotes to ovs config options in opnfv-environment.yaml - Fixed an error where we don't populate kernel paramaters when ovs-dpdk is enabled Change-Id: I7579358411a844e9d0c34ca53701f12f46ef7c13 Signed-off-by: Feng Pan <fpan@redhat.com> (cherry picked from commit f1c462054fe302ab6cbf170ab71c0c8edfba680a)
2017-09-25Adding unittests for buildDan Radez5-4/+484
- covers build.py - covers build_utils.py - moved build_utils out of build module, it wasn't possible to import build.py while build_utils was in a module Change-Id: I42f08a475d9ca219a62c421d4bdd2d1d3c49691a Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit c876e9d261a7c3189cc8374c995014309c5b9881)
2017-09-24Merge "Adds detection for virsh default network IP" into stable/euphratesTim Rozet1-2/+25
2017-09-23Fixes clone fork change URLTim Rozet1-1/+6
Downloading the change information was failing for branches other than master. This fixes the URL format to work for branches. Change-Id: I5ec0494aca93437266237ee63b292a6aa5a43f0e Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-22Removing duplicate lib path in ansible_pathDan Radez1-8/+5
- deploy line 283 lib is joined with ANSIBLE_PATH then line 285, 347, 418 and 435 it was joined again with ansible_path from 283 already containing lib Change-Id: I6612967d626eeb0668eb43294831447c387f8e93 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit fae35267b18d246350ace0e38c41c307bec73894)
2017-09-22Adds detection for virsh default network IPTim Rozet1-2/+25
In case a user already has a default virsh network and the default IP is not 192.168.122.1, this patch will allow detecting and using the found value. Change-Id: Id5d46a820d89e86c9b5897f5d29b83ed32f9d6f9 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 57c0f8adbb5dabe9ddd66b049b543c596fa0f068)
2017-09-22Fixes removing inventory keysTim Rozet5-27/+66
Inventory keys that we want to delete were not being removed for instackenv.json. Also fixes unit tests. Change-Id: I7d6c752342db050d651953633f18e236f60334e3 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 17d5b541e93f5d88ff958372cdf0b0b184bdbc27)
2017-09-21Improves clean to cleanup virsh nets and and other bridgesTim Rozet2-5/+37
Currently only the admin and external bridges will be removed from the jumphost which is only really clean for a baremetal deployment. Virtual deployments will leave br-tenant, br-api, br-storage. This patch removes those as well as deletes all Apex virsh networks from libvirt. Also checks if authorized_keys exists before trying to edit it. Change-Id: I1affe2733ba1dc38fd3b91fb14398454137f00a4 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 02dc854a504569da15b0e41353a9f456e02599ad)
2017-09-21Set aarch64 deploys to UEFIDan Radez2-3/+6
Change-Id: I6b037ccd38fa68e5f863566a1c9a3ed4399bab84 Signed-off-by: Dan Radez <dradez@redhat.com> (cherry picked from commit da94c0191c910a1c2c796abfbe6b380fc341ef84)
2017-09-20Minor fixes to cleanTim Rozet2-1/+3
Also adds hidden files (like IDE configs) to gitignore Change-Id: Ief595c41c5b4f0fe058f7b774f7a2aefdab733a4 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 024eb9f773d716e041f064c669690e0e2a727877)
2017-09-20Fixes wrong argument for inventory with cleanTim Rozet1-1/+1
Change-Id: I3ff145fa0f500182744fd310bb844e4bc5854663 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 54b8b2a51e4156d42005158f003fb307b32e45c1)
2017-09-19Fix broken jumphost detach method when orig file existsTim Rozet2-4/+26
In the case where the backup ifcfg file exists (.orig) the functionality to detach the interface from ovs was broken. This fixes it and adds unit test case to cover that scenario. Change-Id: If6d8ca0ba5cf80df71bb82f52e9d204435374479 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 74336aa1ff8270e701c1e5f20c7a566715ed8d92)
2017-09-13Merge "Migrates clean to python"Feng Pan12-69/+706
2017-09-13Migrates clean to pythonTim Rozet12-69/+706
ci/clean.sh will be removed in a future patch after releng is updated to use python. JIRA: APEX-509 JIRA: APEX-319 Change-Id: If890db2fc5a31833ad28ec6f04589e25457bd380 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-12Merge "Updates SFC to use nitrogen"Feng Pan2-3/+6
2017-09-11Show ansible tasks as they completeDan Radez3-11/+45
Change-Id: I1b68d70fd97076a7f2ca68091a6e94d87b72efa2 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-11Updates SFC to use nitrogenTim Rozet2-3/+6
Also fixes issue where openvswitch NSH rpm was not getting installed because we needed to downgrade now that default OVS is 2.7 and NSH OVS is 2.6.1 Change-Id: I1b639ca80214032e93aacb3332e9588d49e74127 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-08Restarts libvirtd after stopping firewalldTim Rozet1-2/+5
When stopping firewalld, libvirtd needs to be restarted in order for libvirt to use/populate iptables with the NAT rules for the default virsh network. JIRA: APEX-510 Change-Id: Ia5b4515fd961baa70de58814e9eae4b397db28a7 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-08Adjustments to tmp dir handlingDan Radez1-2/+3
- prefixing with apex_tmp - removing overcloud qcow on failure JIRA: APEX-513 Change-Id: I766df10c294c31622917bbd5b0597e3373716d8b Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-08Merge "Conditionalize VM console arg based on arch"Tim Rozet1-1/+3
2017-09-07Merge "More cleanup for ci directory"Feng Pan4-26/+0
2017-09-07More cleanup for ci directoryTim Rozet4-26/+0
Changes Include: - Moves dev_dep_check.sh to contrib dir as it is not used by our CI - Removes test.sh as it is not used by CI. tox can be invoked directly for developers. - Removes run_smoke_tests.sh which is not used anymore Change-Id: I59e39be0ce8b23234c70bf066aebf894b6d73388 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-07Output ansible's output to info logDan Radez1-3/+3
Change-Id: I27ad54785716677a885ae954a2af6dbaf8610ff1 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-07Merge "Enabling the aarch check for deployment"Dan Radez3-4/+7
2017-09-07Merge "Adds parser tests and cleanup"Feng Pan11-68/+167
2017-09-06Conditionalize VM console arg based on archDan Radez1-1/+4
Change-Id: Ide9159e5ba7d5388c7bf62bf865b0015422e9159 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-06Enabling the aarch check for deploymentDan Radez3-4/+7
Change-Id: Ic5f1fc8a61f74f7aa6b2fabf67169c601a603367 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-09-06Adds parser tests and cleanupTim Rozet11-68/+167
Adds unit testing for the common/parsers library and cleans up some of the test files syntax. Change-Id: I7ff9d7ba20b028fba410af900a0c3107a5806d8f Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-06Remove deploy.sh and referencesTim Rozet2-8/+0
Deploy is now pip/rpm installed as opnfv-deploy in /bin. Alternatively the deploy.py script can be invoked via python. The legacy deploy.sh was only being used for CI, which has now been updated to remove the need for the Apex repo containing ci/deploy.sh. Change-Id: I1fb93bd9de23a97a09bedb8ac014ef81955875f2 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-06Removes build.shTim Rozet1-7/+18
We now have build.py which handles all the building and build.sh was just a wrapper to include ansible playbook. Now that we have built in apex libs to run ansible there is no reason to keep build.sh anymore. Also simplifies the logic to determine apex root by using the git properties. Change-Id: I00d2e5c7c198e549d21936bb1e9b562ba93d3010 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-01Merge "Adds Undercloud retry and log fetch"Feng Pan1-3/+15
2017-08-31Adds Undercloud retry and log fetchTim Rozet1-3/+15
Retry to install the undercloud if it fails due to sometimes failing. Also copy undercloud log over to host temp dir. Change-Id: I50f98c4f0d52fa6bb56d9dcd0766bbe745160452 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-08-31Fix deployment errors for odl-fdio scenariosFeng Pan2-3/+3
- Changed NIC template generation to only configure VPP interface for external network on compute nodes - Fixed overcloud deploy environment file error when deploying odl-fdio Change-Id: I4fb07073b0dffc35ef09a5e32deb8470f5ee8347 Signed-off-by: Feng Pan <fpan@redhat.com>
2017-08-30Merge "Fix nosdn-fdio deployment errors"Tim Rozet1-46/+41
2017-08-30Fix nosdn-fdio deployment errorsFeng Pan1-46/+41
Also fixes kernel parameter configuration issue for fdio and ovs-dpdk scenarios Change-Id: I84162eb07d1427f62ac3c84fd32e78af0e3b8456 Signed-off-by: Feng Pan <fpan@redhat.com>