Bug 1141730 - 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
Summary: mkdir: cannot create directory `/var/lib/rpm-state/foreman-proxy': No such fi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: foreman-proxy
Version: 5.0 (RHEL 6)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: z1
: Installer
Assignee: Jason Montleon
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks: 1145146
TreeView+ depends on / blocked
 
Reported: 2014-09-15 10:46 UTC by Ami Jeain
Modified: 2014-10-02 12:56 UTC (History)
4 users (show)

Fixed In Version: foreman-proxy-1.6.0.30-2.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1145146 (view as bug list)
Environment:
Last Closed: 2014-10-02 12:56:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1350 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Bug Fix Advisory 2014-10-01 17:22:34 UTC

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


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