Compute Services
1. compute_services()
Lists compute services.
Parameters: None
Return value: a list of Compute Service Object
Return value example:
status : enabled
binary : nova-consoleauth
zone : internal
updated_at : 2016-08-26T06:50:41.000000
state : up
host : testserver
disabled_reason : None
id : 1
status : enabled
binary : nova-scheduler
zone : internal
updated_at : 2016-08-26T06:50:40.000000
state : up
host : testserver
disabled_reason : None
id : 2…
2. enable_scheduling(host, binary)
Enables scheduling for a Compute service.
Parameters:
- host(String): the name of the host
- binary(String): binary name of the service
Parameters example:
host=”testserver”
binary=”nova-console”
Return value: ComputeService Object
Return value example:
status : enabled
binary : nova-console
host : testserver
3. disable_scheduling(host, binary)
disables scheduling for a Compute service.
Parameters:
- host(String): the name of the host
- binary(String): binary name of the service
Parameters example:
host=”testserver”
binary=”nova-console”
Return value: ComputeService Object
Return value example:
status : disabled
binary : nova-console
host : testserver
4. log_disable_info(host, binary, disable_reason)
Logs information to the Compute service table about why a Compute service was disabled.
Parameters:
- host(String): the name of the host
- binary(String): binary name of the service
- disable_reason(String): the reason for disabling a service
Parameters example:
host=”testserver”
binary=”nova-console”
disabled_reason="for python test”
Return value: ComputeService Object
Return value example:
status : disabled
binary : nova-console
host : testserver
disabled_reason : for python test
5. delete_compute_service(service_id, host, binary)
Delete Compute service.
Parameters:
- service_id(String): service id
- host(String): the name of the host
- binary(String): binary name of the service
Return value: None on success
6. delete_retired_service(service_id, host, binary)
Delete retired service.
Parameters:
- service_id(String): service id
- host(String): the name of the host
- binary(String): binary name of the service
Return value: None on success