summaryrefslogtreecommitdiffstats
path: root/jjb/fuel/fuel-deploy.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-10-31Merge "[fuel] Handle CI DEBUG mode"Aric Gardner1-0/+3
2018-10-31[fuel] Handle CI DEBUG modeMichael Polenchuk1-0/+3
Change-Id: Id169e19cd465d264525bfde843e7764d4f4d5d16 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2018-10-25[fuel] Define Docker tag for stable branchesMichael Polenchuk1-0/+3
Change-Id: Ic3c99eee282641eb15880fe18578cbee534308e5 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2018-09-26[fuel] build, deploy: Run as regular userAlexandru Avadanii1-5/+1
Change-Id: I70f8e7c9372e22e6f3e357b48a0a49f44a4d9078 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-09-22[fuel] verify: Rework condition for using sudoAlexandru Avadanii1-15/+8
With the rework of Fuel & Armband repos, the condition for using sudo got mixed up and alternated between on/off for armband's deploy/verify jobs. Rewrite it based on lab allocation instead of project. Change-Id: I428c585142017b170233858ec3160fdaf998db0c Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-09-21[fuel] verify: Add baremetal testing on requestAlexandru Avadanii1-2/+5
Duplicate fuel-verify jobs based on cluster type (virtual, baremetal) and allow (re)checking changes using a specific scenario: - ALL changes will trigger a virtual POD CI cycle (build, deploy, smoke) on submit, rebase etc., just like they used to; - change comments containing a substring formatted like: * `recheck: os-odl-nofeature-ha` * `reverify: os-odl-nofeature-noha` * `recheck` will trigger only virtual or baremetal deployments of the required scenario (default os-nosdn-nofeature-noha) on: * virtual PODs if scenario is NOHA; * baremetal PODs if scenario is HA; - limit arm64 verify job running on arm-virtual2 to the installation of infrastructure VMs and skip cluster setup to prevent POD time starvation; Limitations: - HA scenarios can only be verified on manual request via a change comment (e.g. 'recheck: os-odl-ovs-ha'); JIRA: FUEL-390 Change-Id: I6368cfd045180d6a7202b8d817b17a4b123ba2af Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-09-19[fuel] Retire Danube streamAlexandru Avadanii1-43/+4
- cleanup deploy tooling for old-style artifacts (ISO-based); - remove danube stream, related jobs and hacks required for them; Change-Id: Ib2486173df1ec83f2dbc08a5e9faf950bffb4b06 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-09-19[fuel] cleanup: remove unused job defs & scriptsAlexandru Avadanii1-1/+1
Change-Id: I64aae5719f1a0a667e56722bab9e5012a813571f Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-09-18Merge "[fuel] Accept arm clusters as valid deploy targets"Trevor Bramwell1-1/+1
2018-09-13Revert "fuel-deploy: Add temporary iptables rule"Michael Polenchuk1-9/+0
This reverts commit b4a65c5e6777a53be5ea817c967caeee51285a7f. Chain of DOCKER-ISOLATION already has required rule. Change-Id: Ic7d3e93a2814a42764b4822ef96e0841f68b774d Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2018-09-12[fuel] Accept arm clusters as valid deploy targetsAlexandru Avadanii1-1/+1
JIRA: ARMBAND-401 Change-Id: Icd32874ecb38c3f7469e71bd461794b65f50494c Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-06-29fuel-deploy: Add temporary iptables ruleAlexandru Avadanii1-0/+9
Functest Docker has issues connecting to Openstack clusters on Ericsson virtual PODs due to iptables rules interfering. Apply old iptables workaround from functest, at least until we rootcause and fix the issue on those virtual PODs. JIRA: FUNCTEST-985 Change-Id: I01b6788e5dd7a9fd64e80e3e78d7cd8828570cb1 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-05-23Auto: Setup Ci Jobs for Auto projectpava1-2/+2
We will try to reuse the job template for deploying from armband project. Change-Id: I76a783094ce5be1b4aa93585a6b90898d909ca13 Signed-off-by: pava <Paul.Vaduva@enea.com>
2018-01-29Merge "[fuel] Retire 'BRIDGE' slave param"Aric Gardner1-2/+2
2018-01-28[fuel] Retire 'virtual_kvm' overrideAlexandru Avadanii1-4/+0
Now that vPDF support landed in Pharos and Fuel repos, disable the 'virtual_kvm' generic override, so we can load POD-specific PDF/IDF. JIRA: FUEL-322 Change-Id: I0964220a25d6fe30afcbeb3ad1f020ae76d38e5a Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-01-26[fuel] Retire 'BRIDGE' slave paramAlexandru Avadanii1-2/+2
Only Danube still uses this param, newer branches rely on IDF. Going forward, the `-B` deploy arg will be deprecated in Fuel. Do not yet remove BRIDGE slave params from non-CI PODs, as other installers (or custom Danube jobs?) might still use them. Change-Id: I6d259299d1e13e8a5da732aca60b1f56b8472af6 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2018-01-24[fuel] deploy: Stop using securedlab for masterAlexandru Avadanii1-7/+11
Instead of cloning securedlab locally and passing it to Fuel deploy script, rely on Pharos git repo, embedded as a git submodule in Fuel. Keep old behavior (using securedlab) for stable/{danube,euphrates}. Depends-on: Ib04e4fb384568a6efd9e78a080857b663521ae88 Change-Id: Ie30879292ae04b641257760de69c900a9eb4ef84 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-10-08fuel-deploy: Only pass ISO arg for Danube branchAlexandru Avadanii1-10/+11
Post-Danube branches (master, stable/euphrates) do not use an ISO argument, so stop passing it. While at it, fix some minor coding style and a wrong scenario default. Change-Id: I1878f80e685efc2da07dedd1d2c05c51933da2ec Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-10-05fuel-deploy.sh: Drop local_env mechanismAlexandru Avadanii1-7/+0
Now that Fuel supports reading bridge names from IDF / determine them based on IP address matching to PDF network, we can drop the mechanism for sourcing "local_env". Change-Id: Ib9fe0ddb2b54b9c5c037a3451cf049323ae7a864 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-09-21fuel-deploy.sh: Fix unbound variable for stable/EAlexandru Avadanii1-1/+1
Change-Id: I5a8f02944e346319d6c5d4fca10ddc54503e82d7 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-09-16fuel-deploy.sh: mv lab-config repo to TMPDIRAlexandru Avadanii1-3/+5
Change-Id: Id942f7d2e6e1bbbdb9b15a7c6951ca2f0ba437db Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
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>