stackabletech / docker-images

Apache License 2.0
17 stars 2 forks source link

fix(omid): location and permissions of the tso logging directory #773

Closed razvan closed 1 month ago

razvan commented 1 month ago

Description

Successfully tested on OpenShift 4.15:

--- PASS: kuttl (295.70s)
    --- PASS: kuttl/harness (0.00s)
        --- PASS: kuttl/harness/omid_hbase-2.4.18,docker.stackable.tech_sandbox_hbase_2.4.18-stackable0.0.0-dev_hdfs-latest-3.3.6_zookeeper-latest-3.9.2_openshift-true_omid-1.1.0,docker.stackable.tech_sandbox_omid_1.1.0-stackable0.0.0-dev (295.03s)
PASS

The owner of the tso folder is root:

stackable@8821649a65ad /stackable $ ls -ltrAh
total 1.2M
drwxr-xr-x. 1 root      root         8 Jul 11 01:37 omid-tso-server-1.1.0
drwxr-xr-x. 1 root      root        60 Jul 11 01:37 omid-examples-1.1.0
...

But the tso server runs as stackable and tries to write to omid.log in that folder (by default).

Definition of Done Checklist

- [ ] Changes are OpenShift compatible
- [ ] All added packages (via microdnf or otherwise) have a comment on why they are added
- [ ] Things not downloaded from Red Hat repositories should be mirrored in the Stackable repository and downloaded from there
- [ ] All packages should have (if available) signatures/hashes verified
- [ ] Add an entry to the CHANGELOG.md file
- [ ] Integration tests ran successfully
TIP: Running integration tests with a new product image The image can be built and uploaded to the kind cluster with the following commands: ```shell bake --product --image-version kind load docker-image --name= ``` See the output of `bake` to retrieve the image tag for ``.