daisy.git
7 years agoUniform the variable definition makefile_path.sh 23/40823/1
zhongjun [Fri, 1 Sep 2017 08:42:29 +0000 (16:42 +0800)]
Uniform the variable definition makefile_path.sh

replace all the "${TOOLS_PATH}/setup/bin_temp" statement to
the variable $target_dir

Change-Id: I62b95f1780a7cd5e0c8c4e60a5b0661a2a9937bd
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
7 years agoMerge "Add some test case in test_post_execute.py"
Zhijiang Hu [Thu, 31 Aug 2017 13:03:09 +0000 (13:03 +0000)]
Merge "Add some test case in test_post_execute.py"

7 years agoMerge "change update doc"
Zhijiang Hu [Thu, 31 Aug 2017 12:59:56 +0000 (12:59 +0000)]
Merge "change update doc"

7 years agoMerge "Support build with extent tag"
Zhijiang Hu [Thu, 31 Aug 2017 12:58:55 +0000 (12:58 +0000)]
Merge "Support build with extent tag"

7 years agochange update doc 57/40757/1
Zhijiang Hu [Thu, 31 Aug 2017 12:55:28 +0000 (20:55 +0800)]
change update doc

Change-Id: I3593593d540bf0e74ae1642f3450d4945af8a334
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoSupport build with extent tag 71/40671/5
Zhijiang Hu [Wed, 30 Aug 2017 09:48:10 +0000 (05:48 -0400)]
Support build with extent tag

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>
7 years agoMerge "Refactor the parameters checking"
Zhijiang Hu [Wed, 30 Aug 2017 08:29:11 +0000 (08:29 +0000)]
Merge "Refactor the parameters checking"

7 years agoAdd some test case in test_post_execute.py 57/40657/4
zhongjun [Wed, 30 Aug 2017 06:30:26 +0000 (14:30 +0800)]
Add some test case in test_post_execute.py

1.add some test case in test_post_execute.py.
2.rename test_execute.py to test_prepare_execute.py and
add clearup handle in test function.

Change-Id: I1ed27ce6f0a5ba8bbd56544ae8d53e14f7daa9ea
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
7 years agoRefactor the parameters checking 55/40555/1
Alex Yang [Tue, 29 Aug 2017 05:54:19 +0000 (13:54 +0800)]
Refactor the parameters checking

Change-Id: I0acd39671ea8b7e574719acb96b8c5df93b66443
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agoAdd OpenStack reconfig and Upgrade docs 57/40357/3
Zhijiang Hu [Mon, 28 Aug 2017 11:45:17 +0000 (19:45 +0800)]
Add OpenStack reconfig and Upgrade docs

Change-Id: I971cc23d47b90cbf03b194d3e6918262b5e3f8a5
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoIntroduce deployment error recovery level 37/40337/8
Zhijiang Hu [Mon, 28 Aug 2017 03:37:49 +0000 (23:37 -0400)]
Introduce deployment error recovery level

Change-Id: I023a637e793bae845feabed0d7b80072d3f9f0b7
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agorevert build_pxe_for_discover function to build pxe server 03/40303/6
zhouya [Sat, 26 Aug 2017 06:50:59 +0000 (14:50 +0800)]
revert build_pxe_for_discover function to build pxe server

In case of deploy failed with deploy.sh file without reinstall
daisy node, we need to resetup DHCP in tempest.py script

Change-Id: Ia7b4de7933bf4957226a2bf0965858a555f0ed54
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
7 years agoMerge "deploy.sh refactory"
Zhijiang Hu [Sat, 26 Aug 2017 08:22:29 +0000 (08:22 +0000)]
Merge "deploy.sh refactory"

7 years agoMerge "Add the pytest files for post py files"
Zhijiang Hu [Sat, 26 Aug 2017 07:02:13 +0000 (07:02 +0000)]
Merge "Add the pytest files for post py files"

7 years agodeploy.sh refactory 91/40291/2
Zhijiang Hu [Sat, 26 Aug 2017 04:15:18 +0000 (00:15 -0400)]
deploy.sh refactory

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>
7 years agoAdd the pytest files for post py files 25/40225/5
zhongjun [Fri, 25 Aug 2017 09:06:58 +0000 (17:06 +0800)]
Add the pytest files for post py files

