Ticket #3083 (new defect)

Opened 8 months ago

Last modified 2 months ago

rpm -i zenoss-2.1.92*.rpm zenoss-core-zenpacks-2.1.92*.rpm fails

Reported by: chris Owned by: cholden
Priority: 3 - Medium Milestone: Blue Crab
Component: ZenPack Version: 2.1.3
Keywords: Cc: jstevens
Community Patch Attached: Deployed @ Customer:
Installer: Maintenance Target:
Specific ZenPack: Maintenance Status:
Documentation Note?: Not required Regression:

Description

You can't install both Zenoss and the core zenpacks in the same rpm command.

The zenoss-core-zenpacks uses the zenpack --install command in it's %post section and we have not yet started up zenoss at that point.

Maybe we should avoid doing the zenpack --install inside our rpm and instead do that at the next zenoss restart. We could create a ${ZENHOME}/.newpacks and then our standard zenoss_init_post and zenoss_upgrade_post scripts can check that file and install the zenpacks listed in it.

Something a little more graceful than:

[root@cent5-64t ~]# rpm -Uvh zenoss-*
Preparing...                ########################################### [100%]
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
   1:zenoss                 ########################################### [ 33%]
   2:zenoss-core-zenpacks   ########################################### [ 67%]
Installing /opt/zenoss/packs/ZenPacks.zenoss.ApacheMonitor-2.0.0-py2.4.egg...
WARNING:ZEO.zrpc:(17881) CW: error connecting to ('localhost', 8100): ECONNREFUSED
WARNING:ZEO.zrpc:(17881) CW: error connecting to ('localhost', 8100): ECONNREFUSED
WARNING:ZEO.zrpc:(17881) CW: error connecting to ('localhost', 8100): ECONNREFUSED

Change History

Changed 8 months ago by chris

  • owner changed from chris to cholden

Changed 8 months ago by jstevens

You cannot install both rpms at the same time. Zenoss must be started before the zenpacks can be installed. This is mentioned in the 2.1->2.2 upgrade instructions (http://www.zenoss.com/community/docs/install-guides/zenoss-upgrade-instructions/), and possibly in the admin guide, but we should have it many more places probably.

There is a ticket to change this for 2.3.

Changed 3 months ago by bbibeault

  • reviewed set to 0

Changed 2 months ago by bbibeault

  • milestone changed from zenoss-2.3 to zenoss-2.4
Note: See TracTickets for help on using tickets.