RvR: VPC redundant vrs run on same hypervisor#3421
Conversation
| final List<DomainRouterVO> routerList = _routerDao.listByVpcId(router.getVpcId()); | ||
| for (final DomainRouterVO rrouter : routerList) { | ||
| if (rrouter.getHostId() != null && rrouter.getIsRedundantRouter() && rrouter.getState() == State.Running) { | ||
| if (routerToBeAvoid != null) { |
There was a problem hiding this comment.
should this also check that the routerList.size() is >= 2?
There was a problem hiding this comment.
it should be checked at some other places I think.
I am too lazy I just copied the lines from 380 to 390
https://github.com/apache/cloudstack/blob/4.11/server/src/com/cloud/network/router/NetworkHelperImpl.java#L380,L390
There was a problem hiding this comment.
it should be checked at some other places I think.
I am too lazy I just copied the lines from 380 to 390
https://github.com/apache/cloudstack/blob/4.11/server/src/com/cloud/network/router/NetworkHelperImpl.java#L380,L390
anuragaw
left a comment
There was a problem hiding this comment.
Overall LGTM but code could use some cleanup.
c1aa019 to
c6139f9
Compare
c6139f9 to
cf2ee49
Compare
anuragaw
left a comment
There was a problem hiding this comment.
Thanks @ustcweizhou !
LGTM
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-47 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-41)
|
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@rhtyd if it still fails, I will look into it tomorrow. |
|
Trillian test result (tid-42)
|
|
@rhtyd and and |
|
Okay @ustcweizhou I'll kick them one more time. Third's the winner ;) @blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-62 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-55)
|
For VPC supports redundant VRs, when start the second VR, the pod/cluster/host of first VR should be added to avoid list. This provides higher availability. The network VRs have the same process already.
Description
For VPC supports redundant VRs, when start the second VR, the pod/cluster/host of first VR should be added to avoid list. This provides higher availability.
The network VRs have the same process already.
Types of changes