1.add the test_keystoneauth.py and test_post_execute.py
2.modify the test-requirements.txt to update the dependent
python package.

Change-Id: I0957c723bd82faa9060c7d5ae021d46feaed05ae
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
7 years agoUpdate all-in-one VM CPUs from 4 to 8 43/40043/1
Zhijiang Hu [Thu, 24 Aug 2017 02:56:05 +0000 (22:56 -0400)]
Update all-in-one VM CPUs from 4 to 8

By testing we found that all-in-one VM needs more CPUs, otherwise
, we encountered high probability failure during kolla deployment.

Change-Id: I4ee798c9427c61a696bc8ec33ba4bc72fafcebba
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoMerge "Add tools for testing FIP"
Zhijiang Hu [Mon, 21 Aug 2017 11:01:32 +0000 (11:01 +0000)]
Merge "Add tools for testing FIP"

7 years agoAdd tools for testing FIP 39/39739/1
Zhijiang Hu [Mon, 21 Aug 2017 11:03:49 +0000 (07:03 -0400)]
Add tools for testing FIP

After deployment, we can manually use this script to
simply test basic FIP connectivity.

Change-Id: Iccc3edd71ea4c3d38dbed09411093a96a9679ae7
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoMerge "delete the HEARTBEAT plane in all_in_one network"
Zhijiang Hu [Mon, 21 Aug 2017 11:01:11 +0000 (11:01 +0000)]
Merge "delete the HEARTBEAT plane in all_in_one network"

7 years agoMerge "Add doc for describing CI jobs"
Zhijiang Hu [Mon, 21 Aug 2017 09:32:43 +0000 (09:32 +0000)]
Merge "Add doc for describing CI jobs"

7 years agodelete the HEARTBEAT plane in all_in_one network 27/39727/2
zhouya [Mon, 21 Aug 2017 08:16:02 +0000 (16:16 +0800)]
delete the HEARTBEAT plane in all_in_one network

There is only one node in all-in-one env,so do not need to
configure the HEARTBEAT plane, without this ps,we may get the
globals.yml file an extra wrong value of
keepalived_interface: '{{ network_interface }}' which is unnecessary
for all-in-one env, and will result in keepalive not work, VIP lose,
and since we still use VIP in all-in-one env, the whole deployment may fail.

Change-Id: Ic1efabb533fd63e95254ad19ccf98adb5da6ae78
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
7 years agodetail deploy guide rst 05/39705/6
zhouya [Mon, 21 Aug 2017 03:27:20 +0000 (11:27 +0800)]
detail deploy guide rst

Change-Id: I0a3dddb1356a8f50f9d0a35d69c39b7a483b7a20
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
7 years agoAdd doc for describing CI jobs 01/39701/10
Zhijiang Hu [Mon, 21 Aug 2017 04:38:39 +0000 (00:38 -0400)]
Add doc for describing CI jobs

Change-Id: Ief4cdd41324bd1957b581937ad19f4779575c35a
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoMerge "Sync the kolla version with the upstream"
Zhijiang Hu [Fri, 18 Aug 2017 10:41:00 +0000 (10:41 +0000)]
Merge "Sync the kolla version with the upstream"

7 years agoMerge "Add pytest file for prepare/execute.py"
Zhijiang Hu [Fri, 18 Aug 2017 09:53:20 +0000 (09:53 +0000)]
Merge "Add pytest file for prepare/execute.py"

7 years agoSync the kolla version with the upstream 75/39575/1
Alex Yang [Fri, 18 Aug 2017 09:16:46 +0000 (17:16 +0800)]
Sync the kolla version with the upstream

Please see https://review.openstack.org/#/c/494347/ in
openstack/daisycloud-core.

Change-Id: I9f8ed06b8d2baef6b27562920722c76f4d01f5b1
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agoAdd pytest file for prepare/execute.py 73/39573/3
zhongjun [Fri, 18 Aug 2017 08:58:57 +0000 (16:58 +0800)]
Add pytest file for prepare/execute.py

1.Add pytest file test_execute.py for prepare/execute.py.
2.Change the makedirs mode from 0600 to 0700 for test env.

Change-Id: Ie29e9e4b4210b170f448faf4df907e55bff1435f
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
7 years agoMerge "Modify schemas.py"
Zhijiang Hu [Fri, 18 Aug 2017 02:40:57 +0000 (02:40 +0000)]
Merge "Modify schemas.py"

7 years agoModify schemas.py 95/39495/1
Alex Yang [Thu, 17 Aug 2017 11:01:29 +0000 (19:01 +0800)]
Modify schemas.py

1. add schemas for elements added recently in deploy.yml
2. remove daisy_ip from required list, prepare for generate it auto
3. add main() function to make this file useful in bash

Change-Id: Ic7a3a87305f96b064260967862f976e33cdea294
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agouse daisy.conf to build pxe server 33/38833/17
zhouya [Mon, 7 Aug 2017 11:03:59 +0000 (19:03 +0800)]
use daisy.conf to build pxe server

we use the interface of daisyclient to build the pxe server
in tempest.py,but we can use the daisy.conf to build the pxe
server instead,this is just the optimization of code

Change-Id: I7a75d33aa8f80326750d304fa0a881201e956c57
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
7 years agoFix an error in sed statement 01/39401/1
Alex Yang [Wed, 16 Aug 2017 08:16:44 +0000 (16:16 +0800)]
Fix an error in sed statement

JIRA: DAISY-42

Change-Id: I0fd709bb0dbee42cdc73076773cb635be6ba02cd
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agoAdd more unit test case in test_get_conf.py 53/39053/1
zhongjun [Thu, 10 Aug 2017 11:34:10 +0000 (19:34 +0800)]
Add more unit test case in test_get_conf.py

Add more unit test cases by pytest parametrize fixture.

Change-Id: I208bcff9af79b73556638e20df96235c4ac60ee2
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
7 years agoMerge "Use PDF(POD descriptor file) and correct the mapping of nodes and roles"
Zhijiang Hu [Wed, 9 Aug 2017 02:17:19 +0000 (02:17 +0000)]
Merge "Use PDF(POD descriptor file) and correct the mapping of nodes and roles"

7 years agoFix bug in baremetal deploy with python script 79/38879/1
Alex Yang [Tue, 8 Aug 2017 05:57:41 +0000 (13:57 +0800)]
Fix bug in baremetal deploy with python script

Change-Id: I782c4d732ee8774526b21abd3e8636e65916ce3b
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agoMerge "Rename jasmine to daisy4nfv-jasmine"
Zhijiang Hu [Mon, 7 Aug 2017 01:56:35 +0000 (01:56 +0000)]
Merge "Rename jasmine to daisy4nfv-jasmine"

7 years agoRevert "Optimize list express to list generator" 97/38797/1
Zhijiang Hu [Sat, 5 Aug 2017 00:25:35 +0000 (08:25 +0800)]
Revert "Optimize list express to list generator"

This reverts commit e5a787046aff97a9925a35874d2b6535a9a41c0c.

Trying to solve [1]

Deploy failed!!!.Traceback (most recent call last):
  File "/home/daisy/deploy/tempest.py", line 94, in prepare_install
    host_interface_map, vip, isbare)
  File "/home/daisy/deploy/tempest.py", line 216, in add_hosts_interface
    add_host_role(cluster_id, host['id'], host_name, host['name'], vip)
  File "/home/daisy/deploy/tempest.py", line 225, in add_host_role
    role.name == "COMPUTER"][0]
IndexError: list index out of range

[1] https://build.opnfv.org/ci/job/daisy-deploy-daily-master/626/consoleFull

Change-Id: I4017b4b38fa350a28d9e9dd5b157caab885a80d0
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoRename jasmine to daisy4nfv-jasmine 49/38749/3
Zhijiang Hu [Fri, 4 Aug 2017 09:08:16 +0000 (17:08 +0800)]
Rename jasmine to daisy4nfv-jasmine

Rename to prevent naming confilct

Change-Id: I4f2f9cbb0ccf119901c3f450b3220cd4436de4ec
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoIgnore oder in unit test of test_get_conf.py 59/38759/2
Alex Yang [Fri, 4 Aug 2017 09:23:23 +0000 (17:23 +0800)]
Ignore oder in unit test of test_get_conf.py

