7177014fcc
"Host set" command cannot work. Because: 1.Host has no 'ID' attribute, so 'ID' attribute cannot be found in "host set" command. 2.value "True" and "Flase" are invalid in updata() method of host. 3.Some update functionalities is not supported in host API now. This patch solves the problems 1 and 2 in OSC. But the problem 3 is a API problem and can't be solved in OSC, only XenServer driver support to set enable/disable and maintenance host, it is a normal problem. After this patch the output of "host set" command is: The requested functionality is not supported. (HTTP 501) (Request-ID: req-14031fce-8c90-48a0-8492-dc8e3dd349f3) Just the same as the "host-update" command in novaclient. Change-Id: Ibe94c4d3d492d3d63355de803810edb988e1b4e9 Closes-Bug: #1594689
970 B
970 B
host
Compute v2
The physical computer running a hypervisor.
host list
List all hosts
host list
os host list
[--zone <availability-zone>]
--zone <availability-zone>
Only return hosts in the availability zone
host set
Set host command
host set
os host set
[--enable | --disable]
[--enable-maintenance | --disable-maintenance]
<host>
Enable the host
--disable
Disable the host
Enable maintenance mode for the host
--disable-maintenance
Disable maintenance mode for the host
<host>
Host to modify (name only)
host show
Display host details
host show
os host show
<host>
<host>
Name of host