Le 21 avr. 2016 à 18:06, Juan Hernández <jhernand(a)redhat.com> a
écrit :
On 04/21/2016 04:58 PM, Fabrice Bacchella wrote:
> I'm trying to the use the API to reinstall an hosts.
>
> But if a post the following content :
> POST /api/hosts/XXXXX/install
>
>> <action>
>> <host>
>> <override_iptables>false</override_iptables>
>> </host>
>> <ssh>
>> <port>22</port>
>> <fingerprint>SHA256:XXXX</fingerprint>
>> <authentication_method>publickey</authentication_method>
>> </ssh>
>> </action>
>
> I get the error :
> [Cannot edit Host. Power Management is enabled for Host but no Agent type selected.]
>
> But the agent was set when I created the host, the GUI don't ask for power
management informations when reinstalling the hosts and when I look the the rsdl ( at
https://ovirt/api?rsdl), the agent type was not required.
>
> So what's wrong with the install command and that is not in the rsdl ?
>
There is nothing wrong with you command, but there is a error in the
server side that makes this fail. Please open bug. The only workaround
at the moment is to disable power management, do the install, and then
re-enable power management.
I made more check, and indeed, my setup is actually broken. But that's another case of
this: