Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Installation fails when running ansible on local dev environment using minishift. #1078

Open
rottencandy opened this issue Oct 16, 2019 · 0 comments

Comments

@rottencandy
Copy link

Description

Trying to install integr8ly on a local development environment using minishift. But it fails when installing rhsso. I have also followed the steps to setup minishift as described in #182.

Expected Behavior

Integr8ly gets installed properly on a minishift cluster.

Actual Behavior

Ansible stops with an error:

< TASK [rhsso : Get RH-SSO secure route] >
task path: <...>/integr8ly/installation/roles/rhsso/tasks/main.yml:3
fatal: [127.0.0.1]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'

    The error appears to be in '/home/msaud/code/integr8ly/installation/roles/rhsso/tasks/main.yml': line 35, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.
    The offending line appears to be:
    

    - name: Get RH-SSO secure route
      ^ here
"}

Environment

  • Operating system: Fedora 30
  • OpenShift version:

oc v3.11.0+8de5c34
kubernetes v1.10.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server <...>
kubernetes v1.11.0+d4cacc0

  • Ansible version:

ansible 2.8.5
python version = 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]

  • Project Version/Tag: master

Steps to reproduce

  1. Login to minishift:
oc login -u system:admin 
  1. Change the host file to point to cluster ip 127.0.0.1 and comment out the ansible-user
[local:vars]
ansible_connection=local

[local]
127.0.0.1

[OSEv3:children]
master

[OSEv3:vars]
#ansible_user=ec2-user

[master]
127.0.0.1
  1. Run the installer from the evals directory
ansible-playbook -i inventories/hosts playbooks/install.yml  
  1. Ansible exits with the following error:
< TASK [rhsso : Get RH-SSO secure route] >
task path: <...>/integr8ly/installation/roles/rhsso/tasks/main.yml:3
fatal: [127.0.0.1]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'

    The error appears to be in '/home/msaud/code/integr8ly/installation/roles/rhsso/tasks/main.yml': line 35, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.
    The offending line appears to be:
    

    - name: Get RH-SSO secure route
      ^ here
"}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant