Skip to content

Issues with opal session dir caused by change to opal/util/os_dirpath.c #2754

@tjb900

Description

@tjb900

Hi!

Sorry to hassle you guys again. We are just in the process of trying to migrate to v2.x, and are hitting a condition that appears to have been introduced in 58d1b3f.

Some of our nodes have a per-job TMPDIR on Lustre, and we are getting tripped up because when calling mkdir on an existing path, where the user would not have permissions to create the directory, Lustre returns EACCES rather than EEXIST. This breaks the new form of the check in opal/util/os_dirpath.c

[user@host ompi ((58d1b3f4d0...))]$ mkdir /p5
mkdir: cannot create directory `/p5': File exists
(i.e. root filesystem behaves as you expected)

[user@host ompi ((58d1b3f4d0...))]$ mkdir /p5/000scratch
mkdir: cannot create directory `/p5/000scratch': Permission denied
(this causes a problem)

[user@host ompi ((58d1b3f4d0...))]$ mkdir /p5/000scratch/my_temp_dir
(but if we ignore it and just carry on trying to make the deeper components, it will work fine)

Without wanting to start an argument over whether Lustre is doing the right thing here, this seems like it might be a not-terribly-uncommon configuration?

Cheers,
Tim

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