api/server: fix hahost value in listHosts#4789
Conversation
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@shwstppr |
server/src/main/java/com/cloud/api/query/dao/HostJoinDaoImpl.java
Outdated
Show resolved
Hide resolved
@weizhouapache we re-create host_view to have concatenated tags with the following changes maybe in 4.16? |
@shwstppr yeah, 4.16 or 4.15.1. I suggest to remove tags (resource tags, host tags, etc) from all mysql views. |
|
@weizhouapache with above SQL create view statement we will have a single entry for each host with multiple tags comma-separated. Something like, |
@shwstppr it looks perfect. |
|
@weizhouapache I've created PR #4796 against 4.15 to recreate hosts_view in 4.15.1. I will do some more testing before marking it ready for review |
weizhouapache
left a comment
There was a problem hiding this comment.
code lgtm
Does #4796 have conflict with this ?
|
@weizhouapache yes #4796 will conflict in the current form. I'll rebase my changes there if this is accepted. |
|
clgtm |
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. [S] |
|
Packaging result: ✔️ centos7 ✖️ centos8 ✔️ debian. SL-JID 164 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests [S] |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✖️ centos8 ✔️ debian. SL-JID 200 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Co-authored-by: dahn <daan.hoogland@gmail.com>
|
Trillian test result (tid-274)
|
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✔️ debian. SL-JID 276 |
|
@blueorangutan test |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian Build Failed (tid-283) |
|
@blueorangutan test |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian Build Failed (tid-292) |
|
@blueorangutan test |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-297)
|
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ centos7 ✖️ debian. SL-JID 289 |
|
Packaging result: ✖️ centos7 ✖️ debian. SL-JID 287 |
|
Packaging result: ✔️ centos7 ✔️ debian. SL-JID 292 |
|
@blueorangutan test |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-305)
|
* api/server: fix hahost value in listHosts Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * fix Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * Update server/src/main/java/com/cloud/api/query/dao/HostJoinDaoImpl.java Co-authored-by: dahn <daan.hoogland@gmail.com> * Update server/src/main/java/com/cloud/api/query/dao/HostJoinDaoImpl.java Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com> Co-authored-by: dahn <daan.hoogland@gmail.com>
Description
Fixes #3717
Hosts can have multiple tags assigned to them therefore changes have been made to check for all of the host tags if they match
ha.tagconfiguration value.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
With a 2xKVM hosts env with advanced networking
Global config - ha.tag:
Before changes:
After changes: