Allow option of exposing VM domain info via instance metadata#6710
Allow option of exposing VM domain info via instance metadata#6710yadvr merged 4 commits intoapache:mainfrom
Conversation
Signed-off-by: Marcus Sorensen <mls@apple.com>
Codecov Report
@@ Coverage Diff @@
## main #6710 +/- ##
============================================
+ Coverage 5.90% 10.41% +4.51%
- Complexity 3946 6684 +2738
============================================
Files 2454 2453 -1
Lines 242749 242909 +160
Branches 37991 38032 +41
============================================
+ Hits 14325 25305 +10980
+ Misses 226839 214441 -12398
- Partials 1585 3163 +1578
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Not sure why the code coverage is complaining on the appenders, seems unrelated to the PR. |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
@DaanHoogland how can we run a specific component test with BO? |
|
@rohityadavcloud we had disabled the feature in BO two or three years ago as it was never used. I'll look at reimplement it. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4146 |
Co-authored-by: dahn <daan.hoogland@gmail.com>
Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>
|
Found UI changes, kicking a new UI QA build |
1 similar comment
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
SonarCloud Quality Gate failed. |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4185 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian Build Failed (tid-4907) |
|
Trillian test result (tid-4908)
|
yadvr
left a comment
There was a problem hiding this comment.
LGTM, the one failing test is intermittent failure not caused by this PR
… deleted as part of #6710
… deleted as part of #6710








Signed-off-by: Marcus Sorensen mls@apple.com
Description
This PR allows the cloud admin to set either a global or domain-specific value "metadata.allow.expose.domain", and when set this allows the VM to see the name and ID of the immediate domain that contains the VM in instance metadata. This can be useful or a variety of things such as bootstrapping VM configuration and access according to domain.
This PR also deletes the CloudZonesNetworkElement because it isn't referred to anywhere, and there was initially some confusion as to whether this code needed to be updated when extending metadata. If it needs to be kept we can remove that delete from the PR.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tested in a local branch, released to an internal UAT environment for a few weeks. Also updated metadata Marvin test.
Tested both setting "metadata.allow.expose.domain" true and false, and going back and forth. Need to restart the VM for changes to take effect.