Skip to content

Ubuntu 2404 not a supported user for ssm to use #421

@jy-metservice

Description

@jy-metservice

Before submitting a ticket, please search through the following resources:

Description

When using PCUI to view a clusters Job Status this error occurs: "Error: An error occurred while trying to complete your request.". SSM runCommand appears to be used to fetch the data from the HeadNode, however if the HeadNode is ubuntu-2404 the PCUI uses user ec2-user to try to connect to the headnode. ec2-user does not exist by default on ubuntu-2404, so the command is failing. The code that needs updating is this code, where ubuntu2404 needs to be added to the map:

function clusterDefaultUser(cluster: any) {
let os = getIn(cluster.config, ['Image', 'Os'])
// @ts-expect-error TS(7053) FIXME: Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
return {
alinux2: 'ec2-user',
ubuntu2204: 'ubuntu',
ubuntu2004: 'ubuntu',
ubuntu1804: 'ubuntu',
centos7: 'centos',
rhel8: 'ec2-user',
rhel9: 'ec2-user',
}[os]
}

Steps to reproduce the issue

Create PCluster with HeadNode ubuntu-2404
Using PCUI browse to a cluster and select Job Status tab

Expected behaviour

Job Status information is fetched from HeadNode

Actual behaviour

Describe what happened instead. Please include, if relevant, any of the following:

  • Error: An error occurred while trying to complete your request

Required info

In order to help us determine the root cause of the issue, please provide the following information:

Additional info

The following information is not required but helpful:

  • OS: [e.g. MacOS]
  • Browser [e.g. chrome, safari]

If having problems with cluster creation or update

YAML file generated by the ParallelCluster UI

If having problems with custom image creation

YAML file of the custom image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions