Saturday, May 03, 2014

Setup Horizon Dashboard-2014.1 on F20 Havana Controller (firefox upgrade up to 29.0-5)

It's hard to know what the right thing is. Once you know, it's hard not to do it.
                                 Harry Fertig (Kingsley). The Confession (1999 film)


      Recent upgrade firefox up to 29.0-5 on Fedora 20 causes to fail login to Dashboard Console for Havana F20 Controller been setup per VNC Console in Dashboard on Two Node Neutron GRE+OVS F20 Cluster
Procedure bellow actually does a backport F21 packages python-django-horizon-2104.1-1 , python-django-openstack-auth-1.1.5-1, python-pbr-0.7.0-2 via manual
install of corresponding SRC.RPMs and invoking rpmbuild utility to produce F20
packages. The hard thing to know is which packages to backport ?

   I had to perform AIO RDO IceHouse setup via packstack on specially created VM to run `rpm -qa | grep django` to obtain required list. Officially RDO Havana
comes with F20 and appears that most recent firefox upgrade breaks Horizon Dashboard supposed to be maintained as supported component for F20.


Download from Net :-

[boris@dfw02 Downloads]$ ls -l *.src.rpm
-rw-r--r--. 1 boris boris 4252988 May  3 08:21 python-django-horizon-2014.1-1.fc21.src.rpm
-rw-r--r--. 1 boris boris   47126 May  3 08:37 python-django-openstack-auth-1.1.5-1.fc21.src.rpm
-rw-r--r--. 1 boris boris   83761 May  3 08:48 python-pbr-0.7.0-2.fc21.src.rpm


Install src.rpms and build

[boris@dfw02 SPECS]$ rpmbuild -bb python-django-openstack-auth.spec
[boris@dfw02 SPECS]$ rpmbuild -bb python-pbr.spec

Then install rpms as preventive step before core package build

[boris@dfw02 noarch]$ sudo yum install python-django-openstack-auth-1.1.5-1.fc20.noarch.rpm
[boris@dfw02 noarch]$ sudo yum install python-pbr-0.7.0-2.fc20.noarch.rpm python3-pbr-0.7.0-2.fc20.noarch.rpm


[boris@dfw02 noarch]$ cd -
/home/boris/rpmbuild/SPECS

Running core build  :-

[boris@dfw02 SPECS]$ rpmbuild -bb python-django-horizon.spec


.  .  .  .  .  .  .  .  .  .

Running Horizon application tests
nosetests horizon --nocapture --nologcapture --exclude-dir=horizon/conf/ --exclude-dir=horizon/test/customization --cover-package=horizon --cover-inclusive --all-modules --exclude-dir=openstack_dashboard/test/integration_tests --verbosity=1
Creating test database for alias 'default'...
./usr/lib/python2.7/site-packages/compressor/cache.py:8: DeprecationWarning: django.utils.simplejson is deprecated; use json instead.
  from django.utils import simplejson

..............................................................................................................SSS
----------------------------------------------------------------------
Ran 114 tests in 20.566s

OK (SKIP=3)
Destroying test database for alias 'default'...
Running openstack_dashboard tests
nosetests openstack_dashboard --nocapture --nologcapture --cover-package=openstack_dashboard --cover-inclusive --all-modules --exclude-dir=openstack_dashboard/test/integration_tests --verbosity=1
Creating test database for alias 'default'...
DeprecationWarning: django.utils.simplejson is deprecated; use json instead.
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SSSSS.S
----------------------------------------------------------------------
Ran 879 tests in 55.043s

