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
Allow privateips on console proxy #6808
Allow privateips on console proxy #6808
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6808 +/- ##
============================================
+ Coverage 11.27% 11.31% +0.04%
- Complexity 7287 7336 +49
============================================
Files 2492 2494 +2
Lines 246805 246880 +75
Branches 38562 38567 +5
============================================
+ Hits 27828 27940 +112
+ Misses 215393 215344 -49
- Partials 3584 3596 +12
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small issues with the code so far.
server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
Outdated
Show resolved
Hide resolved
@GaOrtiga dio you expect to have this finished/ready for review in the coming weeks? |
@DaanHoogland Yes, I will probably have it ready by the next week. |
c39f4e0
to
d44ca46
Compare
SonarCloud Quality Gate failed. |
@GaOrtiga 270 code smells seems a bit daunting. Are you still working on this? |
@GaOrtiga as this is still in draft, should it be pushed to a later milestone? i.e. 4.19? |
Sorry about the delay to finish this, while creating the tests I found the error that was fixed here: #6910 |
d44ca46
to
f218a9f
Compare
SonarCloud Quality Gate failed. 0 Bugs |
@blueorangutan package |
@DaanHoogland 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 5033 |
@blueorangutan test |
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm, but a license header is needed/missing
server/src/test/java/com/cloud/configuration/ConfigurationManagerImplTest.java
Show resolved
Hide resolved
Trillian test result (tid-5589)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
@blueorangutan test keepEnv |
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Trillian test result (tid-5596)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Tested locally and everything work like a charm
@GaOrtiga, |
server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Rodrigo D. Lopez <19981369+RodrigoDLopez@users.noreply.github.com> Co-authored-by: Stephan Krug <stekrug@icloud.com>
|
No concerns, I just wodered what to test/look for. I'm fine with merging as is but I think it will not be for those that do not know beforehand what to expect, so if you an find any documentation on the console proxy domain configuration it would be nice if you can add it. |
This reverts commit 9164534.
@DaanHoogland |
@GaOrtiga |
I created the PR #7018 |
no worries @GaOrtiga |
Description
Currently the configuration
consoleproxy.url.domain
only accepts domain names as a valid value; however, some users have reported the desire to use private IPs as a value for this configuration. This is useful for CI implementation and local labs.The main goal of this PR is to allow operators to use IPs as valid configurations as well.
The validations for the configuration values have also been refactored into new methods to facilitate unity tests and clean up the code.
Types of changes
Feature/Enhancement Scale