Bug 1306655 - Inspector packaging should create /var/log/ironic-inspector/ with appropriate ACL
Summary: Inspector packaging should create /var/log/ironic-inspector/ with appropriate...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic-inspector
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: ga
: 8.0 (Liberty)
Assignee: Mike Burns
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-11 14:21 UTC by Dmitry Tantsur
Modified: 2016-04-07 21:47 UTC (History)
3 users (show)

Fixed In Version: openstack-ironic-inspector-2.2.4-3.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-07 21:47:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0604 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 director Enhancement Advisory 2016-04-08 01:03:56 UTC

Description Dmitry Tantsur 2016-02-11 14:21:17 UTC
Inspector stores ramdisk logs in /var/log/ironic-inspector/ramdisk by default, so this directory (and its parent) should be present and have appropriate ACL.

Comment 2 John Trowbridge 2016-02-11 14:34:07 UTC
I think we just need to cherry-pick this downstream:

https://github.com/openstack-packages/ironic-inspector/commit/c941186021c666147a6849b7c62650f0bd2f9f74

Comment 4 Alexander Chuzhoy 2016-02-23 17:47:35 UTC
Verified:
Environment:
openstack-ironic-inspector-2.2.4-1.el7ost.noarch

As listed below, the directory exists and has the proper acls:

[stack@instack ~]$ ls -laZ /var/log/ironic-inspector/ramdisk
drwxr-xr-x. ironic-inspector ironic-inspector system_u:object_r:var_log_t:s0   .
drwxr-xr-x. root             root             system_u:object_r:var_log_t:s0   ..

Comment 5 Dmitry Tantsur 2016-02-26 14:31:41 UTC
I'm working on the logging improvements for ironic-inspector, and it occurred to me that we need to put logs to /var/log/ironic-inspector, meaning that it should also be owned by ironic-inspector. Mike, could you check this please?

Comment 7 Dmitry Tantsur 2016-04-06 15:32:55 UTC
[stack@instack ~]$ stat /var/log/ironic-inspector/
  File: ‘/var/log/ironic-inspector/’
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 801h/2049d      Inode: 525767      Links: 3
Access: (0755/drwxr-xr-x)  Uid: (  995/ironic-inspector)   Gid: (  992/ironic-inspector)
[stack@instack ~]$ stat /var/log/ironic-inspector/ramdisk/
  File: ‘/var/log/ironic-inspector/ramdisk/’
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 801h/2049d      Inode: 525768      Links: 2
Access: (0755/drwxr-xr-x)  Uid: (  995/ironic-inspector)   Gid: (  992/ironic-inspector)

Comment 9 errata-xmlrpc 2016-04-07 21:47:21 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, 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://rhn.redhat.com/errata/RHEA-2016-0604.html


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