Browse code

Modify RPM lists for RHEL6

Modifications to the RPM list to make devstack work on RHEL6. Makes
various packages only install on Fedora distros; generally letting pip
install the missing dependencies on RHEL.

Additionally the Qpid package name is different in RHEL6 to Fedora.
Also a small re-write of the config file is required to avoid
authenication issues.

Change-Id: If497099d27aa9cd80e1c1cee1aff2ed6b076d309

Ian Wienand authored on 2013/04/11 11:01:09
Showing 8 changed files
... ...
@@ -3,7 +3,7 @@ python-argparse
3 3
 python-devel
4 4
 python-eventlet
5 5
 python-greenlet
6
-python-paste-deploy
6
+python-paste-deploy #dist:f16,f17,f18
7 7
 python-routes
8 8
 python-sqlalchemy
9 9
 python-wsgiref
... ...
@@ -17,8 +17,8 @@ python-migrate
17 17
 python-mox
18 18
 python-netaddr
19 19
 python-nose
20
-python-paste
21
-python-paste-deploy
20
+python-paste        #dist:f16,f17,f18
21
+python-paste-deploy #dist:f16,f17,f18
22 22
 python-pep8
23 23
 python-routes
24 24
 python-sphinx
... ...
@@ -1,11 +1,13 @@
1 1
 python-greenlet
2
-python-lxml
3
-python-paste
4
-python-paste-deploy
5
-python-paste-script
2
+python-lxml         #dist:f16,f17,f18
3
+python-paste        #dist:f16,f17,f18
4
+python-paste-deploy #dist:f16,f17,f18
5
+python-paste-script #dist:f16,f17,f18
6 6
 python-routes
7
-python-setuptools
7
+python-setuptools   #dist:f16,f17,f18
8 8
 python-sqlalchemy
9 9
 python-sqlite2
10 10
 python-webob
11 11
 sqlite
12
+
13
+# Deps installed via pip for RHEL
12 14
\ No newline at end of file
... ...
@@ -28,9 +28,11 @@ python-lockfile
28 28
 python-migrate
29 29
 python-mox
30 30
 python-netaddr
31
-python-paramiko
32
-python-paste
33
-python-paste-deploy
31
+python-paramiko # dist:f16,f17,f18
32
+# ^ on RHEL, brings in python-crypto which conflicts with version from
33
+# pip we need
34
+python-paste        # dist:f16,f17,f18
35
+python-paste-deploy # dist:f16,f17,f18
34 36
 python-qpid
35 37
 python-routes
36 38
 python-sqlalchemy
... ...
@@ -10,14 +10,16 @@ python-greenlet
10 10
 python-iso8601
11 11
 python-kombu
12 12
 python-netaddr
13
-python-paste
14
-python-paste-deploy
13
+#rhel6 gets via pip
14
+python-paste        # dist:f16,f17,f18
15
+python-paste-deploy # dist:f16,f17,f18
15 16
 python-qpid
16 17
 python-routes
17 18
 python-sqlalchemy
18 19
 python-suds
19 20
 rabbitmq-server # NOPRIME
20
-qpid-cpp-server-daemon # NOPRIME
21
+qpid-cpp-server-daemon # NOPRIME dist:f16,f17,f18
22
+qpid-cpp-server        # NOPRIME dist:rhel6
21 23
 sqlite
22 24
 sudo
23 25
 vconfig
... ...
@@ -1,5 +1,5 @@
1
-python-setuptools
2 1
 python-gevent
3 2
 python-gflags
4 3
 python-netifaces
4
+python-setuptools #dist:f16,f17,f18
5 5
 python-sphinx
... ...
@@ -8,8 +8,8 @@ python-eventlet
8 8
 python-greenlet
9 9
 python-netifaces
10 10
 python-nose
11
-python-paste-deploy
12
-python-setuptools
11
+python-paste-deploy # dist:f16,f17,f18
12
+python-setuptools   # dist:f16,f17,f18
13 13
 python-simplejson
14 14
 python-webob
15 15
 pyxattr
... ...
@@ -57,7 +57,11 @@ function cleanup_rpc_backend {
57 57
         fi
58 58
     elif is_service_enabled qpid; then
59 59
         if is_fedora; then
60
-            uninstall_package qpid-cpp-server-daemon
60
+            if [[ $DISTRO =~ (rhel6) ]]; then
61
+                uninstall_package qpid-cpp-server
62
+            else
63
+                uninstall_package qpid-cpp-server-daemon
64
+            fi
61 65
         elif is_ubuntu; then
62 66
             uninstall_package qpidd
63 67
         else
... ...
@@ -87,7 +91,16 @@ function install_rpc_backend() {
87 87
         rm -f "$tfile"
88 88
     elif is_service_enabled qpid; then
89 89
         if is_fedora; then
90
-            install_package qpid-cpp-server-daemon
90
+            if [[ $DISTRO =~ (rhel6) ]]; then
91
+                install_package qpid-cpp-server
92
+
93
+               # RHEL6 leaves "auth=yes" in /etc/qpidd.conf, it needs to
94
+               # be no or you get GSS authentication errors as it
95
+               # attempts to default to this.
96
+                sudo sed -i.bak 's/^auth=yes$/auth=no/' /etc/qpidd.conf
97
+            else
98
+                install_package qpid-cpp-server-daemon
99
+            fi
91 100
         elif is_ubuntu; then
92 101
             install_package qpidd
93 102
             sudo sed -i '/PLAIN/!s/mech_list: /mech_list: PLAIN /' /etc/sasl2/qpidd.conf