You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "benj-n (via GitHub)" <gi...@apache.org> on 2023/07/04 23:49:51 UTC
[GitHub] [cloudstack] benj-n opened a new pull request, #7719: Add L2 networks to Zones with SG
benj-n opened a new pull request, #7719:
URL: https://github.com/apache/cloudstack/pull/7719
### Description
Currently, it is not possible to create a raw L2 network within an advanced zone with security groups enabled.
It is expected that Cloudstack does not have any control over the security in an L2 network, by the definition itself of such network.
The fact that security groups are enabled or disabled should not be a blocker for L2 networks. Especially as these L2 can be useful when used as secondary networks (with no services) in a zone with existing shared networks protected by security groups.
This PR doesn't add a new feature per se, but rather prevent cloudstack from blocking the creation of L2 networks.
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
<!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be closed when this PR gets merged -->
<!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
<!-- Fixes: # -->
<!--- ********************************************************************************* -->
<!--- NOTE: AUTOMATATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!--- ********************************************************************************* -->
### 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)
- [X] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
### Feature/Enhancement Scale or Bug Severity
#### Feature/Enhancement Scale
- [ ] Major
- [X] Minor
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial
### Screenshots (if appropriate):
### How Has This Been Tested?
<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, and the tests you ran to -->
<!-- see how your change affects other areas of the code, etc. -->
<!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) document -->
--
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
[GitHub] [cloudstack] blueorangutan commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1628643231
@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests
--
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
[GitHub] [cloudstack] DaanHoogland commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1625144654
@weizhouapache @benj-n is this applicable for 4.18 as well?
--
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
[GitHub] [cloudstack] DaanHoogland commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1623201740
> @benj-n can you have a quick look at the `test_vm_schedule` failure? This is in a recent merge. The `test_vm_life_cycle` failures are addressed in #7718
never mind @benj-n , I think we have already found a cause outside of your PR. #7344 also shows the error.
--
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
[GitHub] [cloudstack] NuxRo commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "NuxRo (via GitHub)" <gi...@apache.org>.
NuxRo commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1625687387
Great feature. Did a bit of testing and largely my findings are similar to those of Wei, ie the VM gets connected in the appropriate L2 network, but no iptables or ebtables rules are set up for it, so far so good.
A few notes:
1 - network traffic between machines on separate HVs worked because iptables defaults to ACCEPT for INPUT, FORWARD and OUTPUT. If an operator makes changes there it will result in issues. This is just FYI, I am not saying we should do any action in this kind of scenarios.
2 - Creating a VM _only_ on an L2 network is not possible currently, Cloudstack returns:
```Can specify only Shared Guest networks when deploy vm in Advance Security Group enabled zone```
It would be **GREAT** if the feature allowed L2-only!
3 - Network offering "Offering for L2 networks" did not produce a functional VM deployment for me, had to go for "Offering for L2 networks VLAN" and specify a VLAN. Not a major issue, but worth keeping in mind.
4 - Last but NOT least, unlike Shared networks, the scope of L2 networks is _account_, so there can't be an expectation for multiple accounts to be able to connect in the same network. Just making sure we're aware of this. :)
Looking forward to having this feature in Cloudstack!
--
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
[GitHub] [cloudstack] weizhouapache commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1623281113
@benj-n
have you tested it ? if so , can you share the related iptables/ebtables rules and output of `ipset list` command ?
--
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
[GitHub] [cloudstack] benj-n commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "benj-n (via GitHub)" <gi...@apache.org>.
benj-n commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1625984252
> @DaanHoogland yes, very nice feature with small changes. I'd like to add it to 4.18.1.0 , unless someone objects. @benj-n can you rebase with 4.18 ?
It's now rebased on 4.18.
--
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
[GitHub] [cloudstack] NuxRo commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "NuxRo (via GitHub)" <gi...@apache.org>.
NuxRo commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1629186068
Good job rebasing. I have tested and my results are identical, the feature works as per my previous attempt on 4.19.
I think it looks good as an initial implementation.
In the future it will be nice if we were able to deploy on l2-net only as well as have users be able to create them themselves from a pool of vlans.
--
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
[GitHub] [cloudstack] blueorangutan commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1621472664
Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 6414
--
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
[GitHub] [cloudstack] benj-n commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "benj-n (via GitHub)" <gi...@apache.org>.
benj-n commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1624459470
> @benj-n have you tested it ? if so , can you share the related iptables/ebtables rules and output of `ipset list` command ?
In the test, a VM has a first NIC with shared network (and security groups) on vlan100/vnet16 and a second NIC with an L2 network (vlan2150/vnet20):
```
root@node01:~# virsh domiflist i-2-596-VM
Interface Type Source Model MAC
-----------------------------------------------------------------
vnet16 bridge brbond0-100 virtio 1e:00:06:00:20:29
vnet20 bridge brbond9-2150 virtio 02:00:1d:52:00:01
```
The vnet20 and the L2 network are completely absent from iptables :
```
Chain BF-brbond0-100-IN (1 references)
pkts bytes target prot opt in out source destination
(...)
240 24611 i-2-596-def all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged
Chain BF-brbond0-100-OUT (1 references)
pkts bytes target prot opt in out source destination
(...)
876 43779 i-2-596-def all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged
Chain i-2-596-VM (1 references)
pkts bytes target prot opt in out source destination
14 973 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmptype 255
417 21629 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
150 6004 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain i-2-596-VM-eg (1 references)
pkts bytes target prot opt in out source destination
136 9456 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain i-2-596-def (2 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
32 10556 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp spt:68 dpt:67
2 667 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged udp spt:67 dpt:68
0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp spt:67
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ! match-set i-2-596-VM src
293 14506 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ! match-set i-2-596-VM dst
72 4599 RETURN udp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged match-set i-2-596-VM src udp dpt:53
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged match-set i-2-596-VM src tcp dpt:53
136 9456 i-2-596-VM-eg all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged match-set i-2-596-VM src
581 28606 i-2-596-VM all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged
```
The L2 is also completely absent from ip6tables:
```
Chain BF-brbond0-100-IN (1 references)
pkts bytes target prot opt in out source destination
(...)
90 6768 i-2-596-def all * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged
Chain BF-brbond0-100-OUT (1 references)
pkts bytes target prot opt in out source destination
(...)
21 2184 i-2-596-def all * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged
Chain i-2-596-VM (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmpv6 * * ::/0 ::/0
0 0 ACCEPT all * * ::/0 ::/0 state NEW
0 0 DROP all * * ::/0 ::/0
Chain i-2-596-VM-eg (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all * * ::/0 ::/0 state NEW
0 0 DROP all * * ::/0 ::/0
Chain i-2-596-def (2 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all * * ::/0 ::/0 state RELATED,ESTABLISHED
21 2184 ACCEPT icmpv6 * * fe80::/64 ff02::1 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 134 HL match HL == 255
0 0 RETURN icmpv6 * * ::/0 ff02::2 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 133 HL match HL == 255
0 0 DROP icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 134
18 1296 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 135 HL match HL == 255
0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 135 HL match HL == 255
0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 136 match-set i-2-596-VM-6 src HL match HL == 255
0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 136 HL match HL == 255
0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 2 match-set i-2-596-VM-6 src
0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 2
0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 1 match-set i-2-596-VM-6 src
0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 1
0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 3 match-set i-2-596-VM-6 src
0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 3
0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 4 match-set i-2-596-VM-6 src
0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 4
72 5472 RETURN icmpv6 * * ::/0 ff02::16 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged
0 0 RETURN udp * * fe80::1c00:6ff:fe00:2029 ff02::1:2 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp spt:546
0 0 ACCEPT udp * * fe80::/64 fe80::1c00:6ff:fe00:2029 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged udp dpt:546
0 0 DROP udp * * ::/0 !fe80::/64 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp spt:547
0 0 RETURN udp * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp dpt:53 match-set i-2-596-VM-6 src
0 0 RETURN tcp * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged tcp dpt:53 match-set i-2-596-VM-6 src
0 0 DROP all * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ! match-set i-2-596-VM-6 src
0 0 i-2-596-VM-eg all * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged match-set i-2-596-VM-6 src
0 0 i-2-596-VM all * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged
```
And the ipset only references IPs from the shared network:
````
Name: i-2-596-VM
Type: hash:ip
Revision: 4
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 248
References: 5
Number of entries: 1
Members:
85.(redacted-public-ipv4).6
Name: i-2-596-VM-6
Type: hash:net
Revision: 6
Header: family inet6 hashsize 1024 maxelem 65536
Size in memory: 1456
References: 9
Number of entries: 2
Members:
fe80::1c00:6ff:fe00:2029
2001:(redacted-ipv6):2029
````
It's the same for ebtables, as expected, the L2 network is totally ignored there too.
````
Bridge chain: PREROUTING, entries: 6, policy: ACCEPT
(...)
-i vnet16 -j i-2-596-VM-in
Bridge chain: POSTROUTING, entries: 6, policy: ACCEPT
(...)
-o vnet16 -j i-2-596-VM-out
Bridge chain: i-2-596-VM-in, entries: 5, policy: ACCEPT
-j i-2-596-VM-in-src
-p ARP -j i-2-596-VM-in-ips
-p ARP --arp-op Request -j ACCEPT
-p ARP --arp-op Reply -j ACCEPT
-p ARP -j DROP
Bridge chain: i-2-596-VM-out, entries: 5, policy: ACCEPT
-p ARP --arp-op Reply -j i-2-596-VM-out-dst
-p ARP -j i-2-596-VM-out-ips
-p ARP --arp-op Request -j ACCEPT
-p ARP --arp-op Reply -j ACCEPT
-p ARP -j DROP
Bridge chain: i-2-596-VM-in-ips, entries: 2, policy: ACCEPT
-p ARP -s 1e:00:06:00:20:29 --arp-ip-src 85.(redacted-public-ipv4).6 --arp-mac-src 1e:00:06:00:20:29 -j RETURN
-j DROP
Bridge chain: i-2-596-VM-out-ips, entries: 2, policy: ACCEPT
-p ARP --arp-ip-dst 85.(redacted-public-ipv4).6 -j RETURN
-j DROP
Bridge chain: i-2-596-VM-in-src, entries: 2, policy: ACCEPT
-s 1e:00:06:00:20:29 -j RETURN
-j DROP
Bridge chain: i-2-596-VM-out-dst, entries: 2, policy: ACCEPT
-p ARP --arp-op Reply --arp-mac-dst 1e:00:06:00:20:29 -j RETURN
-p ARP --arp-op Reply -j DROP
````
--
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
[GitHub] [cloudstack] blueorangutan commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1621366049
@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.
--
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
[GitHub] [cloudstack] weizhouapache commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1624938671
> > @benj-n have you tested it ? if so , can you share the related iptables/ebtables rules and output of `ipset list` command ?
>
> In the test, a VM has a first NIC with shared network (and security groups) on vlan100/vnet16 and a second NIC with an L2 network (vlan2150/vnet20):
>
> ```
> root@node01:~# virsh domiflist i-2-596-VM
> Interface Type Source Model MAC
> -----------------------------------------------------------------
> vnet16 bridge brbond0-100 virtio 1e:00:06:00:20:29
> vnet20 bridge brbond9-2150 virtio 02:00:1d:52:00:01
> ```
>
> The vnet20 and the L2 network are completely absent from iptables :
>
> ```
> Chain BF-brbond0-100-IN (1 references)
> pkts bytes target prot opt in out source destination
> (...)
> 240 24611 i-2-596-def all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged
>
> Chain BF-brbond0-100-OUT (1 references)
> pkts bytes target prot opt in out source destination
> (...)
> 876 43779 i-2-596-def all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged
>
>
> Chain i-2-596-VM (1 references)
> pkts bytes target prot opt in out source destination
> 14 973 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmptype 255
> 417 21629 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
> 150 6004 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
>
> Chain i-2-596-VM-eg (1 references)
> pkts bytes target prot opt in out source destination
> 136 9456 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
> 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
>
> Chain i-2-596-def (2 references)
> pkts bytes target prot opt in out source destination
> 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
> 32 10556 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp spt:68 dpt:67
> 2 667 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged udp spt:67 dpt:68
> 0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp spt:67
> 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ! match-set i-2-596-VM src
> 293 14506 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ! match-set i-2-596-VM dst
> 72 4599 RETURN udp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged match-set i-2-596-VM src udp dpt:53
> 0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged match-set i-2-596-VM src tcp dpt:53
> 136 9456 i-2-596-VM-eg all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged match-set i-2-596-VM src
> 581 28606 i-2-596-VM all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged
> ```
>
> The L2 is also completely absent from ip6tables:
>
> ```
> Chain BF-brbond0-100-IN (1 references)
> pkts bytes target prot opt in out source destination
> (...)
> 90 6768 i-2-596-def all * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged
>
> Chain BF-brbond0-100-OUT (1 references)
> pkts bytes target prot opt in out source destination
> (...)
> 21 2184 i-2-596-def all * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged
>
> Chain i-2-596-VM (1 references)
> pkts bytes target prot opt in out source destination
> 0 0 ACCEPT icmpv6 * * ::/0 ::/0
> 0 0 ACCEPT all * * ::/0 ::/0 state NEW
> 0 0 DROP all * * ::/0 ::/0
>
> Chain i-2-596-VM-eg (1 references)
> pkts bytes target prot opt in out source destination
> 0 0 RETURN all * * ::/0 ::/0 state NEW
> 0 0 DROP all * * ::/0 ::/0
>
> Chain i-2-596-def (2 references)
> pkts bytes target prot opt in out source destination
> 0 0 ACCEPT all * * ::/0 ::/0 state RELATED,ESTABLISHED
> 21 2184 ACCEPT icmpv6 * * fe80::/64 ff02::1 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 134 HL match HL == 255
> 0 0 RETURN icmpv6 * * ::/0 ff02::2 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 133 HL match HL == 255
> 0 0 DROP icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 134
> 18 1296 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 135 HL match HL == 255
> 0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 135 HL match HL == 255
> 0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 136 match-set i-2-596-VM-6 src HL match HL == 255
> 0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 136 HL match HL == 255
> 0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 2 match-set i-2-596-VM-6 src
> 0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 2
> 0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 1 match-set i-2-596-VM-6 src
> 0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 1
> 0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 3 match-set i-2-596-VM-6 src
> 0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 3
> 0 0 RETURN icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ipv6-icmptype 4 match-set i-2-596-VM-6 src
> 0 0 ACCEPT icmpv6 * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged ipv6-icmptype 4
> 72 5472 RETURN icmpv6 * * ::/0 ff02::16 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged
> 0 0 RETURN udp * * fe80::1c00:6ff:fe00:2029 ff02::1:2 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp spt:546
> 0 0 ACCEPT udp * * fe80::/64 fe80::1c00:6ff:fe00:2029 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged udp dpt:546
> 0 0 DROP udp * * ::/0 !fe80::/64 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp spt:547
> 0 0 RETURN udp * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged udp dpt:53 match-set i-2-596-VM-6 src
> 0 0 RETURN tcp * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged tcp dpt:53 match-set i-2-596-VM-6 src
> 0 0 DROP all * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged ! match-set i-2-596-VM-6 src
> 0 0 i-2-596-VM-eg all * * ::/0 ::/0 PHYSDEV match --physdev-in vnet16 --physdev-is-bridged match-set i-2-596-VM-6 src
> 0 0 i-2-596-VM all * * ::/0 ::/0 PHYSDEV match --physdev-out vnet16 --physdev-is-bridged
> ```
>
> And the ipset only references IPs from the shared network:
>
> ```
>
> Name: i-2-596-VM
> Type: hash:ip
> Revision: 4
> Header: family inet hashsize 1024 maxelem 65536
> Size in memory: 248
> References: 5
> Number of entries: 1
> Members:
> 85.(redacted-public-ipv4).6
>
> Name: i-2-596-VM-6
> Type: hash:net
> Revision: 6
> Header: family inet6 hashsize 1024 maxelem 65536
> Size in memory: 1456
> References: 9
> Number of entries: 2
> Members:
> fe80::1c00:6ff:fe00:2029
> 2001:(redacted-ipv6):2029
> ```
>
> It's the same for ebtables, as expected, the L2 network is totally ignored there too.
>
> ```
> Bridge chain: PREROUTING, entries: 6, policy: ACCEPT
> (...)
> -i vnet16 -j i-2-596-VM-in
>
> Bridge chain: POSTROUTING, entries: 6, policy: ACCEPT
> (...)
> -o vnet16 -j i-2-596-VM-out
>
> Bridge chain: i-2-596-VM-in, entries: 5, policy: ACCEPT
> -j i-2-596-VM-in-src
> -p ARP -j i-2-596-VM-in-ips
> -p ARP --arp-op Request -j ACCEPT
> -p ARP --arp-op Reply -j ACCEPT
> -p ARP -j DROP
>
> Bridge chain: i-2-596-VM-out, entries: 5, policy: ACCEPT
> -p ARP --arp-op Reply -j i-2-596-VM-out-dst
> -p ARP -j i-2-596-VM-out-ips
> -p ARP --arp-op Request -j ACCEPT
> -p ARP --arp-op Reply -j ACCEPT
> -p ARP -j DROP
>
> Bridge chain: i-2-596-VM-in-ips, entries: 2, policy: ACCEPT
> -p ARP -s 1e:00:06:00:20:29 --arp-ip-src 85.(redacted-public-ipv4).6 --arp-mac-src 1e:00:06:00:20:29 -j RETURN
> -j DROP
>
> Bridge chain: i-2-596-VM-out-ips, entries: 2, policy: ACCEPT
> -p ARP --arp-ip-dst 85.(redacted-public-ipv4).6 -j RETURN
> -j DROP
>
> Bridge chain: i-2-596-VM-in-src, entries: 2, policy: ACCEPT
> -s 1e:00:06:00:20:29 -j RETURN
> -j DROP
>
> Bridge chain: i-2-596-VM-out-dst, entries: 2, policy: ACCEPT
> -p ARP --arp-op Reply --arp-mac-dst 1e:00:06:00:20:29 -j RETURN
> -p ARP --arp-op Reply -j DROP
> ```
@benj-n
looks ok.
can you create a vm with only L2 networks ?
btw: did you create the L2 network with specified vlan id ?
--
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
[GitHub] [cloudstack] blueorangutan commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1629903652
<b>[SF] Trillian test result (tid-7036)</b>
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 49116 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7719-t7036-kvm-centos7.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:
Test | Result | Time (s) | Test File
--- | --- | --- | ---
test_01_migrate_VM_and_root_volume | `Error` | 78.76 | test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks | `Error` | 55.39 | test_vm_life_cycle.py
--
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
[GitHub] [cloudstack] soreana commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "soreana (via GitHub)" <gi...@apache.org>.
soreana commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1629202048
> Good job rebasing. I have tested and my results are identical, the feature works as per my previous attempt on 4.19. I think it looks good as an initial implementation.
>
> In the future it will be nice if we were able to deploy on l2-net only as well as have users be able to create them themselves from a pool of vlans.
@NuxRo Thanks for testing. 🙏
Those are awesome features, but let's keep the scope as it is for now. Those changes require a lot to be done, we can plan them later.
--
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
[GitHub] [cloudstack] blueorangutan commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1622757959
<b>[SF] Trillian test result (tid-6994)</b>
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 43012 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7719-t6994-kvm-centos7.zip
Smoke tests completed. 111 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:
Test | Result | Time (s) | Test File
--- | --- | --- | ---
test_01_migrate_VM_and_root_volume | `Error` | 80.63 | test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks | `Error` | 52.24 | test_vm_life_cycle.py
test_05_vmschedule_test_e2e | `Failure` | 170.58 | test_vm_schedule.py
--
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
[GitHub] [cloudstack] blueorangutan commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1621667894
@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests
--
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
[GitHub] [cloudstack] DaanHoogland closed pull request #7719: Add L2 networks to Zones with SG
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed pull request #7719: Add L2 networks to Zones with SG
URL: https://github.com/apache/cloudstack/pull/7719
--
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
[GitHub] [cloudstack] DaanHoogland commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1628406841
@blueorangutan package
--
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
[GitHub] [cloudstack] DaanHoogland commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1621664887
@blueorangutan test
--
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
[GitHub] [cloudstack] benj-n commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "benj-n (via GitHub)" <gi...@apache.org>.
benj-n commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1625876377
> btw: did you create the L2 network with specified vlan id ?
Yes. Unfortunately, I can only have tagged traffic on the specific L2 network I have for testing.
--
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
[GitHub] [cloudstack] DaanHoogland merged pull request #7719: Add L2 networks to Zones with SG
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland merged PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719
--
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
[GitHub] [cloudstack] DaanHoogland commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1628640416
@blueorangutan test
--
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
[GitHub] [cloudstack] weizhouapache commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1643275058
> > Good job rebasing. I have tested and my results are identical, the feature works as per my previous attempt on 4.19. I think it looks good as an initial implementation.
> > In the future it will be nice if we were able to deploy on l2-net only as well as have users be able to create them themselves from a pool of vlans.
>
> @NuxRo Thanks for testing. pray
>
> Those are awesome features, but let's keep the scope as it is for now. Those changes require a lot to be done, we can plan them later.
@soreana @NuxRo
can you create a github issue for tracking ?
--
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
[GitHub] [cloudstack] DaanHoogland commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1621365379
@blueorangutan package
--
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
[GitHub] [cloudstack] blueorangutan commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1628413674
@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.
--
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
[GitHub] [cloudstack] blueorangutan commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1628522636
Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 6451
--
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
[GitHub] [cloudstack] DaanHoogland commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1623137239
@benj-n can you have a quick look at the `test_vm_schedule` failure? This is in a recent merge.
The `test_vm_life_cycle` failures are addressed in #7718
--
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
[GitHub] [cloudstack] weizhouapache commented on pull request #7719: Add L2 networks to Zones with SG
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #7719:
URL: https://github.com/apache/cloudstack/pull/7719#issuecomment-1625201672
> @weizhouapache @benj-n is this applicable for 4.18 as well?
@DaanHoogland yes, very nice feature with small changes. I'd like to add it to 4.18.1.0 , unless someone objects.
@benj-n can you rebase with 4.18 ?
--
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