Browse code

remove nixon & munin

Jesse Andrews authored on 2011/10/03 02:01:00
Showing 7 changed files
... ...
@@ -98,7 +98,7 @@ if [ ! -f $CACHEDIR/bootstrapped ]; then
98 98
     # trigger the initial debootstrap
99 99
     lxc-create -n $CONTAINER -t natty -f $LXC_CONF
100 100
     chroot $CACHEDIR apt-get update
101
-    chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server|munin-node)"`
101
+    chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server)"`
102 102
     chroot $CACHEDIR pip install `cat files/pips/*`
103 103
     touch $CACHEDIR/bootstrapped
104 104
 fi
... ...
@@ -115,10 +115,8 @@ git_clone $GLANCE_REPO $CACHEDIR/$DEST/glance $GLANCE_BRANCH
115 115
 git_clone $KEYSTONE_REPO $CACHEDIR/$DESTkeystone $KEYSTONE_BRANCH
116 116
 git_clone $NOVNC_REPO $CACHEDIR/$DEST/novnc $NOVNC_BRANCH
117 117
 git_clone $DASH_REPO $CACHEDIR/$DEST/dash $DASH_BRANCH $DASH_TAG
118
-git_clone $NIXON_REPO $CACHEDIR/$DEST/nixon $NIXON_BRANCH
119 118
 git_clone $NOVACLIENT_REPO $CACHEDIR/$DEST/python-novaclient $NOVACLIENT_BRANCH
120 119
 git_clone $OPENSTACKX_REPO $CACHEDIR/$DEST/openstackx $OPENSTACKX_BRANCH
121
-git_clone $MUNIN_REPO $CACHEDIR/$DEST/openstack-munin $MUNIN_BRANCH
122 120
 
123 121
 # Use this version of devstack?
124 122
 if [ "$USE_CURRENT_DEVSTACK" = "1" ]; then
... ...
@@ -23,10 +23,8 @@ if [ ! -d proto ]; then
23 23
     git_clone $KEYSTONE_REPO proto/opt/keystone $KEYSTONE_BRANCH
24 24
     git_clone $NOVNC_REPO proto/opt/novnc $NOVNC_BRANCH
25 25
     git_clone $DASH_REPO proto/opt/dash $DASH_BRANCH $DASH_TAG
26
-    git_clone $NIXON_REPO proto/opt/nixon $NIXON_BRANCH
27 26
     git_clone $NOVACLIENT_REPO proto/opt/python-novaclient $NOVACLIENT_BRANCH
28 27
     git_clone $OPENSTACKX_REPO proto/opt/openstackx $OPENSTACKX_BRANCH
29
-    git_clone $MUNIN_REPO proto/opt/openstack-munin $MUNIN_BRANCH
30 28
     chroot proto mkdir -p /opt/files
31 29
     wget -c http://images.ansolabs.com/tty.tgz -O proto/opt/files/tty.tgz
32 30
 fi
... ...
@@ -81,10 +81,8 @@ git_clone $GLANCE_REPO /opt/stack/glance $GLANCE_BRANCH
81 81
 git_clone $KEYSTONE_REPO /opt/stack/keystone $KEYSTONE_BRANCH
82 82
 git_clone $NOVNC_REPO /opt/stack/novnc $NOVNC_BRANCH
83 83
 git_clone $DASH_REPO /opt/stack/dash $DASH_BRANCH
84
-git_clone $NIXON_REPO /opt/stack/nixon $NIXON_BRANCH
85 84
 git_clone $NOVACLIENT_REPO /opt/stack/python-novaclient $NOVACLIENT_BRANCH
86 85
 git_clone $OPENSTACKX_REPO /opt/stack/openstackx $OPENSTACKX_BRANCH
87
-git_clone $MUNIN_REPO /opt/stack/openstack-munin $MUNIN_BRANCH
88 86
 
89 87
 # build a new image
90 88
 BASE=build.$$
... ...
@@ -11,6 +11,5 @@ lsof # useful when debugging
11 11
 openssh-server
12 12
 vim-nox
13 13
 locate # useful when debugging
14
-munin
15 14
 python-virtualenv
16 15
 python-unittest2
