Actions
Bug #12921
closedadded yum_repo is not deleted during ansilbe cleanup
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
Noticed that the newly added yum_repo is not disabled during cleanup
2015-09-02T15:38:31.099 INFO:teuthology.task.ansible:Running ansible cleanup... 2015-09-02T15:38:31.520 INFO:teuthology.task.ansible.out: PLAY [testnodes] ************************************************************** 2015-09-02T15:38:31.522 INFO:teuthology.task.ansible.out: GATHERING FACTS *************************************************************** 2015-09-02T15:38:33.089 INFO:teuthology.task.ansible.out:[0;32mok: [magna101.ceph.redhat.com][0m 2015-09-02T15:38:33.091 INFO:teuthology.task.ansible.out: TASK: [downstream-setup | Download yum repos to /etc/yum.repos.d] ************* 2015-09-02T15:38:33.107 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com] => (item={u'url': u'http://fpaste.org/262718/22101514/raw/', u'name': u'ceph_repo'})[0m 2015-09-02T15:38:33.108 INFO:teuthology.task.ansible.out: TASK: [downstream-setup | Delete yum repos from /etc/yum.repos.d] ************* 2015-09-02T15:38:33.120 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com][0m 2015-09-02T15:38:33.121 INFO:teuthology.task.ansible.out: TASK: [downstream-setup | Disable yum repos.] ********************************* 2015-09-02T15:38:33.136 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com] => (item=epel)[0m 2015-09-02T15:38:33.138 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com] => (item=rhel7)[0m 2015-09-02T15:38:33.140 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com] => (item=rhel7-optional)[0m 2015-09-02T15:38:33.141 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com] => (item=rhel7-extras)[0m 2015-09-02T15:38:33.143 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com] => (item=lab-extras)[0m 2015-09-02T15:38:33.145 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com] => (item=rhel-7-fcgi-ceph)[0m 2015-09-02T15:38:33.147 INFO:teuthology.task.ansible.out: TASK: [downstream-setup | Enable yum repos.] ********************************** 2015-09-02T15:38:33.160 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com][0m 2015-09-02T15:38:33.162 INFO:teuthology.task.ansible.out: TASK: [downstream-setup | debug msg="Performing cleanup related tasks..."] **** 2015-09-02T15:38:33.173 INFO:teuthology.task.ansible.out:[0;32mok: [magna101.ceph.redhat.com] => { "msg": "Performing cleanup related tasks..." }[0m 2015-09-02T15:38:33.174 INFO:teuthology.task.ansible.out: TASK: [downstream-setup | Download yum repos to /etc/yum.repos.d] ************* 2015-09-02T15:38:33.185 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com][0m 2015-09-02T15:38:33.187 INFO:teuthology.task.ansible.out: TASK: [downstream-setup | Delete yum repos from /etc/yum.repos.d] ************* 2015-09-02T15:38:33.342 INFO:teuthology.task.ansible.out:[0;32mok: [magna101.ceph.redhat.com] => (item={u'url': u'http://fpaste.org/262718/22101514/raw/', u'name': u'ceph_repo'}) => {"changed": false, "item": {"name": "ceph_repo", "url": "http://fpaste.org/262718/22101514/raw/"}, "path": "/etc/yum.repos.d/{u'url': u'http://fpaste.org/262718/22101514/raw/', u'name': u'ceph_repo'}.repo", "state": "absent"}[0m 2015-09-02T15:38:33.344 INFO:teuthology.task.ansible.out: TASK: [downstream-setup | Disable yum repos.] ********************************* 2015-09-02T15:38:33.360 INFO:teuthology.task.ansible.out:[0;36mskipping: [magna101.ceph.redhat.com][0m 2015-09-02T15:38:33.362 INFO:teuthology.task.ansible.out: TASK: [downstream-setup | Enable yum repos.] ********************************** 2015-09-02T15:38:33.523 INFO:teuthology.task.ansible.out:[0;33mchanged: [magna101.ceph.redhat.com] => (item=epel) => {"backup": "", "changed": true, "item": "epel", "msg": "line replaced"}[0m 2015-09-02T15:38:33.664 INFO:teuthology.task.ansible.out:[0;31mfailed: [magna101.ceph.redhat.com] => (item=rhel7) => {"failed": true, "item": "rhel7", "rc": 257}[0m [0;31mmsg: Destination /etc/yum.repos.d/rhel7.repo does not exist ![0m [0;36m...ignoring[0m 2015-09-02T15:38:33.809 INFO:teuthology.task.ansible.out:[0;31mfailed: [magna101.ceph.redhat.com] => (item=rhel7-optional) => {"failed": true, "item": "rhel7-optional", "rc": 257}[0m [0;31mmsg: Destination /etc/yum.repos.d/rhel7-optional.repo does not exist ![0m [0;36m...ignoring[0m 2015-09-02T15:38:33.954 INFO:teuthology.task.ansible.out:[0;31mfailed: [magna101.ceph.redhat.com] => (item=rhel7-extras) => {"failed": true, "item": "rhel7-extras", "rc": 257}[0m [0;31mmsg: Destination /etc/yum.repos.d/rhel7-extras.repo does not exist ![0m [0;36m...ignoring[0m 2015-09-02T15:38:34.102 INFO:teuthology.task.ansible.out:[0;33mchanged: [magna101.ceph.redhat.com] => (item=lab-extras) => {"backup": "", "changed": true, "item": "lab-extras", "msg": "line replaced"}[0m 2015-09-02T15:38:34.253 INFO:teuthology.task.ansible.out:[0;33mchanged: [magna101.ceph.redhat.com] => (item=rhel-7-fcgi-ceph) => {"backup": "", "changed": true, "item": "rhel-7-fcgi-ceph", "msg": "line replaced"}[0m 2015-09-02T15:38:34.255 INFO:teuthology.task.ansible.out: PLAY RECAP ******************************************************************** [0;33mmagna101.ceph.redhat.com[0m : [0;32mok[0m[0;32m=[0m[0;32m6[0m [0;33mchanged[0m[0;33m=[0m[0;33m1[0m unreachable=0 failed=0
Full Logs: http://paste.ubuntu.com/12256284/
Updated by Andrew Schoen over 8 years ago
Vasu, would you mind including the config you used for this job?
Updated by Andrew Schoen over 8 years ago
- Status changed from New to In Progress
Updated by Vasu Kulkarni over 8 years ago
Andrew,
Here is a config file which should also recreate this issue,
roles: - [mon.a, osd.0, osd.1, osd.2, client.0 ] targets: ubuntu@magna004.ceph.redhat.com: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKv9wRjW/zShT8jn/qEUObH2iJREuH1+7WygrfXEG+eOtfKxeevqZudE5Vb7+Ceo+ED7YSQDE2wFLWgLpognPh/mYWkyM+GW1EfvJfZDm8DlZcQ94Xn5bbxV/eLzFX/wJY37E2zDusJldODH5QjEzqkx3bQq5ASlkrezeYBzvGX58UereWPsEc5pGRuqYozIUsMqE9dryiN5bRoXhjIWUKa3PCKnwIDkyxOmZMx9Qrx/5SRFrIgNLA0RPoD8jDznzqKNmfqUeaJOfjfbQjQTIeAN05ohcGcjPpV+JU+ISjSVf/KHUdqPgRV0fkrAqEvNHBOiZJzy+Kq3Oj9R7XB6Md tasks: - install: rhbuild: 1.3.1 playbook: downstream_setup.yml cleanup: true vars: yum_repos: - url: "http://fpaste.org/262718/22101514/raw/" name: "ceph_repo" disable_yum_repos: ['epel', 'rhel7', 'rhel7-optional', 'rhel7-extras', 'lab-extras', 'rhel-7-fcgi-ceph']
Updated by Andrew Schoen over 8 years ago
- Status changed from In Progress to Fix Under Review
The issue here was that I was passing the hash ``yum_repos`` to ``remove_yum_repos.yml`` in ``cleanup.yml`` when it was expecting a list of repos as strings, causing the task to not find the correct yum repo to remove.
Updated by Andrew Schoen over 8 years ago
- Status changed from Fix Under Review to Resolved
Actions