-
Notifications
You must be signed in to change notification settings - Fork 1.3k
api/server: fix hahost value in listHosts #4789
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
Conversation
Signed-off-by: Abhishek Kumar <[email protected]>
|
@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. |
Signed-off-by: Abhishek Kumar <[email protected]>
|
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
|
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 <[email protected]> * fix Signed-off-by: Abhishek Kumar <[email protected]> * Update server/src/main/java/com/cloud/api/query/dao/HostJoinDaoImpl.java Co-authored-by: dahn <[email protected]> * Update server/src/main/java/com/cloud/api/query/dao/HostJoinDaoImpl.java Co-authored-by: Rohit Yadav <[email protected]> Co-authored-by: dahn <[email protected]>
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: