Fix bug in baremetal deploy with python script 79/38879/1
authorAlex Yang <yangyang1@zte.com.cn>
Tue, 8 Aug 2017 05:57:41 +0000 (13:57 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Tue, 8 Aug 2017 05:57:41 +0000 (13:57 +0800)
Change-Id: I782c4d732ee8774526b21abd3e8636e65916ce3b
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
deploy/environment.py

index 87c1693..dd9e014 100644 (file)
@@ -144,7 +144,7 @@ class BareMetalEnvironment(DaisyEnvironmentBase):
 
         create_vm(template,
                   name=self.daisy_server_info['name'],
-                  disk_file=self.daisy_server_info['image'])
+                  disks=[self.daisy_server_info['image']])
 
     def reboot_nodes(self, boot_dev=None):
         # TODO: add ipmi info into deploy.yml, or read from PDF
@@ -168,6 +168,7 @@ class BareMetalEnvironment(DaisyEnvironmentBase):
         self.server.check_os_installation(len(self.deploy_struct['hosts']))
         time.sleep(10)
         self.server.check_openstack_installation(len(self.deploy_struct['hosts']))
+        self.server.post_deploy()
 
 
 class VirtualEnvironment(DaisyEnvironmentBase):