Zenoss 4.2.5 auto deploy script problem?

12 posts / 0 new
Last post
Pheripheral
Pheripheral's picture
Offline
Last seen: 1 day 4 hours ago
Joined: 09/02/2015 - 04:52
Posts: 14
Zenoss 4.2.5 auto deploy script problem?

Hi,

I was wondering if anyone has recently had any problems using the autodeploy scripts for Zenoss 4.2.5. 

I had a successful time with these autodeploy scripts towards the end of September, but yesterday (Oct 8th) I came to re deploy Zenoss 4.2.5 from then on a new machine and ran into a problem.

Specifically, during the run of the script I get a problem with some dependencies (edited highlights shown below..):

 


.
.
.
Ensuring Zenoss RPMs are not already present
Disabling SELinux...
Downloading zenoss_core-4.2.5-2108.el6.x86_64.rpm...
Using MySQL Community Release version 5.5.37-1
Installing EPEL Repo
.
.
.
.
Examining dl.fedoraproject.org/pub/epel/6/x86_64/epel-rpm-macros-6-14.noarch.rpm: epel-rpm-macros-6-14.noarch
Marking dl.fedoraproject.org/pub/epel/6/x86_64/epel-rpm-macros-6-14.noarch.rpm to be installed
.
.
.
.
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
---> Package epel-rpm-macros.noarch 0:6-14 will be installed
--> Processing Dependency: python-rpm-macros for package: epel-rpm-macros-6-14.noarch
--> Processing Dependency: python-srpm-macros for package: epel-rpm-macros-6-14.noarch
--> Processing Dependency: python2-rpm-macros for package: epel-rpm-macros-6-14.noarch
--> Finished Dependency Resolution
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Command failure: yum -y --nogpgcheck localinstall dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm dl.fedoraproject.org/pub/epel/6/x86_64/epel-rpm-macros-6-14.noarch.rpm

I did a bit of digging and found that the epel-rpm-macros-6-14.noarch.rpm was updated at the start of October (see dl.fedoraproject.org/pub/epel/6/x86_64/ ), so am wondering if this has upset things.

The changelog for that file seems to mention changing the python dependencies:

 

2016-10-03 - 6-14
- Drop py3 macro stubs now that we have python3 in EPEL6
2016-08-24 -  6-13
- Drop python macros; they're in the python-rpm-macros package now.
- Add dependency on the python-rpm-macros packages so that EPEL6 packages
don't
  need to manually add a dep on them.  (Python in RHEL6 can't be changed to
  require them.)
- Move the two stub python3 definitions from the python macro file into the
  main macro file.

 (taken from pkgs.org/centos-6/epel-i386/epel-rpm-macros-6-14.noarch.rpm.html)

 

Can anyone shed any light on this / any ideas of what to do to fix it?

Thanks

Pheripheral
Pheripheral's picture
Offline
Last seen: 1 day 4 hours ago
Joined: 09/02/2015 - 04:52
Posts: 14
Examining the auto deploy

Examining the auto deploy script...

The Zenoss auto deploy script contains lines:

 

epel_rpm_url=http://dl.fedoraproject.org/pub/epel/$elv/$arch

echo "Installing EPEL Repo"
wget -r -l1 --no-parent -A 'epel*.rpm' $epel_rpm_url
try yum -y --nogpgcheck localinstall */pub/epel/$elv/$arch/epel-*.rpm
disable_repo epel

This 

gets various rpm packages from the fedoraproject site and then installs them.

The latest pair of changes to the epel-rpm-macros.rpm seem to suggest that the python-macros were dropped from this package as they were now in the python-rpm-macros package. A dependency to this package was also added to the epel-rpm-macros package.
however, as the zenoss install script only downloads packages called epel* , it does not pickup the python-rpm-macros package?

Perhaps this needs adding into the zenoss auto deploy script?

Jcurry
Jcurry's picture
Offline
Last seen: 1 week 3 days ago
Joined: 01/02/2014 - 13:04
Posts: 380
In fact, the Zenoss

In fact, the Zenoss deployment only needs epel-release, not epel-rpm-macros.  The wget shown above gets both and it is the epel-rpm-macros that causes the problem.  Changing the regex above to epel-release* avoids the need for the extra python packages.

In fact,  the epel-release package is in the 'extras' repo that comes with a minimal install of centos so you can just do `yum install epel-release` and avoid the wget too.

With thanks to "baileytj" for pointing this out.  These changes are now incorporated in my version of the autodeploy script (see below).

Cheers,

Jane

Pheripheral
Pheripheral's picture
Offline
Last seen: 1 day 4 hours ago
Joined: 09/02/2015 - 04:52
Posts: 14
Fix?

I've been playing around with this and adding some further wget and yum lines around line 184 or so of the script to get and install the dependencies before installing the epel repo enables Zenoss to install ok...

 

echo "Installing EPEL Repo"