Since the result contains a list, so ignore_order should be True
in the comparison.

Change-Id: Iff4c655312015a55a69b91692ab6f9696715a143
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agoMerge "Fix the assert comparison error in test_get_conf.py"
Zhijiang Hu [Fri, 4 Aug 2017 08:54:08 +0000 (08:54 +0000)]
Merge "Fix the assert comparison error in test_get_conf.py"

7 years agoFix the assert comparison error in test_get_conf.py 53/38753/3
zhongjun [Fri, 4 Aug 2017 07:24:00 +0000 (15:24 +0800)]
Fix the assert comparison error in test_get_conf.py

Because the list/dict parse can not ensure the element sequence in
python, using == method to compare the dict content may cause the
fault. we replace it with DeepDiff function.

Change-Id: I1db52347e24a0b3968bcf645fd47c4fc5b768dc7
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
7 years agoMerge "Support os-odl-nofeature-* as new scenarios"
Alex Yang [Fri, 4 Aug 2017 07:47:09 +0000 (07:47 +0000)]
Merge "Support os-odl-nofeature-* as new scenarios"

7 years agoSupport os-odl-nofeature-* as new scenarios 19/38719/3
Zhijiang Hu [Fri, 4 Aug 2017 04:50:09 +0000 (12:50 +0800)]
Support os-odl-nofeature-* as new scenarios

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>
7 years agoMerge "Optimize list express to list generator"
Zhijiang Hu [Fri, 4 Aug 2017 02:37:22 +0000 (02:37 +0000)]
Merge "Optimize list express to list generator"

7 years agoMerge "Add the unit test by pytest for get_conf.py"
Zhijiang Hu [Fri, 4 Aug 2017 02:34:59 +0000 (02:34 +0000)]
Merge "Add the unit test by pytest for get_conf.py"

7 years agoOptimize list express to list generator 11/38711/1
zhongjun [Fri, 4 Aug 2017 01:03:05 +0000 (09:03 +0800)]
Optimize list express to list generator

optimize list express to list generator in tempest.py

Change-Id: I8ba12d33a1fc8b33e29fa0a08d7be40a1361bb65
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
7 years agoAdd the unit test by pytest for get_conf.py 87/38687/5
zhongjun [Thu, 3 Aug 2017 14:14:27 +0000 (22:14 +0800)]
Add the unit test by pytest for get_conf.py

Add the unit test cases by pytest way for get_conf.py,
other python files will be added unit test cases gradually
in the future.

Change-Id: I2495645defcf7ee1b6014b27810ac956eec9f7de
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
7 years agoUse PDF(POD descriptor file) and correct the mapping of nodes and roles 57/38657/2
Alex Yang [Thu, 3 Aug 2017 03:48:13 +0000 (11:48 +0800)]
Use PDF(POD descriptor file) and correct the mapping of nodes and roles

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>
7 years agoMerge "Eliminate error logs in virtual deployment"
Zhijiang Hu [Thu, 3 Aug 2017 03:25:34 +0000 (03:25 +0000)]
Merge "Eliminate error logs in virtual deployment"

7 years agoEliminate error logs in virtual deployment 27/38627/2
Alex Yang [Wed, 2 Aug 2017 12:26:50 +0000 (20:26 +0800)]
Eliminate error logs in virtual deployment

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>
7 years agoMerge "use template to replace duplicate xml file"
Zhijiang Hu [Wed, 2 Aug 2017 09:02:41 +0000 (09:02 +0000)]
Merge "use template to replace duplicate xml file"

7 years agoMerge "Remove useless parameters and rename some parameters in get_conf.py"
Zhijiang Hu [Tue, 1 Aug 2017 09:30:49 +0000 (09:30 +0000)]
Merge "Remove useless parameters and rename some parameters in get_conf.py"

7 years agouse template to replace duplicate xml file 17/38417/7
zhouya [Mon, 31 Jul 2017 08:05:41 +0000 (16:05 +0800)]
use template to replace duplicate xml file

