'stack_hpc.os-images' role failed on RockyLinux 9 without git installed.

Bug #2058922 reported by Nathan Harper
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kayobe
Fix Released
Medium
Unassigned
Antelope
New
Undecided
Unassigned
Bobcat
New
Undecided
Unassigned
Caracal
Fix Released
Undecided
Unassigned
Dalmatian
Fix Released
Medium
Unassigned

Bug Description

Configuring and deploying a new (2023.1) cloud on Rocky9 using stackhpc-kayobe-config, the command:

kayobe overcloud host image build

fails at task

TASK [stackhpc.os-images : Git clone any additional image element repos]

because 'git' is not present in the seed VM OS image. Installing git by hand, or by adding to dev_tools_packages_extra allows the overcloud image build to complete.

Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

It shouldn't be installed by Kayobe itself because it is the Prerequisites for the Kayobe. Please read official documentation: https://docs.openstack.org/kayobe/latest/installation.html#prerequisites and install it yourself.

Changed in kayobe:
status: New → Invalid
Revision history for this message
Nathan Harper (nathharp) wrote :

The issue is not a problem on the control host, but on the seed VM. Running:

kayobe seed vm provision
kayobe seed host configure
kayobe overcloud host image build

will fail because git is not available in the seed VM image, nor is it installed by the host configure step

Changed in kayobe:
status: Invalid → New
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

These commands should be executed from the control host. Not on seed VM.

Changed in kayobe:
status: New → Invalid
Revision history for this message
Nathan Harper (nathharp) wrote :

Yes, they are run on the control host. However,

kayobe overcloud host image build

executes the DIB build on the seed VM. part of that image build is pulling in extra elements via Git, which is failing because 'git' is not installed on the seed VM

Changed in kayobe:
status: Invalid → New
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

please provide the detailed log file with maximum verbose enabled to see the issue.
run for example: kayobe -vvvv overcloud host image build 2>&1 | tee logfile
and attach the log file here

Changed in kayobe:
status: New → Incomplete
Revision history for this message
Nathan Harper (nathharp) wrote :

The short version is below, full logfile is attached:

TASK [stackhpc.os-images : Git clone any additional image element repos] *************************************************************************************************************************************************************************************************************************************************************************************************
Monday 25 March 2024 15:43:37 +0000 (0:00:01.344) 0:00:17.628 **********
failed: [gbbrs-cl6-seedvm] (item={'repo': 'https://github.com/oneswig/stackhpc-image-elements', 'local': '/opt/kayobe/src/stackhpc-image-elements', 'version': 'rocky9-ofed', 'elements_path': 'elements'}) => changed=false
  ansible_loop_var: item
  item:
    elements_path: elements
    local: /opt/kayobe/src/stackhpc-image-elements
    repo: https://github.com/oneswig/stackhpc-image-elements
    version: rocky9-ofed
  msg: 'Failed to find required executable "git" in paths: /home/stack/.local/bin:/home/stack/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin'
failed: [gbbrs-cl6-seedvm] (item={'repo': 'https://gitlab-ee.it.graphcore.ai/nathanh/dib-elements.git', 'local': '/opt/kayobe/src/dib-elements', 'version': 'cl6-dev', 'elements_path': 'elements'}) => changed=false
  ansible_loop_var: item
  item:
    elements_path: elements
    local: /opt/kayobe/src/dib-elements
    repo: https://gitlab-ee.it.graphcore.ai/nathanh/dib-elements.git
    version: cl6-dev
  msg: 'Failed to find required executable "git" in paths: /home/stack/.local/bin:/home/stack/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin'

Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

Looks like this is really issue, not in the Kayobe, but in the external role 'stack hpc.os-images'.
It failed only on latest RockyLinux 9 images which lack of the git package.
This can be temporary fixed by setting 'os_images_package_dependencies_extra' list variable with 'git' element.

Changed in kayobe:
status: Incomplete → Confirmed
summary: - git not installed on seed vm
+ 'stack_hpc.os-images' role failed on RockyLinux 9 without git installed.
Changed in kayobe:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kayobe/+/932088

Changed in kayobe:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (master)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/932088
Committed: https://opendev.org/openstack/kayobe/commit/74b9a13595b113dfe05045c4018b67d3316126f3
Submitter: "Zuul (22348)"
Branch: master

commit 74b9a13595b113dfe05045c4018b67d3316126f3
Author: Pierre Riteau <email address hidden>
Date: Thu Oct 10 16:50:13 2024 +0200

    Bump stackhpc.openstack collection to 0.2.2

    This fixes IPA and host disk image build failures when Git was not
    installed on the build host.

    Change-Id: I057aefc45d1a8efe133fec9921e5c84cad556429
    Closes-Bug: #2058922

Changed in kayobe:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/kayobe/+/933134

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (stable/2024.1)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/933134
Committed: https://opendev.org/openstack/kayobe/commit/b3c03627c8ebc1bc0c8e8af833141a6e5e1eabb0
Submitter: "Zuul (22348)"
Branch: stable/2024.1

commit b3c03627c8ebc1bc0c8e8af833141a6e5e1eabb0
Author: Pierre Riteau <email address hidden>
Date: Thu Oct 10 16:50:13 2024 +0200

    Bump stackhpc.openstack collection to 0.2.2

    This fixes IPA and host disk image build failures when Git was not
    installed on the build host.

    Change-Id: I057aefc45d1a8efe133fec9921e5c84cad556429
    Closes-Bug: #2058922
    (cherry picked from commit 74b9a13595b113dfe05045c4018b67d3316126f3)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 17.0.0.0rc1

This issue was fixed in the openstack/kayobe 17.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 16.3.0

This issue was fixed in the openstack/kayobe 16.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.