Skip to content

Commit f70a5c1

Browse files
committed
[CI] Fix portbiding tests
Since https://review.opendev.org/c/openstack/neutron/+/909075, port-binding operation are restricted to the service role. Update the policies so that we can continue exercising these tests in CI. Fixes #2983
1 parent db5585b commit f70a5c1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.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@c41f86d8df58b53c55f070207b6dfce656788cfd
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)