OK (SKIP=6)
Destroying test database for alias 'default'...
Tests completed successfully.
+ exit 0
Processing files: python-django-horizon-2014.1-1.fc20.noarch
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.XjDSuz
+ umask 022
+ cd /home/boris/rpmbuild/BUILD
+ cd horizon-2014.1
+ DOCDIR=/home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64/usr/share/doc/python-django-horizon
+ export DOCDIR
+ /usr/bin/mkdir -p /home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64/usr/share/doc/python-django-horizon
+ cp -pr LICENSE /home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64/usr/share/doc/python-django-horizon
+ cp -pr README.rst /home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64/usr/share/doc/python-django-horizon
+ cp -pr openstack-dashboard-httpd-logging.conf /home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64/usr/share/doc/python-django-horizon
+ exit 0
Provides: django-horizon = 2014.1-1.fc20 python-django-horizon = 2014.1-1.fc20
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: python(abi) = 2.7
Processing files: openstack-dashboard-2014.1-1.fc20.noarch
Provides: config(openstack-dashboard) = 2014.1-1.fc20 openstack-dashboard = 2014.1-1.fc20
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /usr/bin/env
Processing files: python-django-horizon-doc-2014.1-1.fc20.noarch
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.4eaeTs
+ umask 022
+ cd /home/boris/rpmbuild/BUILD
+ cd horizon-2014.1
+ DOCDIR=/home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64/usr/share/doc/python-django-horizon-doc
+ export DOCDIR
+ /usr/bin/mkdir -p /home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64/usr/share/doc/python-django-horizon-doc
+ cp -pr html /home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64/usr/share/doc/python-django-horizon-doc
+ exit 0
Provides: python-django-horizon-doc = 2014.1-1.fc20
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: openstack-dashboard-theme-2014.1-1.fc20.noarch
Provides: openstack-dashboard-theme = 2014.1-1.fc20
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64
Wrote: /home/boris/rpmbuild/RPMS/noarch/python-django-horizon-2014.1-1.fc20.noarch.rpm
Wrote: /home/boris/rpmbuild/RPMS/noarch/openstack-dashboard-2014.1-1.fc20.noarch.rpm
Wrote: /home/boris/rpmbuild/RPMS/noarch/python-django-horizon-doc-2014.1-1.fc20.noarch.rpm
Wrote: /home/boris/rpmbuild/RPMS/noarch/openstack-dashboard-theme-2014.1-1.fc20.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.YTx0F2
+ umask 022
+ cd /home/boris/rpmbuild/BUILD
+ cd horizon-2014.1
+ /usr/bin/rm -rf /home/boris/rpmbuild/BUILDROOT/python-django-horizon-2014.1-1.fc20.x86_64
+ exit 0


[boris@dfw02 SPECS]$ cd ../RPMS/noarch


[boris@dfw02 noarch]$ ls -l
total 6620
-rwxrw-r--. 1 boris boris     217 May  3 09:04 inst
-rw-rw-r--. 1 boris boris 3293068 May  3 09:01 openstack-dashboard-2014.1-1.fc20.noarch.rpm
-rw-rw-r--. 1 boris boris  732020 May  3 09:01 openstack-dashboard-theme-2014.1-1.fc20.noarch.rpm
-rw-rw-r--. 1 boris boris  160868 May  3 08:51 python3-pbr-0.7.0-2.fc20.noarch.rpm
-rw-rw-r--. 1 boris boris  823332 May  3 09:01 python-django-horizon-2014.1-1.fc20.noarch.rpm
-rw-rw-r--. 1 boris boris 1548752 May  3 09:01 python-django-horizon-doc-2014.1-1.fc20.noarch.rpm
-rw-rw-r--. 1 boris boris   43944 May  3 08:39 python-django-openstack-auth-1.1.5-1.fc20.noarch.rpm
-rw-rw-r--. 1 boris boris  158204 May  3 08:51 python-pbr-0.7.0-2.fc20.noarch.rpm

[boris@dfw02 noarch]$ cat inst
sudo yum install openstack-dashboard-2014.1-1.fc20.noarch.rpm \
openstack-dashboard-theme-2014.1-1.fc20.noarch.rpm \
python-django-horizon-2014.1-1.fc20.noarch.rpm \
python-django-horizon-doc-2014.1-1.fc20.noarch.rpm




[boris@dfw02 noarch]$ chmod u+x inst

[boris@dfw02 noarch]$ ./inst
[sudo] password for boris:
Loaded plugins: langpacks, priorities, refresh-packagekit
Examining openstack-dashboard-2014.1-1.fc20.noarch.rpm: openstack-dashboard-2014.1-1.fc20.noarch
Marking openstack-dashboard-2014.1-1.fc20.noarch.rpm as an update to openstack-dashboard-2013.2.3-1.fc20.noarch
Examining openstack-dashboard-theme-2014.1-1.fc20.noarch.rpm: openstack-dashboard-theme-2014.1-1.fc20.noarch
Marking openstack-dashboard-theme-2014.1-1.fc20.noarch.rpm to be installed
Examining python-django-horizon-2014.1-1.fc20.noarch.rpm: python-django-horizon-2014.1-1.fc20.noarch
Marking python-django-horizon-2014.1-1.fc20.noarch.rpm as an update to python-django-horizon-2013.2.3-1.fc20.noarch
Examining python-django-horizon-doc-2014.1-1.fc20.noarch.rpm: python-django-horizon-doc-2014.1-1.fc20.noarch
Marking python-django-horizon-doc-2014.1-1.fc20.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package openstack-dashboard.noarch 0:2013.2.3-1.fc20 will be updated
---> Package openstack-dashboard.noarch 0:2014.1-1.fc20 will be an update
---> Package openstack-dashboard-theme.noarch 0:2014.1-1.fc20 will be installed
---> Package python-django-horizon.noarch 0:2013.2.3-1.fc20 will be updated
---> Package python-django-horizon.noarch 0:2014.1-1.fc20 will be an update
---> Package python-django-horizon-doc.noarch 0:2014.1-1.fc20 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================
 Package                   Arch   Version          Repository                                       Size
