Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dellemc_change_power_state fails if host is already on #132

Closed
dmc5179 opened this issue Jul 23, 2020 · 4 comments
Closed

dellemc_change_power_state fails if host is already on #132

dmc5179 opened this issue Jul 23, 2020 · 4 comments
Labels
area/idrac idrac modules/roles type/bug Something isn't working

Comments

@dmc5179
Copy link

dmc5179 commented Jul 23, 2020

When using the following tasks:

- name: Configure Server Power Setting - On
  delegate_to: localhost
  dellemc_change_power_state:
    idrac_ip:   "{{ idrac_ip }}"
    idrac_user: "{{ idrac_user }}"
    idrac_password:  "{{ idrac_password }}"
    change_power: "On"

I get the following error message if the server is already on:

MSG:

{'StatusCode': 409, 'Status': 'Failed', 'Data': {'Status': 'Failed', 'Message': "returned status code doesn't match with the expected success code", 'StatusCode': 409}, 'error': {'error': {'@Message.ExtendedInfo': [{'Message': 'Server is already powered ON.', 'MessageArgs': [], 'MessageArgs@odata.count': 0, 'MessageId': 'IDRAC.1.6.PSU501', 'RelatedProperties': [], 'RelatedProperties@odata.count': 0, 'Resolution': 'No response action is required.', 'Severity': 'Informational'}], 'code': 'Base.1.2.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information'}}, 'retval': True, 'Message': 'none'}

This shouldn't happen. If the server is already on then this tasks should succeed. For example, I can use the VMWare ansible modules to tell a VM to poweron many times. The first time causes the VM to turn on. All subsequent times result in no change and no error.

@jagadeeshnv jagadeeshnv added type/bug Something isn't working area/idrac idrac modules/roles labels Jul 28, 2020
@jagadeeshnv
Copy link
Contributor

@dmc5179 We will analyze and get back on this

@Sajna-Shetty
Copy link
Contributor

@dmc5179 We have replaced 'dellemc_change_power_state' module with newer module 'redfish_powerstate'. Verify this issue in newer module.

@jagadeeshnv
Copy link
Contributor

@dmc5179 Can you please verify and close this issue?

@jagadeeshnv
Copy link
Contributor

@dmc5179 This has been fixed module 'redfish_powerstate' as stated by @Sajna-Shetty. Hence closing this issue. Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/idrac idrac modules/roles type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants