summaryrefslogtreecommitdiffstats
path: root/ci
AgeCommit message (Collapse)AuthorFilesLines
2018-08-08Correct the img location in kolla build jobAlex Yang1-0/+1
Change-Id: Id1e2d7d3ddfbc330b623a8ee7cfc8400ceb0e4ca Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2018-04-03re-point to upstream stable/queensZhijiang Hu1-1/+1
Change-Id: Iee938b95b15a2780f04c118f0bf42e1aeb5cc9ec Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2018-04-01kolla-build-vm.sh is ready for QueensZhijiang Hu3-27/+129
This PS does: 1. Set default build target to stable/queens, but still fix to pike for OPNFV master branch, please see line:83 2. Create mappings between branch name and version number in code, since upstream kolla does not do it automatically using git tag for us start from Queens relese. Therefore, we do not need to let the user to define the version code and then check it with git tag command return value any more. So -t argument is deleted. 3. Support building Queens images. 4. Arrange patches in sub-directories name by version code so that user can use this one script to patch and build any version they want. But for OPNFV Jenkins, only the version for the current branch can be built according to the -j argument. 5. Upgrade DPDK version from 16.11 to 17.02. 6. Call cleanup_registry_server before pack_registry_data, this is resonable for keeping registry data stable. Change-Id: Ic5a7e2da261d456a2a1481ad0e765a7ce28b8121 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2018-03-30Fix to upstream stable/pike branchZhijiang Hu1-8/+1
To satisfy security check, DAISYCORE_REPO and DAISYCORE_TAG are deleted. Change-Id: Ib3cf4c50a417f28502c4e3115f47429065620ca1 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2018-01-24Sync kolla patchesZhijiang Hu1-3/+101
Change-Id: I1f13f72d4e75fa7414c571e6db080d0f08f47a96 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2018-01-19Merge "Add extra parameter to integrate with doctor"Zhijiang Hu1-2/+7
2018-01-19Merge "support dpdk"Zhijiang Hu1-1/+2
2018-01-18Merge "no need to separate dpdk from network.yaml.j2"Alex Yang1-5/+1
2018-01-16Create pod's dir if it didn't existAlex Yang1-0/+2
Change-Id: I0c284ef830caa2eb0f52efbee0b23d9a70449efe Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2018-01-16support dpdk001845321-1/+2
Change-Id: I30970093bab418d679d3a3396d16aaff257272f4 Signed-off-by: 00184532 <lu.yao135@zte.com.cn>
2018-01-16Add extra parameter to integrate with doctorzhouya1-2/+7
Need to change some parameter of ceilometer to run doctor. In order not to influence other scenario, add an extra '-d' argument for doctor test only to change event_pipelint.yaml template file in kolla-ansible code. Change-Id: Ia5536658b2a2698bc1384e255328d4d719cc566c Signed-off-by: zhouya <zhou.ya@zte.com.cn>
2018-01-10Fix the indentation when generating mac addressesAlex Yang1-4/+4
The indentations in deploy.yml of virtual pods were modified when the files were moved from securedlab to pharos. Change-Id: I94bcbc155b0eebb03c48939c9902b313fb5ffd2b Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2018-01-09Merge "Add upstream patches"Zhijiang Hu2-9/+95
2018-01-08no need to separate dpdk from network.yaml.j2001845321-5/+1
Change-Id: I1e2f89f0c6ad1d292a2788910755df17802b3683 Signed-off-by: 00184532 <lu.yao135@zte.com.cn>
2018-01-05Add upstream patchesZhijiang Hu2-9/+95
When we building kolla images in OPNFV jenkins job, we need to clone code directly from openstack/kolla project and patch it with necessary patches needed by OPNFV. This is the first patch focus on ODL and DPDK integration. To use it, please clone openstack/kolla's stable/pike branch first then apply patch by using git apply command. This PS also solved git clone risk found by Anteater by deleting url variable in git clone command. Change-Id: I9d02f0d4919b53fb33233399ed4efd57d27b21a1 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2018-01-05Merge "Get configurations from pharos instead securedlab"Zhijiang Hu1-5/+19
2018-01-04Fix tmp dir security risks in image build codeZhijiang Hu2-8/+14
Change-Id: I2b909101ead10e26d2ec00a0ba3eb4ca63dc226a Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2018-01-04Change owner of build outputZhijiang Hu1-3/+4
In order to let jenkins to wiping out workspace, the owner of the built artifacts should be jenkins:jenkins Change-Id: If0a6f367460ee50fe947e75a800e9e0044f3626e Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2018-01-03Get configurations from pharos instead securedlabAlex Yang1-5/+19
Securedlab will be retired. So we should get configurations from pharos. See [1] [1]: https://gerrit.opnfv.org/gerrit/#/c/49161/ Change-Id: I42684a7c00ad96b1e7d0496724f0d820ffc27674 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-12-22Generate .ssh/known_hosts when making VM imageAlex Yang1-5/+0
Change-Id: I3f72239d6c4db27f67d5586c45e46ed01fad281d Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-11-16ceilometer needs gnocchi from pikeZhijiang Hu1-1/+1
Change-Id: I793a31e42eb5dd9f9af34489c599624b8c83e11a Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-11-13Exit if kolla image build failedZhijiang Hu1-10/+5
Previously, image build failure was ignored since the failure is caused by images that we do not need. Then, we only build what we really need. So now, image build failure should not be ginored any more. This PS also do clean up task after failure occured, althrough this is not really necessary when running in a temporary VM. But it is helpful when running manually. Change-Id: Ica8771e80bc313795598e18dc0175177ccb6c11a Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-11-02Increase retries and decrease threads to make build more stableZhijiang Hu1-1/+3
Change-Id: Idb8d4f64a1799cfdf80401e4dc5b3f24caa7a04b Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-10-30Support build OVS+DPDK imagesZhijiang Hu1-2/+32
Change-Id: Ife79062ff702ba281777f3741a56ac188e98ebec Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-10-27Build kolla image in VMZhijiang Hu2-251/+423
This PS: 1. Build kolla image in VM 2. Use sha512sum to check kolla image 3. Delete suffix dot when there is no ext_tag Change-Id: I94d99e3ff69c47cc247051fae812bfdb29ff0246 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-10-26Support work dir and jobname parameterZhijiang Hu1-4/+29
Change-Id: I6ce45197e01d278a41b9472d0bb92f037ab7d0c6 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-10-12Add -allow-limited-size to mkisofsZhijiang Hu1-1/+1
Otherwise, we encountered: File target/el7/noarch/opnfv-2017-10-11_09-58-21.bin is larger than 4GiB-1. -allow-limited-size was not specified. There is no way do represent this file size. Aborting. Change-Id: Ied43c9e0c0e635ff52740c18b3b3001a4e6a3604 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-10-08Create iso file during buildZhijiang Hu1-0/+1
Change-Id: I6ddfe8e291ea8f6d673bd82c4df310d63f61a130 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-09-29Exit deploy when exception occurredAlex Yang1-0/+8
Exception occurred in [1]. But te deployment didn't stop and blocked for a long time. [1] https://build.opnfv.org/ci/job/daisy-deploy-baremetal-daily-master/169/ Change-Id: I0d5639da1e0d011855df0b0651328f11168e5d01 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-09-26Switch to upstream daisy's master branchZhijiang Hu1-1/+1
Change-Id: I7a88d8b65168356420aee2042ac3902834633477 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-09-26securelab parameter bug fixZhijiang Hu1-22/+27
This is a bug fix of 02e1f1c8ab3f3857ca2370f98575ccbf41f12a01 Change-Id: I628c5e33a76bc28e0af139e338b29a7393700525 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-09-25Merge "Use pxe bridge to replace the bridge in VM template"Zhijiang Hu1-0/+10
2017-09-25Merge "Support passing securelab dir as a optional param"Zhijiang Hu1-4/+10
2017-09-24Support passing securelab dir as a optional paramZhijiang Hu1-4/+10
Change-Id: I5caadb42b3890858e7642a5fd260392370dbbfc8 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-09-21Use pxe bridge to replace the bridge in VM templateAlex Yang1-0/+10
1. Eliminate hard code about pxe bridge 2. Replace the bridge in daisy VM template with the pxe bridge provided by jenkins Change-Id: I7a8463181847417d10705ce9ff4db6e68d505c6d Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-09-16Use virsh reset instead of rebootAlex Yang1-2/+2
Sometimes the VMs do not reboot when using "virsh reboot". The virtual depoyment CI jobs failed recently. Change-Id: Id8b3ef638a7ba8f584c6e4c03d11e77d2919a35b Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-09-12Eliminate hard code about ipmi info in bash scriptAlex Yang1-4/+26
Change-Id: I642d130566137dff727b7227658afe6ace9473d6 Signed-off-by: Alex Yang <yangyang1@zte.com.cn> (cherry picked from commit 94d3957c5aba2db70d06929ac9538280a71c6641)
2017-09-12Eliminate hard code about ipmi info in bash scriptAlex Yang1-4/+26
Change-Id: I642d130566137dff727b7227658afe6ace9473d6 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-09-10get_mac_addresses_for_virtual() suppors all-in-one envZhijiang Hu1-6/+16
Change-Id: I6514292b16c784ced0dcb82d639fe10b425d63e2 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-08-30Support build with extent tagZhijiang Hu1-21/+61
Kolla offcial image tag is, for example, 4.0.2. Daisy images can be names as 4.0.2.n And Kolla supports upgrading not only from 4.0.2 to 4.0.3, but also from 4.0.2 to 4.0.2.n. It is a convenient way for Daisy to publish its own small changes into images for upgrading. Change-Id: I9d283e1ffa452ac3e04046ab6c96d018d42e0bf9 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-08-28Introduce deployment error recovery levelZhijiang Hu1-6/+12
Change-Id: I023a637e793bae845feabed0d7b80072d3f9f0b7 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-08-26deploy.sh refactoryZhijiang Hu1-43/+101
This can be seen as a code clean up before we implementing running deploy.sh without recreate daisy vm and networks. Change-Id: I9bb67fdc7220cc70e2e876cc05750c22630d5ac8 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-08-16Fix an error in sed statementAlex Yang1-1/+2
JIRA: DAISY-42 Change-Id: I0fd709bb0dbee42cdc73076773cb635be6ba02cd Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-08-09Merge "Use PDF(POD descriptor file) and correct the mapping of nodes and roles"Zhijiang Hu1-0/+34
2017-08-04Merge "Support os-odl-nofeature-* as new scenarios"Alex Yang1-1/+2
2017-08-04Support os-odl-nofeature-* as new scenariosZhijiang Hu1-1/+2
Rename all scenarios with "odl_l3" in their name in Euphrates to just "odl". Daisy will keep "odl_l3" and "odl_l2" (in code, not for user) for further reference. Change-Id: Ib762dd808d4f9467b0e6827b8bbed6d9df7e0e0e Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-08-03Use PDF(POD descriptor file) and correct the mapping of nodes and rolesAlex Yang1-0/+34
JIRA: DAISY-42 JIRA: DAISY-56 In bare metal deployment, we can use PDF to get MAC addresses of nodes https://gerrit.opnfv.org/gerrit/#/c/38387/. Then we can use the MACs to help to distinguish the discovered nodes and assign roles to them, like virtual deployment in the link https://gerrit.opnfv.org/gerrit/#/c/38381/. Change-Id: Ib0f1a60b8935f528a828f716ccc916b767cfa6f9 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-08-03Merge "Eliminate error logs in virtual deployment"Zhijiang Hu1-13/+19
2017-08-02Eliminate error logs in virtual deploymentAlex Yang1-13/+19
There are some error messages in virtual deployment, such as "Domain not found" or "network is already active". The script forgets to destroy the keep-alived network, and should not destroy a non-existent VM or network. Change-Id: I8d9dce9d70f732bd6942b293e407e1845d81fc39 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-08-02Merge "use template to replace duplicate xml file"Zhijiang Hu1-1/+8