Change-Id: I9764612171ef3bf2cdfc652420a2b162fcbfab43
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
7 years agoRemove useless parameters and rename some parameters in get_conf.py 97/38497/2
Alex Yang [Tue, 1 Aug 2017 02:41:35 +0000 (10:41 +0800)]
Remove useless parameters and rename some parameters in get_conf.py

Change-Id: I47949f44ea609932059374b128018e36590e88fd
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agoJira: DAISY-36 Update doc structure 23/38423/2
Zhijiang Hu [Mon, 31 Jul 2017 11:10:57 +0000 (19:10 +0800)]
Jira: DAISY-36 Update doc structure

This PS update doc structure according to [1].

Note: This PS also add content to doc for describing the
mapping methods for map role to discovered nodes.

[1] http://docs.opnfv.org/en/stable-danube/how-to-use-docs/documentation-guide.html?highlight=templates#document-structure-and-contribution

Change-Id: I7b2ef916753cddd8cd845abae8c7d5865c49e1ac
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoFix typo in patch 38381 03/38503/1
Alex Yang [Tue, 1 Aug 2017 03:49:53 +0000 (11:49 +0800)]
Fix typo in patch 38381

JIRA: DAISY-56

controller01 -> $name

Change-Id: Icd959ca55079a6ac0bfbd181ff134d7decfb89f5
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agoCorrect the mapping of nodes and roles in virtual deploy 81/38381/5
Alex Yang [Sat, 29 Jul 2017 12:29:52 +0000 (20:29 +0800)]
Correct the mapping of nodes and roles in virtual deploy

JIRA: DAISY-56

Now the roles are assigned to nodes randomly, because the function
'add_hosts_interface' in tempest.py just uses zip to map the
host's name to the host.

libvirt_utils.py: get mac addresses from VM
environment.py: save the mac addresses
daisy_server.py: write a new deploy.yml which contains the mac addresses
    and copy the file to daisy server
get_conf.py: get mac addresses from the new deploy.yml
tempest.py: assigned roles to nodes when the mac addresses matched
controller.xml: increase the RAM to make difference with computer nodes
deploy.sh: apply this change to bash script

Change-Id: Ia61b60d39d319c5d01e3505727fafc63a0585858
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agouse only one file get_conf.py to get configuration data from deploy.yml 05/38405/2
zhouya [Mon, 31 Jul 2017 05:21:59 +0000 (13:21 +0800)]
use only one file get_conf.py to get configuration data from deploy.yml

just move the code from get_para_from_deploy to get_conf file
no functionality change.

Change-Id: I86aa1325ff37cb2ae0784c9487e62e95cc23f644
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
7 years agoDo not provide ipmi user and password in virtual deployment 21/38321/1
Alex Yang [Fri, 28 Jul 2017 07:45:45 +0000 (15:45 +0800)]
Do not provide ipmi user and password in virtual deployment

Change-Id: Ib7989bed237a03cdab01fea89aba4e2038815e5f
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agoMerge "Solve double container removal problem"
Zhijiang Hu [Fri, 28 Jul 2017 01:32:30 +0000 (01:32 +0000)]
Merge "Solve double container removal problem"

7 years agoMerge "Convert the bash commands in post.sh to python code"
Zhijiang Hu [Thu, 27 Jul 2017 00:59:13 +0000 (00:59 +0000)]
Merge "Convert the bash commands in post.sh to python code"

7 years agoSolve double container removal problem 45/38145/1
Zhijiang Hu [Wed, 26 Jul 2017 11:12:01 +0000 (19:12 +0800)]
Solve double container removal problem

From [1], We got an error from docker: "No such container: daisy"
while issuing "docker rm -v -f daisy", this OK because we do
docker run --rm before this. So it is safe to add "|| true" after
"docker rm -v -f daisy".

[1] https://build.opnfv.org/ci/job/daisy-build-daily-master/500/console

Change-Id: I3d17595156f1b6181a84d9a03e2cd6ddff275eb3
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoClose upstream merge window 31/38131/1
Zhijiang Hu [Wed, 26 Jul 2017 08:39:23 +0000 (04:39 -0400)]
Close upstream merge window

Switch to upstream daisy's stable/ocata branch

