Code Monkey home page Code Monkey logo

Comments (5)

runningman84 avatar runningman84 commented on August 15, 2024

The problem occurs if you start an instance in a vpc. Funny enough everything is working fine using ec2metadata tool.

from ohai.

lamont-granquist avatar lamont-granquist commented on August 15, 2024

Does using the hinting system for ohai fix this? I seem to recall if you're using VPC that you have to use hints.

from ohai.

lamont-granquist avatar lamont-granquist commented on August 15, 2024

@btm isn't this problem with VPC nodes unable to determine if they're in EC2 which drove creating the hinting system in the first place? This has nothing specific to do with ap-southeast, and there's really nothing to fix here?

from ohai.

tas50 avatar tas50 commented on August 15, 2024

This should get closed out. EC2 detection is pretty basic and relies on a specific Xen like MAC address being seen. I'm fairly confident that will not work with modern VPC AWS setups. In order to reliably detect a node as being in EC2 you need the hint file to tip Ohai off that it should make a metadata call. It's not possible for Ohai to make metadata calls for every possible cloud provider with the hopes that one might return data.

from ohai.

tas50 avatar tas50 commented on August 15, 2024

Closing this out based on my previous comment. As much as we'd like to magically detect clouds we rely on the hints to limit the time it takes to detect all attributes.

from ohai.

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.