{"action":"closed","issue":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2200","repository_url":"https://api.github.com/repos/openshift/openshift-ansible","labels_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2200/labels{/name}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2200/comments","events_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2200/events","html_url":"https://github.com/openshift/openshift-ansible/issues/2200","id":167140684,"number":2200,"title":"Unattended atomic-openshift-installer fails","user":{"login":"relaxdiego","id":110545,"avatar_url":"https://avatars.githubusercontent.com/u/110545?v=3","gravatar_id":"","url":"https://api.github.com/users/relaxdiego","html_url":"https://github.com/relaxdiego","followers_url":"https://api.github.com/users/relaxdiego/followers","following_url":"https://api.github.com/users/relaxdiego/following{/other_user}","gists_url":"https://api.github.com/users/relaxdiego/gists{/gist_id}","starred_url":"https://api.github.com/users/relaxdiego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relaxdiego/subscriptions","organizations_url":"https://api.github.com/users/relaxdiego/orgs","repos_url":"https://api.github.com/users/relaxdiego/repos","events_url":"https://api.github.com/users/relaxdiego/events{/privacy}","received_events_url":"https://api.github.com/users/relaxdiego/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/openshift-ansible/labels/kind/bug","name":"kind/bug","color":"d93f0b"},{"url":"https://api.github.com/repos/openshift/openshift-ansible/labels/priority/P1","name":"priority/P1","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"smunilla","id":873968,"avatar_url":"https://avatars.githubusercontent.com/u/873968?v=3","gravatar_id":"","url":"https://api.github.com/users/smunilla","html_url":"https://github.com/smunilla","followers_url":"https://api.github.com/users/smunilla/followers","following_url":"https://api.github.com/users/smunilla/following{/other_user}","gists_url":"https://api.github.com/users/smunilla/gists{/gist_id}","starred_url":"https://api.github.com/users/smunilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smunilla/subscriptions","organizations_url":"https://api.github.com/users/smunilla/orgs","repos_url":"https://api.github.com/users/smunilla/repos","events_url":"https://api.github.com/users/smunilla/events{/privacy}","received_events_url":"https://api.github.com/users/smunilla/received_events","type":"User","site_admin":false},"assignees":[{"login":"smunilla","id":873968,"avatar_url":"https://avatars.githubusercontent.com/u/873968?v=3","gravatar_id":"","url":"https://api.github.com/users/smunilla","html_url":"https://github.com/smunilla","followers_url":"https://api.github.com/users/smunilla/followers","following_url":"https://api.github.com/users/smunilla/following{/other_user}","gists_url":"https://api.github.com/users/smunilla/gists{/gist_id}","starred_url":"https://api.github.com/users/smunilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smunilla/subscriptions","organizations_url":"https://api.github.com/users/smunilla/orgs","repos_url":"https://api.github.com/users/smunilla/repos","events_url":"https://api.github.com/users/smunilla/events{/privacy}","received_events_url":"https://api.github.com/users/smunilla/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-07-22T22:00:07Z","updated_at":"2016-07-29T22:18:59Z","closed_at":"2016-07-29T22:18:59Z","body":"I'd like to reiterate @ganhuang's concerns with https://github.com/openshift/openshift-ansible/pull/1778#issuecomment-223903971 that have not been addressed and I'm currently experiencing in production. Specifically, the installer.cfg.yml generated by \"atomic-openshift-installer install\":\r\n\r\n```yml\r\nansible_callback_facts_yaml: /home/ghuang/.config/openshift/.ansible/callback_facts.yaml\r\nansible_config: /usr/share/atomic-openshift-utils/ansible.cfg\r\nansible_inventory_path: /home/ghuang/.config/openshift/hosts\r\nansible_log_path: /tmp/ansible.log\r\nansible_ssh_user: root\r\ndeployment:\r\n  hosts:\r\n  - connect_to: 10.x.x.x\r\n    containerized: true\r\n    hostname: 10.x.x.x\r\n    ip: 10.x.x.x\r\n    public_hostname: 10.x.x.x\r\n    public_ip: 10.x.x.x\r\n    roles:\r\n    - master\r\n    - node\r\n    - storage\r\n  master_routingconfig_subdomain: ''\r\n  proxy_exclude_hosts: ''\r\n  proxy_http: ''\r\n  proxy_https: ''\r\n  roles: {}\r\nvariant: openshift-enterprise\r\nvariant_version: '3.2'\r\nversion: v2\r\n```\r\n\r\nTrigger the unattended mode with installer.cfg.yml above\r\n\r\n```\r\n# atomic-openshift-installer -u install\r\nAny roles assigned to hosts must be defined.\r\n```\r\n\r\nThe workaround to this is to manually change the empty roles dict from:\r\n\r\n```yml\r\nroles: {}\r\n```\r\n\r\nto \r\n\r\n```yml\r\nroles:\r\n  master:\r\n    containerized: false\r\n  storage:\r\n    containerized: false\r\n  node:\r\n    containerized: false\r\n```\r\n\r\nHowever, while I've gotten past the original problem, I'm now encountering a different error. I manually added a master lb to the installer.cfg.yml:\r\n\r\n```yml\r\n- connect_to: lb.sample.com\r\n  hostname: lb.sample.com\r\n  ip: 1.2.3.4\r\n  public_hostname: lb.sample.com\r\n  public_ip: 1.2.3.4\r\n  roles:\r\n  - master_lb\r\n```\r\n\r\nand the following role in the same file:\r\n\r\n```yml\r\ndeployment:\r\n  ...\r\n  roles:\r\n    ...\r\n    master_lb:\r\n      preconfigured: true\r\n```\r\n\r\nRe-running `atomic-openshift-installer --unattended install` yields the following:\r\n\r\n```\r\n*** Installation Summary ***\r\n\r\nHosts:\r\n- 10.10.10.7\r\n  - OpenShift Master\r\n  - OpenShift Node (Unscheduled)\r\n  - Etcd Member\r\n  - Storage\r\n- 10.10.10.8\r\n  - OpenShift Master\r\n  - OpenShift Node (Unscheduled)\r\n  - Etcd Member\r\n- 10.10.10.9\r\n  - OpenShift Master\r\n  - OpenShift Node (Unscheduled)\r\n  - Etcd Member\r\n- 10.10.10.10\r\n  - OpenShift Node (Dedicated)\r\n- 10.10.10.11\r\n  - OpenShift Node (Dedicated)\r\n- lb.sample.com\r\n  - Load Balancer (Preconfigured)\r\n\r\nTotal OpenShift Masters: 3\r\nTotal OpenShift Nodes: 5\r\n\r\nNOTE: Multiple Masters specified, this will be an HA deployment with a separate\r\netcd cluster. You will be prompted to provide the FQDN of a load balancer and\r\na host for storage once finished entering hosts.\r\n\r\n\r\nWARNING: A minimum of 3 dedicated Nodes are recommended for an HA\r\ndeployment.\r\n\r\nGathering information from hosts...\r\nERROR: /root/.config/openshift/hosts:6: child group is not defined: (master_lb)\r\nThere was a problem fetching the required information. Please see /tmp/ansible.log for details\r\n```\r\n\r\nAs you can see, the installer recognizes the `master_lb` role based on the summary. However, it is not producing the correct group in the hosts file resulting in the error at the bottom.\r\n\r\n"}}
{"actor":{"display_login":"sdodson"}}