+++ date
++ echo 'INFO: =================== Thu May  1 00:41:57 UTC 2025 ==================='
INFO: =================== Thu May  1 00:41:57 UTC 2025 ===================
++ LOG_LOCAL=1
++ source /functions.sh
++ source /contrail-functions.sh
+++ get_default_ip
++++ get_default_nic
++++ get_gateway_nic_for_ip 1
++++ command -v ip
++++ local ip=1
+++++ ip route get 1
+++++ grep -o 'dev.*'
+++++ awk '{print $2}'
++++ local iface=ens3
++++ [[ ens3 == \l\o ]]
++++ echo ens3
+++ local nic=ens3
+++ get_ip_for_nic ens3
+++ local nic=ens3
+++ cut -d / -f 1
+++ get_cidr_for_nic ens3
+++ command -v ip
+++ local nic=ens3
+++ ip addr show dev ens3
+++ head -n 1
+++ grep 'inet '
+++ awk '{print $2}'
++ DEFAULT_LOCAL_IP=10.0.0.137
++ ENCAP_PRIORITY=MPLSoUDP,MPLSoGRE,VXLAN
++ VXLAN_VN_ID_MODE=automatic
++ DPDK_UIO_DRIVER=uio_pci_generic
++ CPU_CORE_MASK=0x01
++ SERVICE_CORE_MASK=
++ DPDK_CTRL_THREAD_MASK=
++ HUGE_PAGES=
++ HUGE_PAGES_DIR=/dev/hugepages
++ HUGE_PAGES_1GB=0
++ HUGE_PAGES_2MB=256
++ HUGE_PAGES_1GB_DIR=
++ HUGE_PAGES_2MB_DIR=
++ [[ 0 != 0 ]]
++ [[ 0 != 256 ]]
++ [[ -z '' ]]
+++ awk '/pagesize=2M/{print($3)}'
+++ tail -n 1
+++ mount -t hugetlbfs
++ HUGE_PAGES_2MB_DIR=
++ DPDK_MEM_PER_SOCKET=1024
++ DPDK_COMMAND_ADDITIONAL_ARGS=
++ NIC_OFFLOAD_ENABLE=False
++ DPDK_ENABLE_VLAN_FWRD=False
++ DIST_SNAT_PROTO_PORT_LIST=
++ CLOUD_ORCHESTRATOR=openstack
++ CLOUD_ADMIN_ROLE=admin
++ AAA_MODE=rbac
++ AUTH_MODE=keystone
++ AUTH_PARAMS=
++ SSL_ENABLE=false
++ SSL_INSECURE=True
++ SERVER_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ SERVER_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ SERVER_CA_CERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ SERVER_CA_KEYFILE=/etc/contrail/ssl/private/ca-key.pem
++ SELFSIGNED_CERTS_WITH_IPS=True
++ CONTROLLER_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ ANALYTICS_ALARM_ENABLE=True
++ ANALYTICS_SNMP_ENABLE=True
++ ANALYTICSDB_ENABLE=True
++ ANALYTICS_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ ANALYTICSDB_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ ANALYTICS_SNMP_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ ANALYTICS_API_PORT=8081
++ ANALYTICS_API_INTROSPECT_PORT=8090
++ ANALYTICSDB_PORT=9160
++ ANALYTICSDB_CQL_PORT=9042
++ TOPOLOGY_INTROSPECT_PORT=5921
++ QUERYENGINE_INTROSPECT_PORT=8091
+++ get_server_list ANALYTICS ':8081 '
+++ local server_typ=ANALYTICS_NODES
+++ local 'port_with_delim=:8081 '
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+='10.0.0.27:8081 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+='10.0.0.23:8081 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+='10.0.0.137:8081 '
+++ '[' -n '10.0.0.27:8081 10.0.0.23:8081 10.0.0.137:8081 ' ']'
+++ echo '10.0.0.27:8081 10.0.0.23:8081 10.0.0.137:8081'
++ ANALYTICS_SERVERS='10.0.0.27:8081 10.0.0.23:8081 10.0.0.137:8081'
+++ get_server_list ANALYTICSDB ':9042 '
+++ local server_typ=ANALYTICSDB_NODES
+++ local 'port_with_delim=:9042 '
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+='10.0.0.27:9042 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+='10.0.0.23:9042 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+='10.0.0.137:9042 '
+++ '[' -n '10.0.0.27:9042 10.0.0.23:9042 10.0.0.137:9042 ' ']'
+++ echo '10.0.0.27:9042 10.0.0.23:9042 10.0.0.137:9042'
++ ANALYTICSDB_CQL_SERVERS='10.0.0.27:9042 10.0.0.23:9042 10.0.0.137:9042'
++ ANALYTICS_API_VIP=
++ ANALYTICS_ALARM_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ ALARMGEN_INTROSPECT_PORT=5995
++ BGP_PORT=179
++ BGP_AUTO_MESH=true
++ BGP_ASN=64512
++ ENABLE_4BYTE_AS=false
++ APPLY_DEFAULTS=true
++ COLLECTOR_PORT=8086
++ COLLECTOR_INTROSPECT_PORT=8089
++ COLLECTOR_SYSLOG_PORT=514
++ COLLECTOR_SFLOW_PORT=6343
++ COLLECTOR_IPFIX_PORT=4739
++ COLLECTOR_PROTOBUF_PORT=3333
++ COLLECTOR_STRUCTURED_SYSLOG_PORT=3514
++ SNMPCOLLECTOR_INTROSPECT_PORT=5920
+++ get_server_list ANALYTICS ':8086 '
+++ local server_typ=ANALYTICS_NODES
+++ local 'port_with_delim=:8086 '
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+='10.0.0.27:8086 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+='10.0.0.23:8086 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+='10.0.0.137:8086 '
+++ '[' -n '10.0.0.27:8086 10.0.0.23:8086 10.0.0.137:8086 ' ']'
+++ echo '10.0.0.27:8086 10.0.0.23:8086 10.0.0.137:8086'
++ COLLECTOR_SERVERS='10.0.0.27:8086 10.0.0.23:8086 10.0.0.137:8086'
++ CASSANDRA_PORT=9160
++ CASSANDRA_CQL_PORT=9042
++ CASSANDRA_SSL_STORAGE_PORT=7011
++ CASSANDRA_STORAGE_PORT=7010
++ CASSANDRA_JMX_LOCAL_PORT=7200
++ CONFIGDB_CASSANDRA_DRIVER=cql
++ CONFIG_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ CONFIGDB_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ CONFIG_API_PORT=8082
++ CONFIG_API_INTROSPECT_PORT=8084
++ CONFIG_API_ADMIN_PORT=8095
++ CONFIGDB_PORT=9161
++ CONFIGDB_CQL_PORT=9041
+++ get_server_list CONFIG ':8082 '
+++ local server_typ=CONFIG_NODES
+++ local 'port_with_delim=:8082 '
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+='10.0.0.27:8082 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+='10.0.0.23:8082 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+='10.0.0.137:8082 '
+++ '[' -n '10.0.0.27:8082 10.0.0.23:8082 10.0.0.137:8082 ' ']'
+++ echo '10.0.0.27:8082 10.0.0.23:8082 10.0.0.137:8082'
++ CONFIG_SERVERS='10.0.0.27:8082 10.0.0.23:8082 10.0.0.137:8082'
+++ get_server_list CONFIGDB ':9161 '
+++ local server_typ=CONFIGDB_NODES
+++ local 'port_with_delim=:9161 '
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+='10.0.0.27:9161 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+='10.0.0.23:9161 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+='10.0.0.137:9161 '
+++ '[' -n '10.0.0.27:9161 10.0.0.23:9161 10.0.0.137:9161 ' ']'
+++ echo '10.0.0.27:9161 10.0.0.23:9161 10.0.0.137:9161'
++ CONFIGDB_SERVERS='10.0.0.27:9161 10.0.0.23:9161 10.0.0.137:9161'
+++ get_server_list CONFIGDB ':9041 '
+++ local server_typ=CONFIGDB_NODES
+++ local 'port_with_delim=:9041 '
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+='10.0.0.27:9041 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+='10.0.0.23:9041 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+='10.0.0.137:9041 '
+++ '[' -n '10.0.0.27:9041 10.0.0.23:9041 10.0.0.137:9041 ' ']'
+++ echo '10.0.0.27:9041 10.0.0.23:9041 10.0.0.137:9041'
++ CONFIGDB_CQL_SERVERS='10.0.0.27:9041 10.0.0.23:9041 10.0.0.137:9041'
++ CONFIG_API_VIP=
++ CONFIG_API_SSL_ENABLE=false
++ CONFIG_API_SERVER_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ CONFIG_API_SERVER_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ CONFIG_API_SERVER_CA_CERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ CONFIG_API_WORKER_COUNT=1
++ CONFIG_API_MAX_REQUESTS=1024
++ ANALYTICS_API_SSL_ENABLE=false
++ ANALYTICS_API_SSL_INSECURE=True
++ ANALYTICS_API_SERVER_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ ANALYTICS_API_SERVER_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ ANALYTICS_API_SERVER_CA_CERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ CASSANDRA_SSL_ENABLE=false
++ CASSANDRA_SSL_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ CASSANDRA_SSL_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ CASSANDRA_SSL_CA_CERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ CASSANDRA_SSL_KEYSTORE_PASSWORD=astrophytum
++ CASSANDRA_SSL_TRUSTSTORE_PASSWORD=ornatum
++ CASSANDRA_SSL_PROTOCOL=TLS
++ CASSANDRA_SSL_ALGORITHM=SunX509
++ CASSANDRA_SSL_CIPHER_SUITES='[TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA]'
++ CASSANDRA_CONFIG_MEMTABLE_FLUSH_WRITER=4
++ CASSANDRA_CONFIG_CONCURRECT_COMPACTORS=4
++ CASSANDRA_CONFIG_COMPACTION_THROUGHPUT_MB_PER_SEC=256
++ CASSANDRA_CONFIG_CONCURRECT_READS=64
++ CASSANDRA_CONFIG_CONCURRECT_WRITES=64
++ CASSANDRA_CONFIG_MEMTABLE_ALLOCATION_TYPE=offheap_objects
++ CASSANDRA_REAPER_ENABLED=false
++ CASSANDRA_REAPER_JMX_KEY=reaperJmxKey
++ CASSANDRA_REAPER_JMX_AUTH_USERNAME=reaperUser
++ CASSANDRA_REAPER_JMX_AUTH_PASSWORD=reaperPass
++ CASSANDRA_REAPER_APP_PORT=8071
++ CASSANDRA_REAPER_ADM_PORT=8072
++ CONTROL_NODES=10.20.0.17,10.20.0.254,10.20.0.14
++ CONTROL_INTROSPECT_PORT=8083
++ DNS_NODES=10.20.0.17,10.20.0.254,10.20.0.14
++ DNS_SERVER_PORT=53
++ DNS_INTROSPECT_PORT=8092
++ RNDC_KEY=xvysmOR8lnUQRBcunkC6vg==
++ USE_EXTERNAL_TFTP=False
++ ZOOKEEPER_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ ZOOKEEPER_PORT=2181
++ ZOOKEEPER_PORTS=2888:3888
+++ get_server_list ZOOKEEPER :2181,
+++ local server_typ=ZOOKEEPER_NODES
+++ local port_with_delim=:2181,
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+=10.0.0.27:2181,
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+=10.0.0.23:2181,
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+=10.0.0.137:2181,
+++ '[' -n 10.0.0.27:2181,10.0.0.23:2181,10.0.0.137:2181, ']'
+++ echo 10.0.0.27:2181,10.0.0.23:2181,10.0.0.137:2181
++ ZOOKEEPER_SERVERS=10.0.0.27:2181,10.0.0.23:2181,10.0.0.137:2181
+++ get_server_list ZOOKEEPER ':2181 '
+++ local server_typ=ZOOKEEPER_NODES
+++ local 'port_with_delim=:2181 '
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+='10.0.0.27:2181 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+='10.0.0.23:2181 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+='10.0.0.137:2181 '
+++ '[' -n '10.0.0.27:2181 10.0.0.23:2181 10.0.0.137:2181 ' ']'
+++ echo '10.0.0.27:2181 10.0.0.23:2181 10.0.0.137:2181'
++ ZOOKEEPER_SERVERS_SPACE_DELIM='10.0.0.27:2181 10.0.0.23:2181 10.0.0.137:2181'
++ RABBITMQ_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ RABBITMQ_NODE_PORT=5673
+++ get_server_list RABBITMQ :5673,
+++ local server_typ=RABBITMQ_NODES
+++ local port_with_delim=:5673,
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+=10.0.0.27:5673,
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+=10.0.0.23:5673,
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+=10.0.0.137:5673,
+++ '[' -n 10.0.0.27:5673,10.0.0.23:5673,10.0.0.137:5673, ']'
+++ echo 10.0.0.27:5673,10.0.0.23:5673,10.0.0.137:5673
++ RABBITMQ_SERVERS=10.0.0.27:5673,10.0.0.23:5673,10.0.0.137:5673
++ RABBITMQ_SSL_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ RABBITMQ_SSL_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ RABBITMQ_SSL_CACERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT=true
++ RABBITMQ_VHOST=/
++ RABBITMQ_USER=guest
++ RABBITMQ_PASSWORD=guest
++ RABBITMQ_USE_SSL=false
++ RABBITMQ_SSL_VER=tlsv1.2
++ RABBITMQ_CLIENT_SSL_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ RABBITMQ_CLIENT_SSL_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ RABBITMQ_CLIENT_SSL_CACERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ RABBITMQ_HEARTBEAT_INTERVAL=60
++ RABBITMQ_CLUSTER_PARTITION_HANDLING=autoheal
++ RABBITMQ_MIRRORED_QUEUE_MODE=all
++ REDIS_SERVER_PORT=6379
++ REDIS_SERVER_PASSWORD=
+++ get_server_list ANALYTICS ':6379 '
+++ local server_typ=ANALYTICS_NODES
+++ local 'port_with_delim=:6379 '
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+='10.0.0.27:6379 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+='10.0.0.23:6379 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+='10.0.0.137:6379 '
+++ '[' -n '10.0.0.27:6379 10.0.0.23:6379 10.0.0.137:6379 ' ']'
+++ echo '10.0.0.27:6379 10.0.0.23:6379 10.0.0.137:6379'
++ REDIS_SERVERS='10.0.0.27:6379 10.0.0.23:6379 10.0.0.137:6379'
++ REDIS_LISTEN_ADDRESS=
++ REDIS_PROTECTED_MODE=
++ REDIS_SSL_ENABLE=false
++ REDIS_SSL_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ REDIS_SSL_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ REDIS_SSL_CACERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ is_enabled false
++ local val=false
++ [[ false == \t\r\u\e ]]
++ [[ false == \y\e\s ]]
++ [[ false == \e\n\a\b\l\e\d ]]
++ redis_ssl_config=
++ KAFKA_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ KAFKA_PORT=9092
+++ get_server_list KAFKA ':9092 '
+++ local server_typ=KAFKA_NODES
+++ local 'port_with_delim=:9092 '
+++ local server_list=
+++ IFS=,
+++ read -ra server_list
+++ local extended_server_list=
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.27
+++ local server_address=10.0.0.27
+++ extended_server_list+='10.0.0.27:9092 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.23
+++ local server_address=10.0.0.23
+++ extended_server_list+='10.0.0.23:9092 '
+++ for server in '"${server_list[@]}"'
++++ echo 10.0.0.137
+++ local server_address=10.0.0.137
+++ extended_server_list+='10.0.0.137:9092 '
+++ '[' -n '10.0.0.27:9092 10.0.0.23:9092 10.0.0.137:9092 ' ']'
+++ echo '10.0.0.27:9092 10.0.0.23:9092 10.0.0.137:9092'
++ KAFKA_SERVERS='10.0.0.27:9092 10.0.0.23:9092 10.0.0.137:9092'
++ KAFKA_SSL_ENABLE=false
++ KAFKA_SSL_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ KAFKA_SSL_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ KAFKA_SSL_CACERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ KEYSTONE_AUTH_ADMIN_TENANT=admin
++ KEYSTONE_AUTH_ADMIN_USER=admin
++ KEYSTONE_AUTH_ADMIN_PASSWORD=contrail123
++ KEYSTONE_AUTH_PROJECT_DOMAIN_NAME=Default
++ KEYSTONE_AUTH_USER_DOMAIN_NAME=Default
++ KEYSTONE_AUTH_REGION_NAME=RegionOne
++ KEYSTONE_AUTH_URL_VERSION=/v3
++ KEYSTONE_AUTH_HOST=10.0.0.27
++ KEYSTONE_AUTH_PROTO=http
++ KEYSTONE_AUTH_ADMIN_PORT=5000
++ KEYSTONE_AUTH_PUBLIC_PORT=5000
++ KEYSTONE_AUTH_URL_TOKENS=/v3/auth/tokens
++ KEYSTONE_AUTH_INSECURE=True
++ KEYSTONE_AUTH_CERTFILE=
++ KEYSTONE_AUTH_KEYFILE=
++ KEYSTONE_AUTH_CA_CERTFILE=
++ KEYSTONE_AUTH_ENDPOINT_TYPE=
++ KEYSTONE_AUTH_SYNC_ON_DEMAND=
++ KEYSTONE_AUTH_INTERFACE=public
++ KUBEMANAGER_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ KUBERNETES_CLUSTER_NAME=k8s
++ KUBERNETES_CNI_META_PLUGIN=multus
++ METADATA_PROXY_SECRET=contrail
++ BARBICAN_TENANT_NAME=service
++ BARBICAN_USER=barbican
++ BARBICAN_PASSWORD=contrail123
++ AGENT_MODE=kernel
++ EXTERNAL_ROUTERS=
++ SUBCLUSTER=
++ VROUTER_COMPUTE_NODE_ADDRESS=
++ VROUTER_CRYPT_INTERFACE=crypt0
++ VROUTER_DECRYPT_INTERFACE=decrypt0
++ VROUTER_DECRYPT_KEY=15
++ VROUTER_MODULE_OPTIONS=
++ FABRIC_SNAT_HASH_TABLE_SIZE=4096
++ TSN_EVPN_MODE=False
++ TSN_NODES='[]'
++ PRIORITY_ID=
++ PRIORITY_BANDWIDTH=
++ PRIORITY_SCHEDULING=
++ QOS_QUEUE_ID=
++ QOS_LOGICAL_QUEUES=
++ QOS_DEF_HW_QUEUE=False
++ PRIORITY_TAGGING=True
++ SLO_DESTINATION=collector
++ '[' -n '' ']'
++ SAMPLE_DESTINATION=collector
++ FLOW_EXPORT_RATE=0
++ WEBUI_NODES=10.0.0.27,10.0.0.23,10.0.0.137
++ WEBUI_JOB_SERVER_PORT=3000
++ KUE_UI_PORT=3002
++ WEBUI_HTTP_LISTEN_PORT=8180
++ WEBUI_HTTPS_LISTEN_PORT=8143
++ WEBUI_SSL_KEY_FILE=/etc/contrail/webui_ssl/cs-key.pem
++ WEBUI_SSL_CERT_FILE=/etc/contrail/webui_ssl/cs-cert.pem
++ WEBUI_SSL_CIPHERS=ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:AES256-SHA
++ WEBUI_STATIC_AUTH_USER=admin
++ WEBUI_STATIC_AUTH_PASSWORD=contrail123
++ WEBUI_STATIC_AUTH_ROLE=cloudAdmin
++ XMPP_SERVER_PORT=5269
++ XMPP_SSL_ENABLE=false
++ XMPP_SERVER_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ XMPP_SERVER_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ XMPP_SERVER_CA_CERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ LINKLOCAL_SERVICE_PORT=80
++ LINKLOCAL_SERVICE_NAME=metadata
++ LINKLOCAL_SERVICE_IP=169.254.169.254
++ IPFABRIC_SERVICE_PORT=8775
++ INTROSPECT_SSL_ENABLE=false
++ INTROSPECT_SSL_INSECURE=True
++ INTROSPECT_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ INTROSPECT_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ INTROSPECT_CA_CERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ INTROSPECT_LISTEN_ALL=True
++ SANDESH_SSL_ENABLE=false
++ SANDESH_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ SANDESH_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ SANDESH_SERVER_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ SANDESH_SERVER_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ SANDESH_CA_CERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ METADATA_SSL_ENABLE=false
++ METADATA_SSL_CERTFILE=
++ METADATA_SSL_KEYFILE=
++ METADATA_SSL_CA_CERTFILE=
++ METADATA_SSL_CERT_TYPE=
++ CONFIGURE_IPTABLES=false
++ FWAAS_ENABLE=False
++ CONTAINERD_NAMESPACE=k8s.io
++ TOR_AGENT_OVS_KA=10000
++ TOR_TYPE=ovs
++ TOR_OVS_PROTOCOL=tcp
++ TORAGENT_SSL_CERTFILE=/etc/contrail/ssl/certs/server.pem
++ TORAGENT_SSL_KEYFILE=/etc/contrail/ssl/private/server-privkey.pem
++ TORAGENT_SSL_CACERTFILE=/etc/contrail/ssl/certs/ca-cert.pem
++ [[ /v3 == \/\v\2\.\0 ]]
++ [[ openstack == \o\p\e\n\s\t\a\c\k ]]
++ AUTH_MODE=keystone
++ [[ keystone == \k\e\y\s\t\o\n\e ]]
++ AUTH_PARAMS='--admin_password contrail123'
++ AUTH_PARAMS+=' --admin_tenant_name admin'
++ AUTH_PARAMS+=' --admin_user admin'
++ is_enabled false
++ local val=false
++ [[ false == \t\r\u\e ]]
++ [[ false == \y\e\s ]]
++ [[ false == \e\n\a\b\l\e\d ]]
++ read -r -d '' sandesh_client_config
++ true
++ is_enabled false
++ local val=false
++ [[ false == \t\r\u\e ]]
++ [[ false == \y\e\s ]]
++ [[ false == \e\n\a\b\l\e\d ]]
++ xmpp_certs_config=
++ is_enabled false
++ local val=false
++ [[ false == \t\r\u\e ]]
++ [[ false == \y\e\s ]]
++ [[ false == \e\n\a\b\l\e\d ]]
++ analytics_api_ssl_opts=
++ read -r -d '' rabbitmq_config
++ true
++ read -r -d '' rabbit_config
++ true
++ is_enabled false
++ local val=false
++ [[ false == \t\r\u\e ]]
++ [[ false == \y\e\s ]]
++ [[ false == \e\n\a\b\l\e\d ]]
++ is_enabled false
++ local val=false
++ [[ false == \t\r\u\e ]]
++ [[ false == \y\e\s ]]
++ [[ false == \e\n\a\b\l\e\d ]]
++ kafka_ssl_config=
++ [[ -n '' ]]
++ collector_stats_config=
++ [[ -z '' ]]
++ is_enabled False
++ local val=false
++ [[ false == \t\r\u\e ]]
++ [[ false == \y\e\s ]]
++ [[ false == \e\n\a\b\l\e\d ]]
++ export TSN_AGENT_MODE=
++ TSN_AGENT_MODE=
++ [[ -n '' ]]
++ collector_stats_config=
++ [[ -z x ]]
++ RSYSLOGD_XFLOW_LISTEN_PORT=9898
+ source /functions.sh
+ for i in '{1..10}'
++ find_my_ip_and_order_for_node RABBITMQ
++ local server_typ=RABBITMQ_NODES
++ find_my_ip_and_order_for_node_list 10.0.0.27,10.0.0.23,10.0.0.137
++ local servers=10.0.0.27,10.0.0.23,10.0.0.137
++ local server_list=
++ IFS=,
++ read -ra server_list
+++ get_local_ips
+++ cat /proc/net/fib_trie
+++ sort
+++ uniq
+++ grep -vi host
+++ tr '\n' ,
+++ awk '/32 host/ { print f } {f=$2}'
++ local local_ips=,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,,
++ local ord=1
++ for server in '"${server_list[@]}"'
++ local ret=0
+++ python3 -c 'import socket; print(socket.gethostbyname('\''10.0.0.27'\''))'
++ local server_ip=10.0.0.27
++ [[ 0 == 0 ]]
++ [[ -n 10.0.0.27 ]]
++ [[ ,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,, =~ ,10\.0\.0\.27, ]]
++ ((  ord+=1  ))
++ for server in '"${server_list[@]}"'
++ local ret=0
+++ python3 -c 'import socket; print(socket.gethostbyname('\''10.0.0.23'\''))'
++ local server_ip=10.0.0.23
++ [[ 0 == 0 ]]
++ [[ -n 10.0.0.23 ]]
++ [[ ,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,, =~ ,10\.0\.0\.23, ]]
++ ((  ord+=1  ))
++ for server in '"${server_list[@]}"'
++ local ret=0
+++ python3 -c 'import socket; print(socket.gethostbyname('\''10.0.0.137'\''))'
++ local server_ip=10.0.0.137
++ [[ 0 == 0 ]]
++ [[ -n 10.0.0.137 ]]
++ [[ ,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,, =~ ,10\.0\.0\.137, ]]
++ echo 10.0.0.137 3
++ return
+ my_ip_and_order='10.0.0.137 3'
+ '[' -n '10.0.0.137 3' ']'
+ break
+ '[' -z '10.0.0.137 3' ']'
++ echo 10.0.0.137 3
++ cut -d ' ' -f 1
+ my_ip=10.0.0.137
+ echo 'INFO: my_ip=10.0.0.137'
INFO: my_ip=10.0.0.137
+ server_names_list=()
+ cluster_nodes=
+ my_node=
++ echo 10.0.0.27,10.0.0.23,10.0.0.137
++ tr , ' '
+ for server in '$(echo ${RABBITMQ_NODES} | tr '\'','\'' '\'' '\'')'
++ cut -d . -f 1
++ resolve_hostname_by_ip 10.0.0.27
++ local ip=10.0.0.27
+++ getent hosts 10.0.0.27
+++ head -n 1
++ local 'host_entry=10.0.0.27       cn-jenkins-deploy-platform-ansible-os-3251-1. cn-jenkins-deploy-platform-ansible-os-3251-1'
++ local name=
++ [[ -n 10.0.0.27       cn-jenkins-deploy-platform-ansible-os-3251-1. cn-jenkins-deploy-platform-ansible-os-3251-1 ]]
+++ awk '{print $2}'
+++ echo 10.0.0.27 cn-jenkins-deploy-platform-ansible-os-3251-1. cn-jenkins-deploy-platform-ansible-os-3251-1
++ name=cn-jenkins-deploy-platform-ansible-os-3251-1.
++ [[ -n cn-jenkins-deploy-platform-ansible-os-3251-1. ]]
++ echo cn-jenkins-deploy-platform-ansible-os-3251-1.
+ server_hostname=cn-jenkins-deploy-platform-ansible-os-3251-1
+ [[ -z cn-jenkins-deploy-platform-ansible-os-3251-1 ]]
+ cluster_nodes+=''\''contrail@cn-jenkins-deploy-platform-ansible-os-3251-1'\'','
+ server_names_list=($server_names_list $server_hostname)
++ find_my_ip_and_order_for_node_list 10.0.0.27
++ cut -d ' ' -f 1
++ local servers=10.0.0.27
++ local server_list=
++ IFS=,
++ read -ra server_list
+++ tr '\n' ,
+++ get_local_ips
+++ cat /proc/net/fib_trie
+++ grep -vi host
+++ sort
+++ awk '/32 host/ { print f } {f=$2}'
+++ uniq
++ local local_ips=,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,,
++ local ord=1
++ for server in '"${server_list[@]}"'
++ local ret=0
+++ python3 -c 'import socket; print(socket.gethostbyname('\''10.0.0.27'\''))'
++ local server_ip=10.0.0.27
++ [[ 0 == 0 ]]
++ [[ -n 10.0.0.27 ]]
++ [[ ,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,, =~ ,10\.0\.0\.27, ]]
++ ((  ord+=1  ))
+ server_ip=
+ [[ ,, =~ ,10\.0\.0\.137, ]]
+ for server in '$(echo ${RABBITMQ_NODES} | tr '\'','\'' '\'' '\'')'
++ resolve_hostname_by_ip 10.0.0.23
++ local ip=10.0.0.23
++ cut -d . -f 1
+++ head -n 1
+++ getent hosts 10.0.0.23
++ local 'host_entry=10.0.0.23       cn-jenkins-deploy-platform-ansible-os-3251-2. cn-jenkins-deploy-platform-ansible-os-3251-2'
++ local name=
++ [[ -n 10.0.0.23       cn-jenkins-deploy-platform-ansible-os-3251-2. cn-jenkins-deploy-platform-ansible-os-3251-2 ]]
+++ echo 10.0.0.23 cn-jenkins-deploy-platform-ansible-os-3251-2. cn-jenkins-deploy-platform-ansible-os-3251-2
+++ awk '{print $2}'
++ name=cn-jenkins-deploy-platform-ansible-os-3251-2.
++ [[ -n cn-jenkins-deploy-platform-ansible-os-3251-2. ]]
++ echo cn-jenkins-deploy-platform-ansible-os-3251-2.
+ server_hostname=cn-jenkins-deploy-platform-ansible-os-3251-2
+ [[ -z cn-jenkins-deploy-platform-ansible-os-3251-2 ]]
+ cluster_nodes+=''\''contrail@cn-jenkins-deploy-platform-ansible-os-3251-2'\'','
+ server_names_list=($server_names_list $server_hostname)
++ find_my_ip_and_order_for_node_list 10.0.0.23
++ local servers=10.0.0.23
++ local server_list=
++ IFS=,
++ read -ra server_list
+++ tr '\n' ,
+++ get_local_ips
+++ cat /proc/net/fib_trie
++ cut -d ' ' -f 1
+++ grep -vi host
+++ awk '/32 host/ { print f } {f=$2}'
+++ uniq
+++ sort
++ local local_ips=,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,,
++ local ord=1
++ for server in '"${server_list[@]}"'
++ local ret=0
+++ python3 -c 'import socket; print(socket.gethostbyname('\''10.0.0.23'\''))'
++ local server_ip=10.0.0.23
++ [[ 0 == 0 ]]
++ [[ -n 10.0.0.23 ]]
++ [[ ,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,, =~ ,10\.0\.0\.23, ]]
++ ((  ord+=1  ))
+ server_ip=
+ [[ ,, =~ ,10\.0\.0\.137, ]]
+ for server in '$(echo ${RABBITMQ_NODES} | tr '\'','\'' '\'' '\'')'
++ resolve_hostname_by_ip 10.0.0.137
++ local ip=10.0.0.137
+++ head -n 1
+++ getent hosts 10.0.0.137
++ local 'host_entry=10.0.0.137      cn-jenkins-deploy-platform-ansible-os-3251-3. cn-jenkins-deploy-platform-ansible-os-3251-3'
++ local name=
++ [[ -n 10.0.0.137      cn-jenkins-deploy-platform-ansible-os-3251-3. cn-jenkins-deploy-platform-ansible-os-3251-3 ]]
+++ awk '{print $2}'
++ cut -d . -f 1
+++ echo 10.0.0.137 cn-jenkins-deploy-platform-ansible-os-3251-3. cn-jenkins-deploy-platform-ansible-os-3251-3
++ name=cn-jenkins-deploy-platform-ansible-os-3251-3.
++ [[ -n cn-jenkins-deploy-platform-ansible-os-3251-3. ]]
++ echo cn-jenkins-deploy-platform-ansible-os-3251-3.
+ server_hostname=cn-jenkins-deploy-platform-ansible-os-3251-3
+ [[ -z cn-jenkins-deploy-platform-ansible-os-3251-3 ]]
+ cluster_nodes+=''\''contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'\'','
+ server_names_list=($server_names_list $server_hostname)
++ cut -d ' ' -f 1
++ find_my_ip_and_order_for_node_list 10.0.0.137
++ local servers=10.0.0.137
++ local server_list=
++ IFS=,
++ read -ra server_list
+++ get_local_ips
+++ cat /proc/net/fib_trie
+++ awk '/32 host/ { print f } {f=$2}'
+++ sort
+++ grep -vi host
+++ uniq
+++ tr '\n' ,
++ local local_ips=,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,,
++ local ord=1
++ for server in '"${server_list[@]}"'
++ local ret=0
+++ python3 -c 'import socket; print(socket.gethostbyname('\''10.0.0.137'\''))'
++ local server_ip=10.0.0.137
++ [[ 0 == 0 ]]
++ [[ -n 10.0.0.137 ]]
++ [[ ,10.0.0.137,10.20.0.14,127.0.0.1,172.17.0.1,, =~ ,10\.0\.0\.137, ]]
++ echo 10.0.0.137 1
++ return
+ server_ip=10.0.0.137
+ [[ ,10.0.0.137, =~ ,10\.0\.0\.137, ]]
+ my_node=cn-jenkins-deploy-platform-ansible-os-3251-3
+ echo 'INFO: my_node=cn-jenkins-deploy-platform-ansible-os-3251-3'
INFO: my_node=cn-jenkins-deploy-platform-ansible-os-3251-3
++ echo 10.0.0.137
++ tr . ,
+ dist_ip=10,0,0,137
+ RABBITMQ_NODENAME=contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
+ RABBITMQ_MGMT_PORT=15673
+ RABBITMQ_DIST_PORT=25673
+ is_enabled false
+ local val=false
+ [[ false == \t\r\u\e ]]
+ [[ false == \y\e\s ]]
+ [[ false == \e\n\a\b\l\e\d ]]
+ export -n RABBITMQ_NODE_PORT RABBITMQ_DIST_PORT RABBITMQ_DEFAULT_USER RABBITMQ_DEFAULT_PASS RABBITMQ_DEFAULT_VHOST
+ for name in CACERTFILE CERTFILE KEYFILE DEPTH FAIL_IF_NO_PEER_CERT VERIFY
+ export -n RABBITMQ_SSL_CACERTFILE RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ for name in CACERTFILE CERTFILE KEYFILE DEPTH FAIL_IF_NO_PEER_CERT VERIFY
+ export -n RABBITMQ_SSL_CERTFILE RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ for name in CACERTFILE CERTFILE KEYFILE DEPTH FAIL_IF_NO_PEER_CERT VERIFY
+ export -n RABBITMQ_SSL_KEYFILE RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ for name in CACERTFILE CERTFILE KEYFILE DEPTH FAIL_IF_NO_PEER_CERT VERIFY
+ export -n RABBITMQ_SSL_DEPTH RABBITMQ_MANAGEMENT_SSL_DEPTH
+ for name in CACERTFILE CERTFILE KEYFILE DEPTH FAIL_IF_NO_PEER_CERT VERIFY
+ export -n RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ for name in CACERTFILE CERTFILE KEYFILE DEPTH FAIL_IF_NO_PEER_CERT VERIFY
+ export -n RABBITMQ_SSL_VERIFY RABBITMQ_MANAGEMENT_SSL_VERIFY
+ echo 'INFO: RABBITMQ_NODENAME=contrail@cn-jenkins-deploy-platform-ansible-os-3251-3, RABBITMQ_NODE_PORT=5673'
INFO: RABBITMQ_NODENAME=contrail@cn-jenkins-deploy-platform-ansible-os-3251-3, RABBITMQ_NODE_PORT=5673
+ echo RABBITMQ_NODENAME=contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
+ echo HOME=/var/lib/rabbitmq
+ echo CONFIG_FILE=/etc/rabbitmq/rabbitmq.config
+ is_enabled false
+ local val=false
+ [[ false == \t\r\u\e ]]
+ [[ false == \y\e\s ]]
+ [[ false == \e\n\a\b\l\e\d ]]
+ echo NODE_PORT=5673
+ is_enabled false
+ local val=false
+ [[ false == \t\r\u\e ]]
+ [[ false == \y\e\s ]]
+ [[ false == \e\n\a\b\l\e\d ]]
+ [[ -n abcdefg ]]
+ cookie_file=/var/lib/rabbitmq/.erlang.cookie
+ echo abcdefg
+ chmod 600 /var/lib/rabbitmq/.erlang.cookie
+ chown rabbitmq:rabbitmq /var/lib/rabbitmq/.erlang.cookie
+ is_enabled false
+ local val=false
+ [[ false == \t\r\u\e ]]
+ [[ false == \y\e\s ]]
+ [[ false == \e\n\a\b\l\e\d ]]
+ cat
+ cat
+ [[ -n all ]]
++ cat /dev/urandom
++ tr -d '\0'
++ xxd -ps -c 256
++ head --bytes=4
+ salt=3c14fb72
++ echo -n guest
++ xxd -ps -c 256
+ pwd=6775657374
++ head -c 64
++ echo -n 3c14fb726775657374
++ sha256sum --binary
++ xxd -r -p
+ sha256=0b636582b5a4d0451c68da6e5b5dfefb1813bb9368ae834cf61dfa88fd7c597d
++ base64 -w 0
++ echo -n 3c14fb720b636582b5a4d0451c68da6e5b5dfefb1813bb9368ae834cf61dfa88fd7c597d
++ xxd -r -p
+ b64=PBT7cgtjZYK1pNBFHGjabltd/vsYE7uTaK6DTPYd+oj9fFl9
+ cat
+ is_enabled false
+ local val=false
+ [[ false == \t\r\u\e ]]
+ [[ false == \y\e\s ]]
+ [[ false == \e\n\a\b\l\e\d ]]
+ mkdir -p /var/log/rabbitmq /var/log/contrail/config-database-rabbitmq
+ chown -R rabbitmq:rabbitmq /var/log/rabbitmq
+ chown -R rabbitmq:rabbitmq /var/log/contrail/config-database-rabbitmq
+ '[' '!' -d /var/log/rabbitmq/console ']'
+ ln -s /var/log/contrail/config-database-rabbitmq /var/log/rabbitmq/console
+ setup_log_dir /var/log/contrail/config-database-rabbitmq/rabbitmq.log
+ local path=/var/log/contrail/config-database-rabbitmq/rabbitmq.log
+ local log_dir
+ local log_name
+ [[ -n /var/log/contrail/config-database-rabbitmq/rabbitmq.log ]]
+ [[ /var/log/contrail/config-database-rabbitmq/rabbitmq.log != \- ]]
++ dirname /var/log/contrail/config-database-rabbitmq/rabbitmq.log
+ log_dir=/var/log/contrail/config-database-rabbitmq
+ mkdir -p /var/log/contrail/config-database-rabbitmq
++ basename /var/log/contrail/config-database-rabbitmq/rabbitmq.log
+ log_name=rabbitmq.log
++ dirname /var/log/contrail/config-database-rabbitmq
+ mv -n '/var/log/contrail/rabbitmq.log*' /var/log/contrail/config-database-rabbitmq/
+ touch /var/log/contrail/config-database-rabbitmq/rabbitmq.log
+ chown rabbitmq:rabbitmq /var/log/contrail/config-database-rabbitmq/rabbitmq.log
+ setup_log_dir -
+ local path=-
+ local log_dir
+ local log_name
+ [[ -n - ]]
+ [[ - != \- ]]
+ leader_node=cn-jenkins-deploy-platform-ansible-os-3251-1
+ [[ cn-jenkins-deploy-platform-ansible-os-3251-1 != \c\n\-\j\e\n\k\i\n\s\-\d\e\p\l\o\y\-\p\l\a\t\f\o\r\m\-\a\n\s\i\b\l\e\-\o\s\-\3\2\5\1\-\3 ]]
+ echo 'INFO: delay node cn-jenkins-deploy-platform-ansible-os-3251-3 start until first node starts...'
INFO: delay node cn-jenkins-deploy-platform-ansible-os-3251-3 start until first node starts...
+ leader_nodename=contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-206-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Error:
Failed to connect and authenticate to contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 in 60000 ms
+ sleep 9
+ date
Thu May  1 00:42:11 UTC 2025
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:42:28 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:42:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:42:40 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:42:47 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:42:55 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-1736-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-2135-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-2267-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-2399-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:43:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:43:40 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:43:47 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:43:53 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error:
{:aborted, {:no_exists, [:rabbit_runtime_parameters, :cluster_name]}}
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:43:59 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-3780-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-4229-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-4361-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-4493-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:48:52 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-5304-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:48:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-5444-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:49:06 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-5584-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:49:12 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-5724-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:49:19 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-5862-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-6259-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-6391-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-6523-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:49:47 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-7334-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:49:55 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-7474-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:50:02 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-7614-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:50:10 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-7754-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:50:17 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-7892-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-8289-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-8421-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-8553-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:50:49 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-9364-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:50:56 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-9504-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:51:02 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-9644-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:51:10 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-9784-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:51:16 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-9922-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-10319-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-10451-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-10583-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:51:47 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-11394-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 00:51:58 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-11534-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:52:06 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-11674-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:52:13 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-11814-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:52:22 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-11952-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-12349-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-12481-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-12613-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 00:52:54 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-13424-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 00:53:05 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-13564-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:53:12 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-13704-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:53:19 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-13844-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:53:27 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-13982-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-14379-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-14511-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-14643-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:53:58 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:54:07 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-15594-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:54:16 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-15734-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 00:54:27 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-15874-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 00:54:37 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-16012-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-16409-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-16541-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-16673-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:55:08 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-17484-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:55:15 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-17624-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 00:55:25 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-17764-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:55:32 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-17904-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:55:41 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-18042-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-18439-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-18571-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-18703-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:56:10 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-19514-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:56:19 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-19654-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:56:25 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-19794-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:56:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-19934-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:56:41 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-20072-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-20469-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-20601-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-20733-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 00:57:13 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-21544-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:57:19 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-21684-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:57:28 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-21824-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 00:57:35 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-21964-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:57:43 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-22102-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-22499-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-22631-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-22763-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
+++ cat
++ echo ''
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:58:17 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-23574-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:58:26 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-23714-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:58:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-23854-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:58:41 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-23994-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:58:50 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-24132-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-24529-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-24661-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-24793-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:59:20 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-25604-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 00:59:27 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-25744-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 00:59:36 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-25884-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:59:45 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-26024-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 00:59:53 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-26162-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-26559-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-26691-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-26823-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:00:27 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-27634-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:00:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-27774-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:00:41 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-27914-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:00:51 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-28054-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:01:00 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-28192-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-28589-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-28721-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-28853-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:01:29 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-29664-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:01:36 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-29804-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:01:46 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-29944-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:01:54 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-30084-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:02:01 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-30222-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-30619-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-30751-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-30883-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:02:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-31694-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:02:43 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-31834-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:02:50 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-31974-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:02:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-32114-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:03:08 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-32252-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-32649-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-32781-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-32913-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:03:37 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-33724-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:03:44 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-33864-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:03:50 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-34004-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:03:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-34144-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:04:08 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-34282-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-34679-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-34811-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-34943-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:04:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:04:43 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-35894-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:04:50 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-36034-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:04:57 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-36174-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:05:05 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-36312-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-36709-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-36841-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-36973-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:05:32 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-37784-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:05:40 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-37924-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:05:49 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-38064-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:05:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-38204-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:06:07 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-38342-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-38739-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-38871-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-39003-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:06:40 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-39814-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:06:49 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-39954-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:06:58 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-40094-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:07:06 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-40234-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:07:13 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-40372-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-40769-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-40901-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-41033-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:07:44 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-41844-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:07:52 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-41984-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:07:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-42124-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:08:08 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-42264-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:08:17 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-42402-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-42799-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-42931-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-43063-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:08:47 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-43874-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:08:55 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-44014-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:09:02 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-44154-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:09:10 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-44294-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:09:16 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-44432-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-44829-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-44961-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-45093-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:09:51 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-45904-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:09:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-46044-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
+++ cat
++ echo ''
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:10:06 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-46184-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:10:15 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-46324-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:10:22 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-46462-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-46859-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-46991-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-47123-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:10:52 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-47934-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:11:00 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-48074-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:11:07 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-48214-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:11:17 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-48354-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:11:23 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-48492-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-48889-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-49021-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-49153-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:11:53 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-49964-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:11:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-50104-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:12:08 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-50244-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:12:17 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-50384-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:12:23 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-50522-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-50919-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-51051-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-51183-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:12:53 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-51994-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:13:01 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-52134-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:13:09 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-52274-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:13:17 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-52414-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:13:24 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-52552-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-52949-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-53081-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-53213-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:13:57 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-54024-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:14:05 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-54164-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:14:12 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-54304-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:14:22 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-54444-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:14:29 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-54582-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-54979-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-55111-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-55243-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:14:58 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:15:06 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-56194-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:15:15 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-56334-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:15:22 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-56474-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:15:28 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-56612-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-57009-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-57141-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-57273-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:16:02 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-58084-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:16:10 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-58224-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:16:19 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-58364-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:16:27 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-58504-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:16:36 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-58642-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-59039-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-59171-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-59303-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:17:11 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-60114-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:17:17 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-60254-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:17:25 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-60394-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:17:35 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-60534-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:17:44 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-60672-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-61069-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-61201-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-61333-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:18:15 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-62144-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:18:23 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-62284-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:18:32 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-62424-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:18:40 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-62564-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:18:46 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-62702-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-63099-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-63231-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-63363-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:19:17 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-64174-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:19:26 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-64314-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:19:32 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-64454-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:19:42 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-64594-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:19:50 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-64732-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-65129-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-65261-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-65393-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:20:21 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-66204-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:20:30 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-66344-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:20:39 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-66484-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:20:48 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-66624-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:20:54 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-66762-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-67159-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-67291-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-67423-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:21:23 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-68234-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:21:32 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-68374-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:21:40 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-68514-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:21:50 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-68654-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:21:57 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-68792-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-69189-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-69321-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-69453-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:22:26 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-70264-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:22:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-70404-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:22:43 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-70544-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:22:52 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-70684-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:23:01 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-70822-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-71219-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-71351-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-71483-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:23:32 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-72294-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:23:41 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-72434-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:23:47 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-72574-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:23:56 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-72714-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:24:02 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-72852-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-73249-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-73381-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-73513-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:24:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-74324-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:24:43 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-74464-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:24:50 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-74604-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:25:00 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-74744-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:25:10 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-74882-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-75279-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-75411-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-75543-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:25:39 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-76354-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:25:45 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-76494-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:25:55 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-76634-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:26:01 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-76774-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:26:08 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-76912-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-77309-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-77441-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-77573-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:26:36 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-78384-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:26:45 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-78524-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:26:54 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-78664-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:27:04 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-78804-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:27:12 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-78942-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-79339-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-79471-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-79603-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:27:37 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:27:44 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-80554-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:27:50 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-80694-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:27:56 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-80834-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:28:04 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-80972-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-81369-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-81501-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-81633-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:28:33 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-82444-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:28:40 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-82584-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:28:50 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-82724-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:28:58 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-82864-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:29:05 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-83002-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-83399-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-83531-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-83663-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
+++ cat
++ echo ''
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:29:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-84474-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:29:41 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-84614-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:29:48 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-84754-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:29:54 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-84894-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:30:03 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-85032-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-85429-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-85561-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-85693-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:30:28 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:30:34 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-86644-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:30:44 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-86784-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:30:54 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-86924-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:31:01 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-87062-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-87459-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-87591-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-87723-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:31:35 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-88534-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:31:43 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-88674-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:31:51 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-88814-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:31:57 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-88954-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:32:07 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-89092-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-89489-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-89621-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-89753-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:32:38 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-90564-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:32:47 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-90704-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:32:54 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-90844-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:33:01 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-90984-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:33:11 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-91122-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-91519-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-91651-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-91783-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:33:44 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-92594-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:33:51 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-92734-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:33:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-92874-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:34:09 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-93014-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:34:16 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-93152-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-93549-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-93681-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-93813-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:34:45 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-94624-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:34:55 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-94764-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:35:02 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-94904-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:35:10 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-95044-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:35:17 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-95182-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-95579-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-95711-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-95843-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:35:46 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-96654-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:35:53 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-96794-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:35:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-96934-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:36:08 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-97074-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:36:17 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-97212-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-97609-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-97741-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-97873-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:36:48 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-98684-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:36:56 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-98824-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:37:02 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-98964-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:37:12 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-99104-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:37:22 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-99242-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-99639-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-99771-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-99903-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:37:53 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-100714-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:38:02 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-100854-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:38:12 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-100994-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:38:22 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-101134-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:38:29 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-101272-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-101669-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-101801-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-101933-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:38:56 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-102744-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:39:05 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-102884-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:39:11 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-103024-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:39:18 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-103164-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:39:26 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-103302-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-103699-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-103831-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-103963-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:39:57 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-104774-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:40:04 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-104914-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:40:10 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-105054-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:40:18 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-105194-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:40:25 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-105332-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-105729-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-105861-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-105993-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:40:54 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-106804-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:41:03 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-106944-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:41:10 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-107084-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:41:16 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-107224-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:41:22 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-107362-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 9
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-107759-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-107891-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-108023-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:41:54 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-108834-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:42:01 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-108974-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 7
+ date
Thu May  1 01:42:09 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-109114-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:42:16 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-109254-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:42:23 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-109392-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 7
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-109789-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-109921-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-110053-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:42:57 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-110864-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:43:07 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-111004-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:43:17 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-111144-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:43:23 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-111284-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:43:29 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-111422-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-111819-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-111951-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-112083-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:43:57 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-112894-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:44:04 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-113034-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:44:10 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-113174-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 9
+ date
Thu May  1 01:44:20 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-113314-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 6
+ date
Thu May  1 01:44:27 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-113452-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 5
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-113849-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-113981-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-114113-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ in_cluster=
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:44:53 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
	cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json

