Git Product home page Git Product logo

Comments (11)

jprovaznik avatar jprovaznik commented on August 22, 2024

Hi, yes - we need to improve the ansible error logging (at least point users to ansible log).
If you ssh to the infra node, there should be /var/log/ansible.xxx file - there should be more details about the fail in this file.

from openshift-on-openstack.

rawlingsj avatar rawlingsj commented on August 22, 2024

Great - thanks @jprovaznik!

Yeah I can see the error is..

ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude

The error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/config.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- include: ../../common/openshift-cluster/config.yml
  ^ here

from openshift-on-openstack.

rawlingsj avatar rawlingsj commented on August 22, 2024

I'm happy to have a dig around, presumably I can just rerun the playbook from the infra node?

from openshift-on-openstack.

jprovaznik avatar jprovaznik commented on August 22, 2024

Yep, you can ssh to infra node and re-run with:
export ANSIBLE_ROLES_PATH=/usr/share/ansible/openshift-ansible/roles
export ANSIBLE_HOST_KEY_CHECKING=False
ansible-playbook --inventory /var/lib/ansible/inventory /var/lib/ansible/playbooks/main.yml

from openshift-on-openstack.

rawlingsj avatar rawlingsj commented on August 22, 2024

Great thanks, a little bit of googling suggests it might be the version of ansible that's installed on the infra node I can see it's..
ansible --version
ansible 2.0.1.0

The openshift ansible installer setup lists ansible-1.9.4 as the version https://github.com/openshift/openshift-ansible#setup

Not figured out yet how ansible is being installed in the heat scripts yet to try the previous version...

from openshift-on-openstack.

jprovaznik avatar jprovaznik commented on August 22, 2024

Then it might be related to this PR - #90

from openshift-on-openstack.

rawlingsj avatar rawlingsj commented on August 22, 2024

Ah yeah it looks like it, looks like I cloned the repo just before this change - I'll delete the stack and try again with the latest version as that looks promising.

from openshift-on-openstack.

jprovaznik avatar jprovaznik commented on August 22, 2024

Note that this PR is not merged yet

from openshift-on-openstack.

rawlingsj avatar rawlingsj commented on August 22, 2024

Ah good point :) I'll make the change locally and let you know how it goes.

from openshift-on-openstack.

rawlingsj avatar rawlingsj commented on August 22, 2024

That certainly got me further and looks to have solved the ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude

I've got another problem now which I'll raise seperately.

from openshift-on-openstack.

jprovaznik avatar jprovaznik commented on August 22, 2024

#90 has been merged so it should fix the original issue

from openshift-on-openstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.