Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
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
mkdir: cannot create directory `/var/lib/rpm-state/foreman-proxy': No such fi...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Packaging (Show other bugs)
6.0.3
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: Unused
Assigned To: Katello Bug Bin
Elyézer Rezende
http://projects.theforeman.org/issues...
: Triaged
Depends On: 1141730
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-22 09:33 EDT by Mike Burns
Modified: 2017-02-23 15:55 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1141730
Environment:
Last Closed: 2015-08-12 01:16:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 6660 None None None 2016-04-22 12:46 EDT
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Mike Burns 2014-09-22 09:33:15 EDT
+++ 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 Product and Program Management 2014-09-22 09:53:25 EDT
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 10:03:04 EDT
Should be picked up if rebased.
Comment 8 Elyézer Rezende 2015-03-09 14:31:08 EDT
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 09:27:43 EDT
This bug is slated to be released with Satellite 6.1.
Comment 10 errata-xmlrpc 2015-08-12 01:16:50 EDT
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.