Activity log for bug #1750656

Date Who What changed Old value New value Message
2018-02-20 20:47:20 git-harry bug added bug
2018-02-20 21:28:53 OpenStack Infra openstack-ansible: status New In Progress
2018-02-22 14:24:59 OpenStack Infra openstack-ansible: assignee git-harry (git-harry) Jesse Pretorius (jesse-pretorius)
2018-02-22 20:47:07 OpenStack Infra tags in-stable-ocata
2018-02-22 20:47:18 OpenStack Infra tags in-stable-ocata in-stable-newton in-stable-ocata
2018-02-22 20:47:29 OpenStack Infra tags in-stable-newton in-stable-ocata in-stable-newton in-stable-ocata in-stable-queens
2018-02-22 20:50:23 OpenStack Infra tags in-stable-newton in-stable-ocata in-stable-queens in-stable-newton in-stable-ocata in-stable-pike in-stable-queens
2018-02-23 16:19:27 OpenStack Infra openstack-ansible: assignee Jesse Pretorius (jesse-pretorius) git-harry (git-harry)
2018-02-23 16:41:35 git-harry description If `apt_repository` fails when attempting to update the apt cache after adding the repository, and the task is set to retry on failure, the second attempt finds the repository has already been added and so no change is made resulting in no attempt to update the cache. This means the second attempt always succeeds without updating the cache. This can result in the failure to install libmariadbclient-dev. The following example failures where seen on the stable/pike version of galera_client and galera_server but there may be similar examples in other roles. ``` TASK [galera_client : Add galera repo] ***************************************** Friday 16 February 2018 14:42:14 -0600 (0:00:00.713) 0:36:52.759 ******* FAILED - RETRYING: Add galera repo (5 retries left). ok: [infra1_repo_container-55057f82] TASK [galera_client : Install galera distro packages] ************************** Friday 16 February 2018 14:42:21 -0600 (0:00:06.969) 0:36:59.729 ******* FAILED - RETRYING: Install galera distro packages (5 retries left). FAILED - RETRYING: Install galera distro packages (4 retries left). FAILED - RETRYING: Install galera distro packages (3 retries left). FAILED - RETRYING: Install galera distro packages (2 retries left). FAILED - RETRYING: Install galera distro packages (1 retries left). fatal: [infra1_repo_container-55057f82]: FAILED! => {"attempts": 5, "changed": false, "failed": true, "msg": "No package matching 'libmariadbclient-dev' is available"} ``` ``` TASK [galera_server : Add galera repo] ***************************************** Friday 16 February 2018 14:37:20 -0600 (0:00:00.921) 1:01:47.812 ******* FAILED - RETRYING: Add galera repo (5 retries left). ok: [infra3_galera_container-01038d4c] TASK [galera_server : Add percona repo] **************************************** Friday 16 February 2018 14:37:27 -0600 (0:00:07.075) 1:01:54.888 ******* ok: [infra3_galera_container-01038d4c] TASK [galera_server : Preseed galera password(s)] ****************************** Friday 16 February 2018 14:37:28 -0600 (0:00:00.844) 1:01:55.732 ******* changed: [infra3_galera_container-01038d4c] => (item={u'vtype': u'string', u'question': u'mysql-server/root_password', u'name': u'mariadb-server-10.1', u'value': u'***'}) changed: [infra3_galera_container-01038d4c] => (item={u'vtype': u'string', u'question': u'mysql-server/root_password_again', u'name': u'mariadb-server-10.1', u'value': u'***'}) TASK [galera_server : Prevent galera from starting on install] ***************** Friday 16 February 2018 14:37:29 -0600 (0:00:01.332) 1:01:57.064 ******* changed: [infra3_galera_container-01038d4c] TASK [galera_server : Install galera_server role remote packages (apt)] ******** Friday 16 February 2018 14:37:30 -0600 (0:00:01.271) 1:01:58.335 ******* fatal: [infra3_galera_container-01038d4c]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching 'libmariadbclient-dev' is available"} ``` Upstream issue: https://github.com/ansible/ansible/issues/36605 If `apt_repository` fails when attempting to update the apt cache after adding the repository, and the task is set to retry on failure, the second attempt finds the repository has already been added and so no change is made resulting in no attempt to update the cache. This means the second attempt always succeeds without updating the cache. This can result in the failure to install libmariadbclient-dev. The following example failures where seen on the stable/pike version of galera_client and galera_server but there may be similar examples in other roles. ``` TASK [galera_client : Add galera repo] ***************************************** Friday 16 February 2018 14:42:14 -0600 (0:00:00.713) 0:36:52.759 ******* FAILED - RETRYING: Add galera repo (5 retries left). ok: [infra1_repo_container-55057f82] TASK [galera_client : Install galera distro packages] ************************** Friday 16 February 2018 14:42:21 -0600 (0:00:06.969) 0:36:59.729 ******* FAILED - RETRYING: Install galera distro packages (5 retries left). FAILED - RETRYING: Install galera distro packages (4 retries left). FAILED - RETRYING: Install galera distro packages (3 retries left). FAILED - RETRYING: Install galera distro packages (2 retries left). FAILED - RETRYING: Install galera distro packages (1 retries left). fatal: [infra1_repo_container-55057f82]: FAILED! => {"attempts": 5, "changed": false, "failed": true, "msg": "No package matching 'libmariadbclient-dev' is available"} ``` ``` TASK [galera_server : Add galera repo] ***************************************** Friday 16 February 2018 14:37:20 -0600 (0:00:00.921) 1:01:47.812 ******* FAILED - RETRYING: Add galera repo (5 retries left). ok: [infra3_galera_container-01038d4c] TASK [galera_server : Add percona repo] **************************************** Friday 16 February 2018 14:37:27 -0600 (0:00:07.075) 1:01:54.888 ******* ok: [infra3_galera_container-01038d4c] TASK [galera_server : Preseed galera password(s)] ****************************** Friday 16 February 2018 14:37:28 -0600 (0:00:00.844) 1:01:55.732 ******* changed: [infra3_galera_container-01038d4c] => (item={u'vtype': u'string', u'question': u'mysql-server/root_password', u'name': u'mariadb-server-10.1', u'value': u'***'}) changed: [infra3_galera_container-01038d4c] => (item={u'vtype': u'string', u'question': u'mysql-server/root_password_again', u'name': u'mariadb-server-10.1', u'value': u'***'}) TASK [galera_server : Prevent galera from starting on install] ***************** Friday 16 February 2018 14:37:29 -0600 (0:00:01.332) 1:01:57.064 ******* changed: [infra3_galera_container-01038d4c] TASK [galera_server : Install galera_server role remote packages (apt)] ******** Friday 16 February 2018 14:37:30 -0600 (0:00:01.271) 1:01:58.335 ******* fatal: [infra3_galera_container-01038d4c]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching 'libmariadbclient-dev' is available"} ```
2018-03-07 15:02:02 OpenStack Infra bug watch added https://github.com/ansible/ansible/issues/36605
2018-03-15 17:18:57 Jesse Pretorius openstack-ansible: importance Undecided Medium
2018-03-22 11:12:47 Jesse Pretorius openstack-ansible: status In Progress Fix Released