You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "weizhouapache (via GitHub)" <gi...@apache.org> on 2025/10/07 07:50:13 UTC
[I] private gateway attach to wrong physical network [cloudstack]
weizhouapache opened a new issue, #11798:
URL: https://github.com/apache/cloudstack/issues/11798
### Discussed in https://github.com/apache/cloudstack/discussions/11795
<div type='discussions-op-text'>
<sup>Originally posted by **bradh352** October 6, 2025</sup>
I've got these physical networks:
<img width="741" height="293" alt="image" src="https://github.com/user-attachments/assets/362e968d-7332-4a09-80d9-502f9cad0edd" />
And I want to add a private gateway to access the mgmt network to allow access to few ports (ceph via the mgmt/hypervisor network in this case):
<img width="1071" height="621" alt="image" src="https://github.com/user-attachments/assets/ab343355-79cd-41d8-bdf9-92a6ec695bc0" />
Before I attempt to add a private gateway, I check my network bridges:
```
ceph 8000.de95ff0e22c3 no vxlan200
hypervisor 8000.0625c5991a54 no vxlan100
public 8000.d286dc39fb05 no vnet1
vxlan2
```
I can see `vnet1` for my VPC public ips attached to `public` which is right. But otherwise no vnets are attached to those bridges which is right as well.
So I create a private gateway in my VPC like this:
<img width="506" height="773" alt="image" src="https://github.com/user-attachments/assets/b9cb1851-db24-43e0-88f7-7f9f0b9aa611" />
It creates fine, but when I look at bridge config, it attached to the wrong network!
```
ceph 8000.de95ff0e22c3 no vxlan200
hypervisor 8000.0625c5991a54 no vxlan100
public 8000.d286dc39fb05 no vnet1
vnet11
vxlan2
```
I would have expected vnet11 to attach to `hypervisor` but instead it attached to `public`. Am I doing something wrong here? Or misunderstanding something? Or is this a bug?
I'm running 4.21.0</div>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] private gateway attach to wrong physical network [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #11798:
URL: https://github.com/apache/cloudstack/issues/11798#issuecomment-3817784695
fixed in #11864
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] private gateway attach to wrong physical network [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #11798: private gateway attach to wrong physical network
URL: https://github.com/apache/cloudstack/issues/11798
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] private gateway attach to wrong physical network [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #11798:
URL: https://github.com/apache/cloudstack/issues/11798#issuecomment-3375628256
I can reproduce the issue
I have two physical networks: cloudbr0 (mgmt) and cloudbr1 (guest/public)
- create private gw with vlan 102 on mgmt, the NIC is attached to breth0-102 (correct)
- create private gw with vlan 103 on guest/public, the NIC is attached to breth1-103 (correct)
- create private gw with untagged on mgmt, the NIC is attached to **cloudbr1 (incorrect, should br cloudbr0)**
- create private gw with untagged on guest/public, the NIC is attached to cloudbr1 (correct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] private gateway attach to wrong physical network [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #11798:
URL: https://github.com/apache/cloudstack/issues/11798#issuecomment-3375863997
if the private gw has a vlan tag, ACS creates a bridge on private nic (which is cloudbr0 in my setting)
```
private.network.device=cloudbr0
```
https://github.com/apache/cloudstack/blob/9bcd98876d6737a9139b2e33535f479e7300723f/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/BridgeVifDriver.java#L239
however, if private gw does not have a vlan tag (in another word, it uses vlan://untagged), ACS creates a bridge on guest nic
https://github.com/apache/cloudstack/blob/9bcd98876d6737a9139b2e33535f479e7300723f/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/BridgeVifDriver.java#L247
the root cause is that the network tag was not set for private gws on management network
I think it is a bug, but I do not have a workaround for now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org