{"action":"created","issue":{"url":"https://api.github.com/repos/ViaQ/Main/issues/12","repository_url":"https://api.github.com/repos/ViaQ/Main","labels_url":"https://api.github.com/repos/ViaQ/Main/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ViaQ/Main/issues/12/comments","events_url":"https://api.github.com/repos/ViaQ/Main/issues/12/events","html_url":"https://github.com/ViaQ/Main/issues/12","id":250331351,"number":12,"title":"ansible-play fails on centos7 during the task [openshift_version : For an RPM install, abort when the release requested does not match the available version.]","user":{"login":"tasdikrahman","id":4672518,"avatar_url":"https://avatars1.githubusercontent.com/u/4672518?v=4","gravatar_id":"","url":"https://api.github.com/users/tasdikrahman","html_url":"https://github.com/tasdikrahman","followers_url":"https://api.github.com/users/tasdikrahman/followers","following_url":"https://api.github.com/users/tasdikrahman/following{/other_user}","gists_url":"https://api.github.com/users/tasdikrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/tasdikrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tasdikrahman/subscriptions","organizations_url":"https://api.github.com/users/tasdikrahman/orgs","repos_url":"https://api.github.com/users/tasdikrahman/repos","events_url":"https://api.github.com/users/tasdikrahman/events{/privacy}","received_events_url":"https://api.github.com/users/tasdikrahman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-08-15T14:28:26Z","updated_at":"2017-08-17T18:13:20Z","closed_at":null,"body":"OS\r\n\r\n```\r\n[root@metrics-store openshift-ansible]# cat /etc/*elease\r\nCentOS Linux release 7.3.1611 (Core)\r\nNAME=\"CentOS Linux\"\r\nVERSION=\"7 (Core)\"\r\nID=\"centos\"\r\nID_LIKE=\"rhel fedora\"\r\nVERSION_ID=\"7\"\r\nPRETTY_NAME=\"CentOS Linux 7 (Core)\"\r\nANSI_COLOR=\"0;31\"\r\nCPE_NAME=\"cpe:/o:centos:centos:7\"\r\nHOME_URL=\"https://www.centos.org/\"\r\nBUG_REPORT_URL=\"https://bugs.centos.org/\"\r\n\r\nCENTOS_MANTISBT_PROJECT=\"CentOS-7\"\r\nCENTOS_MANTISBT_PROJECT_VERSION=\"7\"\r\nREDHAT_SUPPORT_PRODUCT=\"centos\"\r\nREDHAT_SUPPORT_PRODUCT_VERSION=\"7\"\r\n\r\nCentOS Linux release 7.3.1611 (Core)\r\nCentOS Linux release 7.3.1611 (Core)\r\n[root@metrics-store openshift-ansible]#\r\n```\r\n\r\n```\r\n[root@metrics-store openshift-ansible]# rpm -q openshift-ansible\r\nopenshift-ansible-3.6.173.0.3-1.el7.noarch\r\n```\r\n\r\nTraceback \r\n\r\n```\r\nTASK [openshift_version : For an RPM install, abort when the release requested does not match the available version.] *********\r\ntask path: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/main.yml:182\r\nfatal: [localhost]: FAILED! => {\r\n    \"assertion\": \"openshift_version.startswith(openshift_release) | bool\",\r\n    \"changed\": false,\r\n    \"evaluated_to\": false,\r\n    \"failed\": true\r\n}\r\n\r\nMSG:\r\n\r\nYou requested openshift_release 1.5, which is not matched by\r\nthe latest OpenShift RPM we detected as origin-3.6.0\r\non host localhost.\r\nWe will only install the latest RPMs, so please ensure you are getting the release\r\nyou expect. You may need to adjust your Ansible inventory, modify the repositories\r\navailable on the host, or run the appropriate OpenShift upgrade playbook.\r\n\r\n\tto retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/config.retry\r\n\r\nPLAY RECAP ********************************************************************************************************************\r\nlocalhost                  : ok=68   changed=6    unreachable=0    failed=1\r\n\r\n\r\nFailure summary:\r\n\r\n  1. Host:     localhost\r\n     Play:     Determine openshift_version to configure on first master\r\n     Task:     openshift_version : For an RPM install, abort when the release requested does not match the available version.\r\n     Message:  You requested openshift_release 1.5, which is not matched by\r\n               the latest OpenShift RPM we detected as origin-3.6.0\r\n               on host localhost.\r\n               We will only install the latest RPMs, so please ensure you are getting the release\r\n               you expect. You may need to adjust your Ansible inventory, modify the repositories\r\n               available on the host, or run the appropriate OpenShift upgrade playbook.\r\n```\r\n\r\nI did the following before running the playbook\r\n\r\n```\r\n[root@metrics-store ~]# curl https://raw.githubusercontent.com/ViaQ/Main/master/vars.yaml.template > vars.yaml.template\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100  1235  100  1235    0     0   2153      0 --:--:-- --:--:-- --:--:--  2151\r\n[root@metrics-store ~]# pwd\r\n/root\r\n[root@metrics-store ~]# curl https://raw.githubusercontent.com/ViaQ/Main/master/ansible-inventory-origin-15-aio > ansible-inventory\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100   764  100   764    0     0    506      0  0:00:01  0:00:01 --:--:--   506\r\n[root@metrics-store ~]#\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ViaQ/Main/issues/comments/323151941","html_url":"https://github.com/ViaQ/Main/issues/12#issuecomment-323151941","issue_url":"https://api.github.com/repos/ViaQ/Main/issues/12","id":323151941,"user":{"login":"tasdikrahman","id":4672518,"avatar_url":"https://avatars1.githubusercontent.com/u/4672518?v=4","gravatar_id":"","url":"https://api.github.com/users/tasdikrahman","html_url":"https://github.com/tasdikrahman","followers_url":"https://api.github.com/users/tasdikrahman/followers","following_url":"https://api.github.com/users/tasdikrahman/following{/other_user}","gists_url":"https://api.github.com/users/tasdikrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/tasdikrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tasdikrahman/subscriptions","organizations_url":"https://api.github.com/users/tasdikrahman/orgs","repos_url":"https://api.github.com/users/tasdikrahman/repos","events_url":"https://api.github.com/users/tasdikrahman/events{/privacy}","received_events_url":"https://api.github.com/users/tasdikrahman/received_events","type":"User","site_admin":false},"created_at":"2017-08-17T18:13:20Z","updated_at":"2017-08-17T18:13:20Z","body":"@richm Also\r\n\r\n```\r\n[root@metrics-store ~]# cat /root/ansible-inventory\r\n\r\n[OSEv3:children]\r\nnodes\r\nmasters\r\n\r\n[OSEv3:vars]\r\nansible_connection=local\r\nopenshift_release=v3.6\r\nopenshift_hosted_logging_deploy=true\r\nopenshift_logging_install_logging=true\r\nshort_version=3.6\r\nopenshift_image_tag=latest\r\noreg_url=openshift/origin-${component}:latest\r\nopenshift_deployment_type=origin\r\nopenshift_logging_namespace=logging\r\nopenshift_master_identity_providers=[{'challenge': 'true', 'login': 'true', 'kind': 'AllowAllPasswordIdentityProvider', 'name': 'allow_all'}]\r\nopenshift_logging_es_cluster_size=1\r\nopenshift_logging_image_prefix=docker.io/openshift/origin-\r\nopenshift_logging_image_version=latest\r\ndeployment_type=origin\r\nopenshift_logging_es_allow_external=True\r\nopenshift_logging_use_mux=True\r\nopenshift_logging_mux_allow_external=True\r\nopenshift_logging_mux_client_mode=maximal\r\nopenshift_check_min_host_memory_gb=7\r\nopenshift_check_min_host_disk_gb=14\r\nopenshift_disable_check=\"package_version,docker_storage\"\r\n\r\n[nodes]\r\nlocalhost storage=True openshift_node_labels=\"{'region': 'infra'}\" openshift_schedulable=True\r\n\r\n[masters]\r\nlocalhost storage=True openshift_node_labels=\"{'region': 'infra'}\" openshift_schedulable=True\r\n[root@metrics-store ~]#\r\n```"}}
{"actor":{"display_login":"tasdikrahman"}}