Usage

rabbitmqctl [--node <node>] [--longnames] [--quiet] cluster_status
++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:44:59 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-115064-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 8
+ date
Thu May  1 01:45:08 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-115204-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:45:14 UTC 2025
+ for i in '{1..5}'
++ test_in_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
+++ rabbitmqctl cluster_status --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 --formatter json
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-115344-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

++ local status=
++ echo ''
+++ cat
++ python3 -c 'import sys, json
x=json.load(sys.stdin)
for i in filter(lambda j: j == "contrail@cn-jenkins-deploy-platform-ansible-os-3251-1", x.get("nodes", {}).get("disc", [])):
  print(i)'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
++ return
+ in_cluster=
+ sleep 5
+ date
Thu May  1 01:45:20 UTC 2025
+ '[' -n '' ']'
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 stop_app
Stopping rabbit application on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ...
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-115482-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-1. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 6
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-1 forget_cluster_node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
Removing node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 from the cluster
Error:
{:not_a_cluster_node, 'The node selected is not in the cluster.'}
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 force_reset
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-115879-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 join_cluster contrail@cn-jenkins-deploy-platform-ansible-os-3251-1
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-116011-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ continue
+ true
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 shutdown
Error: unable to perform an operation on node 'contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['contrail@cn-jenkins-deploy-platform-ansible-os-3251-3']

contrail@cn-jenkins-deploy-platform-ansible-os-3251-3:
  * connected to epmd (port 4369) on cn-jenkins-deploy-platform-ansible-os-3251-3
  * epmd reports: node 'contrail' not running at all
                  no other nodes on cn-jenkins-deploy-platform-ansible-os-3251-3
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-116143-contrail@cn-jenkins-deploy-platform-ansible-os-3251-3'
 * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: esZsDxSN6VGbi9JkMSxNZA==

+ true
+ /docker-entrypoint.sh rabbitmq-server -detached
+ source /functions.sh
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ : ''
+ fileEnvKeys=(default_user default_pass)
+ sslConfigKeys=(cacertfile certfile depth fail_if_no_peer_cert keyfile verify)
+ managementConfigKeys=("${sslConfigKeys[@]/#/ssl_}")
+ rabbitConfigKeys=(default_pass default_user default_vhost vm_memory_high_watermark)
+ fileConfigKeys=(management_ssl_cacertfile management_ssl_certfile management_ssl_keyfile ssl_cacertfile ssl_certfile ssl_keyfile)
+ allConfigKeys=("${managementConfigKeys[@]/#/management_}" "${rabbitConfigKeys[@]}" "${sslConfigKeys[@]/#/ssl_}")
+ configDefaults=([management_ssl_fail_if_no_peer_cert]='false' [management_ssl_verify]='verify_none' [ssl_fail_if_no_peer_cert]='true' [ssl_verify]='verify_peer')
+ declare -A configDefaults
+ [[ rabbitmq-server == rabbitmq* ]]
++ id -u
+ '[' 0 = 0 ']'
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_MANAGEMENT_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_PASS
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_USER
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_DEFAULT_VHOST
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_VM_MEMORY_HIGH_WATERMARK
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CACERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_CERTFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_DEPTH
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_KEYFILE
+ val=
+ '[' -n '' ']'
+ continue
+ for conf in '"${allConfigKeys[@]}"'
+ var=RABBITMQ_SSL_VERIFY
+ val=
+ '[' -n '' ']'
+ continue
+ '[' rabbitmq-server = rabbitmq-server ']'
+ find /var/lib/rabbitmq '!' -user rabbitmq -exec chown rabbitmq '{}' +
++ id -u rabbitmq
+ CONTRAIL_UID=999
++ id -g rabbitmq
+ CONTRAIL_GID=998
+ ulimit -n 65536
+ do_run_service rabbitmq-server -detached
+ [[ -n 999 ]]
+ [[ -n 998 ]]
+ mkdir -p /var/crashes
+ chmod 777 /var/crashes
++ id -un 999
+ local user_name=rabbitmq
+ export HOME=/home/rabbitmq
+ HOME=/home/rabbitmq
+ mkdir -p /home/rabbitmq
+ chown -R 999:998 /home/rabbitmq
+ exec setpriv --reuid 999 --regid 998 --clear-groups --no-new-privs rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
+ rabbitmqctl --node contrail@cn-jenkins-deploy-platform-ansible-os-3251-3 ping
Will ping contrail@cn-jenkins-deploy-platform-ansible-os-3251-3. This only checks if the OS process is running and registered with epmd. Timeout: 60000 ms.
Ping succeeded
+ sleep 8