Saturday, November 29, 2014

Error when installing Zenoss in Centos 6 Docker image

This happens when using auto-deploy installation (hint).

# ./core-autodeploy.sh

The error happens in https://gist.github.com/fortran01/e6eb87c87fa8bb7aa3eb/ebdcce749b366c6cf97346f0411e91dd114a61d4#file-zenoss-core-autodeploy-ec817e6_core-autodeploy-sh-L261-L265 when the zenoss service is started.

Zenoss not initialized.  Performing first-boot initialization...
Fresh install pre steps
Checking RRDtool version >= 1.4.7: [FAIL] Missing.
Error: rrdtool is not in the search path. Please confirm that RRDtool (version >= 1.4.7) is installed.

It can be verified that rrdtool is already installed.

# rrdtool --version
RRDtool 1.4.7  Copyright 1997-2012 by Tobias Oetiker 
               Compiled Apr  5 2012 17:36:08

The routine that checks for rrdtool is in /opt/zenoss/bin/install-functions.sh. Look for confirm_rrd(). It uses the command `which` that is not installed by default in the Centos 6 docker image.

# yum install which -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.vinahost.vn
 * extras: mirror.vietoss.com
 * updates: mirror.vietoss.com
Resolving Dependencies
--> Running transaction check
---> Package which.x86_64 0:2.19-6.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch              Version               Repository       Size
================================================================================
Installing:
 which            x86_64            2.19-6.el6            base             38 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 38 k
Installed size: 71 k
Downloading Packages:
which-2.19-6.el6.x86_64.rpm                              |  38 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : which-2.19-6.el6.x86_64                                      1/1 
install-info: No such file or directory for /usr/share/info/which.info.gz
  Verifying  : which-2.19-6.el6.x86_64                                      1/1 

Installed:
  which.x86_64 0:2.19-6.el6                                                     

Complete!

It should now work.

# for service in memcached snmpd zenoss; do /sbin/chkconfig $service on; /sbin/service $service start; done
Starting memcached: 
Starting snmpd: 
Zenoss not initialized.  Performing first-boot initialization...
Fresh install pre steps
Checking RRDtool version >= 1.4.7: [ OK ] 1.4.7


Monday, November 24, 2014

Reset or fixing display settings in Mac OS X 10.10 (Yosemite) for external display LG 22LS2100

For some reason after the Yosemite installation when I tried to change the Display Settings to "Best for Display" resolution font smoothing just went crazy. I tried to do the following without any effect.


The workaround involves creating a new user and re-logging in to that new user. I know this is painful but for me this is a quick workaround because the old user is disposable for me. In the new user I notice that the Display Settings resolution is scaled but it does not indicate which scale it used. The BIG NOTE is not to use auto-scale resolution this time in the new user.

Thursday, April 17, 2014

Mac OS X - rackspace-novaclient - UserWarning: Unknown distribution option: 'pbr'

Faulty install logs below.


$ sudo pip install rackspace-novaclient --verbose
Downloading/unpacking rackspace-novaclient
  Running setup.py egg_info for package rackspace-novaclient
    running egg_info
    writing requirements to pip-egg-info/rackspace_novaclient.egg-info/requires.txt
    writing pip-egg-info/rackspace_novaclient.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/rackspace_novaclient.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/rackspace_novaclient.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'pip-egg-info/rackspace_novaclient.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/rackspace_novaclient.egg-info/SOURCES.txt'
Downloading/unpacking python-novaclient (from rackspace-novaclient)
  Running setup.py egg_info for package python-novaclient
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'pbr'
      warnings.warn(msg)
    running egg_info
    writing pip-egg-info/UNKNOWN.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/UNKNOWN.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/UNKNOWN.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'pip-egg-info/UNKNOWN.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files found matching '.gitignore'
    warning: no previously-included files found matching '.gitreview'
    writing manifest file 'pip-egg-info/UNKNOWN.egg-info/SOURCES.txt'
