fujitsu / fujitsu-ansible-irmc-integration

The Fujitsu Software Serverview Ansible iRMC Integration features modules and playbooks to access and manage Fujitsu PRIMERGY servers via iRMC.
GNU General Public License v3.0
35 stars 6 forks source link

Setting PowerOff with irmc_powerstate does not work #9

Open tavasti opened 4 years ago

tavasti commented 4 years ago

When I try to set PowerOff I get this error message:

fatal: [xxxxx-yyy]: FAILED! => {"changed": false, "msg": "Invalid parameter 'PowerOff'. Allowed: \"Key does not exist: 'Actions Oem http://ts.fujitsu.com/redfish-schemas/v1/FTSSchema.v1_0_0#FTSComputerSystem.Reset FTSResetType@Redfish.AllowableValues'\"", "status": 11}

Getting similar results with state: PowerOn

Hardware is PRIMERGY RX2540 M5, iRMC firmware 2.60P

pawwe commented 2 years ago

I get the same error:

fatal: [xyz -> localhost]: FAILED! => {"changed": false, "msg": "Invalid parameter 'PowerOn'. Allowed: \"Key does not exist: 'Actions Oem http://ts.fujitsu.com/redfish-schemas/v1/FTSSchema.v1_0_0#FTSComputerSystem.Reset FTSResetType@Redfish.AllowableValues'\"", "status": 11}

iRMC version 3.05P running on CELSIUS C780power.

pawwe commented 2 years ago

I managed to get it to work for iRMC version 3.05P. Changed in irmc_powerstate.py: https://github.com/fujitsu/fujitsu-ansible-irmc-integration/blob/87c2e3427cb0791b273eead838004705b07db553/library/irmc_powerstate.py#L154 to

"#FTSComputerSystem.Reset",

The path to find allowable values seems to have changed in new iRMC versions. Because irmc_powerstate worked fine for version 2.42P on CELSIUS C780power.