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

RHEL workshop exercise failure for tomcat install #782

Closed
dpullman-emergent opened this issue Apr 15, 2020 · 4 comments
Closed

RHEL workshop exercise failure for tomcat install #782

dpullman-emergent opened this issue Apr 15, 2020 · 4 comments
Assignees

Comments

@dpullman-emergent
Copy link
Contributor

SUMMARY

Exercise 2.6 fails when the template Tomcat Deploy runs the tomcat.yml file. The nodes are rhel 8.1 and tomcat is not available.

ISSUE TYPE
  • Bug Report
EXTRA VARS FILE
[ec2-user@ip-172-31-87-102 provisioner]$ cat extra_vars_frb-workshop.yml
---
# Where to provision (Don't change: only testing ec2)
instance_loc: ec2
# region where the nodes will live
ec2_region: us-east-1
# name prefix for all the VMs
ec2_name_prefix: frb-workshop
# creates student_total of workbenches for the workshop
student_total: 20
# Set the right workshop type, like networking, rhel or f5 (see above)
workshop_type: rhel
# OPTIONAL VARIABLES
# creates 2 windows instances per student instead of default 1
doubleup: false
# password for Ansible control node, defaults to ansible
admin_password: emergent
# creates AWS S3 website for ec2_name_prefix.workshop_dns_zone
create_login_page: true
# Sets the Route53 DNS zone to use for the S3 website
workshop_dns_zone:  labs-emergent360.com
# automatically installs Tower to control node
towerinstall: true
# automatically licenses Tower if license is provided
autolicense: true

e.g. here is an example of an extra vars file we are looking for:

$ cat ~/Github/linklight/provisioner/seans_workshop.yml
---
ec2_region: us-east-1
ec2_name_prefix: seantest
student_total: 25
admin_password: ansible
create_login_page: true

for more information on the extra vars file please refer to: https://github.com/network-automation/linklight/blob/master/provisioner/README.md

ANSIBLE VERSION
ansible 2.9.6
  config file = /home/ec2-user/workshops/provisioner/ansible.cfg
  configured module search path = [u'/home/ec2-user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Sep 26 2019, 13:23:47) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
CONFIGURATION
DEFAULT_CALLBACK_WHITELIST(/home/ec2-user/workshops/provisioner/ansible.cfg) = [u'time']
DEFAULT_FORKS(/home/ec2-user/workshops/provisioner/ansible.cfg) = 50
DEFAULT_HOST_LIST(/home/ec2-user/workshops/provisioner/ansible.cfg) = [u'/home/ec2-user/workshops/provisioner/hosts'
DEFAULT_NO_TARGET_SYSLOG(/home/ec2-user/workshops/provisioner/ansible.cfg) = False
DEFAULT_SCP_IF_SSH(/home/ec2-user/workshops/provisioner/ansible.cfg) = True
DEFAULT_STDOUT_CALLBACK(/home/ec2-user/workshops/provisioner/ansible.cfg) = yaml
HOST_KEY_CHECKING(/home/ec2-user/workshops/provisioner/ansible.cfg) = False
INTERPRETER_PYTHON(/home/ec2-user/workshops/provisioner/ansible.cfg) = auto_silent
PERSISTENT_COMMAND_TIMEOUT(/home/ec2-user/workshops/provisioner/ansible.cfg) = 60
PERSISTENT_CONNECT_TIMEOUT(/home/ec2-user/workshops/provisioner/ansible.cfg) = 60
RETRY_FILES_ENABLED(/home/ec2-user/workshops/provisioner/ansible.cfg) = False
OS / ENVIRONMENT

[ec2-user@ip-172-31-87-102 provisioner]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.8 (Maipo)

TOWER

Engine

PLAYBOOK SHORT OUTPUT
SSH password: 
PLAY [Install Tomcat server] ***************************************************
TASK [Gathering Facts] *********************************************************
ok: [node2]
ok: [node3]
ok: [node1]
TASK [latest Tomcat version installed] *****************************************
fatal: [node3]: FAILED! => {"changed": false, "failures": ["No package tomcat available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
fatal: [node2]: FAILED! => {"changed": false, "failures": ["No package tomcat available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
fatal: [node1]: FAILED! => {"changed": false, "failures": ["No package tomcat available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
PLAY RECAP *********************************************************************
node1                      : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
node2                      : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
node3                      : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

PLAYBOOK LONG OUTPUT
SSH password: 
PLAY [Install Tomcat server] ***************************************************
TASK [Gathering Facts] *********************************************************
ok: [node2]
ok: [node3]
ok: [node1]
TASK [latest Tomcat version installed] *****************************************
fatal: [node3]: FAILED! => {"changed": false, "failures": ["No package tomcat available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
fatal: [node2]: FAILED! => {"changed": false, "failures": ["No package tomcat available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
fatal: [node1]: FAILED! => {"changed": false, "failures": ["No package tomcat available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
PLAY RECAP *********************************************************************
node1                      : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
node2                      : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
node3                      : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

@dpullman-emergent
Copy link
Contributor Author

Would it be as simple as constraining the AMI used to rhel7? If so, how can that be done?

@IPvSean
Copy link
Contributor

IPvSean commented Apr 21, 2020

@goetzrieger @cloin @liquidat what is the plan here?

@goetzrieger
Copy link
Contributor

goetzrieger commented Apr 21, 2020

I'll look into this, needs a rewrite of the lab task as Tomcat is gone and some workaround like installing from tarball is not making sense. I mean JSP's are so early 2000 anyway... ;)

And I need to fix this for Summit anyway.

@IPvSean
Copy link
Contributor

IPvSean commented Apr 25, 2020

Fixed with #800

@IPvSean IPvSean closed this as completed Apr 25, 2020
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

Successfully merging a pull request may close this issue.

4 participants