softlayer / knife-softlayer

Other
25 stars 22 forks source link

It should be possible to re-provision a VM by doing an OS reload instead of a cancel #17

Closed hairyhenderson closed 9 years ago

hairyhenderson commented 9 years ago

It should be possible to re-provision a VM by doing an OS reload instead of a cancel.

i.e. I want something that acts like knife softlayer server destroy ..., except that instead of cancelling the VM through the SL API, it would instead do an OS reload.

cphrmky commented 9 years ago

@hairyhenderson tagging this as a enhancement request, there's a small amount of work to be done to get this hooked up. High-level overview:

Baseline Info:

Necessary steps:

I don't have the bandwidth at the moment to do this personally, but possibly @fernandes or @underscorephil can find someone to tackle it.

@hairyhenderson if you or a member of your team have cycles to make the changes to knife-softlayer it's possible that @underscorephil or @fernandes can get the fog-softlayer changes in place for you to consume.

cphrmky commented 9 years ago

@hairyhenderson , @underscorephil , @fernandes

Just finishing the work to add the reload method to fog-softlayer today, will tackle this next.

underscorephil commented 9 years ago

+1

cphrmky commented 9 years ago

@hairyhenderson,

Here's the feature branch if you'd like to take it for an early test drive and give any feedback you've got.

https://github.com/softlayer/knife-softlayer/tree/feature/server_relaunch

Usage is knife softlayer server relaunch <NODE NAME>. That's going to relaunch the VM and bootstrap it from scratch, same node name, same attributes, etc.

/cc @underscorephil

cphrmky commented 9 years ago

@hairyhenderson ,

This has been merged and a release has been cut. Upgrade to v0.3.12 to pick up this functionality.

/cc @underscorephil

hairyhenderson commented 9 years ago

@cphrmky - thanks! Sorry I never got around to test-driving it... Haven't had the cycles for this for a few weeks. :(

cphrmky commented 9 years ago

@hairyhenderson haha, no worries, I took it for a spin myself, of course other people are going to be better I finding the bugs I've written than I will...