Requirement already satisfied (use --upgrade to upgrade): rackspace-auth-openstack in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): os-diskconfig-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): rax-scheduled-images-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): os-networksv2-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): os-virtual-interfacesv2-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): rax-default-network-flags-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Installing collected packages: rackspace-novaclient, python-novaclient
  Running setup.py install for rackspace-novaclient
    running install
    running build
    running install_egg_info
    running egg_info
    writing requirements to rackspace_novaclient.egg-info/requires.txt
    writing rackspace_novaclient.egg-info/PKG-INFO
    writing top-level names to rackspace_novaclient.egg-info/top_level.txt
    writing dependency_links to rackspace_novaclient.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'rackspace_novaclient.egg-info/SOURCES.txt'
    writing manifest file 'rackspace_novaclient.egg-info/SOURCES.txt'
    Copying rackspace_novaclient.egg-info to /Library/Python/2.7/site-packages/rackspace_novaclient-1.4-py2.7.egg-info
    running install_scripts
    writing list of installed files to '/tmp/pip-nFadcJ-record/install-record.txt'
  Running setup.py install for python-novaclient
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'pbr'
      warnings.warn(msg)
    running install
    running build
    running install_egg_info
    running egg_info
    writing UNKNOWN.egg-info/PKG-INFO
    writing top-level names to UNKNOWN.egg-info/top_level.txt
    writing dependency_links to UNKNOWN.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files found matching '.gitignore'
    warning: no previously-included files found matching '.gitreview'
    writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
    removing '/Library/Python/2.7/site-packages/UNKNOWN-0.0.0-py2.7.egg-info' (and everything under it)
    Copying UNKNOWN.egg-info to /Library/Python/2.7/site-packages/UNKNOWN-0.0.0-py2.7.egg-info
    running install_scripts
    writing list of installed files to '/tmp/pip-K1fzme-record/install-record.txt'
Successfully installed rackspace-novaclient python-novaclient
Cleaning up...

Fix logs below. Install/update pbr.

$ sudo pip install --upgrade pbr
Downloading/unpacking pbr from https://pypi.python.org/packages/source/p/pbr/pbr-0.8.0.tar.gz#md5=7d85dc6aa47809d97d29901bf0244f6f
  Downloading pbr-0.8.0.tar.gz (75kB): 75kB downloaded
  Running setup.py egg_info for package pbr
    [pbr] Processing SOURCES.txt
    warning: LocalManifestMaker: standard file '-c' not found
    warning: no previously-included files found matching '.gitignore'
    warning: no previously-included files found matching '.gitreview'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files found matching '.gitignore'
    warning: no previously-included files found matching '.gitreview'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
Downloading/unpacking pip from https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb (from pbr)
  Downloading pip-1.5.4.tar.gz (1.1MB): 1.1MB downloaded
  Running setup.py egg_info for package pip
    warning: no files found matching 'pip/cacert.pem'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
    no previously-included directories found matching 'docs/_build/_sources'
Installing collected packages: pbr, pip
  Found existing installation: pbr 0.5.18
    Uninstalling pbr:
      Successfully uninstalled pbr
  Running setup.py install for pbr
    [pbr] Reusing existing SOURCES.txt
  Found existing installation: pip 1.3.1
    Uninstalling pip:
      Successfully uninstalled pip
  Running setup.py install for pip
    warning: no files found matching 'pip/cacert.pem'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
    no previously-included directories found matching 'docs/_build/_sources'
    Installing pip script to /usr/local/bin
    Installing pip2.7 script to /usr/local/bin
    Installing pip2 script to /usr/local/bin
Successfully installed pbr pip
Cleaning up...

Re-install rackspace-novaclient.

$ sudo pip uninstall rackspace-novaclient
Uninstalling rackspace-novaclient:
  /Library/Python/2.7/site-packages/rackspace_novaclient-1.4-py2.7.egg-info
Proceed (y/n)? y
  Successfully uninstalled rackspace-novaclient

$ sudo pip install rackspace-novaclient
Downloading/unpacking rackspace-novaclient
  Downloading rackspace-novaclient-1.4.tar.gz
  Running setup.py (path:/private/tmp/pip_build_root/rackspace-novaclient/setup.py) egg_info for package rackspace-novaclient
Downloading/unpacking python-novaclient (from rackspace-novaclient)
  Downloading python-novaclient-2.17.0.tar.gz (230kB): 230kB downloaded
  Running setup.py (path:/private/tmp/pip_build_root/python-novaclient/setup.py) egg_info for package python-novaclient
    [pbr] Processing SOURCES.txt
    warning: LocalManifestMaker: standard file '-c' not found
    warning: no previously-included files found matching '.gitignore'
    warning: no previously-included files found matching '.gitreview'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files found matching '.gitignore'
    warning: no previously-included files found matching '.gitreview'
Requirement already satisfied (use --upgrade to upgrade): rackspace-auth-openstack in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): os-diskconfig-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): rax-scheduled-images-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): os-networksv2-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): os-virtual-interfacesv2-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): rax-default-network-flags-python-novaclient-ext in /Library/Python/2.7/site-packages (from rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): pbr>=0.6,<1 .0="" from="" ibrary="" in="" python-novaclient-="" site-packages="" ython="">rackspace-novaclient)
Downloading/unpacking iso8601>=0.1.8 (from python-novaclient->rackspace-novaclient)
  Downloading iso8601-0.1.10.tar.gz
  Running setup.py (path:/private/tmp/pip_build_root/iso8601/setup.py) egg_info for package iso8601
Requirement already satisfied (use --upgrade to upgrade): PrettyTable>=0.7,<0 .8="" from="" ibrary="" in="" python-novaclient-="" site-packages="" ython="">rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): requests>=1.1 in /Library/Python/2.7/site-packages (from python-novaclient->rackspace-novaclient)
Requirement already satisfied (use --upgrade to upgrade): simplejson>=2.0.9 in /Library/Python/2.7/site-packages (from python-novaclient->rackspace-novaclient)
Downloading/unpacking six>=1.5.2 (from python-novaclient->rackspace-novaclient)
  Downloading six-1.6.1-py2.py3-none-any.whl
Downloading/unpacking Babel>=1.3 (from python-novaclient->rackspace-novaclient)
  Downloading Babel-1.3.tar.gz (3.4MB): 3.4MB downloaded
  Running setup.py (path:/private/tmp/pip_build_root/Babel/setup.py) egg_info for package Babel
    warning: no previously-included files matching '*' found under directory 'docs/_build'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
Requirement already satisfied (use --upgrade to upgrade): pip in /Library/Python/2.7/site-packages (from pbr>=0.6,<1 .0-="">python-novaclient->rackspace-novaclient)
Downloading/unpacking pytz>=0a (from Babel>=1.3->python-novaclient->rackspace-novaclient)
  Downloading pytz-2014.2.tar.bz2 (160kB): 160kB downloaded
  Running setup.py (path:/private/tmp/pip_build_root/pytz/setup.py) egg_info for package pytz
Installing collected packages: rackspace-novaclient, python-novaclient, iso8601, six, Babel, pytz
  Running setup.py install for rackspace-novaclient
  Running setup.py install for python-novaclient
    [pbr] Reusing existing SOURCES.txt
    Installing nova script to /usr/local/bin
  Found existing installation: iso8601 0.1.4
    Uninstalling iso8601:
      Successfully uninstalled iso8601
  Running setup.py install for iso8601
  Found existing installation: six 1.3.0
    Uninstalling six:
      Successfully uninstalled six
  Running setup.py install for Babel
    warning: no previously-included files matching '*' found under directory 'docs/_build'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    Installing pybabel script to /usr/local/bin
  Running setup.py install for pytz
Successfully installed rackspace-novaclient python-novaclient iso8601 six Babel pytz
Cleaning up...