Project

General

Profile

Actions

Bug #5482

closed

Errror when doing an rpm based upgrade from 1.4.1 to 1.5.RC2

Added by Peter Gustafsson over 10 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When doing an rpm based upgrade from 1.4.1 to 1.5 rc2 it fails with below:

Downloading Packages:
foreman-1.5.0-0.2.RC2.el6.noarch.rpm | 3.1 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : foreman-1.5.0-0.2.RC2.el6.noarch 1/2
Error unpacking rpm package foreman-1.5.0-0.2.RC2.el6.noarch
warning: /etc/cron.d/foreman saved as /etc/cron.d/foreman.rpmsave
warning: /etc/foreman/settings.yaml created as /etc/foreman/settings.yaml.rpmnew
error: unpacking of archive failed on file /usr/share/foreman/config/settings.plugins.d: cpio: rename
Verifying : foreman-1.5.0-0.2.RC2.el6.noarch 1/2
foreman-1.4.1-2.el6.noarch was supposed to be removed but is not!
Verifying : foreman-1.4.1-2.el6.noarch 2/2

Failed:
foreman.noarch 0:1.4.1-2.el6 foreman.noarch 0:1.5.0-0.2.RC2.el6

Complete!

Br, Peter


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #4465: %pretrans failure during kickstartClosed02/26/2014Actions
Related to Foreman - Feature #4197: Foreman package should handle creation of plugin directoriesClosedEric Helms01/27/2014Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Related to Bug #4465: %pretrans failure during kickstart added
Actions #2

Updated by Nick Piacentine over 10 years ago

When trying to upgrade manually with rpm, I get this slightly more helpful message:
Preparing packages for installation...
foreman-1.5.0-0.2.RC2.el6
warning: /etc/cron.d/foreman saved as /etc/cron.d/foreman.rpmsave
warning: /etc/foreman/settings.yaml created as /etc/foreman/settings.yaml.rpmnew
error: unpacking of archive failed on file /usr/share/foreman/config/settings.plugins.d: cpio: rename failed - Is a directory

Moving/deleting the /usr/share/foreman/config/settings.plugins.d directory made the update complete successfully.

Actions #3

Updated by Dominic Cleal over 10 years ago

As a workaround, move the contents of /usr/share/foreman/config/settings.plugins.d to a temporary directory before upgrading and then move them back to /etc/foreman/plugins/ after. We might be able to write a lua %pretrans script, but I'll otherwise document it in the upgrade notes.

Actions #4

Updated by Dominic Cleal over 10 years ago

  • Related to Feature #4197: Foreman package should handle creation of plugin directories added
Actions #5

Updated by Dominic Cleal over 10 years ago

I've documented this in the upgrade instructions, sorry we haven't been able to address this via the spec file in time for 1.5.0.

Actions #6

Updated by Anonymous over 7 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF