Uh oh!
There was an error while loading. Please reload this page.
Fix failure in validating IP address in case of multiple Management Servers - #4507
Conversation
Pearl1594
commented
Nov 30, 2020
@blueorangutan package |
blueorangutan
commented
Nov 30, 2020
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Nov 30, 2020
Packaging result: ✖centos7 ✖centos8 ✖debian. JID-2446 |
5d8ff91 to
dad3f70ComparePearl1594
commented
Nov 30, 2020
@blueorangutan package |
blueorangutan
commented
Nov 30, 2020
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Nov 30, 2020
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2447 |
Pearl1594
commented
Nov 30, 2020
@blueorangutan test |
blueorangutan
commented
Nov 30, 2020
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
DaanHoogland
commented
Nov 30, 2020
Though I see the need of this fix, i am a bit wary of it. It must be implemented somewhere for the kvm agent as well, so why is that code not called here. It seems like we are doubling/overlooking something. |
weizhouapache
commented
Nov 30, 2020
@Pearl1594 why not change line 2592 to below ? |
blueorangutan
commented
Nov 30, 2020
Trillian test result (tid-3288)
|
sureshanaparti
left a comment
There was a problem hiding this comment.
code changes LGTM, same behavior exists in ConsoleProxyResource.
Pearl1594
commented
Dec 1, 2020
This situation does not arise in case of KVM agent @DaanHoogland |
Pearl1594
commented
Dec 1, 2020
@blueorangutan package |
blueorangutan
commented
Dec 1, 2020
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Dec 1, 2020
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2452 |
Pearl1594
commented
Dec 2, 2020
@blueorangutan test |
blueorangutan
commented
Dec 2, 2020
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
DaanHoogland
commented
Dec 2, 2020
I think I wasn't clear , @Pearl1594 . The kvm agent must have code to handle the case of multiple ip addresses for the MS, why isn't the same code used for both? The ip selection process during connecting is the same for all agent so the code should be the same bit as well. |
blueorangutan
commented
Dec 2, 2020
Trillian test result (tid-3299)
|
Pearl1594
commented
Dec 3, 2020
@DaanHoogland wrt KVM agent, the workflow followed is a bit different: This piece of code aligns to how ConsoleProxyResource handles multiple MSs. |
ok, I'll shut my loud mouth, @Pearl1594 |
* master: server: add conditions for custom offerings (apache#4540) vr: Ensuring dnsmasq.leases file is populated (apache#4529) template: Ensuring template is cross zone if type changed to system (apache#4522) storage: Fix hypervisor type cast to string (apache#4516) db upgrade: fix sql exception: Access denied; you need (at least one of) the SUPER privilege(s) for this operation (apache#4533) CLOUDSTACK-10423:Potential sensitive information disclosure (apache#4536) jobs: The patch remove the password from resultObject and make it be humanreadable (apache#4538) listphysicalnetworks: Honouring keyword parameter (apache#4511) Fix NPE when Volume exists on secondary store but doesn't have a download URL (apache#4530) apidoc issue (apache#4532) db: Fix description of volume.stats.interval which is in milliseconds not seconds (apache#4526) kvm: set cpu topology only if cpucore per socket is positive value (apache#4527) xenserver: check and eject patch vbd for systemvms (apache#4525) Fix warning when setup cloudstack-common (apache#4523) kvm: FIX cpucorespersocket is not working on KVM (apache#4497) change debug to warn for unknown exceptions (apache#4521) Fix failure in validating IP address in case of multiple Management Servers (apache#4507) Update log output for FirstFitPlanner (apache#4515) ui: deprecate old UI and move to legacy to be served at /client/legacy (apache#4518)
Description
When there are multiple Management servers, their IPs are listed as comma separated string in /var/cache/cloud/cmdline file against the "host" parameter, and when setting up the SSVM, SSVM fails to validate the IP of the management servers:
In order to fix this, the IP addresses are split on the delimiter - ',' comma and then the further operations are performed.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
How Has This Been Tested?
Deployed a setup with 2 management servers, and validated the fix. No longer fails validation of IP address