Change-Id: I5ff0b0a28a8d2f76f0cb813af8f8241175bb6054
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
7 years agoConvert the bash commands in post.sh to python code 13/38113/2
Alex Yang [Wed, 26 Jul 2017 03:15:44 +0000 (11:15 +0800)]
Convert the bash commands in post.sh to python code

According to the comment from Serena in the patch
https://gerrit.opnfv.org/gerrit/#/c/37857/, the bash code
in post.sh can be implemented by python, and the deploy
script can call post/execute.py directly.

Change-Id: Ibcf86fc2b6ee3942e4082384c9d4075d608b7294
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
7 years agoMerge "Sync some patches of bash script to python"
Zhijiang Hu [Tue, 25 Jul 2017 02:06:37 +0000 (02:06 +0000)]
Merge "Sync some patches of bash script to python"

7 years agowhen deploy have failed print the api log 85/37985/1
root [Mon, 24 Jul 2017 07:20:29 +0000 (15:20 +0800)]
when deploy have failed print the api log

Change-Id: I6047340f7f0d2c7b6b175335bdbf836a2a8d0a9c
Signed-off-by: root <zhou.ya@zte.com.cn>
8 years agoSync some patches of bash script to python 57/37857/1
Alex Yang [Thu, 20 Jul 2017 11:41:02 +0000 (19:41 +0800)]
Sync some patches of bash script to python

Change-Id: Ia1eb59e62b1bb98b1871ec591e2c925c1734cc2e
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
8 years agomd5sum check for cirros image 53/37553/5
Zhijiang Hu [Sat, 15 Jul 2017 02:52:40 +0000 (22:52 -0400)]
md5sum check for cirros image

Change-Id: I874c40eb5da54c38ce8aa2d1fb1840a8aee22b4c
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
8 years agoadd sdn_controller_ip to admin_openrc.sh 41/37241/4
root [Wed, 12 Jul 2017 06:44:59 +0000 (14:44 +0800)]
add sdn_controller_ip to admin_openrc.sh

Change-Id: I3af46368109bc5358fd0cc61a43f5be60479eab3
Signed-off-by: root <zhou.ya@zte.com.cn>
8 years agoEnable HA scenarios 43/37043/2
zhongjun [Fri, 7 Jul 2017 01:07:48 +0000 (09:07 +0800)]
Enable HA scenarios

Enable HA scenario options due to support HA function in upsteam.

Change-Id: Ie1889afc1a149f171a9b324eb284fd650baed397
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
8 years agoMerge "add heartbeat interface introduction in docs"
Zhijiang Hu [Fri, 7 Jul 2017 06:33:44 +0000 (06:33 +0000)]
Merge "add heartbeat interface introduction in docs"

8 years agoadd heartbeat interface introduction in docs 49/37049/1
root [Fri, 7 Jul 2017 04:57:14 +0000 (12:57 +0800)]
add heartbeat interface introduction in docs

Change-Id: Iaf206f9ea5962410c859ad6f84b03ef1a1aa7771
Signed-off-by: root <zhou.ya@zte.com.cn>
8 years agoadd extra interface to enable the keepablived plane and the api plane 89/36989/6
root [Thu, 6 Jul 2017 02:42:50 +0000 (10:42 +0800)]
add extra interface to enable the keepablived plane and the api plane

Change-Id: I0157bf8b6fa9be254c61bb384065f80107ab3dda
Signed-off-by: root <zhou.ya@zte.com.cn>
8 years agoos-nosdn-nofeature-ha as a valid scenario 79/36879/1
Zhijiang Hu [Tue, 4 Jul 2017 02:34:39 +0000 (22:34 -0400)]
os-nosdn-nofeature-ha as a valid scenario

Project job deployment job uses os-nosdn-nofeature-ha currently,
so we need to treat os-nosdn-nofeature-ha as a valid scenario
to let the job continue to work.

Change-Id: Ib9311ada9b043b1f695f43edb51adbb3714d3356
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
8 years agoMerge "Initial merge of BM Installation guide"
Zhijiang Hu [Fri, 30 Jun 2017 01:38:19 +0000 (01:38 +0000)]
Merge "Initial merge of BM Installation guide"

