INSTALL CISCO WAE 6.4.5

Introduction

After installed Centos 6.7 for CISCO WAE, I found python version is 2.6 that is much older, and I need ansible1.9, but Centos default upgrade to ansible2.2… in order to easy management ansible1.9 that is python package, I plan to install PIP. From official website, suggest not use 2.6 under pip, so I need to upgrade python to 2.7 too.

But I found WAE use 2.6 after I succeed upgrade python to 2.7…Summarized the totally steps that will help me review in future.

Upgrade Python

After checked from follow link, python 2.7.9 integrate pip, so install this version 🙂
https://pip.pypa.io/en/latest/installing/

1. Install some package that require by python

python have multi dependencie

[root@wae ~]# yum install gcc
[root@wae ~]# yum install openssl-devel

2. Install python 2.7.9

[root@wae ~]# wget http://python.org/ftp/python/2.7.9/Python-2.7.9.tgz
[root@wae ~]# mv Python-2.7.9.tgz /opt/
[root@wae ~]# cd /opt/
[root@wae opt]# tar -xvf Python-2.7.9.tgz 
[root@wae opt]# cd Python-2.7.9
[root@wae Python-2.7.9]# ./configure --prefix=/usr/local/python2.7
[root@wae Python-2.7.9]# make
[root@wae Python-2.7.9]# make install

3. Set up a software link under “/usr/bin/”

[root@wae Python-2.7.9]# cd /usr/bin/
[root@wae bin]# rm -rf python
[root@wae bin]# ln -s /usr/local/python2.7/bin/python2.7 python
[root@wae bin]# python -V
Python 2.7.9

4. Activate pip function under python 2.7.9

[root@wae bin]# python -m ensurepip 
Ignoring indexes: https://pypi.python.org/simple/
Downloading/unpacking setuptools
Downloading/unpacking pip
Installing collected packages: setuptools, pip
Successfully installed setuptools pip
Cleaning up...

5. Modify yum conf that only work under python2.6

[root@wae bin]# more /usr/bin/yum
#!/usr/bin/python2.6  <<< changed python2.6 from python
import sys
......

6. Modify Related py file that need old version

Follow list that only I matched when I install CISCO WAE, maybe have other file need python2.6, so you can use similar way to correct that:

[root@wae ~]# more /usr/share/createrepo/worker.py
#!/usr/bin/python2.6 -tt  <<< changed python2.6 from python

[root@wae ~]# more /usr/share/createrepo/genpkgmetadata.py 
#!/usr/bin/python2.6 -t  <<< changed python2.6 from python

Install ansible1.9 under python2.7.9

[root@wae bin]# python -m pip install paramiko PyYAML Jinja2 httplib2 six
[root@wae bin]# python -m pip install ansible==1.9.4
[root@wae bin]# python -m pip list|grep ansible
ansible (1.9.4)

Install ansible1.9 under python2.6

I found CISCO WAE rollback python to python2.6 too… so ansible1.9 that installed by pip(python2.7) not work too…After checked again, I can install the pip under python2.6 by follow ways:

1. Install pip under python2.6

follow by this link:
http://stackoverflow.com/questions/24294467/how-to-install-pip-for-python-2-6

[root@wae ~]# yum install python-pip

2. install ansible 1.9.4

[root@wae ~]# pip install paramiko PyYAML Jinja2 httplib2 six
[root@wae ~]# yum install python-devel <<< must install before install ansible
[root@wae ~]# pip install ansible==1.9.4
[root@wae ~]# pip install PyCrypto==2.3

3. install WAE failure too…

looks like pip install package couldn’t check by other package install…

Nothing to do
error: Failed dependencies:
      ansible1.9 is needed by wae-platsvcs-6.4.5-20170316153320599.x86_64
Problem in wae-platsvcs installation
 
Do you want to continue? (yes/no) [yes] 
......
Installation cannot complete successfully.
Please fix the issues and try again.
[wae@wae opt]$ ansible --version
ansible 1.9.4
  configured module search path = None

***Install ansible1.9 under python2.6***

finally, I got the ansible 1.9.6 package from internet…ansible1.9-1.9.6-2.el6.1.noarch.rpm.zip
then complete WAE installation…

[root@wae opt]# yum install epel*
[root@wae opt]# yum localinstall ansible1.9-1.9.6-2.el6.1.noarch.rpm 
[root@wae opt]# rpm -qa|grep ansible
ansible1.9-1.9.6-2.el6.1.noarch
[root@wae opt]# sudo bash wae-planning-k9-6.4.5.bin
Verifying checksum. It may take a while...done
This is the Cisco WAE 6.4.5 installer.

Enter installation directory: [/opt/cariden] 

Enter the WAE username: [wae] 

System check Pass ...
Spawning worker 0 with 17 pkgs
Workers Finished
Gathering worker results

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
Loaded plugins: fastestmirror, security
Cleaning repos: base epel extras updates wae
Cleaning up Everything
Loaded plugins: fastestmirror, security
Determining fastest mirrors
 * base: centos.01link.hk
 * epel: mirror01.idc.hinet.net
 * extras: centos.01link.hk
 * updates: mirror.lzu.edu.cn
repo id          repo name                                                status
base             CentOS-6 - Base                                           6,706
*epel            Extra Packages for Enterprise Linux 6 - x86_64           12,293
extras           CentOS-6 - Extras                                            64
updates          CentOS-6 - Updates                                           32
wae              Cisco WAE Repo                                               17
repolist: 19,112
Checking wae-dlc dependencies...
installing dependency list: bash.x86_64 bc.x86_64 cyrus-sasl-lib.x86_64 db4.x86_64 e2fsprogs-libs.x86_64 ed.x86_64 expat21.x86_64 expat.x86_64 fontconfig.x86_64 freetype.x86_64 ghostscript-fonts.noarch glibc.x86_64 gzip.x86_64 keyutils-libs.x86_64 krb5-libs.x86_64 libaio.x86_64 libdrm.x86_64 libgcc.x86_64 libICE.x86_64 libselinux.x86_64 libsepol.x86_64 libSM.x86_64 libstdc++.x86_64 libX11.x86_64 libXau.x86_64 libXdmcp.x86_64 libXext.x86_64 libXft.x86_64 libXrender.x86_64 libXxf86vm.x86_64 mesa-libGL.x86_64 ncurses.x86_64 openldap.x86_64 pam.x86_64 python.x86_64 redhat-lsb.x86_64 screen.x86_64 xorg-x11-fonts-Type1.noarch zlib.x86_64 
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * epel: mirror01.idc.hinet.net
 * extras: centos.01link.hk
 * updates: mirror.lzu.edu.cn
