[RabbitMQ] Fixed guest account removal
Fixed condition where node names were blank under certain conditions and account would not get removed Change-Id: Idf895eb649a439844b9a90fdcb57f5f022717079
This commit is contained in:
parent
30c3a2e033
commit
37ac688842
@ -15,6 +15,6 @@ apiVersion: v1
|
|||||||
appVersion: v3.9.0
|
appVersion: v3.9.0
|
||||||
description: OpenStack-Helm RabbitMQ
|
description: OpenStack-Helm RabbitMQ
|
||||||
name: rabbitmq
|
name: rabbitmq
|
||||||
version: 0.1.22
|
version: 0.1.23
|
||||||
home: https://github.com/rabbitmq/rabbitmq-server
|
home: https://github.com/rabbitmq/rabbitmq-server
|
||||||
...
|
...
|
||||||
|
@ -79,6 +79,8 @@ if test "$(active_rabbit_nodes)" -gt "$RABBIT_REPLICA_COUNT"; then
|
|||||||
rabbitmqctl -l -n "${PRIMARY_NODE}" cluster_status
|
rabbitmqctl -l -n "${PRIMARY_NODE}" cluster_status
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Get current node list
|
||||||
|
PRIMARY_NODE="$(sorted_node_list | awk '{ print $1; exit }')"
|
||||||
# Delete guest admin user
|
# Delete guest admin user
|
||||||
echo "Removing Guest admin user account"
|
echo "Removing Guest admin user account"
|
||||||
rabbitmqctl -l -n "${PRIMARY_NODE}" delete_user guest || true
|
rabbitmqctl -l -n "${PRIMARY_NODE}" delete_user guest || true
|
||||||
|
@ -22,4 +22,5 @@ rabbitmq:
|
|||||||
- 0.1.20 Bump Rabbitmq version to 3.9.0
|
- 0.1.20 Bump Rabbitmq version to 3.9.0
|
||||||
- 0.1.21 Updated naming for subchart compatibility
|
- 0.1.21 Updated naming for subchart compatibility
|
||||||
- 0.1.22 Remove guest admin account
|
- 0.1.22 Remove guest admin account
|
||||||
|
- 0.1.23 Fixed guest account removal
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user