summaryrefslogtreecommitdiffstats
path: root/newton/newton/registration
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2017-09-11 14:49:30 +0800
committerBin Yang <bin.yang@windriver.com>2017-09-11 14:49:30 +0800
commit8f62677eed174aa5c6ce17e4bdfd88022ed917c5 (patch)
treeb6b19c7e3967068cd2620d05a8e7de071d39333d /newton/newton/registration
parentf2c5615c967a37c3d778bb9cf0a5a6706c17fa63 (diff)
Fix bug in service proxy
fix bug in service proxy, along with unittests Change-Id: I946af21f4b8384ae920c322245741bf990515f1a Issue-Id: MULTICLOUD-58 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'newton/newton/registration')
-rw-r--r--newton/newton/registration/views/registration.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/newton/newton/registration/views/registration.py b/newton/newton/registration/views/registration.py
index fa388b73..131a58e0 100644
--- a/newton/newton/registration/views/registration.py
+++ b/newton/newton/registration/views/registration.py
@@ -387,7 +387,7 @@ class Registry(APIView):
ret = self.update_az(cloud_owner, cloud_region_id, vg_info)
if ret != 0:
# failed to update image
- self._logger.debug("failed to populate az info into AAI: %s, volume-group-id: %s, ret:%s"
+ self._logger.debug("failed to populate volumegroup info into AAI: %s, volume-group-id: %s, ret:%s"
% (vimid, vg_info['volume-group-id'], ret))
continue
pass
@@ -454,7 +454,7 @@ class Registry(APIView):
ret = self.update_az(cloud_owner, cloud_region_id, snapshot_info)
if ret != 0:
# failed to update image
- self._logger.debug("failed to populate az info into AAI: %s, snapshot-id: %s, ret:%s"
+ self._logger.debug("failed to populate snapshot info into AAI: %s, snapshot-id: %s, ret:%s"
% (vimid, snapshot_info['snapshot-id'], ret))
continue
pass
@@ -554,7 +554,7 @@ class Registry(APIView):
req_to_aai("/cloud-infrastructure/pservers/pserver/%s/relationship-list/relationship"
% (pserverinfo['hostname']), "PUT", content=relationship_data)
- self._logger.debug("update_snapshot,vimid:%s_%s req_to_aai: %s, return %s, %s, %s"
+ self._logger.debug("update_pserver,vimid:%s_%s req_to_aai: %s, return %s, %s, %s"
% (cloud_owner, cloud_region_id, pserverinfo['hostname'], retcode, content,
status_code))
pass
@@ -578,7 +578,7 @@ class Registry(APIView):
for hypervisor in content.get('hypervisors'):
hypervisor_info = {
'hostname': hypervisor['hypervisor_hostname'],
- 'in-maint': hypervisor['name'],
+ 'in-maint': hypervisor['state'],
'pserver-id': hypervisor.get('id'),
'ptnii-equip-name': hypervisor.get('id'),