When one of the bootstrap containers can't connect to the database it should not loop forever trying

Bug #1748362 reported by Joshua Harlow
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Invalid
Undecided
Unassigned

Bug Description

When for example the wrong database address is given the following happens...

     to MySQL server on 'db' ([Errno -2] Name or service not known)")
2018-02-09 04:27:51.335 22 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. -64 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")
2018-02-09 04:28:01.351 22 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. -65 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")
2018-02-09 04:28:11.363 22 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. -66 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")
2018-02-09 04:28:21.375 22 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. -67 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")
2018-02-09 04:28:31.388 22 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. -68 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")
2018-02-09 04:28:41.401 22 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. -69 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")
2018-02-09 04:28:51.414 22 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. -70 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")
2018-02-09 04:29:01.426 22 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. -71 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")
2018-02-09 04:29:11.440 22 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. -72 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno -2] Name or service not known)")

This should not go forever... and should stop at some kind of upper limit (10? 20?)

When it goes on forever it causes ansible to just be hung at (ie the following):

`TASK [keystone : Running Keystone bootstrap container] *************************`)`

affects: kolla → kolla-ansible
Changed in kolla-ansible:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.