Skip to content

Update fleeting plugin dependency

What does this MR do?

This is needed to fix SSH connections on FIPS systems: gitlab-org/fleeting/fleeting!56 (merged)

Why was this MR needed?

FIPS runners with auto-scaling plugins crashed.

What's the best way to test this MR?

  1. See how to install the AWS fleeting plugin: https://docs.gitlab.com/runner/fleet_scaling/fleeting.html#install-a-fleeting-plugin, https://docs.gitlab.com/runner/executors/docker_autoscaler.html
  2. I used the config:
[[runners]
 <snip>
 executor = "docker-autoscaler"

  [runners.autoscaler]
  plugin = "aws"

  capacity_per_instance = 1
  max_use_count = 4
  max_instances = 4

    [runners.autoscaler.plugin_config] # plugin specific configuration (see plugin documentation)
    name             = "stanhu-autoscaling-group1"               # AWS Autoscaling Group name
    profile          = "default"                     # optional, default is 'default'

    [runners.autoscaler.connector_config]
      username          = "ubuntu"
      use_external_addr = true 

    [[runners.autoscaler.policy]]
      idle_count = 1
      idle_time = "20m0s"
  1. I set up an inline policy for my EC2 instance role with the permissions: https://gitlab.com/gitlab-org/fleeting/plugins/aws
  2. I created a launch template that used ami-0d63e32e9cb73cb8c (Ubuntu AMI with Docker) from https://gitlab.com/gitlab-org/ci-cd/runner-tools/grit/-/blob/main/modules/aws/ami_lookup/manifest.json?ref_type=heads. Ensure that Ubuntu 24.04 is used; Ubuntu 22.04 does not seem to fail.

With the FIPS runner 18.2.1 (on a RHEL FIPS system), this panics. With this branch it succeeds.

What are the relevant issue numbers?

Relates to #38963 (closed)

Edited by Stan Hu

Merge request reports

Loading