{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph-ansible/issues/616","repository_url":"https://api.github.com/repos/ceph/ceph-ansible","labels_url":"https://api.github.com/repos/ceph/ceph-ansible/issues/616/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph-ansible/issues/616/comments","events_url":"https://api.github.com/repos/ceph/ceph-ansible/issues/616/events","html_url":"https://github.com/ceph/ceph-ansible/issues/616","id":139812947,"number":616,"title":"install failure on centos7","user":{"login":"dpkshetty","id":6286819,"avatar_url":"https://avatars.githubusercontent.com/u/6286819?v=3","gravatar_id":"","url":"https://api.github.com/users/dpkshetty","html_url":"https://github.com/dpkshetty","followers_url":"https://api.github.com/users/dpkshetty/followers","following_url":"https://api.github.com/users/dpkshetty/following{/other_user}","gists_url":"https://api.github.com/users/dpkshetty/gists{/gist_id}","starred_url":"https://api.github.com/users/dpkshetty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpkshetty/subscriptions","organizations_url":"https://api.github.com/users/dpkshetty/orgs","repos_url":"https://api.github.com/users/dpkshetty/repos","events_url":"https://api.github.com/users/dpkshetty/events{/privacy}","received_events_url":"https://api.github.com/users/dpkshetty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-10T07:47:15Z","updated_at":"2016-03-15T15:52:07Z","closed_at":null,"body":"I set ceph_origin to 'distro' and my ceph node is CentOS7, and install task fails as below ...\r\n\r\n```\r\nTASK: [ceph.ceph-common | install distro or red hat storage ceph mon] ********* \r\nfailed: [ceph-node1] => (item=ceph,ceph-mon) => {\"changed\": false, \"failed\": true, \"item\": \"ceph,ceph-mon\", \"rc\": 0, \"results\": [\"ceph-0.80.7-0.7.el7.x86_64 providing ceph is already installed\"]}\r\nmsg: No Package matching 'ceph-mon' found available, installed or updated\r\n\r\nFATAL: all hosts have already failed -- aborting\r\n\r\nPLAY RECAP ******************************************************************** \r\n           to retry, use: --limit @/root/site.retry\r\n\r\nceph-node1                 : ok=16   changed=2    unreachable=0    failed=1   \r\n```\r\n\r\nDigging further I see that it fails because it tries to install ceph-mon package, which isn't there in the CentOS and epel repos\r\n\r\nLooking even further, it seems like we don't need to install ceph-mon, since the ceph package installed from epel repo has ceph-mon, ceph-osd binaries, but the failing task (as below) is trying to install ceph-mon ( and ceph-osd later on...) package ...\r\n\r\n```\r\n- name: install distro or red hat storage ceph mon\r\n  yum:\r\n    name: \"{{ item }}\"\r\n    state: \"{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}\"\r\n  with_items:\r\n    - ceph\r\n    - ceph-mon\r\n  when:\r\n    (ceph_origin == \"distro\" or ceph_stable_rh_storage) and\r\n    mon_group_name in group_names and\r\n    ansible_pkg_mgr == \"yum\"\r\n```\r\n\r\nFrom my ceph-node1 ...\r\n\r\n```\r\n[root@ceph-node1 ~]# ls /usr/bin/cep*\r\n/usr/bin/ceph           /usr/bin/ceph-client-debug  /usr/bin/ceph-coverage        /usr/bin/ceph-dencoder  /usr/bin/ceph-mon                  /usr/bin/ceph-post-file  /usr/bin/ceph-run\r\n/usr/bin/ceph-authtool  /usr/bin/ceph-clsinfo       /usr/bin/ceph-crush-location  /usr/bin/cephfs         /usr/bin/ceph_mon_store_converter  /usr/bin/ceph-rbdnamer   /usr/bin/ceph-syn\r\n/usr/bin/ceph-brag      /usr/bin/ceph-conf          /usr/bin/ceph-debugpack       /usr/bin/ceph-mds       /usr/bin/ceph-osd                  /usr/bin/ceph-rest-api\r\n\r\n[root@ceph-node1 ~]# ls /etc/yum.repos.d/\r\nCentOS-Base.repo  CentOS-CR.repo  CentOS-Debuginfo.repo  CentOS-fasttrack.repo  CentOS-Media.repo  CentOS-Sources.repo  CentOS-Vault.repo  epel.repo  epel-testing.repo\r\n\r\n[root@ceph-node1 ~]# rpm -qf /usr/bin/ceph-mon \r\nceph-0.80.7-0.7.el7.x86_64\r\n\r\n[root@ceph-node1 ~]# rpm -qf /usr/bin/ceph-osd\r\nceph-0.80.7-0.7.el7.x86_64\r\n\r\n[root@ceph-node1 ~]# \r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ceph/ceph-ansible/issues/comments/196891611","html_url":"https://github.com/ceph/ceph-ansible/issues/616#issuecomment-196891611","issue_url":"https://api.github.com/repos/ceph/ceph-ansible/issues/616","id":196891611,"user":{"login":"bdastur","id":8317046,"avatar_url":"https://avatars.githubusercontent.com/u/8317046?v=3","gravatar_id":"","url":"https://api.github.com/users/bdastur","html_url":"https://github.com/bdastur","followers_url":"https://api.github.com/users/bdastur/followers","following_url":"https://api.github.com/users/bdastur/following{/other_user}","gists_url":"https://api.github.com/users/bdastur/gists{/gist_id}","starred_url":"https://api.github.com/users/bdastur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdastur/subscriptions","organizations_url":"https://api.github.com/users/bdastur/orgs","repos_url":"https://api.github.com/users/bdastur/repos","events_url":"https://api.github.com/users/bdastur/events{/privacy}","received_events_url":"https://api.github.com/users/bdastur/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T15:52:07Z","updated_at":"2016-03-15T15:52:07Z","body":"I actually hit the same issue with my deployment on Centos7, due to ceph-mon package not found.\r\nOn Centos7, the packages for ceph are ceph and ceph-common, \r\n\r\nSame issue is also seen when installing on OSD nodes, with ceph-osd.\r\n\r\nfailed: [v-cephmon-002-prod.abc.cpe.net] => (item=ceph,ceph-mon) => {\"changed\": false, \"failed\": true, \"item\": \"ceph,ceph-mon\", \"rc\": 0, \"results\": [\"ceph-0.80.7-0.7.el7.x86_64 providing ceph is already installed\"]}\r\nmsg: No Package matching 'ceph-mon' found available, installed or updated\r\nfailed: [v-cephmon-003-prod.abc.cpe.net] => (item=ceph,ceph-mon) => {\"changed\": false, \"failed\": true, \"item\": \"ceph,ceph-mon\", \"rc\": 0, \"results\": [\"ceph-0.80.7-0.7.el7.x86_64 providing ceph is already installed\"]}\r\n"}}