Correct the mapping of nodes and roles in virtual deploy 81/38381/5
authorAlex Yang <yangyang1@zte.com.cn>
Sat, 29 Jul 2017 12:29:52 +0000 (20:29 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Mon, 31 Jul 2017 07:35:11 +0000 (15:35 +0800)
commitb35baf61e48a1d2aff88e7c3e100aa996422d849
treeded0fe80802a336d1729f607baadac9a90e3b5e5
parente47fc2d62d07633c1883253d42f8e2cade35e868
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>
ci/deploy/deploy.sh
deploy/daisy_server.py
deploy/environment.py
deploy/get_conf.py
deploy/libvirt_utils.py
deploy/tempest.py
templates/virtual_environment/vms/controller.xml