Bug 1510063
Summary: | Upgrade: potential problem with ACL of /var/log/ironic/ironic-dbsync.log | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Dmitry Tantsur <dtantsur> |
Component: | puppet-ironic | Assignee: | Dmitry Tantsur <dtantsur> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | mlammon |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 10.0 (Newton) | CC: | bfournie, dbecker, jjoyce, jschluet, mburns, mcornea, morazi, nlevinki, rhel-osp-director-maint, slinaber, tvignaud, yprokule |
Target Milestone: | --- | Keywords: | TestOnly, Triaged, ZStream |
Target Release: | 10.0 (Newton) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | puppet-ironic-9.5.0-3.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1507863 | Environment: | |
Last Closed: | 2018-03-22 13:26:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1507863 | ||
Bug Blocks: |
Description
Dmitry Tantsur
2017-11-06 16:15:30 UTC
After talking to aschultz, I think the fix should be in puppet-ironic. According to our records, this should be resolved by puppet-ironic-9.5.0-3.el7ost. This build is available now. On latest osp10 install we see the resolution in the code. We also have confidence its covered in other osp9->osp10 upgrade test. Marking verified. Environment [root@undercloud-0 ~]# rpm -qa | grep puppet-ironic-9.5.0-3.el7ost puppet-ironic-9.5.0-3.el7ost.noarch [root@undercloud-0 usr]# sudo more ./share/openstack-puppet/modules/ironic/manifests/db/sync.pp # # Class to execute ironic dbsync # # == Parameters # # [*extra_params*] # (optional) String of extra command line parameters to append # to the ironic-dbsync command. # Defaults to undef # class ironic::db::sync( $extra_params = undef, ) { include ::ironic::deps include ::ironic::params # NOTE(dtantsur): previous ironic-dbsync was run as root. it will fail to run # as "ironic" user, if there is an old log file owned by root. Let's fix it. # To be removed in Rocky. file { '/var/log/ironic/ironic-dbsync.log': ensure => 'present', owner => 'ironic', group => 'ironic', # /var/log/ironic comes from ironic-common require => Anchor['ironic::install::end'] } exec { 'ironic-dbsync': command => "${::ironic::params::dbsync_command} ${extra_params}", path => '/usr/bin', user => 'ironic', refreshonly => true, try_sleep => 5, tries => 10, logoutput => on_failure, subscribe => [ Anchor['ironic::install::end'], Anchor['ironic::config::end'], Anchor['ironic::dbsync::begin'] ], notify => Anchor['ironic::dbsync::end'], |