Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.01k stars 577 forks source link

[dev.icinga.com #7471] Post-update script (migrate-hosts) isn't run on RPM-based distributions #2123

Closed icinga-migration closed 10 years ago

icinga-migration commented 10 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/7471

Created by gbeutner on 2014-10-28 13:22:01 +00:00

Assignee: gbeutner Status: Resolved (closed on 2014-10-28 13:25:04 +00:00) Target Version: 2.2.0 Last Update: 2014-10-29 10:03:37 +00:00 (in Redmine)

Icinga Version: 2.2.0

Changesets

2014-10-28 13:24:36 +00:00 by gbeutner f4771153989e5d9ef2ff38a7e7da0d77f32020a8

Move migrate-hosts into the icinga2-common RPM package

fixes #7471

2014-10-29 12:03:28 +00:00 by gbeutner 319b9b256a9ae921b4f845a7a6fb9ff3bae9c7be

Move the config files to icinga2-common

refs #7471
icinga-migration commented 10 years ago

Updated by gbeutner on 2014-10-28 13:22:36 +00:00

[root@xs ~]# yum update --enablerepo=icinga-snapshot-builds icinga2
Loaded plugins: dellsysid, fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.23media.de
citrix                                                                                                                   |  951 B     00:00     
dell-omsa-indep                                                                                                          | 1.9 kB     00:00     
dell-omsa-indep/primary_db                                                                                               | 579 kB     00:01     
dell-omsa-specific                                                                                                       | 1.9 kB     00:00     
epel                                                                                                                     | 3.7 kB     00:00     
epel/primary_db                                                                                                          | 3.2 MB     00:00     
icinga-snapshot-builds                                                                                                   |  951 B     00:00     
icinga-snapshot-builds/primary                                                                                           |  13 kB     00:00     
icinga-snapshot-builds                                                                                                                    65/65
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package icinga2.i386 0:2.1.1-1.snapshot201410281239 set to be updated
--> Processing Dependency: icinga2-bin = 2.1.1-1.snapshot201410281239 for package: icinga2
--> Running transaction check
---> Package icinga2-bin.i386 0:2.1.1-1.snapshot201410281239 set to be updated
--> Processing Dependency: icinga2-common = 2.1.1-1.snapshot201410281239 for package: icinga2-bin
--> Running transaction check
---> Package icinga2-common.i386 0:2.1.1-1.snapshot201410281239 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================
 Package                        Arch                 Version                                       Repository                              Size
================================================================================================================================================
Updating:
 icinga2                        i386                 2.1.1-1.snapshot201410281239                  icinga-snapshot-builds                 8.9 k
Updating for dependencies:
 icinga2-bin                    i386                 2.1.1-1.snapshot201410281239                  icinga-snapshot-builds                 3.8 M
 icinga2-common                 i386                 2.1.1-1.snapshot201410281239                  icinga-snapshot-builds                  27 k

Transaction Summary
================================================================================================================================================
Install       0 Package(s)
Upgrade       3 Package(s)

Total download size: 3.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): icinga2-2.1.1-1.snapshot201410281239.i386.rpm                                                                     | 8.9 kB     00:00     
(2/3): icinga2-common-2.1.1-1.snapshot201410281239.i386.rpm                                                              |  27 kB     00:00     
(3/3): icinga2-bin-2.1.1-1.snapshot201410281239.i386.rpm                                                                 | 3.8 MB     00:00     
------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                            11 MB/s | 3.8 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : icinga2-common                                                                                                           1/6 
/var/tmp/rpm-tmp.45772: line 1: /usr/share/icinga2/migrate-hosts: Datei oder Verzeichnis nicht gefunden
error: %post(icinga2-common-2.1.1-1.snapshot201410281239.i386) scriptlet failed, exit status 127
  Updating       : icinga2-bin                                                                                                              2/6 
  Updating       : icinga2                                                                                                                  3/6 
  Cleanup        : icinga2                                                                                                                  4/6 
  Cleanup        : icinga2-bin                                                                                                              5/6 

Updated:
  icinga2.i386 0:2.1.1-1.snapshot201410281239                                                                                                   

Dependency Updated:
  icinga2-bin.i386 0:2.1.1-1.snapshot201410281239                       icinga2-common.i386 0:2.1.1-1.snapshot201410281239                      

Complete!
icinga-migration commented 10 years ago

Updated by gbeutner on 2014-10-28 13:25:04 +00:00

Applied in changeset f4771153989e5d9ef2ff38a7e7da0d77f32020a8.

icinga-migration commented 10 years ago

Updated by gbeutner on 2014-10-29 10:03:37 +00:00