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

Module hpe.oneview.oneview_server_profile powers off server hardware #271

Open
tiagodcc opened this issue Sep 21, 2023 · 7 comments
Open

Comments

@tiagodcc
Copy link

We are automating the registration of server hardware and creation of server profiles in HPE OneView using Ansible. Therefore, we use the Ansible collection hpe.oneview.

We have encountered an issue that the server hardware is always powered off when creating a server profile.
Reason for this is that this functionality is hard coded in the module code:

if server_hardware_uri:
self.module.log(msg="Power off the Server Hardware before create the Server Profile")
self.__set_server_hardware_power_state(server_hardware_uri, 'Off')

When executing the same query using the ansible.builtin.uri module, the hardware isn't powered off as we do not change any settings that would require a reboot.

This issue should be considered a feature request so that the server hardware is not turned off by default. From my understanding, HPE OneView would do this on its own.

@akshith-gunasheelan
Copy link
Collaborator

Hi @tiagodcc thanks for reaching out to us.
Please let us know the settings enabled in your server profile. For example, if you have connections or advanced settings enabled, it would require a server hardware power-off.

@tiagodcc
Copy link
Author

Hi @akshith-gunasheelan thank you for your rapid message.
I have only set iLO settings (set administrator password, directory configuration and hostname settings). As explained in the issue description, the hardware isn't powered off when I apply the server profile on server hardware manually.

@akshith-gunasheelan
Copy link
Collaborator

Hi @tiagodcc we are trying to reproduce the issue, can you please let us know what is the Server Hardware Type you are using ?

@tiagodcc
Copy link
Author

Hi @akshith-gunasheelan
I am using a HPE ProLiant DL380 Gen 10 server. However, as described in the code snipped, I assume that this behavior is not depending on the server hardware type used.

@akshith-gunasheelan
Copy link
Collaborator

Hi @tiagodcc
This looks like we need to do a condition-based power-off, which needs code changes.
We will look into it, put it into our backlog and take it up as per our priority.
Thank you.

@tiagodcc
Copy link
Author

Hi @akshith-gunasheelan,
You have closed this issue. I wanted to ask, which part of the code was the cause for the problem and how it was fixed.

@Torie-Coding
Copy link

Is there any new Information on this topic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants