Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1141730

Summary: mkdir: cannot create directory `/var/lib/rpm-state/foreman-proxy': No such file or directory while upgrading to foreman-proxy-1.6.0.8-1.el6sat.noarch
Product: Red Hat OpenStack Reporter: Ami Jeain <ajeain>
Component: foreman-proxyAssignee: Jason Montleon <jmontleo>
Status: CLOSED ERRATA QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 6)CC: mburns, rhos-maint, sclewis, yeylon
Target Milestone: z1Keywords: ZStream
Target Release: Installer   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-proxy-1.6.0.30-2.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1145146 (view as bug list) Environment:
Last Closed: 2014-10-02 12:56:34 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:    
Bug Blocks: 1145146    

Description Ami Jeain 2014-09-15 10:46:10 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. run rpm -Uhv /mnt/redhat/brewroot/packages/foreman-proxy/1.6.0.30/1.el6sat/data/signed/fd431d51/noarch/foreman-proxy-1.6.0.30-1.el6sat.noarch.rpm
2. 
3.

Actual results:
mkdir: cannot create directory `/var/lib/rpm-state/foreman-proxy': No such file or directory
cp: cannot create regular file `/var/lib/rpm-state/foreman-proxy/settings.yml.orig': No such file or directory
1:foreman-proxy          warning: /etc/foreman-proxy/settings.yml created as /etc/foreman-proxy/settings.yml.rpmnew

now downgrading:
/etc/foreman-proxy/settings.d is gone but /var/lib/rpm-state/ remained so another upgrade test is with no mkdir errors



Expected results:


Additional info:

this might be related to the fix in https://github.com/theforeman/foreman-packaging/pull/297/commits which wasn't cherry picked to this build.
running:
#rpm -qp --scripts /mnt/redhat/brewroot/packages/foreman-proxy/1.6.0.30/1.el6sat/data/signed/fd431d51/noarch/foreman-proxy-1.6.0.30-1.el6sat.noarch.rpm shows the problem:
test -e /var/lib/rpm-state/foreman-proxy || mkdir /var/lib/rpm-state/foreman-proxy

Comment 4 Scott Lewis 2014-09-23 14:33:49 UTC
pm_ack+ for bug in ON_QA

Comment 6 Ami Jeain 2014-09-24 04:44:16 UTC
verified in latest puddle

Comment 7 Scott Lewis 2014-10-02 12:56:34 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. http://rhn.redhat.com/errata/RHBA-2014-1350.html