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

Add Amazon EC2 detection for virtual grains #62539

Merged
merged 8 commits into from
Sep 29, 2022

Conversation

vzhestkov
Copy link
Contributor

@vzhestkov vzhestkov commented Aug 25, 2022

What does this PR do?

Adds virtual_subtype set to Amazon EC2 in case if the it detects the instance running in Amazon EC2 environment.

Previous Behavior

In case of running the minion in Amazon EC2 instance it's defined as xen or kvm, but no any information about Amazon EC2

New Behavior

Fills virtual_subtype with Amazon EC2 or Amazon EC2 (PRODUCT) where PRODUCT is the product name used for kvm instance. For example m5.large or m5.metal.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@vzhestkov vzhestkov requested a review from a team as a code owner August 25, 2022 15:51
@vzhestkov vzhestkov requested review from waynew and removed request for a team August 25, 2022 15:51
@vzhestkov vzhestkov force-pushed the add-grains-ec2-detection branch 3 times, most recently from f7c5215 to 489f775 Compare August 30, 2022 06:34
@Ch3LL
Copy link
Contributor

Ch3LL commented Sep 27, 2022

looks like there is a merge conflict

@Ch3LL Ch3LL added the Sulfur v3006.0 release code name and version label Sep 27, 2022
@vzhestkov
Copy link
Contributor Author

@Ch3LL we found a couple more cases which is not covered with this solution. Will try to adjust tomorrow.

@vzhestkov vzhestkov force-pushed the add-grains-ec2-detection branch from 8afbbf8 to a568e95 Compare September 28, 2022 13:46
Ch3LL
Ch3LL previously approved these changes Sep 28, 2022
@vzhestkov
Copy link
Contributor Author

@Ch3LL I've added few more mocks to the test just because I found it's failing in some specific environments we are using internally for testing, haven't noticed it before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sulfur v3006.0 release code name and version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants