Ticket #1890 (closed defect: fixed)

Opened 16 months ago

Last modified 6 weeks ago

Zenpack Installation Broken

Reported by: sjakesch Owned by: jstevens
Priority: 1 - Blocker Milestone: zenoss-2.1
Component: ZenPack Version: 2.0.4
Severity: low Keywords: zenoss-2.0.6
Cc: edahl Documentation: Not required
Installer: Reviewed: yes

Description

There is an error in the Zenpack install script that leads to executables (included in zenpacks) not being assigned execute rights.

Change History

Changed 16 months ago by jstevens

  • keywords zenoss-2.0.5 added; zenpack install execute permissions removed
  • priority changed from medium to blocker
  • component changed from All to ZenPack
  • severity changed from 3w to hours
  • milestone set to zenoss-2.1

When extracting files from a zenpack's .zip file zenpack.py doesn't have access to the original permission settings of the file. As a result, executable files which are part of the .zip will not have executable perms when installed.

This is a problem for ZenWebTx currently, as it expects bin/testgen-twill to be executable. This can be fixed in WebTxDataSource.py by specifically executing that file with python, but a general fix would be good.

I think zenweb --install should set all files in a zenpack's bin/ subdirectory to 755 (or so.)

Changed 16 months ago by jstevens

  • cc edahl added

The only problem this causes in 2.0.4 (that I'm aware of) is that the UI for testing WebTx datasources won't work. This can be fixed with "chmod 755 $ZENHOME/Products/ZenWebTx/bin/*"

Changed 15 months ago by jstevens

  • status changed from new to closed
  • resolution set to fixed

(In [6185]) fixes #1890

  • files in zenpack bin directories are now chmod 755

Changed 15 months ago by edahl

  • keywords zenoss-2.0.6 added; zenoss-2.0.5 removed

Changed 6 weeks ago by bbibeault

  • documentation set to Not required
  • reviewed set
Note: See TracTickets for help on using tickets.