Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EC2 autodetection is broken #691

Closed
mfischer-zd opened this issue Dec 21, 2015 · 2 comments
Closed

EC2 autodetection is broken #691

mfischer-zd opened this issue Dec 21, 2015 · 2 comments
Assignees
Labels
Expeditor: Skip Version Bump Used to skip built_in:bump_version Type: Bug Does not work as expected.

Comments

@mfischer-zd
Copy link

EC2 instances no longer have a MAC address that matches the pattern provided (fe:ff:ff:ff:ff:ff) so the has_ec2_mac? function is no longer reliable.

So, for now, the only way to get Ohai to provide EC2-related attributes is to provide a hint file (usually /etc/chef/ohai/hints/ec2.json) with an empty JSON object in it.

@tas50 tas50 self-assigned this Jan 25, 2016
@tas50
Copy link
Contributor

tas50 commented Jan 25, 2016

In a VPC the current MAC address detection is definitely broken. We should expand our "looks like ec2" logic to include dmesg output on Linux which includes a mention of Amazon. There's probably something similar on Windows.

@tas50
Copy link
Contributor

tas50 commented Feb 1, 2016

#711 should fix this

@tas50 tas50 added the Bug label Feb 1, 2016
@tas50 tas50 closed this as completed Feb 5, 2016
@thommay thommay added Type: Bug Does not work as expected. Meta: Exclude From Changelog and removed Bug labels Jan 24, 2017
@thommay thommay added Expeditor: Skip Version Bump Used to skip built_in:bump_version and removed Meta: Exclude From Changelog labels Sep 22, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Expeditor: Skip Version Bump Used to skip built_in:bump_version Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

3 participants