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

feat: Added Azure location to facts #3389

Merged
merged 3 commits into from
Apr 18, 2024
Merged

Conversation

jirihnidek
Copy link
Contributor

  • Card ID: CCT-384
  • Add azure_location to facts, when available
  • Updated the version of metadata we try to get from Azure IMDS server, because we need facts from new
    version of metadata and old version of metadata could be deprecated in the future
  • Added new facts from Azure IMDS metadata available since 2021-03-01
    • Metadata with given version provides extendedLocation.name and extendedLocation.type
  • Extended unit tests to include new facts

@cnsnyder cnsnyder requested review from a team and m-horky and removed request for a team April 15, 2024 10:38
Copy link

github-actions bot commented Apr 15, 2024

Coverage

Coverage (computed on Fedora latest) •
FileStmtsMissCoverMissing
cloud_what/providers
   azure.py1384269%108, 134, 138, 151–152, 179, 235–237, 261, 263, 265–266, 268–272, 274–279, 281–287, 290–291, 294, 297–303, 309
rhsmlib/facts
   cloud_facts.py98990%100, 105, 109, 175, 181, 186, 191, 196, 198
TOTAL18405469574% 

Tests Skipped Failures Errors Time
2647 14 💤 0 ❌ 0 🔥 40.928s ⏱️

@jirihnidek
Copy link
Contributor Author

BTW: documentation for Azure IMDS metadata is available here: https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=linux

@jirihnidek
Copy link
Contributor Author

jirihnidek commented Apr 15, 2024

New code tested on Azure and it works.

@ptoscano ptoscano force-pushed the jhnidek/azure_region_fact branch from 1a0ea96 to 0849db3 Compare April 18, 2024 08:46
* Card ID: CCT-384
* Add azure_location to facts, when available
* TODO: update required version of metadata and get extended
  locatition fact
* Update the version of metadata we try to get from
  Azure IMDS server, because we need facts from new
  version of metadata and old version of metadata
  could be deprecated in the future
* Card ID: CCT-384
* Added new facts from Azure IMDS metadata available since
  2021-03-01
  * Metadata with given version provides extendedLocation.name
    and extendedLocation.type
* Extendd unit tests to include new facts
@ptoscano ptoscano force-pushed the jhnidek/azure_region_fact branch from 0849db3 to 0bba05e Compare April 18, 2024 12:44
@ptoscano ptoscano merged commit 3cc6ee7 into main Apr 18, 2024
17 checks passed
@ptoscano ptoscano deleted the jhnidek/azure_region_fact branch April 18, 2024 12:56
jirihnidek added a commit that referenced this pull request Apr 24, 2024
* Backport commit to 1.28 branch
* Original PR: #3389
  * Original commit: c9acace
* Card ID: CCT-384
* Add azure_location to facts, when available
* TODO: update required version of metadata and get extended
  locatition fact
jirihnidek added a commit that referenced this pull request Apr 24, 2024
* Backport commit to 1.28 branch
* Original PR: #3389
  * Original commit: 76253dc
* Update the version of metadata we try to get from
  Azure IMDS server, because we need facts from new
  version of metadata and old version of metadata
  could be deprecated in the future
jirihnidek added a commit that referenced this pull request Apr 24, 2024
* Backport commit to 1.28
* Original PR: #3389
  * Original commit: 0bba05e
* Card ID: CCT-384
* Added new facts from Azure IMDS metadata available since
  2021-03-01
  * Metadata with given version provides extendedLocation.name
    and extendedLocation.type
* Extendd unit tests to include new facts
m-horky pushed a commit that referenced this pull request May 14, 2024
* Backport commit to 1.28 branch
* Original PR: #3389
  * Original commit: c9acace
* Card ID: CCT-384
* Add azure_location to facts, when available
* TODO: update required version of metadata and get extended
  locatition fact
m-horky pushed a commit that referenced this pull request May 14, 2024
* Backport commit to 1.28 branch
* Original PR: #3389
  * Original commit: 76253dc
* Update the version of metadata we try to get from
  Azure IMDS server, because we need facts from new
  version of metadata and old version of metadata
  could be deprecated in the future
m-horky pushed a commit that referenced this pull request May 14, 2024
* Backport commit to 1.28
* Original PR: #3389
  * Original commit: 0bba05e
* Card ID: CCT-384
* Added new facts from Azure IMDS metadata available since
  2021-03-01
  * Metadata with given version provides extendedLocation.name
    and extendedLocation.type
* Extendd unit tests to include new facts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants