Skip to content

RvR: Set up metadata/password/dhcp server on gateway IP instead of guest IP in RVR - #3477

Merged
yadvr merged 4 commits into
apache:4.13from
ustcweizhou:4.11-rvr-services-on-gw
Jan 28, 2020
Merged

RvR: Set up metadata/password/dhcp server on gateway IP instead of guest IP in RVR#3477
yadvr merged 4 commits into
apache:4.13from
ustcweizhou:4.11-rvr-services-on-gw

Conversation

@ustcweizhou

Copy link
Copy Markdown
Contributor

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

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):

How Has This Been Tested?

@ustcweizhou

Copy link
Copy Markdown
ContributorAuthor

@rhtyd Here is the PR for issue #3409
I will not be able to respond to your comments in time because I will be on holiday in the coming weeks.

@yadvryadvr added this to the 4.13.0.0 milestone Jul 9, 2019
@yadvr

yadvr commented Jul 9, 2019

Copy link
Copy Markdown
Member

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>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change the port?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ustcweizhou Thanks for explaining. I'll test it.


<IfModule mod_ssl.c>
<VirtualHost 10.1.1.1:443>
<VirtualHost 10.1.1.1:8443>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above - any reason to change the port or did it come from your internal branch?

@yadvr

yadvr commented Jul 9, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-105

@yadvr

yadvr commented Jul 9, 2019

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@yadvr
yadvr changed the base branch from 4.11 to masterJuly 10, 2019 15:37
@yadvr

Copy link
Copy Markdown
Member

Looks like on 4.11 branch there is some issue, I'll kick tests against master.
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-111

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-139)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41924 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3477-t139-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_accounts.py
Intermittent failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermittent failure detected: /marvin/tests/smoke/test_iso.py
Intermittent failure detected: /marvin/tests/smoke/test_templates.py
Intermittent failure detected: /marvin/tests/smoke/test_volumes.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 67 look OK, 5 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_04_rvpc_internallb_haproxy_stats_on_all_interfacesError199.56test_internal_lb.py
ContextSuite context=TestTemplateHierarchy>:setupError1521.01test_accounts.py
test_04_extract_IsoFailure1.09test_iso.py
test_04_extract_templateFailure1.11test_templates.py
test_06_download_detached_volumeFailure11.49test_volumes.py

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@apacheapache deleted a comment from blueorangutanJul 11, 2019
@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-149)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40829 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3477-t149-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_accounts.py
Intermittent failure detected: /marvin/tests/smoke/test_iso.py
Intermittent failure detected: /marvin/tests/smoke/test_templates.py
Intermittent failure detected: /marvin/tests/smoke/test_volumes.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 67 look OK, 5 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestTemplateHierarchy>:setupError1521.43test_accounts.py
test_04_extract_IsoFailure1.13test_iso.py
test_04_extract_templateFailure1.09test_templates.py
test_06_download_detached_volumeFailure10.49test_volumes.py
test_05_rvpc_multi_tiersFailure409.02test_vpc_redundant.py
test_05_rvpc_multi_tiersError437.98test_vpc_redundant.py

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan package

@ustcweizhou

Copy link
Copy Markdown
ContributorAuthor

@rhtyd I will look into the failures.
it seems ssvm is broken by this PR.

@ustcweizhou

Copy link
Copy Markdown
ContributorAuthor

@rhtyd
I have pushed a new commit to fix ssvm.
could you please kick off another test ? thanks.

@DennisKonrad

DennisKonrad commented Nov 7, 2019

Copy link
Copy Markdown
Contributor

Hi @ustcweizhou,

do you think this will solve #3179 ?
We have this problem with KVM+OvS with redundant VPC Offering where the wrong dev num is chosen. On current master.

I suspect the changes in this PR will at least change the behaviour of VPC also.

@ustcweizhou

Copy link
Copy Markdown
ContributorAuthor

@DennisKonrad unfortunately I do not think this pr is helpful on fixing the issue you mentioned.

@andrijapanicsb

Copy link
Copy Markdown
Contributor

@DaanHoogland all 3 envs failed, I wiped them to regain some resources on Trillian

@DaanHoogland

Copy link
Copy Markdown
Contributor

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.

@yadvr

yadvr commented Jan 6, 2020

Copy link
Copy Markdown
Member

Trillian test failed, needs re-run @DaanHoogland cc @andrijapanicsb
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-536

@andrijapanicsb

Copy link
Copy Markdown
Contributor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@andrijapanicsb a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@apacheapache deleted a comment from blueorangutanJan 6, 2020
@apacheapache deleted a comment from blueorangutanJan 6, 2020
@apacheapache deleted a comment from blueorangutanJan 6, 2020
@apacheapache deleted a comment from blueorangutanJan 6, 2020
@apacheapache deleted a comment from blueorangutanJan 6, 2020
@apacheapache deleted a comment from blueorangutanJan 6, 2020
@apacheapache deleted a comment from blueorangutanJan 6, 2020
@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-704)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 42566 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3477-t704-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Smoke tests completed. 76 look OK, 1 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_02_vpc_privategw_static_routesFailure267.01test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupFailure267.22test_privategw_acl.py
test_04_rvpc_privategw_static_routesFailure412.07test_privategw_acl.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-703)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 47090 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3477-t703-xenserver-71.zip
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Smoke tests completed. 76 look OK, 1 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_scale_vmFailure35.02test_scale_vm.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-705)
Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 57883 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3477-t705-vmware-65u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_deploy_vm_root_resize.py
Smoke tests completed. 76 look OK, 1 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_00_deploy_vm_root_resizeFailure404.93test_deploy_vm_root_resize.py

@DaanHoogland

Copy link
Copy Markdown
Contributor

@rhtyd @andrijapanicsb differnet errors at different environments above. as this had been reviewed and tested before, do we spend more time investigating?

@DaanHoogland

Copy link
Copy Markdown
Contributor

ping @rhtyd @andrijapanicsb ??

@yadvr
yadvr merged commit ff1c6e7 into apache:4.13Jan 28, 2020
ustcweizhou added a commit to ustcweizhou/cloudstack that referenced this pull request Feb 28, 2020
… 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.
FIxesapache#3409
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@ustcweizhou@yadvr@blueorangutan@shwstppr@borisstoyanov@DennisKonrad@andrijapanicsb@DaanHoogland