=========================================================================================================
Installing:
 openstack-dashboard-theme noarch 2014.1-1.fc20    /openstack-dashboard-theme-2014.1-1.fc20.noarch 1.5 M
 python-django-horizon-doc noarch 2014.1-1.fc20    /python-django-horizon-doc-2014.1-1.fc20.noarch  24 M
Updating:
 openstack-dashboard       noarch 2014.1-1.fc20    /openstack-dashboard-2014.1-1.fc20.noarch        14 M
 python-django-horizon     noarch 2014.1-1.fc20    /python-django-horizon-2014.1-1.fc20.noarch     3.3 M

Transaction Summary
=========================================================================================================
Install  2 Packages
Upgrade  2 Packages

Total size: 42 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : python-django-horizon-2014.1-1.fc20.noarch                                            1/6
  Updating   : openstack-dashboard-2014.1-1.fc20.noarch                                              2/6
warning: /etc/openstack-dashboard/local_settings created as /etc/openstack-dashboard/local_settings.rpmnew
  Installing : openstack-dashboard-theme-2014.1-1.fc20.noarch                                        3/6
  Installing : python-django-horizon-doc-2014.1-1.fc20.noarch                                        4/6
  Cleanup    : openstack-dashboard-2013.2.3-1.fc20.noarch                                            5/6
  Cleanup    : python-django-horizon-2013.2.3-1.fc20.noarch                                          6/6
  Verifying  : openstack-dashboard-theme-2014.1-1.fc20.noarch                                        1/6
  Verifying  : openstack-dashboard-2014.1-1.fc20.noarch                                              2/6
  Verifying  : python-django-horizon-doc-2014.1-1.fc20.noarch                                        3/6
  Verifying  : python-django-horizon-2014.1-1.fc20.noarch                                            4/6
  Verifying  : openstack-dashboard-2013.2.3-1.fc20.noarch                                            5/6
  Verifying  : python-django-horizon-2013.2.3-1.fc20.noarch                                          6/6

Installed:
  openstack-dashboard-theme.noarch 0:2014.1-1.fc20    python-django-horizon-doc.noarch 0:2014.1-1.fc20  

Updated:
  openstack-dashboard.noarch 0:2014.1-1.fc20         python-django-horizon.noarch 0:2014.1-1.fc20       

Complete!

[root@dfw02 ~(keystone_admin)]$ rpm -qa | grep django

python-django-horizon-doc-2014.1-1.fc20.noarch
python-django-horizon-2014.1-1.fc20.noarch
python-django-1.6.3-1.fc20.noarch
python-django-nose-1.2-1.fc20.noarch
python-django-bash-completion-1.6.3-1.fc20.noarch
python-django-openstack-auth-1.1.5-1.fc20.noarch
python-django-appconf-0.6-2.fc20.noarch
python-django-compressor-1.3-2.fc20.noarch

System Restart

[root@dfw02 ~(keystone_admin)]$ openstack-status
== Nova services ==
openstack-nova-api:                     active
openstack-nova-cert:                    inactive  (disabled on boot)
openstack-nova-compute:                 inactive  (disabled on boot)
openstack-nova-network:                 inactive  (disabled on boot)
openstack-nova-scheduler:               active
openstack-nova-volume:                  inactive  (disabled on boot)
openstack-nova-conductor:               active
== Glance services ==
openstack-glance-api:                   active
openstack-glance-registry:              active
== Keystone service ==
openstack-keystone:                     active
== Horizon service ==
openstack-dashboard:                    active

== neutron services ==
neutron-server:                         active
neutron-dhcp-agent:                     active
neutron-l3-agent:                       active
neutron-metadata-agent:                 active
neutron-lbaas-agent:                    inactive  (disabled on boot)
neutron-openvswitch-agent:              active
neutron-linuxbridge-agent:              inactive  (disabled on boot)
neutron-ryu-agent:                      inactive  (disabled on boot)
neutron-nec-agent:                      inactive  (disabled on boot)
neutron-mlnx-agent:                     inactive  (disabled on boot)
== Cinder services ==
openstack-cinder-api:                   active
openstack-cinder-scheduler:             active
openstack-cinder-volume:                active
== Ceilometer services ==
openstack-ceilometer-api:               inactive  (disabled on boot)
openstack-ceilometer-central:           inactive  (disabled on boot)
openstack-ceilometer-compute:           active
openstack-ceilometer-collector:         inactive  (disabled on boot)
openstack-ceilometer-alarm-notifier:    inactive  (disabled on boot)
openstack-ceilometer-alarm-evaluator:   inactive  (disabled on boot)
== Support services ==
mysqld:                                 inactive  (disabled on boot)
libvirtd:                               active
openvswitch:                            active
dbus:                                   active
tgtd:                                   active
qpidd:                                  active
memcached:                              active
== Keystone users ==
+----------------------------------+---------+---------+-------+
|                id                |   name  | enabled | email |
+----------------------------------+---------+---------+-------+
| 970ed56ef7bc41d59c54f5ed8a1690dc |  admin  |   True  |       |
| 11cc12f10bdb4b0fa7e555dfc324494e |  andrew |   True  |       |
| 162021e787c54cac906ab3296a386006 |  boris  |   True  |       |
| 1beeaa4b20454048bf23f7d63a065137 |  cinder |   True  |       |
| 006c2728df9146bd82fab04232444abf |  glance |   True  |       |
| 5922aa93016344d5a5d49c0a2dab458c | neutron |   True  |       |
| af2f251586564b46a4f60cdf5ff6cf4f |   nova  |   True  |       |
+----------------------------------+---------+---------+-------+
== Glance images ==
+--------------------------------------+---------------------------------+-------------+------------------+-------------+--------+
| ID                                   | Name                            | Disk Format | Container Format | Size        | Status |
+--------------------------------------+---------------------------------+-------------+------------------+-------------+--------+
| a6e8ef59-e492-46e2-8147-fd8b1a65ed73 | CentOS 6.5 image                | qcow2       | bare             | 344457216   | active |
| dc992799-7831-4933-b6ee-7b81868f808b | CirrOS31                        | qcow2       | bare             | 13147648    | active |
| 03c9ad20-b0a3-4b71-aa08-2728ecb66210 | Fedora 19 x86_64                | qcow2       | bare             | 237371392   | active |
| de93ee44-4085-4111-b022-a7437da8feac | Fedora 20 image                 | qcow2       | bare             | 214106112   | active |
| ce84b795-bfc8-4c64-9981-5e1bdc4a3301 | RHEL7RCImage                    | qcow2       | bare             | 416309760   | active |
| e70591fc-6905-4e57-84b7-4ffa7c001864 | Ubuntu Server 13.10             | qcow2       | bare             | 244514816   | active |
| 5797d04c-3ac2-4aa5-a367-4dadf933e89e | Ubuntu Trusty 04/30/2014        | qcow2       | bare             | 252969472   | active |
| f73fe9fc-7367-41ed-bf68-31286c58233f | Ubuntu Trusty 05/02/2014        | qcow2       | bare             | 252969472   | active |
| 0503c00b-3309-4784-b546-b02c95ca7f1f | Ubuntu Trusty Server            | qcow2       | bare             | 252707328   | active |
| 07071d00-fb85-4b32-a9b4-d515088700d0 | Windows Server 2012 R2 Std Eval | vhd         | bare             | 17182752768 | active |
+--------------------------------------+---------------------------------+-------------+------------------+-------------+--------+
== Nova managed services ==
+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+
| Binary           | Host              | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+
| nova-scheduler   | dfw02.localdomain | internal | enabled | up    | 2014-05-03T13:38:32.000000 | None            |
| nova-conductor   | dfw02.localdomain | internal | enabled | up    | 2014-05-03T13:38:31.000000 | None            |
| nova-compute     | dfw01.localdomain | nova     | enabled | up    | 2014-05-03T13:38:29.000000 | None            |
| nova-consoleauth | dfw02.localdomain | internal | enabled | up    | 2014-05-03T13:38:32.000000 | None            |
+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+
== Nova networks ==
+--------------------------------------+-------+------+
| ID                                   | Label | Cidr |
+--------------------------------------+-------+------+
| 1eea88bb-4952-4aa4-9148-18b61c22d5b7 | int   | None |
| 426bb226-0ab9-440d-ba14-05634a17fb2b | int1  | None |
| 780ce2f3-2e6e-4881-bbac-857813f9a8e0 | ext   | None |
| 971fd74b-66e4-4016-b997-433e124a22ad | int2  | None |
+--------------------------------------+-------+------+
== Nova instance flavors ==
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      |
| 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
| 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
| 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
| 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
== Nova instances ==
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+





     

 Admin's reports regarding Cluster status
    



     Ubuntu Trusty Server VM running