RvR: Set up metadata/password/dhcp server on gateway IP instead of guest IP in RVR#3477
Conversation
|
@rhtyd Here is the PR for issue #3409 |
|
Thanks @ustcweizhou I'll help review and test, if you're unavailable may extend and address any review comments myself. |
| @@ -1,4 +1,4 @@ | |||
| <VirtualHost 10.1.1.1:80> | |||
| <VirtualHost 10.1.1.1:8180> | |||
There was a problem hiding this comment.
these lines will be replaced with gateway IP and guest IP in CsApp.py
If we use :80 and :443 in this template, the first time it is ok, after that the configuration file gets mess up
if we use :8180 and :8443, the configuration file will be changed only once.
|
|
||
| <IfModule mod_ssl.c> | ||
| <VirtualHost 10.1.1.1:443> | ||
| <VirtualHost 10.1.1.1:8443> |
There was a problem hiding this comment.
Same as above - any reason to change the port or did it come from your internal branch?
|
@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-105 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Looks like on 4.11 branch there is some issue, I'll kick tests against master. |
|
@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-111 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-139)
|
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-149)
|
|
@blueorangutan package |
|
Trillian test result (tid-425)
|
|
@rhtyd I will look into the failures. |
|
@rhtyd |
|
Hi @ustcweizhou, do you think this will solve #3179 ? I suspect the changes in this PR will at least change the behaviour of VPC also. |
|
@DennisKonrad unfortunately I do not think this pr is helpful on fixing the issue you mentioned. |
|
@DaanHoogland all 3 envs failed, I wiped them to regain some resources on Trillian |
|
build failures again "TASK [Remove previous SSH key from Project if it exists] ". Not sure if this is related to the PR, but looks like it. |
|
Trillian test failed, needs re-run @DaanHoogland cc @andrijapanicsb |
|
@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-536 |
|
@blueorangutan test matrix |
|
@andrijapanicsb 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-704)
|
|
Trillian test result (tid-703)
|
|
Trillian test result (tid-705)
|
|
@rhtyd @andrijapanicsb differnet errors at different environments above. as this had been reviewed and tested before, do we spend more time investigating? |
|
ping @rhtyd @andrijapanicsb ?? |
… guest IP in RVR (apache#3477) When we create a vm in the network with redundant VRs, the lease file in the vm (for example /var/lib/dhcp/dhclient.eth0.leases) shows the dhcp-server-identifier is the guest ip (not vip/gateway) of master VR. That's the ip ipaddress where the vm fetch password and metadata from. if we stop the master VR (then backup will be master) or restart the network with cleanup (VRs will be created), the guest ip of master VR changes so vm are not able to get metadata/ssh-key using the ips in dhcp lease file. Setting up metadata/password/dhcp server on gateway instead of guest IP in redundant VRs will fix the issues. FIxes apache#3409
Description
When we create a vm in the network with redundant VRs, the lease file in the vm (for example /var/lib/dhcp/dhclient.eth0.leases) shows the dhcp-server-identifier is the guest ip (not vip/gateway) of master VR. That's the ip ipaddress where the vm fetch password and metadata from.
if we stop the master VR (then backup will be master) or restart the network with cleanup (VRs will be created), the guest ip of master VR changes so vm are not able to get metadata/ssh-key using the ips in dhcp lease file.
Setting up metadata/password/dhcp server on gateway instead of guest IP in redundant VRs will fix the issues.
FIxes: #3409
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?