CLOUDSTACK-9887 ignore bogus default gateway#2055
Conversation
when a shared network is secondary the default gateway gets overwritten by a bogus one dnsmasq does the right thing and replaces it with its own default which is not good for us so check for '0.0.0.0'
|
@DaanHoogland can you fix the commit message to include the JIRA id |
|
@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-662 |
|
@rhtyd the PR has the ticket id so the merge commit will as well. Is that not enough? |
|
LGTM. |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1021)
|
|
@karuturi can this be merged? |
|
LGTM, based on logic and code but could not test |
|
LGTM |
|
I think it is fixed by #1766 for CLOUDSTACK-9598 |
|
@ustcweizhou #1766 doesn't fix the issue completely as it still remains in 4.9 |
|
@DaanHoogland are you testing on 4.9.2 or 4.9 branch ? This issue is related to commit c81b338 |
|
@ustcweizhou I am looking into this for a customer running 4.9.1 |
|
@DaanHoogland However, I do not think this PR fixes the issue. If the gateway ip is not set in dhcp-option, other vms in this network will not get the gateway, even the ip is on the default nic. |
|
@DaanHoogland |
|
@ustcweizhou It is worth a try. Can you confirm that no config line 3 is present for the tagged interface? |
|
@ustcweizhou do you have a link to that patch, you refer to? |
|
@DaanHoogland The gateway is set after the change, so the dhcp-option you mentioned is configured with correct gateway. here you are |
|
@ustcweizhou thanks for the patch, i'll look into the replace code. if the gateway line is removed completely this is good. I'll test your patch as well. |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-716 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
LGTM |
|
Trillian test result (tid-1085)
|
|
LGTM, based on test results and review. |
|
@ustcweizhou @DaanHoogland you're both LGTM on this as well I suppose? |
when a shared network is secondary the default gateway gets overwritten by a bogus one
dnsmasq does the right thing and replaces it with its own default which is not good for us
so check for '0.0.0.0'