Skip to content

Commit

Permalink
Upgrade portsadm role for node agents
Browse files Browse the repository at this point in the history
Define the portsadm role during the core upgrade procedure.
  • Loading branch information
DavidePrincipi committed Sep 23, 2024
1 parent 142a5ad commit 1f6005d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ cluster.grants.grant(rdb, action_clause="bind-user-domains", to_clause="account
cluster.grants.grant(rdb, action_clause="bind-user-domains", to_clause="accountprovider", on_clause='cluster')
cluster.grants.grant(rdb, action_clause="list-modules", to_clause="accountprovider", on_clause='cluster')

#
# Reuse and reallocate TCP/UDP port range #6974
#
for node_id in set(rdb.hvals('cluster/module_node')):
cluster.grants.grant(rdb, "allocate-ports", f'node/{node_id}', "portsadm")
cluster.grants.grant(rdb, "deallocate-ports", f'node/{node_id}', "portsadm")

#
# END of grant updates
#
Expand Down

0 comments on commit 1f6005d

Please sign in to comment.