summaryrefslogtreecommitdiffstats
path: root/jjb/fuel/fuel-deploy.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-09-08fuel-deploy.sh: Add missing quotes in 'sudo -E'Alexandru Avadanii1-1/+1
Previous commit extended the SUDO variable to include '-E', but failed to properly quote the full `sudo -E` string, resulting in "command not found" errors. Change-Id: I266aa5259f09c3605e1c5a7ad165397ce83be0bb Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-09-07fuel-deploy.sh: Preserve env vars in sudo callAlexandru Avadanii1-1/+1
SSH_KEY and other env vars set by Jenkins should be preserved when using sudo to invoke the Fuel deploy script. JIRA: FUEL-280 Change-Id: I495589a4a0519b3a5052cd5e5dc3122f9e49c215 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-09-05fuel, armband: verify jobs: Enable virtual deployAlexandru Avadanii1-5/+5
Enable virtual deploy phase for verify multijob for both projects. Since fuel-defaults already define SSH_KEY param, drop it from individual jobs. Fuel: - drop merge jobs, which used to perform virtual deploys based on ISO created during verify job; - cleanup fuel-download-artifact (rm support for merge/verify); Armband: - while at it, remove "opnfv-build-enea-defaults", preparing for arm-build2's retirement. JIRA: FUEL-278 JIRA: FUEL-287 Change-Id: I354d72d88187e41070f44c723ccc651a0bb9b021 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-09-02fuel, armband: Drop armband-deploy.shAlexandru Avadanii1-13/+21
Since armband-deploy.sh is merely a clone of fuel-deploy.sh, which we recently synced, drop armband-deploy.sh in favor of an universal fuel-deploy.sh, which will handle deploys for both projects. Change-Id: I653b4e67d9246951a284671e0cf559394661a1ad Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-09-02fuel, armband: Sync deploy scripts, cleanupAlexandru Avadanii1-49/+59
Run shellcheck on touched files, fix minor warnings. Prepare for upcoming changes: - ISO artifact will be obsoleted (later); - Fuel and Armband should use the same deploy script; Fuel: - rename securedlab local copy to lab-config; Armband: - drop deploy cache, Danube jobs can work without it, master/next jobs no longer use it; - move TMPDIR to $HOME (was in $WORKSPACE), so it's persistent; Change-Id: I9f8c47f9ca50de3c53c62ca6a08df0cc3a73abd3 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-08-17fuel-deploy.sh: source local_env from securedlabAlexandru Avadanii1-2/+9
While at it, revert BRIDGE default value to "pxebr" after recent Fuel rework was merged in [1]. This mechanism will be leveraged by [2]. Partially reverts commit: 68195fd [1] https://gerrit.opnfv.org/gerrit/#/c/38855/ [2] https://gerrit.opnfv.org/gerrit/#/c/39521/ Change-Id: Ic61487384029a7d16547a5035a1f1b34ecbea8d4 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-08-01fuel, armband: Drop "-H" arg, fix bridge defaultAlexandru Avadanii1-1/+1
MCP does not have a self-test healtcheck suite, similar to old Fuel, so we dropped the "-H" deploy argument (which used to disable healtcheck autorun). Adjust deploy command to reflect this installer change. While at it, fix leftover "pxebr" default installer parameter, which we missed in the previous commit where we changed the default only in releng deploy scripts. Change-Id: I55e1f5cad17687bdf304fbf04d67366dd32ed42a Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-08-01fuel, armband: Temporarily remove pxebr deploy argAlexandru Avadanii1-1/+1
Fuel and implicitly Armband switched to a newer format for parsing the "-B" deploy arg, used to pass bridge(s) information. For now, we will default to ",,,", which is equivalent to not setting any default value for any of the 4 possible bridges. NOTE: Armband overrides this on a per-pod basis, since bridge information is POD specific in our lab. Change-Id: I3635b0eb6f8233cf99022a97d5642f2e49197e3b Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-06-16[fuel] Disable iso download for master branchMichael Polenchuk1-5/+7
Change-Id: I142961d06b312cc5f43a18f25410236fa67cbcb1 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2017-05-30[fuel] Turn off upload action & checkoutMichael Polenchuk1-1/+1
* turn off non-existent artifacts upload * use latest commit in master since there is no iso/image for mcp based deployments yet Change-Id: Ib92680ef9838fc2e11d61c806dfd9728514c364e Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2017-03-02functest: Create functest-weekly prototype jobsFatih Degirmenci1-1/+1
Fuel weekly jobs are created, calling fuel-deploy and functest weekly jobs. Experimental scripts have also been removed. Change-Id: If492443e26248731df35e6b6cb5239fb2ae9a86a Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2017-02-01merge GIT_BRANCH and GERRIT_BRANCH into BRANCHRyota MIBU1-2/+2
GIT_BRANCH parameter is different; master or stable/danube in daily jobs, but 'refs/changes/57/27657/6' in verify jobs. This breaks some job builders triggered by the both types of jobs. We have GERRIT_BRANCH parameter for verify jobs to identify stream and expected branch into the patch will be merged after it got +2 and submitted. To avoid further confusion and to have common job builders for daily and verify jobs, this patch introduce BRANCH parameter. GERRIT_BRANCH is now deprecated. Change-Id: Ibcd42c1cd8a0be0f330878b21d3011f1ec97043b Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-10-12fuel, armband: build, deploy: export TERM="vt220"Alexandru Avadanii1-0/+2
Since we do not actually parse our build/deploy logs for color chars, set the terminal to "vt220". This will silence quite a few of colorization special identifiers, but NOT all of them (e.g. `tput sgr0` still prints a sequence). For Fuel@OPNFV build process, we also need to workaround docker terminal settings not being passed down when using a tty (see [1]), which will be fixed in Docker 1.13+. This fix is handled in [2]. [1] https://github.com/docker/docker/issues/9299 [2] https://gerrit.opnfv.org/gerrit/#/c/22883/ Change-Id: I5f0c6eae33349ef81b67dd17e6df4e0af6274fab Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-10-04Use fuel tacker pluginMichal Skalski1-53/+0
Require: https://gerrit.opnfv.org/gerrit/#/c/22643/ JIRA: FUEL-205 Change-Id: I0f2969bc3d944e21d416c1c1c729105a0084a4c1 Signed-off-by: Michal Skalski <mskalski@mirantis.com>
2016-09-08Fix tacker installationMichal Skalski1-4/+7
Sometimes commands are exeucuted before last one was finished, for example here: https://build.opnfv.org/ci/job/fuel-deploy-virtual-daily-colorado/117/console Try set custom prompt to eliminate false matching and add additional sleep after git package installation. Change-Id: I0fd1b5410c7870ff2a074e050069efc3b61b0d79 Signed-off-by: Michal Skalski <mskalski@mirantis.com>
2016-09-01Install tacker on controller nodeMichal Skalski1-3/+1
In no-ha scenarios opendaylight role may not be collocated with controller Change-Id: Ic2040924949e7a0286ffeba795ea102face9bc0f Signed-off-by: Michal Skalski <mskalski@mirantis.com>
2016-08-09Add BRIDGE parameter when deploy FuelJulien1-1/+1
Currently BRIDGE is hardcode with 'pxebr'. If the lab uses another bridge name, it can be use supported in releng. This parameter is supported in Fuel project already. JIRA: RELENG-134 Change-Id: Ie1df46a247eaebb1814506d555f73d03a1e5566e Signed-off-by: Julien-zte <zhang.jun3g@zte.com.cn>
2016-07-19fuel: Fix the log argumentFatih Degirmenci1-1/+1
Change-Id: Iae50079427b9fb264b22ba19919cb66029a085fa Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-07-18fuel: Upload deployment logs to artifacts.opnfv.orgFatih Degirmenci1-4/+25
Change-Id: I99bb2f621c49e50d169d4d51d0811a4531988188 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-05-21Rename LF Jenkins slaves and update impacted jobsFatih Degirmenci1-5/+0
Change-Id: If58c84e6f431db88eed3376e446479826da71502 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-05-18Add fuel deployment daily jenkins job on zte-pod1.wu.zhihui1-2/+2
1. add zte-pod1 info and related triggers in fuel-ci-jobs.yml. 2. add zte-pod1 info in fuel-deploy.sh JIRA: RELENG-88 Change-Id: Id1d922da7d16ee705b4dfbf98254e67db6d2ffe4 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-02-24fuel: Hardcode the fuel poc-tacker.sh script to checkout the patchFatih Degirmenci1-2/+8
This will be removed once the manual runs are done. Change-Id: I2cc40373a2a5a05e42dca23e253fecbe3e3b7786 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-02-19fuel: Fix sfc expect script to make it work on JenkinsFatih Degirmenci1-5/+11
Change-Id: I57e30a811d7cab062b52ce65cd2859ab50a1aa0a Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-02-18fuel: Fix pattern matching and node ip extraction for sfc scenarioFatih Degirmenci1-4/+5
Change-Id: Ib69806739462c74c616a5fad352bd8732d67e996 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-02-18fuel: Execute poc.tacker-up.sh script for sfc scenarioFatih Degirmenci1-2/+32
Change-Id: If9dcea92d17c1317e2ae8ee10c22957e4e6cf4cc Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-02-18fuel: Create job for os-odl_l2-sfc-ha scenarioFatih Degirmenci1-1/+11
The trigger times are configured as below due to addition of SFC scenario os-nosdn-nofeature-ha : 10:00, every day for both branches os-nosdn-ovs-ha : 15:00, every day for both branches os-odl_l2-bgpvpn-ha : 20:00, every day for both branches os-odl_l3-nofeature-ha : 06:00, every day for both branches os-odl_l2-nofeature-ha : 02:00, every 5th day for both branches os-onos-nofeature-ha : 14:00, every 5th day for both branches os-nosdn-kvm-ha (bm) : disabled os-nosdn-kvm-noha and os-odl_l2-sfc-ha triggers are currently disabled. Change-Id: Id0b945b85cf55d4d93b7146bb6f143c2adebb895 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-01-28Add license headerFatih Degirmenci1-0/+8
License headers are added. - Set company name based on the author who created the file first time - Add SPDX header for Apache 2.0 Change-Id: I8f357a2d6f75179171c681f4b53e0f4249eca5a2 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-01-20fuel: Clone securedlab repo using proper branchFatih Degirmenci1-2/+2
Change-Id: I975f7261cacf7367c8a4ca1bd7d7c107a0e2abdf Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-01-17fuel: Merge deployment scripts for daily and virtual deploymentsFatih Degirmenci1-8/+22
Change-Id: I84348614c2a03e7cca359e9f47d536d833328958 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-01-12fuel: Enable all available scenarios for brahmaputra branchFatih Degirmenci1-5/+33
This change - Enables all available scenarios for stable/brahmaputra branch on LF POD2 and Ericsson POD1. - Enables new node type, virtual, which is able to run available scenarios. - Adjusts build blocker for multijob projects. - Skips cloning of fuel repo for multijob projects. - Enables os_odl-l2_ha auto trigger for LF POD2, Ericsson POD1, and Ericsson POD2. - Enables the use of an already downloaded ISO if the ISO was previously downloaded to jumphost to speed up deployment. - Adds a generic job for fuel for easier CI development/troubleshooting which is kept disabled by default. - Removes SDN_CONTROLLER parameter. Change-Id: Icf26241216522b58db6908623a77405cdaac2ba2 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-01-12Fuel: Enable the jobs for newly added scenariosFatih Degirmenci1-1/+1
Change-Id: Id587f14e6b3bee67558b46b3ea0e262461fbef3e Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-01-11Fuel: Switch to new scenario/pod descriptions and enable 7 scenariosFatih Degirmenci1-1/+1
This change - enables 7 scenarios by creating jobs for them: os_ha, os_odl-l2_ha, os_odl-l3_ha, os_onos_ha, os_kvm_ha, os_ovs_ha, os_kvm_ovs_ha. - enables the use of new scenario descriptions - enables the use of new pod descriptions Please note that - all of the above is only valid for Ericsson POD2. - no triggers have been defined as of yet. Jobs will manually be triggered in the beginning for CI development purposes. Apart from this, new jjb file and shell script have been created temporarily in order not to break brahmaputra deployments. These files will be merged once the fuel changes are cherry-picked to brahmaputra branch. Change-Id: I86479bde24aaaab415ca669aa55d706ba06e7fe4 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-01-07Enable fuel nosdn scenario for master and stable/brahmaputraFatih Degirmenci1-13/+5
This patch proposes below changes: - Run CI on opnfv-jump-2 against stable/brahmaputra branch - Run CI on ericsson-pod2 against master branch - Configure functest against both branches on both PODs - Enable yardstick against both branches on both PODs - Comment out additional controllers until nosdn scenario is verified - Rename OPNFV_FEATURE to DEPLOY_SCENARIO Change-Id: Ie3d4f946cd51271378b435f9a92af07aaf614c26 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2015-12-22Set nocache for fuel artifacts on artifacts.opnfv.orgFatih Degirmenci1-2/+1
Change-Id: I41d19eadbe151e27146e8aa5e8a1b7f250865edb Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2015-12-21Add location of pod config files into slave-config & disable lab-reconfigFatih Degirmenci1-11/+11
Change-Id: I7e71a1bd3f909fac49c74ab0c8ef336a6b5fa711 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2015-12-21Fix the updated INSTALLER_TYPE variable in scriptsFatih Degirmenci1-1/+1
Change-Id: Ifa9a11dcf1ecd7e43b54a03f92f00c42c0cac41f Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2015-11-25Adjust fuel ci scripts/jenkins jobs for new directory structureFatih Degirmenci1-3/+3
Change-Id: I67e081215b89e0bbcc67f0abba9eb511c64299ae Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2015-11-20Fix the bug while setting OPNFV_ARTIFACT_VERSIONFatih Degirmenci1-2/+3
JIRA: RELENG-56 Change-Id: I98ec9be78b6858002edbd826be5fcca0281c05cb Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2015-10-05Fix genesis clone command for fuel-deploy-masterFatih Degirmenci1-2/+2
Change-Id: I98c28e0736e4099f95cda05963b0a9add659c3f0 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2015-10-05Enable fuel daily runs on POD2Fatih Degirmenci1-0/+49
Change-Id: Iad31f257d1198e9730ea0db68a18737009c00a95 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>