# get python macros dependencies and install
wget -r -l1 --no-parent -A 'python-rpm-macros*.rpm' $epel_rpm_url	
wget -r -l1 --no-parent -A 'python-srpm-macros*.rpm' $epel_rpm_url	
wget -r -l1 --no-parent -A 'python2-rpm-macros*.rpm' $epel_rpm_url	
try yum -y --nogpgcheck localinstall */pub/epel/$elv/$arch/python*rpm*.rpm

wget -r -l1 --no-parent -A 'epel*.rpm' $epel_rpm_url
try yum -y --nogpgcheck localinstall */pub/epel/$elv/$arch/epel-*.rpm
disable_repo epel

 

 

 

 

Jcurry
Jcurry's picture
Offline
Last seen: 1 week 3 days ago
Joined: 01/02/2014 - 13:04
Posts: 380
I have done some work with

I have done some work with this autodeploy script, following on from Pheripheral's good work above.

I found lots more breakages in the pre-req / co-req chains.  I have put the package on GitHub at https://github.com/jcurry/Zenoss_4.2.5_core-autodeploy   - it has a small README.  Basically, you start with the install item on the wiki at  http://wiki.zenoss.org/Install_Zenoss#Auto-deploy_Installation  and then replace core-autodeploy.sh from the Zenoss package with   core-autodeploy.sh_update_20161208_zenup  from my Git repository.

This version of the autodeploy script also installs zenup and the latest update (as of Dec 9th 2016) SUP - 671.

So far, I have only tested this on a VM with 1 CPU, 4GB RAM, running 64-bit  CentOS 6.3.

If anyone else wants to test this (on a crash-and-burn system), I'd appreciate feedback.

 

Cheers,

Jane

Pheripheral
Pheripheral's picture
Offline
Last seen: 1 day 4 hours ago
Joined: 09/02/2015 - 04:52
Posts: 14
Thanks!

Thanks very much for the script update.

I'm aiming to test this on a new Centos Build, but very unlikely this will be before the end of the year now.

Will report back once done (in January sometime probably)

 

 

 

Pheripheral
Pheripheral's picture
Offline
Last seen: 1 day 4 hours ago
Joined: 09/02/2015 - 04:52
Posts: 14
I've now been able to test

I've now been able to test the script on a new build and happy to say it worked perfectly.

Tested on a newly installed Centos 6.7 minimal build.

Thanks for all the work creating it - it has made the build easier than before and handily includes the zenup patches.

 

Brixo
Brixo's picture
Offline
Last seen: 1 month 1 week ago
Joined: 12/12/2016 - 06:01
Posts: 4
After lots of playing (and

After lots of playing (and failings) of auto-deploy scripts, I managed to find some *VERY* *VERY* simple instructions to get 4.2.5 up and running within 20 minutes without a single hitch.

I got fed up of trying different methods and complex instructions.  Nearly threw in the towel and went Zabbix.

Yes, a couple of manual steps (downloading JRE), but I am sure someone can quickly automate this.

Taking no credit for the work, just the find!

https://geekpeek.net/install-zenoss-monitoring-server-centos-6/

Thanks, Neil.

Jcurry
Jcurry's picture
Offline
Last seen: 1 week 3 days ago
Joined: 01/02/2014 - 13:04
Posts: 380
Sorry you have had such a

Sorry you have had such a rough time with autodeploy scripts. I have been trying to update these.  If you have tried with my scripts posted in the last few days -  https://github.com/jcurry/Zenoss_4.2.5_core-autodeploy/tree/master  - and you have failed, I would appreciate feedback.  The master branch is for CentOS; the ubuntu git branch is for Ubuntu.

Cheers,

Jane

Jhuettner
Jhuettner's picture
Offline
Last seen: 2 months 1 day ago
Joined: 12/22/2016 - 01:59
Posts: 1
Thank you jcurry!

   I just wanted to say THANK YOU jcurry!!!  Your new script saved me hours and hours of time in getting and urgent new Zenoss install completed.  Thank you for your hard work and I hope you have a very Merry Christmas!

Rcocchiararo2
Rcocchiararo2's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 01/06/2017 - 08:24
Posts: 4
@Jcurry

@Jcurry

 

Just pasing by and saw this.

During december, i installed using the script linked in the wiki.

I had to do some manual stuff to get it working:

Install:
    yum erase rrdtool -y
    rpm -Uvh perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm rrdtool-1.4.7-1.el6.rfx.x86_64.rpm rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
 

#Java
    alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1
    alternatives --config java
    <pick the right one from the list>
# edite coredeploy to remove the part that instals rrdtool
    ./core-autodeploy.sh

 

Jcurry
Jcurry's picture
Offline
Last seen: 1 week 3 days ago
Joined: 01/02/2014 - 13:04
Posts: 380
Thanks Rcocchiararo2 - as you

Thanks Rcocchiararo2 - as you point out, it rather depends on what you already have installed on your box.  I started without either rrdtool or Java. 

Ho hum - nothing is ever perfect wink

Cheers,

Jane

Log in to post comments