opensearch wrong permissions

Bug #2028376 reported by Lukas Fichtner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Invalid
Medium
Sven Kieske

Bug Description

The opensearch file permissions still seems to be wrong. Is this a general problem or am I the only one with this problem?
issue from the last patch: https://bugs.launchpad.net/kolla-ansible/+bug/2020152
last patch: https://opendev.org/openstack/kolla-ansible/commit/a3bbf3399bcff4e0089e189b2988c01da280650f

How to reproduce:
Install the latest Version with "pip3 install --upgrade git+https://opendev.org/openstack/kolla-ansible@stable/2023.1"
deploy/reconfigure with kolla-ansible

warning messages:
https://paste.opendev.org/show/bC7trEauLd93b9osSQQi/

current file permissions:
https://paste.opendev.org/show/b853xDI5mOLeKwRaGokf/

Lukas Fichtner (xedon)
description: updated
Revision history for this message
Sven Kieske (s-kieske) wrote :

that's weird, afaik this permission get set upstream here:

https://github.com/opensearch-project/OpenSearch/blob/611ecc2ad50c7e1833e7fe8ef2a6cabeb6028c57/distribution/packages/build.gradle#L216C15-L216C20

```
    from("${packagingFiles}") {
      dirMode 02750
      into('/etc')
```

dirMode should be calculated - speculating here, because I don't know much about gradles usage of the "ospackage" lib here and how that works - like chmod manpage[0] claims:

 S_ISGID (02000)
              set-group-ID (set process effective group ID on execve(2);
              mandatory locking, as described in fcntl(2); take a new
              file's group from parent directory, as described in
              chown(2) and mkdir(2))

so it set's the groupid bit then rwx bits for the user and read and execute bits for the group.

So this seems to be a failure upstream I suppose, but will investigate further.

[0]: https://man7.org/linux/man-pages/man2/chmod.2.html

Revision history for this message
Sven Kieske (s-kieske) wrote :
Revision history for this message
Sven Kieske (s-kieske) wrote :

there is already another open issue upstream which might be related and which is being worked on:

https://github.com/opensearch-project/opensearch-build/issues/3815

Changed in kolla-ansible:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Sven Kieske (s-kieske) wrote :

this should hopefully be fixed by: https://github.com/opensearch-project/opensearch-build/pull/3898 which should surface in the next upstream releases.

Revision history for this message
Sven Kieske (s-kieske) wrote :

marking this as "invalid" (not really sure tbh if this is the correct status), as this is fixed upstream. I wish there was a status of "fixed upstream".

Changed in kolla-ansible:
assignee: nobody → Sven Kieske (s-kieske)
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.