When I configured the following in the json file. Analytics could not get provisioned.
"global_config": {
"analyticsdb_cassandra_password": "cassandra",
"analyticsdb_cassandra_user": "cassandra",
},
/var/log/contrail:
11/16/2017 12:20:53 PM [contrail-analytics-api]: SANDESH: [DROP: WrongClientSMState] NodeStatusUVE: data = << name = nodel11-vm2 process_status = [ << module_id = contrail-analytics-api instance_id = 0 state = Non-Functional connection_infos = [ << type = Redis-UVE name = 10.204.217.33:6381 server_addrs = [ 10.204.217.33:6381, ] status = Initializing >>, << type = Redis-UVE name = 10.204.217.31:6381 server_addrs = [ 10.204.217.31:6381, ] status = Initializing >>, << type = Collector name = server_addrs = [ , ] status = Down description = none to Idle on EvStart >>, << type = Zookeeper name = OpServer server_addrs = [ 10.204.217.31:2181, 10.204.217.32:2181, 10.204.217.33:2181, ] status = Initializing description = >>, << type = Redis-UVE name = 10.204.217.32:6381 server_addrs = [ 10.204.217.32:6381, ] status = Initializing >>, << type = UvePartitions name = UVE-Aggregation server_addrs = [ ] status = Initializing >>, ] description = Redis-UVE:10.204.217.33:6381[None], Redis-UVE:10.204.217.31:6381[None], Collector, Zookeeper:OpServer[], Redis-UVE:10.204.217.32:6381[None], UvePartitions:UVE-Aggregation[None] connection down >>, ] >>
11/16/2017 12:20:53 PM [contrail-analytics-api]: SANDESH: [DROP: WrongClientSMState] SandeshModuleClientTrace: data = << name = nodel11-vm2:Analytics:contrail-analytics-api:0 client_info = << status = Idle successful_connections = 0 pid = 3121 http_port = 8090 start_time = 1510834853977239 collector_name = collector_ip = collector_list = [ 10.204.217.32:8086, 10.204.217.31:8086, 10.204.217.33:8086, ] >> sm_queue_count = 6 max_sm_queue_count = 6 >>
11/16/2017 12:20:54 PM [contrail-analytics-api]: Exception: get_cql_session Failure ('Unable to connect to any servers', {'10.204.217.33': error(111, "Tried connecting to [('10.204.217.33', 9042)]. Last error: Connection refused"), '10.204.217.32': AuthenticationFailed('Remote end requires authentication.',), '10.204.217.31': AuthenticationFailed('Remote end requires authentication.',)})
11/16/2017 12:20:54 PM [contrail-analytics-api]: Starting UveStreamer
11/16/2017 12:20:54 PM [contrail-analytics-api]: Analytics Discovery zk start
11/16/2017 12:20:54 PM [contrail-analytics-api]: SANDESH: [DROP: WrongClientSMState] NodeStatusUVE: data = << name = nodel11-vm2 process_status = [ << module_id = contrail-analytics-api instance_id = 0 state = Non-Functional connection_infos = [ << type = Redis-UVE name = 10.204.217.33:6381 server_addrs = [ 10.204.217.33:6381, ] status = Initializing >>, << type = Redis-UVE name = 10.204.217.31:6381 server_addrs = [ 10.204.217.31:6381, ] status = Initializing >>, << type = Collector name = server_addrs = [ , ] status = Down description = none to Idle on EvStart >>, << type = Zookeeper name = OpServer server_addrs = [ 10.204.217.31:2181, 10.204.217.32:2181, 10.204.217.33:2181, ] status = Initializing description = >>, << type = ApiServer name = server_addrs = [ 10.204.217.31:8082, 10.204.217.32:8082, 10.204.217.33:8082, ] status = Initializing description = >>, << type = Redis-UVE name = 10.204.217.32:6381 server_addrs = [ 10.204.217.32:6381, ] status = Initializing >>, << type = UvePartitions name = UVE-Aggregation server_addrs = [ ] status = Initializing >>, ] description = Redis-UVE:10.204.217.33:6381[None], Redis-UVE:10.204.217.31:6381[None], Collector, Zookeeper:OpServer[], ApiServer, Redis-UVE:10.204.217.32:6381[None], UvePartitions:UVE-Aggregation[None] connection down >>, ] >>
11/16/2017 12:20:54 PM [contrail-analytics-api]: redis/collector healthcheck failed Error 111 connecting to 10.204.217.33:6381. Connection refused. for RedisInstKey(ip='10.204.217.33', port=6381)
root@nodel11-vm2(analytics):/var/log/contrail# contrail-status
== Contrail Analytics ==
contrail-alarm-gen initializing (Redis-UVE:10.204.217.33:6381[None] connection down)
contrail-analytics-api initializing (Redis-UVE:10.204.217.33:6381[None] connection down)
contrail-analytics-nodemgr active
contrail-collector active
contrail-query-engine active
contrail-snmp-collector active
contrail-topology active
Full logs and json copied :
[ankitja@nodem4 1732842]$ pwd
/cs-shared/bugs/1732842