Bug 1145146 - 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 Satellite
Classification: Red Hat
Component: Packaging
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Elyézer Rezende
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On: 1141730
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-22 13:33 UTC by Mike Burns
Modified: 2017-02-23 20:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1141730
Environment:
Last Closed: 2015-08-12 05:16:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6660 0 None None None 2016-04-22 16:46:15 UTC
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Mike Burns 2014-09-22 13:33:15 UTC
+++ This bug was initially created as a clone of Bug #1141730 +++

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 3 RHEL Program Management 2014-09-22 13:53:25 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 5 Dominic Cleal 2014-09-22 14:03:04 UTC
Should be picked up if rebased.

Comment 8 Elyézer Rezende 2015-03-09 18:31:08 UTC
Verified on: Satellite-6.1.0-RHEL-7-20150303.0

Steps to verify:

[root@sat6 ~]# rpm -q foreman-proxy
foreman-proxy-1.7.2.3-1.el7sat.noarch

Satellite 6.1 installs foreman-proxy 1.7 instead of 1.6. I'm verifying this bug because it is not relevant anymore as the latest change was on 2014-09-22 targeting an older Satellite 6 release.

Comment 9 Bryan Kearney 2015-08-11 13:27:43 UTC
This bug is slated to be released with Satellite 6.1.

Comment 10 errata-xmlrpc 2015-08-12 05:16:50 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://access.redhat.com/errata/RHSA-2015:1592


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