zenoss / ZenPacks.zenoss.OpenStackInfrastructure

OpenStack Monitoring (Provider-Oriented)
GNU General Public License v2.0
37 stars 17 forks source link

ZEN-33776 Move executables to libexec #556

Closed TheSushiChef closed 7 months ago

TheSushiChef commented 7 months ago

Moved files needing executable permissions to the libexec directory and updated references to use the new path. I don't have any openstack devices to test with so I couldn't test monitoring but I did verify the following:

  1. Files on new install have executable permissions
  2. Files after ZP update are moved and have executable permissions
  3. Files after CZ upgrade maintain executable permissions
[root@8d9002a9d869 /]# ll /opt/zenoss/ZenPacks/ZenPacks.zenoss.OpenStackInfrastructure-4.1.0-py2.7.egg/ZenPacks/zenoss/OpenStackInfrastructure/libexec/
total 64
-rwxr-xr-x 1 zenoss zenoss   757 Apr  5 03:47 init_rabbitmq-ceil.sh
-rwxr-xr-x 1 zenoss zenoss  7831 Apr  5 03:47 openstack_amqp_init.py
-rwxr-xr-x 1 zenoss zenoss  7794 Apr  5 03:47 openstack_amqp_init.pyc
-rwxr-xr-x 1 zenoss zenoss  3341 Apr  5 03:47 openstack_helper.py
-rwxr-xr-x 1 zenoss zenoss  3576 Apr  5 03:47 openstack_helper.pyc
-rwxr-xr-x 1 zenoss zenoss 17011 Apr  5 03:47 poll_openstack.py
-rwxr-xr-x 1 zenoss zenoss 14631 Apr  5 03:47 poll_openstack.pyc
2024-04-05 07:05:02,039 INFO zen.migrate: Committing changes
 Ver     Name                               Status
--------+----------------------------------+-------
300.1.0  RemoveAllMonitoredComponentsReport  OK
300.1.0  UpdateSolrConfigs                   OK
300.1.0  ZensyslogSvcDevForMsgParsing        OK
300.1.0  ZensyslogSvcDevForMsgParsing        OK
300.1.0  ZentrapSvcDevForMsgParsing          OK
300.1.0  addConfigCacheProperties            OK
300.1.0  addzNoRelationshipCopy              OK
2024-04-05 07:05:02 INFO zen.migrate: Committing changes
2024-04-05 07:05:02,056 INFO zen.migrate: Migration successful
2024-04-05 07:05:02 INFO zen.migrate: Migration successful

Script done on 2024-04-05 02:05:20-05:00 [COMMAND_EXIT_CODE="0"]
root@timhowell-test-cz0-clone-202404050406:/var/log/serviced# serviced service shell zope
INFO[0000] Loaded delegate keys from file                keyfile=/etc/serviced/delegate.keys location=localkeys.go:348 logger=auth
root@4ae727c4dff0:/# ll /opt/zenoss/ZenPacks/ZenPacks.zenoss.OpenStackInfrastructure-4.1.0-py2.7.egg/ZenPacks/zenoss/OpenStackInfrastructure/libexec/
total 72
drwxrwxr-x  2 zenoss zenoss  4096 Apr  5 06:27 ./
drwxrwxr-x 19 zenoss zenoss  4096 Apr  5 06:27 ../
-rwxr-xr-x  1 zenoss zenoss   757 Apr  5 06:27 init_rabbitmq-ceil.sh*
-rwxr-xr-x  1 zenoss zenoss  7831 Apr  5 06:27 openstack_amqp_init.py*
-rwxr-xr-x  1 zenoss zenoss  7794 Apr  5 06:27 openstack_amqp_init.pyc*
-rwxr-xr-x  1 zenoss zenoss  3341 Apr  5 06:27 openstack_helper.py*
-rwxr-xr-x  1 zenoss zenoss  3576 Apr  5 06:27 openstack_helper.pyc*
-rwxr-xr-x  1 zenoss zenoss 17011 Apr  5 06:27 poll_openstack.py*
-rwxr-xr-x  1 zenoss zenoss 14631 Apr  5 06:27 poll_openstack.pyc*