Skip to content

Instantly share code, notes, and snippets.

@NeilHanlon
Created May 12, 2017 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeilHanlon/8ecc6cf12fe82b569facf532e37b21bd to your computer and use it in GitHub Desktop.
Save NeilHanlon/8ecc6cf12fe82b569facf532e37b21bd to your computer and use it in GitHub Desktop.
Using module file /opt/ansible-runtime/lib/python2.7/site-packages/ansible/modules/core/packaging/os/yum.py
container_name: "aio1_memcached_container-9870cded"
physical_hostname: "aio1"
Container confirmed
<172.29.236.100> ESTABLISH SSH CONNECTION FOR USER: root
<172.29.236.100> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.29.236.100 'lxc-attach --name aio1_memcached_container-9870cded -- /bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
failed: [aio1_memcached_container-9870cded] (item=[u'memcached']) => {
"attempts": 5,
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"conf_file": null,
"disable_gpg_check": false,
"disablerepo": null,
"enablerepo": null,
"exclude": null,
"install_repoquery": true,
"list": null,
"name": [
"memcached"
],
"state": "latest",
"update_cache": false,
"validate_certs": true
},
"module_name": "yum"
},
"item": [
"memcached"
],
"msg": "\n\n One of the configured repositories failed (Unknown),\n and yum doesn't have enough cached data to continue. At this point the only\n safe thing yum can do is fail. There are a few ways to work \"fix\" this:\n\n 1. Contact the upstream for the repository and get them to fix the problem.\n\n 2. Reconfigure the baseurl/etc. for the repository, to point to a working\n upstream. This is most often useful if you are using a newer\n distribution release than is supported by the repository (and the\n packages for the previous distribution release still work).\n\n 3. Run the command with the repository temporarily disabled\n yum --disablerepo=<repoid> ...\n\n 4. Disable the repository permanently, so yum won't use it by default. Yum\n will then just ignore the repository until you permanently enable it\n again or use --enablerepo for temporary usage:\n\n yum-config-manager --disable <repoid>\n or\n subscription-manager repos --disable=<repoid>\n\n 5. Configure the failing repository to be skipped, if it is unavailable.\n Note that yum will try to contact the repo. when it runs most commands,\n so will have to try and fail each time (and thus. yum will be be much\n slower). If it is a very temporary problem though, this is often a nice\n compromise:\n\n yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true\n\nCannot find a valid baseurl for repo: dell-system-update_dependent/7/x86_64\n",
"rc": 1,
"results": []
}
NO MORE HOSTS LEFT *************************************************************
NO MORE HOSTS LEFT *************************************************************
PLAY RECAP *********************************************************************
aio1_memcached_container-9870cded : ok=8 changed=1 unreachable=0 failed=1
Friday 12 May 2017 14:07:37 -0400 (0:00:14.529) 0:00:19.481 ************
===============================================================================
memcached_server : Install yum packages -------------------------------- 14.53s
/etc/ansible/roles/memcached_server/tasks/install-yum.yml:25 ------------------
Add bind mount configuration to container ------------------------------- 1.45s
/opt/openstack-ansible/playbooks/common-tasks/os-lxc-container-setup.yml:51 ---
Ensure mount directories exists ----------------------------------------- 1.38s
/opt/openstack-ansible/playbooks/common-tasks/os-lxc-container-setup.yml:38 ---
memcached_server : yum clean all ---------------------------------------- 0.68s
/etc/ansible/roles/memcached_server/tasks/install-yum.yml:16 ------------------
test proxy URL for connectivity ----------------------------------------- 0.45s
/opt/openstack-ansible/playbooks/common-tasks/package-cache-proxy.yml:16 ------
Drop yum package manager proxy ------------------------------------------ 0.32s
/opt/openstack-ansible/playbooks/common-tasks/package-cache-proxy.yml:58 ------
Start Container --------------------------------------------------------- 0.07s
/opt/openstack-ansible/playbooks/common-tasks/os-lxc-container-setup.yml:112 --
Lxc container restart --------------------------------------------------- 0.07s
/opt/openstack-ansible/playbooks/common-tasks/os-lxc-container-setup.yml:94 ---
Set default bind mounts (bind var/log) ---------------------------------- 0.07s
/opt/openstack-ansible/playbooks/common-tasks/os-lxc-container-setup.yml:30 ---
memcached_server : include ---------------------------------------------- 0.06s
/etc/ansible/roles/memcached_server/tasks/memcached_install.yml:16 ------------
Wait for container ssh -------------------------------------------------- 0.05s
/opt/openstack-ansible/playbooks/common-tasks/os-lxc-container-setup.yml:127 --
Extra lxc config no restart --------------------------------------------- 0.05s
/opt/openstack-ansible/playbooks/common-tasks/os-lxc-container-setup.yml:79 ---
memcached_server : Gather variables for each operating system ----------- 0.04s
/etc/ansible/roles/memcached_server/tasks/main.yml:16 -------------------------
Drop apt package manager proxy ------------------------------------------ 0.03s
/opt/openstack-ansible/playbooks/common-tasks/package-cache-proxy.yml:25 ------
Create log aggregation links -------------------------------------------- 0.03s
/opt/openstack-ansible/playbooks/common-tasks/os-log-dir-setup.yml:35 ---------
Create log dir ---------------------------------------------------------- 0.03s
/opt/openstack-ansible/playbooks/common-tasks/os-log-dir-setup.yml:26 ---------
Extra lxc config -------------------------------------------------------- 0.03s
/opt/openstack-ansible/playbooks/common-tasks/os-lxc-container-setup.yml:66 ---
Update apt when proxy is added ------------------------------------------ 0.01s
/opt/openstack-ansible/playbooks/common-tasks/package-cache-proxy.yml:37 ------
Remove apt package manager proxy ---------------------------------------- 0.01s
/opt/openstack-ansible/playbooks/common-tasks/package-cache-proxy.yml:47 ------
apt_package_pinning : Add apt pin preferences --------------------------- 0.01s
/etc/ansible/roles/apt_package_pinning/tasks/main.yml:16 ----------------------
Hit maximum number of retries, giving up...
which: no systemd-resolve in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin)
+ info_block 'Error Info - '
+ echo ----------------------------------------------------------------------
----------------------------------------------------------------------
+ print_info 'Error Info - '
+ PROC_NAME='- [ Error Info - ] -'
+ printf '\n%s%s\n' '- [ Error Info - ] -' -------------------------------------------------
- [ Error Info - ] --------------------------------------------------
+ echo ----------------------------------------------------------------------
----------------------------------------------------------------------
+ exit_state 1
+ set +x
----------------------------------------------------------------------
- [ Run Time = 2225 seconds || 37 minutes ] --------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
- [ Status: Failure ] ------------------------------------------------
----------------------------------------------------------------------
*** NOTICE ***
@dimthe
Copy link

dimthe commented May 12, 2017

i think you may need to manually clean the cache and rerun the role

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