cloudfoundry / cloudfoundry/bosh-cli

Adding "bosh reset-vm" or "bosh reboot-vm" command?

Open
#702 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
186
Forks
170
Avg merge
21h 48m
Merged PRs (30d)
3

Description

Sometimes the user might need to hard reset or soft reset (reboot) Virtual Machine on cloud (e.g. vSphere) without getting the VM recreated on cloud. The existing bosh recreate command would cause the VM to be recreated. And bosh restart command is only to restart all jobs on the VM.
Is it possible to have commands like bosh reset-vm and bosh reboot-vm command to hard and soft reset the VM on cloud respectively?
Take vSphere as example,
bosh reset-vm could simulate the "Power -> Reset" operation on vSphere client
bosh reboot-vm could simulate the "Power -> Restart Guest OS" operation on vSphere client.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing bosh recreate and bosh restart command entry points and how they invoke cloud VM operations. Check how vSphere exposes hard reset and guest-OS restart, then determine equivalent behavior across supported clouds; done means clearly defined bosh reset-vm and bosh reboot-vm commands without VM recreation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.