Display vlan ip range for specified domainid#4634
Display vlan ip range for specified domainid#4634sureshanaparti merged 2 commits intoapache:mainfrom
Conversation
|
@ravening, do you intend this for master/4.16 only or do you want this on older versions? |
@DaanHoogland 4.16 is good |
DaanHoogland
left a comment
There was a problem hiding this comment.
no comment on this PR but all this DAO code really shouldn't be in the ManagementServer
|
ping @ravening |
@DaanHoogland any idea where else I can add this ? |
|
|
@ravening you have a new conflict |
|
@ravening can you move the logic to the DAO layer and fix the conflicts? |
@DaanHoogland Im using the same code which is used by I searched in other places in the same file and they are also using the same logic. for eg: publicipaddress, loadbalancer, resourcetag, vlan, guestos |
a4586bf to
f06cca6
Compare
@ravening the rest of the code is not perfect and should be in DAOs as well. I'm not asking that of you now as I don't expect you to fix everything in one go, just to not add to the technical debt we have. |
|
Ping @ravening can you address review and fix conflicts, thanks |
there are more than ten Dao.search() or Dao.searchAndCount() in ManagementServerImpl.java, and much more in QueryManagerImpl.java |
f06cca6 to
fc121ab
Compare
@rhtyd done |
no, but those single table transactions that can we should. |
@DaanHoogland agree . as you can see in the code changes of this pr, the search on vlans has some join tables (DomainVlanMapDao, AccountVlanMapDao, PodVlanMapDao) |
Currently if we try to list vlan ip range by passing domainid then it lists for all domain. Make sure that it lists only for that domain
fc121ab to
9e322c2
Compare
|
@DaanHoogland @weizhouapache let's get a consensus on this PR to try moving it forward as it seems the requested changes may not be applied. Would that be a reason for a -1 on this PR for any of you? |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
If it's fixing a bug then +1 (sounds like you can't list Vlans for a domain?) but this would need testing |
|
Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1282 |
|
@blueorangutan test suse15 kvm-suse15 |
|
@davidjumani a Trillian-Jenkins test job (suse15 mgmt + kvm-suse15) has been kicked to run smoke tests |
davidjumani
left a comment
There was a problem hiding this comment.
Verified, only returns for the respective domainid if passed and empty set if not reserved
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1291 |
|
@blueorangutan test |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Manually tested + 2xLGTM - ready for merge after tests pass |
|
Trillian test result (tid-2098)
|
|
@blueorangutan test |
|
@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
-0 if we allow for a mix of concerns in manager implementations we will increase the number of code conflict we will get over time. We should strive for better separation as much as possible. I'm not going to block this simple fix over this but it is an increasing concern. Calls to DAOs could have been made. |
|
Trillian test result (tid-2107)
|
@DaanHoogland want to add this to cwiki / issues (as improvement) to track it later? |
Merging based on LGTMs, and manual / smoke tests. |
Description
Currently if we try to list vlan ip range by passing
domainid then it lists for all domain. Make sure that
it lists only for that domain
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Before the changes
After the changes
How Has This Been Tested?