Package bash-4.1.2-48.el6.x86_64 already installed and latest version
Package bc-1.06.95-1.el6.x86_64 already installed and latest version
Package cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64 already installed and latest version
Package db4-4.7.25-22.el6.x86_64 already installed and latest version
Package e2fsprogs-libs-1.41.12-23.el6.x86_64 already installed and latest version
Package ed-1.1-3.3.el6.x86_64 already installed and latest version
Package expat21-2.1.0-1.el6.x86_64 already installed and latest version
Package expat-2.0.1-13.el6_8.x86_64 already installed and latest version
Package fontconfig-2.8.0-5.el6.x86_64 already installed and latest version
Package freetype-2.3.11-17.el6.x86_64 already installed and latest version
Package ghostscript-fonts-5.50-23.2.el6.noarch already installed and latest version
Package glibc-2.12-1.209.el6.x86_64 already installed and latest version
Package gzip-1.3.12-24.el6.x86_64 already installed and latest version
Package keyutils-libs-1.4-5.el6.x86_64 already installed and latest version
Package krb5-libs-1.10.3-65.el6.x86_64 already installed and latest version
Package libaio-0.3.107-10.el6.x86_64 already installed and latest version
Package libdrm-2.4.65-2.el6.x86_64 already installed and latest version
Package libgcc-4.4.7-18.el6.x86_64 already installed and latest version
Package libICE-1.0.6-1.el6.x86_64 already installed and latest version
Package libselinux-2.0.94-7.el6.x86_64 already installed and latest version
Package libsepol-2.0.41-4.el6.x86_64 already installed and latest version
Package libSM-1.2.1-2.el6.x86_64 already installed and latest version
Package libstdc++-4.4.7-18.el6.x86_64 already installed and latest version
Package libX11-1.6.4-3.el6.x86_64 already installed and latest version
Package libXau-1.0.6-4.el6.x86_64 already installed and latest version
Package libXdmcp-1.1.1-3.el6.x86_64 already installed and latest version
Package libXext-1.3.3-1.el6.x86_64 already installed and latest version
Package libXft-2.3.2-1.el6.x86_64 already installed and latest version
Package libXrender-0.9.10-1.el6.x86_64 already installed and latest version
Package libXxf86vm-1.1.3-2.1.el6.x86_64 already installed and latest version
Package mesa-libGL-11.0.7-4.el6.x86_64 already installed and latest version
Package ncurses-5.7-4.20090207.el6.x86_64 already installed and latest version
Package openldap-2.4.40-16.el6.x86_64 already installed and latest version
Package pam-1.1.1-24.el6.x86_64 already installed and latest version
Package python-2.6.6-66.el6_8.x86_64 already installed and latest version
Package redhat-lsb-4.0-7.el6.centos.x86_64 already installed and latest version
Package screen-4.0.3-19.el6.x86_64 already installed and latest version
Package xorg-x11-fonts-Type1-7.2-11.el6.noarch already installed and latest version
Package zlib-1.2.3-29.el6.x86_64 already installed and latest version
Nothing to do
Preparing...                ##################################################
Upgrading wae-dlc to /opt/cariden
wae-dlc                     ##################################################
Done


Migrate WAE Collector files from previous installation? (yes/no) [yes] no
Checking wae-ni dependencies...
installing dependency list:  bash.x86_64 gettext.x86_64 jdk.x86_64 wae-dlc.x86_64 
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * epel: mirror01.idc.hinet.net
 * extras: centos.01link.hk
 * updates: mirror.lzu.edu.cn
Package bash-4.1.2-48.el6.x86_64 already installed and latest version
Package gettext-0.17-18.el6.x86_64 already installed and latest version
Package 2000:jdk-1.7.0_60-fcs.x86_64 already installed and latest version
Package wae-dlc-6.4.5-20170316050814470.x86_64 already installed and latest version
Nothing to do
Preparing...                ##################################################
Upgrading wae-ni to /opt/cariden
wae-ni                      ##################################################
Done

Checking wae-platsvcs dependencies...
installing dependency list: bash.x86_64 jdk.x86_64 libselinux-python.x86_64 lsof.x86_64 python-argparse.noarch python.x86_64 rsync.x86_64 sshpass.x86_64 yum-utils.noarch 
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * epel: mirror01.idc.hinet.net
 * extras: centos.01link.hk
 * updates: mirror.lzu.edu.cn
Package bash-4.1.2-48.el6.x86_64 already installed and latest version
Package 2000:jdk-1.7.0_60-fcs.x86_64 already installed and latest version
Package libselinux-python-2.0.94-7.el6.x86_64 already installed and latest version
Package lsof-4.82-5.el6.x86_64 already installed and latest version
Package python-argparse-1.2.1-2.1.el6.noarch already installed and latest version
Package python-2.6.6-66.el6_8.x86_64 already installed and latest version
Package rsync-3.0.6-12.el6.x86_64 already installed and latest version
Package sshpass-1.06-1.el6.x86_64 already installed and latest version
Package yum-utils-1.1.30-40.el6.noarch already installed and latest version
Nothing to do
Preparing...                ##################################################
Installing wae-platsvcs-6.4.5-20170316153320599 to /opt/cariden
wae-platsvcs                ##################################################
Fix Python Jinja2 path:  /usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg
Done

