workshops icon indicating copy to clipboard operation
workshops copied to clipboard

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

Open cerebro-x opened this issue 1 year ago • 4 comments

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.

cerebro-x avatar Sep 12 '23 16:09 cerebro-x

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

IPvSean avatar Sep 28 '23 17:09 IPvSean

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

sean-m-sullivan avatar Sep 28 '23 17:09 sean-m-sullivan

@sean-m-sullivan how's this going

abenokraitis avatar Jun 13 '24 02:06 abenokraitis

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

sean-m-sullivan avatar Jun 13 '24 14:06 sean-m-sullivan