FAILED - RETRYING: TASK: contrail/config : Wait till config
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R4.0 |
Fix Committed
|
Undecided
|
Ignatious Johnson Christopher | |||
Trunk |
Fix Committed
|
Undecided
|
Ignatious Johnson Christopher |
Bug Description
R4.0.1 build #43 installation went thru fine. But, when I wanted to change the config using contrailctl, I hit an issue described below.
I added the following lines to the end of /etc/contrailct
[API]
aaa_mode = no-auth
[ANALYTICS_API]
aaa_mode = no-auth
And ran the command:
docker exec controller contrailctl config sync -c controller -Fv
Following was the failure:
TASK [contrail/config : Make sure contrail svc-monitor service is in desired state] ***
ok: [localhost]
TASK [contrail/config : include] *******
included: /contrail-
TASK [contrail/config : Include cloud_orchestrator specific code to provision config objects] ***
included: /contrail-
TASK [contrail/config : Wait till config api server answers before creating config objects] ***
FAILED - RETRYING: TASK: contrail/config : Wait till config api server answers before creating config objects (300 retries left).
FAILED - RETRYING: TASK: contrail/config : Wait till config api server answers before creating config objects (299 retries left).
:
:
FAILED - RETRYING: TASK: contrail/config : Wait till config api server answers before creating config objects (2 retries left).
FAILED - RETRYING: TASK: contrail/config : Wait till config api server answers before creating config objects (1 retries left).
fatal: [localhost]: FAILED! => {"attempts": 300, "changed": false, "content": "", "failed": true, "msg": "Status code was not [200]: Request failed: <urlopen error [Errno 111] Connection refused>", "redirected": false, "status": -1, "url": "http://
to retry, use: --limit @/contrail-
PLAY RECAP *******
localhost : ok=85 changed=9 unreachable=0 failed=1
I also see controller docker is restarting every few mins. When I look into the /var/logs/contrail/ I see these errors:
==> contrail-
08/23/2017 08:44:42 AM - debug: Redis: reconnecting
08/23/2017 08:44:42 AM - debug: Redis: reconnecting
08/23/2017 08:44:42 AM - debug: Redis: reconnecting
08/23/2017 08:44:42 AM - debug: Redis: reconnecting
08/23/2017 08:44:42 AM - debug: Created a new Job with jobName:
08/23/2017 08:44:42 AM - debug: Created a new Job with jobName:
08/23/2017 08:44:42 AM - debug: Redis: reconnecting
08/23/2017 08:44:42 AM - error: Redis: error String: Error: Redis connection to 10.213.17.153:6379 failed - connect ECONNREFUSED
08/23/2017 08:44:42 AM - debug: Redis: reconnecting
08/23/2017 08:44:43 AM - debug: Redis: reconnecting
08/23/2017 08:44:43 AM - debug: Redis: reconnecting
08/23/2017 08:44:43 AM - debug: Redis: reconnecting
08/23/2017 08:44:43 AM - debug: Redis: reconnecting
/usr/lib64/
Error: Redis connection gone from close event.
at Command.callback (/usr/lib64/
at RedisClient.
at RedisClient.
at Socket.<anonymous> (/usr/lib64/
at Socket.emit (events.js:95:17)
at TCP.close (net.js:466:12)
08/23/2017 08:44:43 AM - debug: The worker #12 has disconnected.
08/23/2017 08:44:43 AM - error: The worker #12 has exited with exit code 8
08/23/2017 08:44:43 AM - error: Redis: error String: Error: Redis connection to 10.213.17.153:6379 failed - connect ECONNREFUSED
08/23/2017 08:44:43 AM - debug: Redis: reconnecting
08/23/2017 08:44:43 AM - error: Redis: error String: Error: Redis connection to 10.213.17.153:6379 failed - connect ECONNREFUSED
08/23/2017 08:44:43 AM - debug: Redis: reconnecting
08/23/2017 08:44:44 AM - debug: Contrail Service Response Updated by process:11972 {"dns-server"
08/23/2017 08:44:44 AM - debug: Got the token successfully for tenant:admin
08/23/2017 08:44:44 AM - debug: Contrail Service Response Updated by process:11972 {"ApiServer"
08/23/2017 08:44:44 AM - debug: Got the token successfully for tenant:admin
08/23/2017 08:44:44 AM - debug: Contrail Service Response Updated by process:11972 {"OpServer"
==> contrail-
10.213.17.153 - - [2017-08-23 08:44:54] "GET / HTTP/1.1" 200 20549 0.002582
10.213.17.153 - - [2017-08-23 08:44:54] "GET /physical-
==> supervisord.log <==
2017-08-23 08:45:00,106 WARN received SIGHUP indicating restart request
2017-08-23 08:45:00,107 INFO waiting for supervisord_
2017-08-23 08:45:00,110 INFO stopped: supervisord_control (terminated by SIGKILL)
information type: | Proprietary → Public |
tags: | added: config |
Changed in juniperopenstack: | |
assignee: | nobody → Sachin Bansal (sbansal) |
Changed in juniperopenstack: | |
assignee: | Sachin Bansal (sbansal) → Ignatious Johnson Christopher (ijohnson-x) |
Hi Prashanth,
I am trying to reproduce the issue locally.
I will request you to recreate, if i am not able to reproduce.
If you still have the setup in failed state. can you please share he setup details.
Thanks,
Ignatious