8 years agoMerge "Jira: DAISY-36 Initial merge of release-note"
Zhijiang Hu [Fri, 30 Jun 2017 01:38:03 +0000 (01:38 +0000)]
Merge "Jira: DAISY-36 Initial merge of release-note"

8 years agoJira: DAISY-36 Initial merge of release-note 05/36705/2
Zhijiang Hu [Thu, 29 Jun 2017 09:16:23 +0000 (05:16 -0400)]
Jira: DAISY-36 Initial merge of release-note

Also fix some index.rst

Change-Id: I6aae9fbc5821e8a1c65a02c6b8926e42a10c19cb
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
8 years agoInitial merge of BM Installation guide 35/36535/11
Zhijiang Hu [Tue, 27 Jun 2017 04:39:20 +0000 (00:39 -0400)]
Initial merge of BM Installation guide

Change-Id: I9964f0d75ae879c6b86d245f2007841236a0b931
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
8 years agoAdd an missing parameter and fix a typo in daisy_server.py 99/36699/1
Alex Yang [Thu, 29 Jun 2017 07:11:41 +0000 (15:11 +0800)]
Add an missing parameter and fix a typo in daisy_server.py

Change-Id: I339508f1c07a9bbefa389c6f6eb5e53640a79417
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
8 years agoMerge "Add scenario arg check"
Zhijiang Hu [Wed, 28 Jun 2017 09:27:19 +0000 (09:27 +0000)]
Merge "Add scenario arg check"

8 years agoAdd scenario arg check 17/36617/1
zhongjun [Wed, 28 Jun 2017 05:48:29 +0000 (13:48 +0800)]
Add scenario arg check

Add the scenario argument valid check in deploy.sh.

Change-Id: Ifeeed3882b22ba379975c2356d761e0536c5c2c9
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
8 years agoEnlarge the RAM of the nodes in virtual deployment 11/36611/1
Alex Yang [Wed, 28 Jun 2017 01:41:51 +0000 (09:41 +0800)]
Enlarge the RAM of the nodes in virtual deployment

Now the RAM of controller node in virtual deploymeny is only 4GB.