Checking wae-svcs-client dependencies...
installing dependency list:  bash.x86_64 jdk.x86_64 
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * epel: mirror01.idc.hinet.net
 * extras: centos.01link.hk
 * updates: mirror.lzu.edu.cn
Package bash-4.1.2-48.el6.x86_64 already installed and latest version
Package 2000:jdk-1.7.0_60-fcs.x86_64 already installed and latest version
Nothing to do
Preparing...                ##################################################
Installing wae-svcs-client-6.4.5-20170316050839210 to /opt/cariden
wae-svcs-client             ##################################################
Done

Checking wae-svcs-server dependencies...
installing dependency list:  bash.x86_64 lsof.x86_64 
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * epel: mirror01.idc.hinet.net
 * extras: centos.01link.hk
 * updates: mirror.lzu.edu.cn
Package bash-4.1.2-48.el6.x86_64 already installed and latest version
Package lsof-4.82-5.el6.x86_64 already installed and latest version
Nothing to do
Preparing...                ##################################################
Installing wae-svcs-server-6.4.5-20170316143759128 to /opt/cariden
wae-svcs-server             ##################################################
Done

Checking wae-license-server dependencies...
installing dependency list:  bash.x86_64 
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * epel: mirror01.idc.hinet.net
 * extras: centos.01link.hk
 * updates: mirror.lzu.edu.cn
Package bash-4.1.2-48.el6.x86_64 already installed and latest version
Nothing to do
Preparing...                ##################################################
Installing wae-license-server-6.4.5-20170316154544376 to /opt/cariden
wae-license-server          ##################################################
Done

Checking wae-smart-licensing dependencies...
installing dependency list:  bash.x86_64 jdk.x86_64 python.x86_64 
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * epel: mirror01.idc.hinet.net
 * extras: centos.01link.hk
 * updates: mirror.lzu.edu.cn
Package bash-4.1.2-48.el6.x86_64 already installed and latest version
Package 2000:jdk-1.7.0_60-fcs.x86_64 already installed and latest version
Package python-2.6.6-66.el6_8.x86_64 already installed and latest version
Nothing to do
Preparing...                ##################################################
Installing wae-smart-licensing-6.4.5-20170316050919594 to /opt/cariden
wae-smart-licensing         ##################################################
Done

Loaded plugins: fastestmirror, security
Cleaning repos: base epel extras updates
Cleaning up Everything
Loaded plugins: fastestmirror, security
Determining fastest mirrors
 * base: centos.01link.hk
 * epel: mirror01.idc.hinet.net
 * extras: centos.01link.hk
 * updates: mirror.lzu.edu.cn
repo id          repo name                                                status
base             CentOS-6 - Base                                           6,706
*epel            Extra Packages for Enterprise Linux 6 - x86_64           12,293
extras           CentOS-6 - Extras                                            64
updates          CentOS-6 - Updates                                           32
repolist: 19,095
Starting wae-svcs-mon:                                     [  OK  ]
Starting wae-svcs-db:                                      [  OK  ]
Starting wae-svcs-logagent:                                [  OK  ]
Starting wae-system-server:                                [  OK  ]
Starting wae-web-server:                                   [  OK  ]
Starting wae-svcs-metricsd:                                [  OK  ]
Starting wae-svcs-dashui:                                  [  OK  ]
Starting wae-svcs-metricsbkr:                              [  OK  ]
Starting wae-svcs-ui:                                      [  OK  ]
Starting wae-svcs-log:                                     [  OK  ]

Do you want to activate WAE Network Interface? (yes/no) [no] yes
Starting wae-ni:                                           [  OK  ]

Please do the following:
1.  If this is a stand-alone installation, use license_install to install the license,
    and stop here.
    If this is a server installation, skip this step and read the remaining steps.

2.  Please log out and log in as WAE user to ensure proper environment setting.

3.  Use a web browser to connect to the product's home page, install the license,
    and continue the configuration.
        https://server_IP:8443

4.  Please refer to installation and configuration documentation for more information

Installation finished successfully
anyShare分享到:
你可以留言,或者trackback 从你的网站

留言哦