Skip to content

Commit 35b8342

Browse files
Merge pull request gophercloud#2990 from shiftstack/fix-networking-for-real
[CI] Fix portbiding tests
2 parents 3ce914b + f70a5c1 commit 35b8342

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/functional-fwaas_v2.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ jobs:
3939
Q_ML2_PLUGIN_TYPE_DRIVERS=flat,gre,vlan,vxlan
4040
Q_ML2_TENANT_NETWORK_TYPE=vxlan
4141
Q_TUNNEL_TYPES=vxlan,gre
42-
43-
[[post-config|/etc/neutron/policy.d/port_binding.yaml]]
44-
"create_port:binding:profile": "rule:admin_only or rule:service_api"
45-
"update_port:binding:profile": "rule:admin_only or rule:service_api"
4642
enabled_services: 'q-svc,q-agt,q-dhcp,q-l3,q-meta,q-fwaas-v2,-cinder,-horizon,-tempest,-swift,-c-sch,-c-api,-c-vol,-c-bak,-ovn,-ovn-controller,-ovn-northd,-q-ovn-metadata-agent'
4743
- name: Checkout go
4844
uses: actions/setup-go@v5

.github/workflows/functional-networking.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
steps:
2929
- name: Checkout Gophercloud
3030
uses: actions/checkout@v4
31+
- name: Create additional neutron policies
32+
run: |
33+
mkdir /tmp/neutron-policies
34+
cat << EOF >> /tmp/neutron-policies/port_binding.yaml
35+
---
36+
"create_port:binding:profile": "rule:admin_only or rule:service_api"
37+
"update_port:binding:profile": "rule:admin_only or rule:service_api"
38+
EOF
3139
- name: Deploy devstack
3240
uses: EmilienM/devstack-action@e82a9cbead099cba72f99537e82a360c3e319c69
3341
with:
@@ -36,6 +44,10 @@ jobs:
3644
enable_plugin neutron-dynamic-routing https://github.com/openstack/neutron-dynamic-routing ${{ matrix.openstack_version }}
3745
enable_plugin neutron-vpnaas https://github.com/openstack/neutron-vpnaas ${{ matrix.openstack_version }}
3846
Q_ML2_PLUGIN_EXT_DRIVERS=qos,port_security,dns_domain_keywords
47+
48+
[[post-config|\$NEUTRON_CONF]]
49+
[oslo_policy]
50+
policy_dirs = /tmp/neutron-policies
3951
enabled_services: 'neutron-dns,neutron-qos,neutron-segments,neutron-trunk,neutron-uplink-status-propagation,neutron-network-segment-range,neutron-port-forwarding'
4052
- name: Checkout go
4153
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)