apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.06k stars 1.1k forks source link

ssvm not setting default gateway to eth2 - acs 4.18.0 #7800

Closed Chih80 closed 1 year ago

Chih80 commented 1 year ago
ISSUE TYPE
COMPONENT NAME
ssvm ~~~ ~~~ ##### CLOUDSTACK VERSION 4.18 ~~~ ~~~ ##### CONFIGURATION Advanced networking ##### OS / ENVIRONMENT ubuntu 20.04 ##### SUMMARY

ssvm default gateway although listed correctly in the gui details, upon checking netstat 0.0.0.0/0 is not pointing to it and not set for eth2.

STEPS TO REPRODUCE
create or destroy ssvm
EXPECTED RESULTS

default gateway set to eth2.

ACTUAL RESULTS

default gateway not set to eth2.

boring-cyborg[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the issue template!

Chih80 commented 1 year ago

CPVM showing the correct default gateway to eth2 conf. SSVM missing the default gateway for eth2 conf.

weizhouapache commented 1 year ago

@Chih80 CPVM and SSVM are configured like it for many years.

is there any problem caused by it in your environment ?

Chih80 commented 1 year ago

@weizhouapache I don't believe so. Triple check all the network settings, everything is correct. The detail on the gui shows the correct default gateway, but within ssvm, it is not set to eth2.

current - 0.0.0.0/0 -> x.x.x.x eth1

supposed to be - 0.0.0.0/0 -> x.x.x.x eth2.

why it is not setting to eth2?

weizhouapache commented 1 year ago

@weizhouapache I don't believe so. Triple check all the network settings, everything is correct. The detail on the gui shows the correct default gateway, but within ssvm, it is not set to eth2.

current - 0.0.0.0/0 -> x.x.x.x eth1

supposed to be - 0.0.0.0/0 -> x.x.x.x eth2.

why it is not setting to eth2?

@Chih80 I checked the system vms in some of my testing environments. The default gateway of both CPVM and SSVM are both set to eth2.

can you share the value of the global setting secstorage.allowed.internal.sites ?

Chih80 commented 1 year ago

@weizhouapache Yea, my CPVM has the correct settings but not SSVM.

secstorage.allowed.internal.sites, I have 0.0.0.0/0.

Chih80 commented 1 year ago

it turned out to be the 0.0.0.0/0 that was added, once removed the default gateway is set properly for eth2 in ssvm. Thank You @weizhouapache

weizhouapache commented 1 year ago

it turned out to be the 0.0.0.0/0 that was added, once removed the default gateway is set properly for eth2 in ssvm. Thank You @weizhouapache

good it is resolved