Failed to update apt cache

Bug #1716927 reported by Kent Stanwood Gordon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Expired
Undecided
Unassigned

Bug Description

Ubuntu 16.04
tag stable/pike
default aio deployment except for turning off security_hardening (apply_security_hardening: False
)

TASK [pip_install : Install UCA repository key] ***********************************************************************
Wednesday 13 September 2017 13:53:56 +0000 (0:00:00.143) 0:09:02.244 ***
fatal: [aio1]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to update apt cache."}

PLAY RECAP ************************************************************************************************************
aio1 : ok=16 changed=1 unreachable=0 failed=1
aio1_cinder_api_container-5e29bdc1 : ok=97 changed=2 unreachable=0 failed=0
aio1_cinder_scheduler_container-f4b6dd60 : ok=74 changed=2 unreachable=0 failed=0
aio1_glance_container-d80d48f8 : ok=90 changed=3 unreachable=0 failed=0
aio1_keystone_container-f058bdf2 : ok=127 changed=6 unreachable=0 failed=0

Revision history for this message
Kent Stanwood Gordon (kent-gordon) wrote :
Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

Could you give us more details about the apt transaction?
It seems a temporary issue or a network issue.

Changed in openstack-ansible:
status: New → Incomplete
Revision history for this message
Kent Stanwood Gordon (kent-gordon) wrote :

I have updated to latest stable/pike and the issue has gone away.
This bug can be closed.

Revision history for this message
John T Johnson (jt.johnson) wrote :

I had the same issue but with different containers - a different container would report "Failed to update apt cache" after consecutive runs.

For me, I found that I was running out of disk space. It's been a while since I've worked with Ubuntu and doing an "Guided" disk partition method was the wrong way to go. Ubuntu creates a small / partition with the large majority of disk allocated to /home

Because OpenStack-Ansible creates the containers under /openstack, you can quickly run out of space and not have enough room for updates of packages from apt - thus giving us the error.

Moving to Pike may have created a false fix in that either you rebuilt the servers thus removing the /openstack directory, or manually deleting lxc containers did the trick.

summary: - "Failed to update apt cache."}
+ Failed to update apt cache
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openstack-ansible because there has been no activity for 60 days.]

Changed in openstack-ansible:
status: Incomplete → Expired
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.