HewlettPackard / python-redfish-utility

Python-based utility for interacting with devices supporting a Redfish Service
Other
85 stars 41 forks source link

ServerClone Stop Auto Restart #37

Closed jjwb96 closed 2 years ago

jjwb96 commented 3 years ago

Hi there,

I am automating the deployment of Server 2019 using SCCM on to about 30 HPE Proliant MicroServer Gen 10Plus. When I use the serverclone load --auto option it just reboots the server when it finishes applying my custom json. Is there any way to stop it from rebooting the server? I have a reboot task that comes after applying my custom json. However it doesn't get to the reboot task since the application initiates the restart.

Is there a better way to accomplish what I am trying to do? Without the --auto option it freezes the OSD since the program requires input from the user to accept the changes.

Just looking for the best way to accomplish this.

Thanks in advance!

jjwb96 commented 3 years ago

I am trying to figure out how to add this, however, I am noticing config.rdmc_config and six.moves cannot be found. Wondering what I need to do to get it working. image

rajeevkallur commented 3 years ago

We will investigate and probably we will add a separate option for the reboot in the next version of ilorest tool.

jjwb96 commented 3 years ago

@rajeevkallur Is it possible to get a copy of the config.rdmc_config module uploaded to the GitHub Repo so I can add it myself?

rajeevkallur commented 3 years ago

It is uploaded now.

jjwb96 commented 3 years ago

Thank you!

jjwb96 commented 3 years ago

@rajeevkallur It appears the EthernetCommand.py module is missing. ServerClone errors out with the following error: image

I am wondering if it is possible to get it uploaded as well.

Thanks in advance!

rajeevkallur commented 3 years ago

Added

sahanaramavana commented 2 years ago

Hi @jjwb96 ,

  1. --auto is designed to perform the actions silently , so by design it would reboot as well ,as some of the settings for them to take effect its important to reboot . And since we are in auto mode it will automatically reboot
  2. In the latest released version of the iLORest tool which is 3.3.0 , we did check and we are able to get the help file for serverclone.

Thanks & Regards, iLORest Team

jjwb96 commented 2 years ago

I ended up cloning the code and adding a norestart option to resolve my issue.

Thanks,

Jesse Bronson Cell - (519) 639-1550 Email - @.**@.>


From: sahanaramavana @.> Sent: June 9, 2022 7:17 AM To: HewlettPackard/python-redfish-utility @.> Cc: jjwb96 @.>; Mention @.> Subject: Re: [HewlettPackard/python-redfish-utility] ServerClone Stop Auto Restart (#37)

Hi @jjwb96https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjjwb96&data=05%7C01%7C%7C6bff3441cf384cc19cd108da4a0998aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637903702321200875%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=utioR4gAxB1J3%2FZtJib5gyasQQjMSwsN03SPVzfVGE8%3D&reserved=0 ,

  1. --auto is designed to perform the actions silently , so by design it would reboot as well ,as some of the settings for them to take effect its important to reboot . And since we are in auto mode it will automatically reboot
  2. In the latest released version of the iLORest tool which is 3.3.0 , we did check and we are able to get the help file for serverclone.

Thanks & Regards, iLORest Team

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FHewlettPackard%2Fpython-redfish-utility%2Fissues%2F37%23issuecomment-1150994048&data=05%7C01%7C%7C6bff3441cf384cc19cd108da4a0998aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637903702321200875%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Cd%2Fbst7jbuzVwMtCl6Bg3gxkqrnjC8GopFEKhHemcaE%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOAJJHFCKC72XMFPI7EPHQLVOHHDLANCNFSM46ITIOQQ&data=05%7C01%7C%7C6bff3441cf384cc19cd108da4a0998aa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637903702321200875%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XsW84%2B6pebxHw3kQAZWCP3%2FNvG2QFIt4U%2FwDT97V%2FjU%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

sahanaramavana commented 2 years ago

Hi @jjwb96 ,

We are planning to add a --restart filter in future to facilitate the selective reboot option .

Thanks for your cooperation .

Thanks & Regards, iLORest Team