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

Bug #2058922 reported by Nathan Harper
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kayobe
Confirmed
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
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.