Skip to content

Commit c89ba90

Browse files
committed
Create second rbac policy on OUTSIDE network to permit "shared" access
Without this "shared" rule, the instance failed to build with: nova.exception.ExternalNetworkAttachForbidden: It is not allowed to create an interface on external network <uuid>
1 parent 30032b0 commit c89ba90

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/understack-workflows/understack_workflows/main/sync_keystone.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ def _create_outside_network(conn: Connection, project_id: uuid.UUID):
9696
action="access_as_external",
9797
target_project_id=project_id.hex,
9898
)
99+
conn.network.create_rbac_policy( # type: ignore
100+
object_type="network",
101+
object_id=network.id,
102+
action="access_as_shared",
103+
target_project_id=project_id.hex,
104+
)
99105

100106

101107
def _delete_outside_network(conn: Connection, project_id: uuid.UUID):

0 commit comments

Comments
 (0)