[root@host-10-20-11-6 ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:           3.7G        3.2G        145M        1.7M        408M        191M
Swap:          4.0G        4.0G        2.3M

Since the RAM on the deploy server is at least 64GB (see installation
guide), we can enlarge every node's RAM to improve the performance.

Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Change-Id: Ie4e1297697e349a6b3edf0fa0c54eeeb94255ca8
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
8 years agoMerge "Adapt the scenario arg add in tempset.py"
Alex Yang [Tue, 27 Jun 2017 10:02:36 +0000 (10:02 +0000)]
Merge "Adapt the scenario arg add in tempset.py"

8 years agoAdapt the scenario arg add in tempset.py 67/36467/4
zhongjun [Mon, 26 Jun 2017 03:16:15 +0000 (11:16 +0800)]
Adapt the scenario arg add in tempset.py

1.adapt the scenario argument add in tempset.py, detail please
refer to
https://gerrit.opnfv.org/gerrit/#/c/36229/5/deploy/tempest.py.
2.bugfix to update the self.deploy_file with the constructed final
deploy file in deoploy.py.

Change-Id: Ia46720649a2361f0b84749925d2c0dede78ccdb5
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
8 years agoUpdate VM intallation network setup for ODL scenario 93/36493/1
Zhijiang Hu [Mon, 26 Jun 2017 09:46:09 +0000 (05:46 -0400)]
Update VM intallation network setup for ODL scenario

Change-Id: Ie26ca7d81b8d293fbcdc73d5bfa6f2bdbe21e215
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
8 years agoCorrect the kolla image version in makefile_patch.sh 69/36469/1
Alex Yang [Mon, 26 Jun 2017 03:23:35 +0000 (11:23 +0800)]
Correct the kolla image version in makefile_patch.sh

Makefile_patch.sh is missed in patch 36229.

Change-Id: I8da88a0f8220061b4ad03711c1a52715703dd579
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
8 years agoenable opendaylight 29/36229/5
zhouya [Tue, 20 Jun 2017 09:31:38 +0000 (17:31 +0800)]
enable opendaylight

Change-Id: I759d864efa524c0d564b9d93aa480e155149adaa
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
8 years agoMerge "add the scenarios option"
Zhijiang Hu [Fri, 23 Jun 2017 07:30:38 +0000 (07:30 +0000)]
Merge "add the scenarios option"

8 years agoadd the scenarios option 41/36341/5
zhongjun [Thu, 22 Jun 2017 02:31:14 +0000 (10:31 +0800)]
add the scenarios option

Add the scenarios option and yaml configuration files,
currently only support three scenarios as below.
os-nosdn-nofeature-noha/os-odl_l3-nofeature-noha/
os-odl_l2-nofeature-noha.
we will support more secnarios such as os-odl_l3-nofeature-ha
in future.

Change-Id: I24d7875208e277f6ee1b794c0033d5fee6b5e371
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
8 years agosolve "no disks in host-detail" error 15/35915/1
zhouya [Thu, 8 Jun 2017 08:31:27 +0000 (16:31 +0800)]
solve "no disks in host-detail" error

Change-Id: Ifb408a3b3dfa139bb938cc7ef8c9b0981e4266c3
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
8 years agoMerge "add deployment guidance in vm deployment doc"
Zhijiang Hu [Thu, 8 Jun 2017 06:39:56 +0000 (06:39 +0000)]
Merge "add deployment guidance in vm deployment doc"

8 years agoadd deployment guidance in vm deployment doc 49/35849/7
zhouya [Wed, 7 Jun 2017 02:40:15 +0000 (10:40 +0800)]
add deployment guidance in vm deployment doc

Change-Id: Ia9b370b314b5e897087ae82463af90c4b61018d5
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
8 years agoMerge "Set compute to qemu only in virtual deployment"
Zhijiang Hu [Thu, 8 Jun 2017 06:32:12 +0000 (06:32 +0000)]
Merge "Set compute to qemu only in virtual deployment"

8 years agoMerge "Support scenario parameter"
Alex Yang [Sat, 3 Jun 2017 09:03:38 +0000 (09:03 +0000)]
Merge "Support scenario parameter"

8 years agoSet compute to qemu only in virtual deployment 47/35747/1
Zhijiang Hu [Fri, 2 Jun 2017 14:45:39 +0000 (22:45 +0800)]
Set compute to qemu only in virtual deployment

Change-Id: I0660c016e18491395c7253e5576f8fa1c8aa051e
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
8 years agoSupport scenario parameter 37/35637/1
Zhijiang Hu [Thu, 1 Jun 2017 10:13:03 +0000 (06:13 -0400)]
Support scenario parameter

Default is os-nosdn-nofeature-noha

Change-Id: I12e70552c426884269c2c7f1bfa05e1db5658bea
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
8 years agoRemove iptables rules only in virtual deployment 79/35579/1
Alex Yang [Wed, 31 May 2017 14:58:44 +0000 (22:58 +0800)]
Remove iptables rules only in virtual deployment

There are error messages "iptables: No chain/target/match by that name"
in baremetal deployment:
https://build.opnfv.org/ci/job/daisy-deploy-daily-master/298/console

Change-Id: I7e2940222fd0a99ee42823a08a285bdd93892fe6
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
8 years agoadd the missing openrc token 59/35559/1
zhouya [Wed, 31 May 2017 00:30:44 +0000 (08:30 +0800)]
add the missing openrc token

Change-Id: Id9fca539f2f5a866376b12a11306a9ea97760a0d
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
8 years agomodify deploy script to deploy 1 lb and 4computer 19/35519/1
zhouya [Tue, 30 May 2017 08:48:12 +0000 (16:48 +0800)]
modify deploy script to deploy 1 lb and 4computer

Change-Id: I654a27042ff9807a502773d48df1c26d12302de7
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
8 years agobugfix: delete extra firewalls in virtual deployment 81/35481/1
SerenaFeng [Mon, 29 May 2017 11:11:42 +0000 (19:11 +0800)]
bugfix: delete extra firewalls in virtual deployment

Change-Id: I179b5aab51958c0cd4653e65bbd74df5cfd7c53e
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>