http://artifacts.opnfv.org/doctor/brahmaputra/docs/manuals/mark-host-down_manual.html
for more detail.
+Valid compute host status given to VM owner
+-------------------------------------------
+
The resource state of a compute host can be retrieved by a user with the
OpenStack Compute (Nova) servers API.
See
-http://artifacts.opnfv.org/doctor/colorado/docs/manuals/get-valid-server-state.html
+http://artifacts.opnfv.org/doctor/docs/manuals/get-valid-server-state.html
for more detail.
import novaclient.client as novaclient
-nova_api_version = 2.11
+nova_api_version = '2.11'
def enable_compute_host(hostname):
self.nova = novaclient.Client(self.nova_api_version,
class DoctorInspectorSample(object):
- nova_api_version = 2.11
+ nova_api_version = '2.11'
def __init__(self):
self.nova = novaclient.Client(self.nova_api_version,
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-Auth-Token': keystone.auth_ref['token']['id'],
- 'X-OpenStack-Nova-API-Version': 2.11,
+ 'X-OpenStack-Nova-API-Version': '2.11',
}
print requests.put(url, data=json.dumps(data), headers=headers)
DOCTOR_USER=doctor
DOCTOR_PW=doctor
DOCTOR_PROJECT=doctor
-#TODO: change back to `_member_` when JIRA DOCTOR-55 is done
-DOCTOR_ROLE=admin
+DOCTOR_ROLE=_member_
SUPPORTED_INSTALLER_TYPES="apex local"
INSTALLER_TYPE=${INSTALLER_TYPE:-apex}