Skip to content

Unable to distinguish between uid and gid #57

@mriedem

Description

@mriedem

This is similar to but different enough from #50 that I'm opening a new issue.

We're backing jupyter notebook storage with s3fs and the jovyan user uid is 1000 and the gid is 100 [1] and everything gets set as 1000 for objects, e.g.:

{
    "AcceptRanges": "bytes",
    "LastModified": "Fri, 25 Sep 2020 20:27:45 GMT",
    "ContentLength": "1085",
    "ETag": "\"4f8c9d9ec745ddb7c3696a0e1273cb11\"",
    "ContentType": "application/octet-stream",
    "Metadata": {
        "ctime": "1601065665",
        "mode": "33152",
        "gid": "1000",
        "uid": "1000",
        "mtime": "1601065664"
    }
}

It looks like the problem is here [2].

The gid being wrong doesn't seem to affect the jupyter notebook application but it's something we'd like to fix since we have these uid/gid values spread through various configs.

[1] https://github.com/jupyter/docker-stacks/blob/master/base-notebook/Dockerfile#L15
[2]

if _, ok := mountRequest.Opts["kubernetes.io/fsGroup"]; ok {
args = append(args, "-o", "gid="+options.FSGroup)
args = append(args, "-o", "uid="+options.FSGroup)
} else if _, ok := mountRequest.Opts["kubernetes.io/mounterArgs.FsGroup"]; ok {
args = append(args, "-o", "gid="+options.FSGroupNew)
args = append(args, "-o", "uid="+options.FSGroupNew)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions