Uses: sdcadmin (https://github.com/icclab/sdcadmin) package
Create a KVM-VM with the following Parameters:
- Owner: admin (the owner of the admin network)
- 4GB Ram, 2 CPU, 2000 LWPs, 40 GB Disk (create a Package if necessary)
- centos-7 Image (20141202, b1df4936-7a5c-11e4-98ed-dfe1fa3a813a)
- Primary NIC to network with internet-access (Public)
- Secondary NIC to admin network
SSH as root into the machine once provisioned. Make sure networking is working (in my setup the default gateway was missing), then run:
yum update -y
yum install -y https://repos.fedorapeople.org/repos/openstack/openstack-kilo/rdo-release-kilo-1.noarch.rpm
yum install -y openstack-packstack
Generate a new answer file:
packstack --gen-answer-file=/root/packstack-answers
Modify the following lines:
CONFIG_GLANCE_INSTALL=n
CONFIG_CINDER_INSTALL=n
CONFIG_NOVA_INSTALL=n
CONFIG_NEUTRON_INSTALL=n
CONFIG_HORIZON_INSTALL=n
CONFIG_SWIFT_INSTALL=n
CONFIG_CEILOMETER_INSTALL=n
CONFIG_HEAT_INSTALL=y
CONFIG_NAGIOS_INSTALL=n
CONFIG_CINDER_VOLUMES_CREATE=n
CONFIG_PROVISION_DEMO=n
Run packstack with the modified file:
packstack --answer-file=/root/packstack-answers
This may take a while, consider having a coffee ;-)
Source the Creds file at /root/keystonerc_admin
and run a couple of keystone and heat commands:
$ keystone user-list
$ heat stack-list
Install sdcadmin package:
pip install sdcadmin
Copy the heat plugin to /usr/lib/heat
mkdir -p /usr/lib/heat
cp PATH/TO/sdc_plugin.py /usr/lib/heat/sdc_plugin.py
Let Heat know where to look for plugins by uncommenting the plugin_dirs
line in /etc/heat/heat.conf
Then restart the heat engine service:
service openstack-heat-engine restart
Run heat resource-type-list
, verify that SDC::Compute::KVM
and SDC::Compute::SmartMachine
show up.
Setup is complete, you now can start stacks with those resources. Example heat-templates are included in this repo.
# Copyright 2015 Zuercher Hochschule fuer Angewandte Wissenschaften
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.