... ...
@@ -17,10 +17,9 @@ DATABASES = {
17 17
 
18 18
 CACHE_BACKEND = 'dummy://'
19 19
 
20
-# Add nixon + other apps to dash installation.
20
+# Add apps to dash installation.
21 21
 INSTALLED_APPS = (
22 22
     'dashboard',
23
-    'dashboard.nixon',
24 23
     'django.contrib.contenttypes',
25 24
     'django.contrib.sessions',
26 25
     'django.contrib.messages',
... ...
@@ -61,7 +60,7 @@ QUANTUM_PORT = '9696'
61 61
 QUANTUM_TENANT = '1234'
62 62
 QUANTUM_CLIENT_VERSION='0.1'
63 63
 
64
-# We use nixon to embed instead of external monitoring links
64
+# No monitoring links currently
65 65
 EXTERNAL_MONITORING = []
66 66
 
67 67
 # Uncomment the following segment to silence most logging
... ...
@@ -97,16 +97,14 @@ sudo chown `whoami` $DEST
97 97
 # Set the destination directories for openstack projects
98 98
 NOVA_DIR=$DEST/nova
99 99
 DASH_DIR=$DEST/dash
100
-NIXON_DIR=$DEST/dash/openstack-dashboard/dashboard/nixon
101 100
 GLANCE_DIR=$DEST/glance
102 101
 KEYSTONE_DIR=$DEST/keystone
103 102
 NOVACLIENT_DIR=$DEST/python-novaclient
104 103
 OPENSTACKX_DIR=$DEST/openstackx
105 104
 NOVNC_DIR=$DEST/noVNC
106
-MUNIN_DIR=$DEST/openstack-munin
107 105
 
108 106
 # Specify which services to launch.  These generally correspond to screen tabs
109
-ENABLED_SERVICES=${ENABLED_SERVICES:-g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash,mysql,rabbit,munin}
107
+ENABLED_SERVICES=${ENABLED_SERVICES:-g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash,mysql,rabbit}
110 108
 
111 109
 # Use the first IP unless an explicit is set by ``HOST_IP`` environment variable
112 110
 if [ ! -n "$HOST_IP" ]; then
... ...
@@ -193,15 +191,11 @@ git_clone $KEYSTONE_REPO $KEYSTONE_DIR $KEYSTONE_BRANCH
193 193
 git_clone $NOVNC_REPO $NOVNC_DIR $NOVNC_BRANCH
194 194
 # django powered web control panel for openstack
195 195
 git_clone $DASH_REPO $DASH_DIR $DASH_BRANCH $DASH_TAG
196
-# add nixon, will use this to show munin graphs in dashboard
197
-git_clone $NIXON_REPO $NIXON_DIR $NIXON_BRANCH
198 196
 # python client library to nova that dashboard (and others) use
199 197
 git_clone $NOVACLIENT_REPO $NOVACLIENT_DIR $NOVACLIENT_BRANCH
200 198
 # openstackx is a collection of extensions to openstack.compute & nova
201 199
 # that is *deprecated*.  The code is being moved into python-novaclient & nova.
202 200
 git_clone $OPENSTACKX_REPO $OPENSTACKX_DIR $OPENSTACKX_BRANCH
203
-# openstack-munin is a collection of munin plugins for monitoring the stack
204
-git_clone $MUNIN_REPO $MUNIN_DIR $MUNIN_BRANCH
205 201
 
206 202
 # Initialization
207 203
 # ==============
... ...
@@ -262,7 +256,6 @@ if [[ "$ENABLED_SERVICES" =~ "dash" ]]; then
262 262
 
263 263
     cd $DASH_DIR/openstack-dashboard
264 264
 
265
-    # Includes settings for Nixon, to expose munin charts.
266 265
     sudo cp $FILES/dash_settings.py local/local_settings.py
267 266
 
268 267
     dashboard/manage.py syncdb
... ...
@@ -277,33 +270,6 @@ if [[ "$ENABLED_SERVICES" =~ "dash" ]]; then
277 277
 fi
278 278
 
279 279
 
280
-# Munin
281
-# -----
282
-
283
-# Munin is accessable via apache and was configured in the dashboard section.
284
-
285
-if [[ "$ENABLED_SERVICES" =~ "munin" ]]; then
286
-    # allow connections from other hosts
287
-    sudo sed -i -e 's/Allow from localhost/Allow from all/g' /etc/munin/apache.conf
288
-
289
-    cat >/tmp/nova <<EOF
290
-[keystone_*]
291
-user `whoami`
292
-
293
-[nova_*]
294
-user `whoami`
295
-EOF
296
-    sudo mv /tmp/nova /etc/munin/plugin-conf.d/nova
297
-    # configure Munin for Nova plugins
298
-    PLUGINS="keystone_stats nova_floating_ips nova_instance_launched nova_instance_ nova_instance_timing nova_services"
299
-    for i in $PLUGINS; do
300
-      sudo cp -p $MUNIN_DIR/$i /usr/share/munin/plugins
301
-      sudo ln -sf /usr/share/munin/plugins/$i /etc/munin/plugins
302
-    done
303
-    sudo mv /etc/munin/plugins/nova_instance_ /etc/munin/plugins/nova_instance_launched
304
-    sudo restart munin-node
305
-fi
306
-
307 280
 # Glance
308 281
 # ------
309 282
 
... ...
@@ -18,10 +18,6 @@ NOVNC_BRANCH=master
18 18
 DASH_REPO=https://github.com/cloudbuilders/openstack-dashboard.git
19 19
 DASH_BRANCH=master
20 20
 
21
-# add nixon, will use this to show munin graphs in dashboard
22
-NIXON_REPO=https://github.com/cloudbuilders/nixon.git
23
-NIXON_BRANCH=diablo
24
-
25 21
 # python client library to nova that dashboard (and others) use
26 22
 NOVACLIENT_REPO=https://github.com/cloudbuilders/python-novaclient.git
27 23
 NOVACLIENT_BRANCH=master
... ...
@@ -31,10 +27,6 @@ NOVACLIENT_BRANCH=master
31 31
 OPENSTACKX_REPO=https://github.com/cloudbuilders/openstackx.git
32 32
 OPENSTACKX_BRANCH=diablo
33 33
 
34
-# openstack-munin is a collection of munin plugins for monitoring the stack
35
-MUNIN_REPO=https://github.com/cloudbuilders/openstack-munin.git
36
-MUNIN_BRANCH=master
37
-
38 34
 # allow local overrides of env variables
39 35
 if [ -f ./localrc ]; then
40 36
     source ./localrc