Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to update apt cache #597

Open
jwk404 opened this issue Aug 13, 2021 · 4 comments
Open

Failed to update apt cache #597

jwk404 opened this issue Aug 13, 2021 · 4 comments

Comments

@jwk404
Copy link
Contributor

jwk404 commented Aug 13, 2021

http://ops.jenkins.delphix.com/job/devops-gate/job/master/job/appliance-build-stage0/job/post-push/7388/

This run failed trying to run ansible with this message:

00:05:46  + ansible-playbook -v bootstrap/playbook.yml
00:05:45   > git config remote.origin.url https://gitlab.delphix.com/devops/devops-gate.git # timeout=10
00:05:45   > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
00:05:45   > git rev-parse origin/master^{commit} # timeout=10
00:05:45   > git config core.sparsecheckout # timeout=10
00:05:45   > git checkout -f ddab428f6f0582538c90b5aa21ae7dda40c48579 # timeout=10
00:05:50  Using /etc/ansible/ansible.cfg as config file
00:05:50  [WARNING]: provided hosts list is empty, only localhost is available. Note that
00:05:50  the implicit localhost does not match 'all'
00:05:50  
00:05:51  
00:05:51  PLAY [localhost] ***************************************************************
00:05:51  
00:05:51  TASK [Gathering Facts] *********************************************************
00:05:54  ok: [localhost]
00:05:54  
00:05:54  TASK [appliance-build.bootstrap : apt] *****************************************
00:07:18  fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: "}
00:07:18  
00:07:18  PLAY RECAP *********************************************************************
00:07:18  localhost                  : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

Unarchiving the VM and looking at journalctl showed this:

Aug 13 00:05:55 ip-10-110-215-27 python3[2324]: ansible-apt Invoked with update_cache=True state=present cache_valid_time=0 purge=False force=False dpkg_options=force-confdef,force-confold autoremove=False autoclean=False only_upgrade=False force_apt_get=False allow_unauthenticated=False package=None deb=None default_release=None install_recommends=None upgrade=None policy_rc_d=None
Aug 13 00:05:55 ip-10-110-215-27 systemd-resolved[868]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Aug 13 00:05:55 ip-10-110-215-27 systemd-resolved[868]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Aug 13 00:05:55 ip-10-110-215-27 systemd-resolved[868]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.

Possibly ansible was unable to resolve the address of or internal mirror.

@pzakha
Copy link
Contributor

pzakha commented Aug 13, 2021

This is a failure with the ubuntu archive rather than the internal mirror. I've opened https://jira.delphix.com/browse/TOOL-12009 which would aim to completely remove dependencies on the ubuntu archive

@pzakha
Copy link
Contributor

pzakha commented Aug 17, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants