redhat-partner-solutions / crucible

Apache License 2.0
34 stars 59 forks source link

nmstate package installation missing in non-virtual deployments #255

Closed manurodriguez closed 1 year ago

manurodriguez commented 1 year ago

Bug description

I've observed the following error in Baremetal deployments, the task fails because it does not find nmstatectl command.

TASK [generate_agent_iso : Generate ISO] ***********************************************************
1s
task path: /var/lib/dci-pipeline/assisted_deploy_repo/roles/generate_agent_iso/tasks/main.yml:8
fatal: [bastion]: FAILED! => {"changed": true, "cmd": "/home/dciteam/clusterconfigs-cluster6/extract/openshift-install --log-level=debug agent create image", "delta": "0:00:00.060114", "end": "2023-07-12 14:39:39.950449", "msg": "non-zero return code", "rc": 1, "start": "2023-07-12 14:39:39.890335", "stderr": "level=debug msg=OpenShift Installer 4.14.0-0.nightly-2023-07-11-092038
level=debug msg=Built from commit a4604b060b2abb913926d0485760d069a95d157f
level=debug msg=Fetching Agent Installer ISO...
level=debug msg=Loading Agent Installer ISO...
level=debug msg=  Loading Agent Installer Artifacts...
...
level=debug msg=        Fetching NMState Config...
level=debug msg=          Fetching Agent Config...
level=debug msg=          Reusing previously-fetched Agent Config
level=debug msg=          Fetching Install Config...
level=debug msg=          Reusing previously-fetched Install Config
level=debug msg=        Generating NMState Config...
...
level=error msg=<nmstatectl gc> failed, errorCode -1, stderr exec: \"nmstatectl\": executable file not found in $PATH, input yaml <interfaces: pkg=manifests

Currently NMstate package is installed but only in virtual environments with the apply_nmstate role

Versions affected:

Steps to reproduce:

OpenShift version

other (provide in the description)

Assisted Installer version

other (provide in the description)

Relevant log output

No response

Inventory file

No response

Required statements