//
you're reading...
OpenStack

OpenStack Revisit – Icehouse – Finishing Up

Now we add in the dashboard, network info, and logging:

From the controller do the following…

Setup Networks

source admin-openrc.sh

neutron net-create ext-net --shared --router:external=True

neutron subnet-create ext-net --name ext-subnet \
  --allocation-pool start=10.0.5.100,end=10.0.5.130 \
  --disable-dhcp --gateway 10.0.5.2 10.0.5.0/24

source xactly-openrc.sh

neutron net-create xactly-net

neutron subnet-create xactly-net --name xactly-subnet \
  --gateway 192.168.1.1 192.168.1.0/24

neutron router-create xactly-router

neutron router-interface-add xactly-router xactly-subnet

neutron router-gateway-set xactly-router ext-net

Setup Dashboard:

vi /etc/openstack-dashboard/local_settings

ALLOWED_HOSTS = ['*']

CACHES = {
    'default': {
        'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION' : '127.0.0.1:11211',
    }
}

DATABASES = {
    'default': {
        # Database configuration here
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'dash',
        'USER': 'dash',
        'PASSWORD': 'dash',
        'HOST': 'localhost',
        'default-character-set': 'utf8'
    }
}

SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"


/usr/share/openstack-dashboard/manage.py syncdb

service httpd start
service memcached start
chkconfig httpd on
chkconfig memcached on

Setup logging:

groupadd openstack
usermod -G openstack keystone
usermod -G openstack glance
usermod -G openstack nova
usermod -G openstack neutron
usermod -G openstack cinder

mkdir /var/log/openstack
chgrp openstack /var/log/openstack
chmod 775 /var/log/openstack

openstack-config --set /etc/keystone/keystone.conf DEFAULT log_file /var/log/openstack/keystone.log
openstack-config --set /etc/glance/glance-api.conf DEFAULT log_file /var/log/openstack/glance-api.log
openstack-config --set /etc/glance/glance-registry.conf DEFAULT log_file /var/log/openstack/glance-registry.log
openstack-config --set /etc/nova/nova.conf DEFAULT log_file /var/log/openstack/nova.log
openstack-config --set /etc/neutron/neutron.conf DEFAULT log_file /var/log/openstack/neutron.log

vi /etc/rc.d/init.d/openstack-keystone
startuplog="/var/log/openstack/$prog-startup.log"

vi /usr/share/keystone/keystone-dist.conf
log_file=/var/log/openstack/keystone.log

vi /etc/rc.d/init.d/openstack-nova-*
logfile="/var/log/openstack/nova-$suffix.log"

vi /etc/init.d/neutron-*
logfile="/var/log/openstack/$prog-$plugin.log"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s