Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the pulibrary.solrcloud Role #312

Closed
jrgriffiniii opened this issue Sep 5, 2018 · 5 comments
Closed

Implement the pulibrary.solrcloud Role #312

jrgriffiniii opened this issue Sep 5, 2018 · 5 comments
Assignees

Comments

@jrgriffiniii
Copy link
Contributor

Integrates the ongoing work within https://github.com/pulibrary/princeton_ansible/compare/solrrole-rebase

@jrgriffiniii
Copy link
Contributor Author

I encountered the following error when attempting to provision using this:

ERROR! The field 'loop' is supposed to be a string type, however the incoming data structure is a <class 'ansible.parsing.yaml.objects.AnsibleSequence'>

The error appears to have been in '[...]/pulibrary/princeton_ansible/roles/pulibrary.zookeeper/tasks/install.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: install application packages
  ^ here

As mentioned in dev-sec/ansible-collection-hardening#181 (comment), this was fixed by upgrading to Ansible release 2.5.7 using Python 2.7.15

@jrgriffiniii
Copy link
Contributor Author

The following error was encountered:

TASK [pulibrary.zookeeper : Overwrite myid file.] *********************************************************************************************************************************************** fatal: [HOST.princeton.edu]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'lib_solr1_ip' is undefined"}

This issue was reproduced when attempting to provision a second host.

@jrgriffiniii
Copy link
Contributor Author

Overriding this issue produced the following error:

TASK [pulibrary.solrcloud : update host file] ***************************************************************************************************************************************************
fatal: [HOST.princeton.edu]: FAILED! => {"msg": "'dict object' has no attribute 'solr'"}

@jrgriffiniii
Copy link
Contributor Author

Debugging for this host information did not yield an IP address:

[[ZOOKEEPER_HOST].princeton.edu] => (item=[SOLR_HOST].princeton.edu) => {
    "hostvars[item]": {
        "ansible_check_mode": false,
        "ansible_diff_mode": false,
        "ansible_facts": {},
        "ansible_forks": 5,
        "ansible_inventory_sources": [
            "[...]/pulibrary/princeton_ansible/hosts"
        ],
        "ansible_limit": "solrcloud",
        "ansible_playbook_python": "[...]/bin/python2.7",
        "ansible_run_tags": [
            "all"
        ],
        "ansible_skip_tags": [],
        "ansible_version": {
            "full": "2.5.7",
            "major": 2,
            "minor": 5,
            "revision": 7,
            "string": "2.5.7"
        },

@jrgriffiniii
Copy link
Contributor Author

This was resolved by #314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants