Bug 2117221 - horizon : /var/tmp/ permissions incorrect on controllers
Summary: horizon : /var/tmp/ permissions incorrect on controllers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z4
: 16.2 (Train on RHEL 8.4)
Assignee: Cédric Jeanneret
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-10 10:56 UTC by François Rigault
Modified: 2022-12-07 19:24 UTC (History)
3 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20221010235131.e0d438c.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-07 19:24:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 852743 0 None MERGED Ensure mode is correct for the tmp directory 2022-09-27 10:27:17 UTC
OpenStack gerrit 859402 0 None MERGED Ensure mode is correct for the tmp directory 2022-10-03 14:13:53 UTC
Red Hat Issue Tracker OSP-18145 0 None None None 2022-08-10 12:49:10 UTC
Red Hat Product Errata RHBA-2022:8794 0 None None None 2022-12-07 19:24:22 UTC

Description François Rigault 2022-08-10 10:56:37 UTC
Description of problem:
following deployment and update of the stack, /var/tmp permissions are set to d-wxrwS--t. (which is decimal 1777, not octal 01777)


Version-Release number of selected component (if applicable):
RHOSP 16.2.3
openstack-tripleo-heat-templates-11.6.1-2.20220409014852.el8ost.noarch

How reproducible:
keep your RHOSP 16.2 updated

Steps to Reproduce:
1. deploy a stack with RHOSP 16.2.2
2. overcloud update to 16.2.3
3. stat /var/tmp on a controller

Actual results:
Access: (3361/d-wxrwS--t)

Expected results:
1777 instead

Additional info:
noticed in https://review.opendev.org/c/openstack/tripleo-heat-templates/+/788153

deploying with

--- openstack-tripleo-heat-templates/deployment/horizon/horizon-container-puppet.yaml       2022-08-10 10:55:41.553687400 +0000
+++ openstack-tripleo-heat-templates/deployment/horizon/horizon-container-puppet.yaml   2022-08-10 10:55:46.509149754 +0000
@@ -382,7 +382,7 @@
                 path: /var/tmp
                 state: directory
                 setype: tmp_t
-                mode: 1777
+                mode: 01777
       update_tasks:
         - name: Anchor for upgrade and update tasks
           when: step|int == 0

seems to fix it.

Comment 1 Cédric Jeanneret 2022-08-10 13:55:03 UTC
Hello there,

Dang... nice catch - "chmod" is doing the right thing, I didn't see the difference while calling via ansible....

A master patch is issued, it will take some time to get it in and then backported down to 16.2 (master -> wallaby -> [17.0] -> train -> [16.2]).

Since there wasn't any priority/severity, I set them both to "medium", please feel free to correct them if you need that patch asap. I'll try to make it for 16.2.4.

Cheers,

C.

Comment 3 François Rigault 2022-08-10 20:41:29 UTC
this did not break anything on my side (.. so far?) so it's not urgent.

also https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html#parameter-mode

mentions the "u+rwx" syntax, which could be less error prone.

In any case thanks for your work!

Comment 12 errata-xmlrpc 2022-12-07 19:24:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 16.2.4), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8794


Note You need to log in before you can comment on or make changes to this bug.