diff options
author | wenjuan dong <dong.wenjuan@zte.com.cn> | 2018-11-22 05:52:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-11-22 05:52:53 +0000 |
commit | d673e9218a53e047edc5ff6cd047ac6db5112651 (patch) | |
tree | 6d3e06ccced0f7be5722bbf395a6a864d274ba1f /doctor_tests/app_manager/sample.py | |
parent | 916e4931a56c1a5d41d46148609bf348d4326d37 (diff) | |
parent | f2d2dcc87e67ed1ebca13aa8ed4567b8713ce5b0 (diff) |
Merge "Support Fenix and sample implementation accordingly"
Diffstat (limited to 'doctor_tests/app_manager/sample.py')
-rw-r--r-- | doctor_tests/app_manager/sample.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doctor_tests/app_manager/sample.py b/doctor_tests/app_manager/sample.py index 94926ee2..a7bc4126 100644 --- a/doctor_tests/app_manager/sample.py +++ b/doctor_tests/app_manager/sample.py @@ -114,8 +114,7 @@ class AppManager(Thread): for t in data['reason_data']['event']['traits']}) def get_session_instance_ids(self, url, session_id): - data = {'session_id': session_id} - ret = requests.get(url, data=json.dumps(data), headers=self.headers) + ret = requests.get(url, data=None, headers=self.headers) if ret.status_code != 200: raise Exception(ret.text) self.log.info('get_instance_ids %s' % ret.json()) @@ -177,12 +176,12 @@ class AppManager(Thread): reply['instance_ids'] = instance_ids reply_state = 'ACK_MAINTENANCE' - elif state == 'DOWN_SCALE': + elif state == 'SCALE_IN': # scale down 2 isntances that is VCPUS equaling to single # compute node self.scale_instances(-2) reply['instance_ids'] = self.get_instance_ids() - reply_state = 'ACK_DOWN_SCALE' + reply_state = 'ACK_SCALE_IN' elif state == 'MAINTENANCE_COMPLETE': # possibly need to upscale |