HewlettPackard / oneview-ansible-collection

Ansible Collection and Sample Playbooks for HPE OneView
Apache License 2.0
25 stars 22 forks source link

unable to reapply complete server profile #267

Closed avijitkulkarni closed 1 year ago

avijitkulkarni commented 1 year ago

Hello,

Greetings !

I am using below code to re-apply server profile, but every time once it runs it executes "Update" task on OneView and only updates missing firmware. It says "BIOS settings will not be applied"

Could someone please suggest how to initiate a complete re-apply of server profile which includes everything ?

image

We want to run this "Reapply" from ansible so that profile gets re-applied every time regardless of anything.

ansible core --> 2.13.6 hpe.oneview --> 8.4.0

akshith-gunasheelan commented 1 year ago

Hi @avijitkulkarni thanks for your query. Currently we do not have the provision for re-apply state in our Ansible SDK. We have added this into our backlog and will take it as per our priority.

avijitkulkarni commented 1 year ago

Hello @akshith-gunasheelan,

Thank you so much for the response.

Could you please confirm if below steps will work:

  1. Remove server profile assignment.
  2. Delete server profile.
  3. Create new server profile(with same name) from server profile template.
  4. Associate server hardware to the newly created server profile --> Will this option trigger apply server profile task and eventually applies all settings ?

Thank you.

akshith-gunasheelan commented 1 year ago

Hi @avijitkulkarni , these steps will apply all settings , Thanks.

akshith-gunasheelan commented 1 year ago

Hi @avijitkulkarni , please let us know if we are good to close this issue now.

avijitkulkarni commented 1 year ago

Hello @akshith-gunasheelan,

Thank you so much for helping. I was able to apply all settings after deleting and re-creating the server profile.