GithubHelp home page GithubHelp logo

Comments (10)

drnic avatar drnic commented on July 30, 2024

Do you get this if you run it again?

I think this issue can only be "fixed" within BOSH itself. Could you also please create a Jira ticket? https://cloudfoundry.atlassian.net/browse/CF

from bosh-bootstrap.

BrianMMcClain avatar BrianMMcClain commented on July 30, 2024

Re-ran it and still got it. Also ran bosh micro deploy from the inception VM and got the issue. Looks like this is the offending code:

https://github.com/cloudfoundry/bosh/blob/master/aws_cpi/lib/cloud/aws/cloud.rb#L759

From aws-sdk-ruby...

# @option options [String] :availability_zone Specifies the
#   availability zone where the instance should run.  Without
#   this option, EC2 will choose an availability zone for you.

I'm re-running this after commenting out: https://github.com/cloudfoundry/bosh/blob/master/aws_cpi/lib/cloud/aws/cloud.rb#L114-L116

I've also filed an issue in JIRA: https://cloudfoundry.atlassian.net/browse/CF-232

from bosh-bootstrap.

drnic avatar drnic commented on July 30, 2024

Brian, for the moment, want to try us-west-2 (same prices as us-east-1).

from bosh-bootstrap.

BrianMMcClain avatar BrianMMcClain commented on July 30, 2024

I'll give that a run as well (even if this succeeds)

from bosh-bootstrap.

BrianMMcClain avatar BrianMMcClain commented on July 30, 2024

By the way, didn't have a chance to run it in us-west-2, but I did completed the setup in us-east-1 after removing the code that specified the AZ. This is most certainly an issue that should be solved in BOSH's AWS CPI, I've posted my thoughts on the topic in the JIRA ticket I linked previously.

from bosh-bootstrap.

drnic avatar drnic commented on July 30, 2024

Closing for now as a bootstrap issue.

from bosh-bootstrap.

drnic avatar drnic commented on July 30, 2024

Theoretically fog should be able to show which AZs are available:

azInfo = connection.describe_availability_zones.body["availabilityZoneInfo"]
azInfo.select {|az| az["zoneState"] == "available"}
azInfo.select {|az| az["zoneState"] == "available"}.map {|az| az["zoneName"]}

Though it shows all available for @BrianMMcClain when he runs it

from bosh-bootstrap.

drnic avatar drnic commented on July 30, 2024

May need to support a list of AZs to ignore; and actually randomly pick an az for the inception VM and core/0 VM and other VMs if BOSH isn't going to help with VM assignment.

from bosh-bootstrap.

drnic avatar drnic commented on July 30, 2024

This is still to be implemented in v0.11+

from bosh-bootstrap.

drnic avatar drnic commented on July 30, 2024

Explicit AZ can be specified via provider.az in settings.yml; shipped in v0.11.2.

See https://github.com/StarkAndWayne/bosh-bootstrap#restrict-aws-availability-zones

from bosh-bootstrap.

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.