Giter VIP home page Giter VIP logo

Comments (6)

cf-gitbot avatar cf-gitbot commented on August 10, 2024

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/161338351

The labels on this github issue will be updated when the story is started.

from bosh-windows-stemcell-builder.

thisisnotashwin avatar thisisnotashwin commented on August 10, 2024

Hey @gossion

Bosh does not currently support a workflow where VM restarts are managed outside of the Bosh director. In case you do need to restart VMs, the bosh cli has commands to do the same. Restarting the VM from the portal leads to the BOSH director thinking the VMs have been torn down and it tries to recreate them.

Was there a particular use case that you had which required the VMs to be restarted from the Azure portal? It would help us understand the requirement a little better.

Thanks!!

from bosh-windows-stemcell-builder.

gossion avatar gossion commented on August 10, 2024

Thanks @ashwin-venkatesh . Currently, I don't have any workload blocked, I just saw the error and thought that it could be an issue.

A use case that I can think is a test environment, people would like to stop the VMs for purpose of cost saving, and later on when they need to use the test environment again they start the VMs, and finally they find that the VMs are not recovered.

from bosh-windows-stemcell-builder.

thisisnotashwin avatar thisisnotashwin commented on August 10, 2024

Hey @gossion

That is a reasonable use case. Bosh does currently support this workflow using the bosh stop command. It also includes the --hard flag which deletes the VMs but holds onto the persistent disks.

Those would be the recommended way to achieve the desired result. This should ensure things work seamlessly.Bosh maintains it's own state of the world and does not work as intended when changes are made to a VM state via mechanisms external to it.

I hope this addresses the above concern. Do you have other questions or would it be alright if I closed this issue?

from bosh-windows-stemcell-builder.

thisisnotashwin avatar thisisnotashwin commented on August 10, 2024

Additionally, you can use bosh start to restart a stopped deployment.

from bosh-windows-stemcell-builder.

gossion avatar gossion commented on August 10, 2024

Thanks @ashwin-venkatesh .

There is no API for CPI to stop (which is allocate on Azure) a VM, for purpose of cost saving I need to delete the VM (bosh stop --hard) which is not convenient to find the instance id once it is deleted (it is not shown on bosh vms anymore). So I think it is better if the VM can come back to service after an expected/unexpected reboot.

Anyway, I am not blocked. I will close this issue, but think it is a nice-to-have feature.

from bosh-windows-stemcell-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.