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

Getting a runtime error when building the EE for the Config as Code workshop #2035

Open
cerebro-x opened this issue Sep 12, 2023 · 4 comments
Assignees

Comments

@cerebro-x
Copy link

Problem Summary

This is regarding step 8 of the intro exercise.
The instruction is kind of vague regarding step 6, I am assuming it meant to change the "hosts" to use automationhub, instead of using builder. After updating the playbook to use automationhub for the hosts field, and in step 8, when running the playbook using:
ansible-playbook -i inventory.yml -l automationhub playbooks/build_ee.yml

I think it's having issue trying to install the python package inside of the container.

Issue Type

Bug

Extra vars file

Dont have this info available as the environment is already torn down.

Ansible Playbook Output

fatal: [hub-student1.zzqwx.example.opentlc.com]: FAILED! => {"changed": true, "cmd": ["ansible-builder", "build", "-f", "/tmp/ansible.l7rjgaottemp/execution_environment.yml", "-t", "config_as_code", "--container-runtime=podman", "--verbosity", "0"], "delta": "0:01:34.894032", "end": "2023-09-07 22:44:11.267337", "msg": "non-zero return code", "rc": 1, "start": "2023-09-07 22:42:36.373305", "stderr": "", "stderr_lines": [], "stdout": "Command that had error:\n podman build -f context/Containerfile -t config_as_code context\n...showing last 20 lines of output...\n++ bindep -b compile\n++ true\n+ compile_packages='podman\npython\npython38-pytz\npython38-pyyaml\npython38-requests\nrsync'\n+ '[' '!' -z 'podman\npython\npython38-pytz\npython38-pyyaml\npython38-requests\nrsync' ']'\n+ /usr/bin/dnf install -y podman python python38-pytz python38-pyyaml python38-requests rsync\nCentOS Stream 8 - Extras common packages 20 kB/s | 6.9 kB 00:00\nNo match for argument: python\nThere are following alternatives for \"python\": python2, python3.11, python36, python38, python39\nError: Unable to find a match: python\nError: building at STEP \"RUN assemble\": while running runtime: exit status 1\n\nAn error occured (rc=1), see output line(s) above for details.", "stdout_lines": ["Command that had error:", " podman build -f context/Containerfile -t config_as_code context", "...showing last 20 lines of output...", "++ bindep -b compile", "++ true", "+ compile_packages='podman", "python", "python38-pytz", "python38-pyyaml", "python38-requests", "rsync'", "+ '[' '!' -z 'podman", "python", "python38-pytz", "python38-pyyaml", "python38-requests", "rsync' ']'", "+ /usr/bin/dnf install -y podman python python38-pytz python38-pyyaml python38-requests rsync", "CentOS Stream 8 - Extras common packages 20 kB/s | 6.9 kB 00:00", "No match for argument: python", "There are following alternatives for \"python\": python2, python3.11, python36, python38, python39", "Error: Unable to find a match: python", "Error: building at STEP \"RUN assemble\": while running runtime: exit status 1", "", "An error occured (rc=1), see output line(s) above for details."]}

Ansible Version

Don't have this info as the environment is already torn down.

Ansible Configuration

Don't have this info as the environment is already torn down.

Ansible Execution Node

Ansible Controller (previously known as Ansible Tower)

Operating System

This is provisioned through RHDPS.

@IPvSean
Copy link
Contributor

IPvSean commented Sep 28, 2023

@sean-m-sullivan can you take a look?

@sean-m-sullivan
Copy link
Contributor

I think this is a dependency error, but will need to look at it,

@abenokraitis
Copy link
Collaborator

@sean-m-sullivan how's this going

@sean-m-sullivan
Copy link
Contributor

We can close this, it has moved from workshops to instruqt, and tested that today. The workshop has been removed from demos website.

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

4 participants