server: fix addCluster for vmware, others#5421
server: fix addCluster for vmware, others#5421yadvr merged 1 commit intoapache:mainapache/cloudstack:mainfrom shapeblue:fix-addcluster-vmwshapeblue/cloudstack:fix-addcluster-vmwCopy head branch name to clipboard
Conversation
With 87ddc76, value column in cloud.cluster_details has been made non-nullable. While adding a cluster (especially VMware), addCluster API can be called without username password. Username and password are updated in cluster details entry later after successful discovery. This PR stores an empty string instead of a null value when initial cluster entry is made in the DB. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Does it affect 4.15 too @shwstppr or just main? |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1182 |
|
@blueorangutan test centos7 vmware-67u3 |
|
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-2005)
|
|
Trillian test result (tid-2000)
|
|
@blueorangutan test matrix |
|
@nvazquez a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2021)
|
|
Trillian test result (tid-2020)
|
|
Trillian test result (tid-2022)
|
Description
With 87ddc76, value column in cloud.cluster_details has been made non-nullable.
While adding a cluster (especially VMware), addCluster API can be called without username password. Username and password are updated in cluster details entry later after successful discovery.
This PR stores an empty string instead of a null value when the initial cluster entry is made in the DB.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
How Has This Been Tested?
Error in logs:
After change - addCluster successful:

Correct cluster details after successful addition:
