Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1954046

Summary: [RHOSP16] unable to create ports with fixed IPs on a shared network via Horizon
Product: Red Hat OpenStack Reporter: camorris@redhat.co <camorris>
Component: openstack-neutronAssignee: Slawek Kaplonski <skaplons>
Status: CLOSED DUPLICATE QA Contact: Eran Kuris <ekuris>
Severity: high Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: amuller, ccamposr, ralonsoh, scohen, skaplons
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-07 10:13:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description camorris@redhat.co 2021-04-27 13:55:11 UTC
Description of problem:

Unable to create ports with fixed IPs on a shared network via Horizon, while able to do so in CLI

Version-Release number of selected component (if applicable):
OSP 16.1

How reproducible:
Everytime 

Steps to Reproduce:
1. Update /var/lib/config-data/puppet-generated/neutron/etc/neutron/policy.json like this [1]
2. Run "podman exec -it neutron_api oslopolicy-policy-generator --namespace neutron" on the controllers
3. Restarted Neutron containers
4. Create port via horizon fails; with CLI this works: openstack port create --fixed-ip ip-address=172.25.10.10 --network provider-network-awan as-test


[1]
~~~
from: "create_port:fixed_ips:ip_address": "rule:context_is_advsvc or rule:admin_or_network_owner"
to: "create_port:fixed_ips:ip_address": "rule:context_is_advsvc or rule:admin_or_network_owner or rule:shared"
and
from: "update_port:fixed_ips:ip_address": "rule:context_is_advsvc or rule:admin_or_network_owner"
to: "update_port:fixed_ips:ip_address": "rule:context_is_advsvc or rule:admin_or_network_owner or rule:shared"
~~~

Actual results:
See attached JPEG
This seems very similar to this bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1875820



Expected results:
Success

Additional info:
Also, how do we also add these parameters in the templates ?