Skip to content

mpirun cannot start in GitHub codespaces due to their host name scheme #9321

Closed
@tchayen

Description

@tchayen

Background information

What version of Open MPI are you using?

4.0.3

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

apt install libopenmpi-dev openmpi-bin openmpi-common openmpi-doc

Please describe the system on which you are running

Docker container of GitHub codespaces.


Details of the problem

Hi! I am trying to set up openmpi in docker dev container for GitHub codespaces (not sure how much sense it makes but the provided VM reports 4 CPU cores so it should be as viable as on most PCs) and the following error happened:

--------------------------------------------------------------------------
While trying to create a regular expression of the node names
used in this application, the regex parser has detected the
presence of an illegal character in the following node name:

  node:  codespaces_3620e8

Node names must be composed of a combination of ascii letters,
digits, dots, and the hyphen ('-') character. See the following
for an explanation:

  https://en.wikipedia.org/wiki/Hostname

Please correct the error and try again.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
An internal error has occurred in ORTE:

[[59499,0],0] FORCE-TERMINATE AT (null):1 - error base/plm_base_launch_support.c(553)

This is something that should be reported to the developers.
--------------------------------------------------------------------------

I guess it comes from this line and as the error says, it has something to do how GitHub picks hostname. I tried looking for option to override the default name in the config but I didn't find a way. I also tried changing it through hostname and hostnamectl commands but also no luck.

Is it something you are considering is worth investigating? I am happy to provide any more information if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions