Hello community,
here is the log from the commit of package openstack-quickstart for
openSUSE:Factory checked in at 2014-04-14 20:38:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openstack-quickstart (Old)
and /work/SRC/openSUSE:Factory/.openstack-quickstart.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openstack-quickstart"
Changes:
--------
---
/work/SRC/openSUSE:Factory/openstack-quickstart/openstack-quickstart.changes
2014-03-09 18:29:23.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.openstack-quickstart.new/openstack-quickstart.changes
2014-04-14 20:38:17.000000000 +0200
@@ -2 +2 @@
-Sat Feb 22 00:39:47 UTC 2014 - [email protected]
+Thu Mar 20 01:42:55 UTC 2014 - [email protected]
@@ -4,2 +4,3 @@
-- Update to latest git (72b2b3d):
- + remove run_ssh on havana again
+- Update to version 2013.2+git.1395248710.2704f7d:
+ + Fix start ordering issue
+ + Configure tempest more completely
@@ -8 +9 @@
-Fri Feb 21 00:45:01 UTC 2014 - [email protected]
+Sat Feb 22 01:35:37 UTC 2014 - [email protected]
@@ -10,3 +11,2 @@
-- Update to latest git (76c0259):
- + cleanup
- + Fix Horizon setup
+- Update to version 2013.2+git.1392994530.a5e30ad:
+ + Enable Neutron MeteringPlugin
@@ -15 +15 @@
-Thu Feb 13 09:13:38 UTC 2014 - [email protected]
+Fri Feb 21 00:45:29 UTC 2014 - [email protected]
@@ -17,2 +17,2 @@
-- Update to latest git (71e5ddf):
- + Enable use_namespaces consistently for dhcp and l3 agents
+- Update to version 2013.2+git.1392910340.edcd268:
+ + Fix Horizon setup
@@ -21 +21 @@
-Sun Feb 2 01:02:05 UTC 2014 - [email protected]
+Wed Feb 19 00:49:05 UTC 2014 - [email protected]
@@ -23,2 +23,4 @@
-- Update to latest git (cc1cb63):
- + Install more neutron agents when running with tempest
+- Update to version 2013.2+git.1392721072.72a499a:
+ + Cinder now needs dm_snapshot to be loaded
+ + Make Neutron discovery work in exception mode
+ + Cleanups
@@ -27 +29 @@
-Wed Jan 29 09:12:33 UTC 2014 - [email protected]
+Fri Feb 14 01:31:26 UTC 2014 - [email protected]
@@ -29 +31,2 @@
-- Add refresh_patches source service
+- Update to version 2013.2+git.1392282653.523cc53:
+ + Enable use_namespaces consistently for dhcp and l3 agents
@@ -32 +35 @@
-Mon Jan 27 07:31:54 UTC 2014 - [email protected]
+Sat Jan 25 11:16:39 UTC 2014 - [email protected]
@@ -34,2 +37,3 @@
-- Update to latest git (5443a1f):
- + fixup! Extend range for fixed network
+- Update to version 2013.2+git.1390648558.984eeb5:
+ + Install more neutron agents when running with tempest
+ + Fix typo
@@ -38 +42 @@
-Fri Jan 24 13:01:49 UTC 2014 - [email protected]
+Fri Jan 24 13:20:10 UTC 2014 - [email protected]
@@ -40,3 +44,2 @@
-- Update to latest git (27ea6a2):
- + configure metadata agent
- + Extend range for fixed network
+- Update to version 2013.2+git.1390430134.14732ac:
+ + configure metadata agentExtend range for fixed network
@@ -45 +48 @@
-Wed Jan 22 00:38:54 UTC 2014 - [email protected]
+Tue Jan 21 01:36:46 UTC 2014 - [email protected]
@@ -47,2 +50,2 @@
-- Update to latest git (ebdcec1):
- + Install all neutron plugins for tempest run
+- Update to version 2013.2+git.1390214669.7b65bb0:
+ + Install all neutron plugins for tempest runFix endpoint configuration in
seednode
@@ -51 +54 @@
-Thu Jan 16 01:11:56 UTC 2014 - [email protected]
+Thu Jan 16 00:53:19 UTC 2014 - [email protected]
@@ -53,3 +56,2 @@
-- Update to latest git (9a72985):
- + Remove extranous database migration runs
- + Set my_ip addresses properly
+- Update to version 2013.2+git.1389788878.efbbef8:
+ + Remove extranous database migration runsSet my_ip addresses properly
@@ -58 +60 @@
-Tue Jan 14 12:31:36 UTC 2014 - [email protected]
+Tue Jan 14 12:31:02 UTC 2014 - [email protected]
@@ -60 +62 @@
-- Update to latest git (cbcfc02):
+- Update to version 2013.2+git.1389702574.476cb5a:
@@ -64 +66 @@
-Tue Jan 14 10:38:06 UTC 2014 - [email protected]
+Tue Jan 14 10:37:28 UTC 2014 - [email protected]
@@ -66 +68 @@
-- Update to latest git (6b7a6d9):
+- Update to version 2013.2+git.1389695705.4f42955:
@@ -71 +73 @@
-Tue Jan 14 00:39:33 UTC 2014 - [email protected]
+Tue Jan 14 00:43:43 UTC 2014 - [email protected]
@@ -73,2 +75,2 @@
-- Update to latest git (a9dc3a1):
- + Switch to Neutron handled security groups
+- Update to version 2013.2+git.1389636724.cf07be4:
+ + Fix group names / enable neutron security groups
@@ -75,0 +78,8 @@
+ + Switch to Neutron handled security groups
+ + Setup ML2 Neutron plugin for demo setup
+
+-------------------------------------------------------------------
+Fri Jan 10 10:37:06 UTC 2014 - [email protected]
+
+- Update to version 2013.2+git.1389348819.a572e1f:
+ + Setup Keystone catalog in SQL
@@ -78 +87,0 @@
- + Setup ML2 Neutron plugin for demo setup
@@ -81 +90 @@
-Thu Jan 2 18:55:22 UTC 2014 - [email protected]
+Thu Jan 2 18:49:06 UTC 2014 - [email protected]
@@ -83 +92 @@
-- Update to latest git (be6901c):
+- Update to version 2013.2+git.1388415104.fbfaa0d:
@@ -87 +96 @@
-Thu Dec 12 09:57:43 UTC 2013 - [email protected]
+Thu Dec 12 09:52:35 UTC 2013 - [email protected]
@@ -89 +98,3 @@
-- update to latest git state
+- Update to version 2013.2+git.1386841867.f073be4:
+ + Don't try to run journalctl on SLE11
+ + set virt_type in libvirt group
@@ -92 +103 @@
-Tue Dec 10 01:36:18 UTC 2013 - [email protected]
+Tue Dec 10 01:32:41 UTC 2013 - [email protected]
@@ -94 +105 @@
-- Update to latest git (184a1d6):
+- Update to latest git (3874301):
@@ -98 +109 @@
-Thu Nov 21 01:11:38 UTC 2013 - [email protected]
+Thu Nov 21 00:46:36 UTC 2013 - [email protected]
@@ -100 +111 @@
-- Update to latest git (e613180):
+- Update to latest git (045ef1b):
@@ -101,0 +113,54 @@
+
+-------------------------------------------------------------------
+Tue Oct 29 10:11:28 UTC 2013 - [email protected]
+
+- Update to version 2013.2+git.1382872631.ace88d7:
+ + Create /srv/tftpboot and assign it to novaAlso create pxelinux.cfg
+ + Start dnsmasq manually and use it for tftp as well
+ + delete unneeded tftp stuff
+ + Fix dnsmasq command line
+ + Add missing destination dir
+ + Start baremetal deploy helper
+ + set libvirt_uri as explained in LP Bug 1226310
+ + Keystone migrates db on startup, extra call is unnecessary
+- Update devstack to version master:
+ + Enable keystone authentication in Ironicadd lib/stackforge to let us test
wsme / pecan from git
+ + Start nova-compute with child cell conf
+ + Handle the CM service availability in tempest
+ + create an UNDO_REQUIREMENTS variable
+ + Removed dependency from dotcloud repos for the Nova docker driver
+ + put the stackforge library installation behind a conditional
+
+-------------------------------------------------------------------
+Mon Oct 28 00:45:10 UTC 2013 - [email protected]
+
+- Update to latest git (ace88d7):
+ + set libvirt_uri as explained in LP Bug 1226310
+ + Keystone migrates db on startup, extra call is unnecessary
+
+-------------------------------------------------------------------
+Fri Oct 18 23:31:47 UTC 2013 - [email protected]
+
+- Update to latest git (4a12385):
+ + Start baremetal deploy helper
+
+-------------------------------------------------------------------
+Mon Oct 14 12:08:20 UTC 2013 - [email protected]
+
+- Update to latest git (3a41525):
+ + Add Quickstart script to setup a TripleO Seed Node
+ + tripleo-setup-seednode: Start the missing nova services
+ + Upload deploy kernel and ramdisk to glance
+ + set neutron data in nova.conf
+ + Set securitygroup driver + host name to seed
+ + Use x86_64 consistently
+ + lower scheduler hints for successful baremetal scheduling
+ + set correct power_host options
+ + set tftp root properly
+ + setup undercloud image in glance
+ + Create /srv/tftpboot and assign it to nova
+ + Also create pxelinux.cfg
+ + Start dnsmasq manually and use it for tftp as well
+ + delete unneeded tftp stuff
+ + Fix dnsmasq command line
+ + Add missing destination dir
Old:
----
openstack-quickstart-2013.2+git.1392990246.72b2b3d.tar.gz
New:
----
_servicedata
openstack-quickstart-2013.2+git.1395248710.2704f7d.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ openstack-quickstart.spec ++++++
--- /var/tmp/diff_new_pack.ztW58e/_old 2014-04-14 20:38:18.000000000 +0200
+++ /var/tmp/diff_new_pack.ztW58e/_new 2014-04-14 20:38:18.000000000 +0200
@@ -17,7 +17,7 @@
Name: openstack-quickstart
-Version: 2013.2+git.1392990246.72b2b3d
+Version: 2013.2+git.1395248710.2704f7d
Release: 0
Summary: OpenStack Quickstart
License: MIT
++++++ _service ++++++
--- /var/tmp/diff_new_pack.ztW58e/_old 2014-04-14 20:38:18.000000000 +0200
+++ /var/tmp/diff_new_pack.ztW58e/_new 2014-04-14 20:38:18.000000000 +0200
@@ -1,18 +1,17 @@
<services>
- <service name="tar_scm" mode="disabled">
+ <service mode="disabled" name="tar_scm">
<param
name="url">git://github.com/SUSE-Cloud/openstack-quickstart.git</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="versionformat">@PARENT_TAG@+git.%ct.%h</param>
- <param name="revision">stable/havana</param>
+ <param name="revision">master</param>
+ <param name="changesgenerate">enable</param>
</service>
-
- <service name="recompress" mode="disabled">
+ <service mode="disabled" name="recompress">
<param name="file">openstack-quickstart-*git*.tar</param>
<param name="compression">gz</param>
</service>
-
- <service name="set_version" mode="disabled">
+ <service mode="disabled" name="set_version">
<param name="basename">openstack-quickstart</param>
</service>
++++++ _servicedata ++++++
<servicedata>
<service name="tar_scm">
<param
name="url">git://github.com/SUSE-Cloud/openstack-quickstart.git</param>
<param name="changesrevision">2704f7d139</param>
</service>
<service name="tar_scm">
<param name="url">git://github.com/openstack-dev/devstack.git</param>
<param name="changesrevision">39807f4616</param>
</service>
</servicedata>++++++ openstack-quickstart-2013.2+git.1392990246.72b2b3d.tar.gz
-> openstack-quickstart-2013.2+git.1395248710.2704f7d.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openstack-quickstart-2013.2+git.1392990246.72b2b3d/scripts/openstack-quickstart-demosetup
new/openstack-quickstart-2013.2+git.1395248710.2704f7d/scripts/openstack-quickstart-demosetup
---
old/openstack-quickstart-2013.2+git.1392990246.72b2b3d/scripts/openstack-quickstart-demosetup
2014-02-22 01:39:45.000000000 +0100
+++
new/openstack-quickstart-2013.2+git.1395248710.2704f7d/scripts/openstack-quickstart-demosetup
2014-03-20 02:42:40.000000000 +0100
@@ -9,6 +9,7 @@
ADMIN_PASSWORD=$pw
SERVICE_HOST=$IP
+
echo "Setting up OpenStack demo controller..."
function install_packages () {
@@ -45,7 +46,9 @@
fi
$i status
if [ $? -eq 3 ]; then
- journalctl -xn || :
+ if [ -n "$(type -p systemctl)" ]; then
+ journalctl -xn || :
+ fi
echo "Service $1 is not running"
exit 1
fi
@@ -102,27 +105,6 @@
chmod 755 /etc/sysconfig/network/scripts/openstack-quickstart-neutron-$1
}
-# iproute2 on 12.3 is broken, bnc#816215
-function update_iproute2_on_opensuse_12_3 () {
- if grep -q 'openSUSE 12.3' /etc/SuSE-release; then
- OUT=`zypper lr -u | grep 'http://download.opensuse.org/update/12.3/'`
- echo $OUT | grep -q 'http://download.opensuse.org/update/12.3/'
- if [[ $? -ne 0 ]] ; then
- echo "Adding update repository"
- zypper ar http://download.opensuse.org/update/12.3/ update12.3
- # TODO: add netfilter repo until update iproute2 will not
appear in update repo
- zypper ar
http://download.opensuse.org/repositories/security:/netfilter/openSUSE_12.3/
netfilter12.3
- fi
- echo "Updating iproute2 package"
- zypper --gpg-auto-import-keys ref
- zypper --gpg-auto-import-keys install -f -y iproute2
- fi
-}
-
-
-
-update_iproute2_on_opensuse_12_3
-
grep -q bash.openstackrc /etc/bash.bashrc.local ||\
echo "export HOST_IP=$IP
. /etc/bash.openstackrc
@@ -216,16 +198,11 @@
fi
grep -q -e vmx -e svm /proc/cpuinfo || MODE=lxc
-
# use lxc or qemu, if kvm is unavailable
if rpm -q openstack-nova-compute >/dev/null ; then
if [ "$MODE" = lxc ] ; then
- crudini --set /etc/nova/nova.conf DEFAULT libvirt_type lxc
+ crudini --set /etc/nova/nova.conf libvirt virt_type lxc
install_packages lxc
- # not sure what this is good for, cgroups is and should be mounted
under /sys/fs/cgroup
- #echo mount -t cgroup none /cgroup >> /etc/init.d/boot.local
- #mkdir /cgroup
- #mount -t cgroup none /cgroup
else
modprobe kvm-intel ; modprobe kvm-amd
sed -i -e 's/\(MODULES_LOADED_ON_BOOT="\)/\1kvm-intel kvm-amd\ /'
/etc/sysconfig/kernel
@@ -234,18 +211,19 @@
sed -i -e 's/\(MODULES_LOADED_ON_BOOT="\)/\1nbd\ /' /etc/sysconfig/kernel
fi
-# disable firewall before playing with ip_forward stuff
+# modprobe for snapshot support
+modprobe dm_snapshot || :
+# disable firewall before playing with ip_forward stuff
+rm -f /usr/lib/python*/site-packages/nova-iptables.lock.lock # workaround bug
rm -f /var/lock/SuSEfirewall2.booting # workaround openSUSE bug
if test -e /sbin/SuSEfirewall2; then
SuSEfirewall2 stop # interferes with openstack's network/firewall
stop_and_disable_service SuSEfirewall2_setup
stop_and_disable_service SuSEfirewall2_init
fi
-
# activate ip-forwarding
[ -e /etc/sysconfig/sysctl ] && sed -i -e
's;IP_FORWARD="no";IP_FORWARD="yes";' /etc/sysconfig/sysctl
-
if grep -q 'net.ipv4.ip_forward' /etc/sysctl.conf; then
sed -i -e 's;net.ipv4.ip_forward.*;net.ipv4.ip_forward = 1;'
/etc/sysctl.conf
else
@@ -449,7 +427,7 @@
crudini --set /etc/neutron/metadata_agent.ini DEFAULT
metadata_proxy_shared_secret $metadata_secret
if [ "x$with_tempest" = "xyes" ]; then
- crudini --set /etc/neutron/neutron.conf DEFAULT service_plugins
"neutron.services.loadbalancer.plugin.LoadBalancerPlugin,
neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,
neutron.services.vpn.plugin.VPNDriverPlugin"
+ crudini --set /etc/neutron/neutron.conf DEFAULT service_plugins
"neutron.services.loadbalancer.plugin.LoadBalancerPlugin,
neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,
neutron.services.vpn.plugin.VPNDriverPlugin,
neutron.services.metering.metering_plugin.MeteringPlugin"
fi
start_and_enable_service rabbitmq-server
@@ -475,10 +453,7 @@
echo "Can't reach neutron server. Exiting !!!" >&2
exit 1
fi
- neutron net-list
- if [[ $? -eq 0 ]] ; then
- break
- fi
+ neutron net-list && break
cnt=$(($cnt+1))
sleep 2
done
@@ -551,9 +526,11 @@
insserv boot.lvm
/etc/init.d/boot.lvm start
fi
- start_and_enable_service openstack-cinder-volume
- start_and_enable_service openstack-cinder-scheduler
start_and_enable_service openstack-cinder-api
+ sleep 1
+ for s in scheduler volume ; do
+ start_and_enable_service openstack-cinder-$s
+ done
fi
setcreds admin $pw
@@ -569,24 +546,26 @@
#-----------------------------------------
if [ "x$with_tempest" = "xyes" -a -e /etc/tempest/tempest.conf ]; then
- c=/etc/tempest/tempest.conf
- crudini --set $c identity uri $KEYSTONE_PUBLIC_ENDPOINT
- crudini --set $c identity uri_v3 $KEYSTONE_PUBLIC_ENDPOINT_V3
- crudini --set $c identity admin_username admin
- crudini --set $c identity admin_password $pw
- crudini --set $c identity alt_password $pw
- crudini --set $c identity password $pw
- #crudini --set $c compute allow_tenant_isolation true
- crudini --set $c compute allow_tenant_isolation false
- crudini --set $c compute fixed_network_name fixed
- crudini --set $c compute network_for_ssh ext
- # broken in tempest testsuite on havana :/
- crudini --set $c compute run_ssh false
- crudini --set $c compute-admin password $pw
- crudini --set $c network public_network_id $ext_network_id
- crudini --set $c network public_router_id $(get_router_id)
- crudini --set $c service_available neutron True
- crudini --set $c service_available swift False
- crudini --set $c stress max_instances 2
- crudini --set $c service_available horizon $with_horizon
+ crudini --set /etc/tempest/tempest.conf identity uri
$KEYSTONE_PUBLIC_ENDPOINT
+ crudini --set /etc/tempest/tempest.conf identity uri_v3
$KEYSTONE_PUBLIC_ENDPOINT_V3
+ crudini --set /etc/tempest/tempest.conf identity username demo
+ crudini --set /etc/tempest/tempest.conf identity tenant_name demo
+ crudini --set /etc/tempest/tempest.conf identity alt_password $pw
+ crudini --set /etc/tempest/tempest.conf identity password $pw
+ crudini --set /etc/tempest/tempest.conf identity admin_username admin
+ crudini --set /etc/tempest/tempest.conf identity admin_tenant_name admin
+ crudini --set /etc/tempest/tempest.conf identity admin_password $pw
+ crudini --set /etc/tempest/tempest.conf compute allow_tenant_isolation
false
+ crudini --set /etc/tempest/tempest.conf compute fixed_network_name fixed
+ crudini --set /etc/tempest/tempest.conf compute network_for_ssh ext
+ crudini --set /etc/tempest/tempest.conf compute-admin username admin
+ crudini --set /etc/tempest/tempest.conf compute-admin tenant_name admin
+ crudini --set /etc/tempest/tempest.conf compute-admin password $pw
+ crudini --set /etc/tempest/tempest.conf network public_network_id
$ext_network_id
+ crudini --set /etc/tempest/tempest.conf network public_router_id
$(get_router_id)
+ crudini --set /etc/tempest/tempest.conf service_available neutron True
+ crudini --set /etc/tempest/tempest.conf service_available swift False
+ crudini --set /etc/tempest/tempest.conf stress max_instances 1
+ crudini --set /etc/tempest/tempest.conf service_available horizon
$with_horizon
+ crudini --set /etc/tempest/tempest.conf volume-feature-enabled backup false
fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openstack-quickstart-2013.2+git.1392990246.72b2b3d/scripts/tripleo-setup-seednode
new/openstack-quickstart-2013.2+git.1395248710.2704f7d/scripts/tripleo-setup-seednode
---
old/openstack-quickstart-2013.2+git.1392990246.72b2b3d/scripts/tripleo-setup-seednode
1970-01-01 01:00:00.000000000 +0100
+++
new/openstack-quickstart-2013.2+git.1395248710.2704f7d/scripts/tripleo-setup-seednode
2014-03-20 02:42:40.000000000 +0100
@@ -0,0 +1,363 @@
+#!/bin/bash
+
+set -eux
+cd /
+
+# Setup the insecure defaults
+
+REGION="regionOne"
+PASSWORD="unset"
+SERVICE_TOKEN="unset"
+ENDPOINT="192.0.2.1"
+ADMIN_EMAIL="[email protected]"
+DEBUG=""
+
+# Functions
+
+register-endpoint()
+{
+ DESCRIPTION=$1
+ NAME=$2
+ TYPE=$3
+ PUBLIC_URL=$4
+
+ if [ "ec2" = "$TYPE" ]; then
+ SUFFIX="/services/Cloud"
+ ADMIN_SUFFIX="/services/Admin"
+ elif [ "image" = "$TYPE" ]; then
+ SUFFIX="/v1"
+ ADMIN_SUFFIX="$SUFFIX"
+ elif [ "baremetal" = "$TYPE" ]; then
+ SUFFIX="/"
+ ADMIN_SUFFIX="$SUFFIX"
+ elif [ "orchestration" = "$TYPE" ]; then
+ SUFFIX="/v1/%(tenant_id)s"
+ ADMIN_SUFFIX="$SUFFIX"
+ elif [ "identity" = "$TYPE" ]; then
+ SUFFIX="/v2.0"
+ ADMIN_SUFFIX="$SUFFIX"
+ elif [ "network" = "$TYPE" ]; then
+ SUFFIX="/"
+ ADMIN_SUFFIX="$SUFFIX"
+ elif [ "compute" = "$TYPE" ]; then
+ SUFFIX="/v2/\$(tenant_id)s"
+ ADMIN_SUFFIX="$SUFFIX"
+ else
+ echo "Unknown service type" >&2
+ exit 1
+ fi
+
+ INTERNAL_URL="$PUBLIC_URL"
+ ADMIN_URL="$INTERNAL_URL"
+
+ ADMIN_ROLE=$(keystone role-list | awk '/ admin / {print $2}')
+ if [ -z "$ADMIN_ROLE" ]; then
+ echo "Could not find admin role" >&2
+ exit 1
+ fi
+
+ SERVICE_TENANT=$(keystone $DEBUG tenant-list | awk '/ service / {print
$2}')
+ PASSWORD="unset"
+ SVC_USER=$(keystone $DEBUG user-create --name=$NAME --pass=$PASSWORD
--tenant-id $SERVICE_TENANT [email protected] | awk ' / id / {print
$4}')
+
+ keystone user-role-add $DEBUG --tenant-id $SERVICE_TENANT --user-id
$SVC_USER --role-id $ADMIN_ROLE
+
+ SERVICE_ID=$(keystone $DEBUG service-create --name=$NAME --type=$TYPE
--description="$DESCRIPTION" | awk '/ id / {print $4}')
+ keystone endpoint-create $DEBUG --region "$REGION" --service-id
$SERVICE_ID \
+ --publicurl "${PUBLIC_URL}/${SUFFIX}" \
+ --adminurl "${ADMIN_URL}/${ADMIN_SUFFIX}" \
+ --internalurl "${INTERNAL_URL}/${SUFFIX}"
+
+ echo "Service $TYPE created with password $PASSWORD"
+}
+
+
+# Setup an openSUSE package based seed cloud
+
+##
-------------------------------------------------------------------------------
+## init-keystone -p unset unset 192.0.2.1 [email protected] [email protected]
+##
-------------------------------------------------------------------------------
+
+export SERVICE_ENDPOINT=http://$ENDPOINT:35357/v2.0
+export SERVICE_TOKEN
+
+keystone-manage pki_setup --keystone-user openstack-keystone --keystone-group
openstack-keystone
+crudini --set /etc/keystone/keystone.conf DEFAULT admin_token $SERVICE_TOKEN
+rcopenstack-keystone restart
+
+echo "Waiting for keystone to initialise..."
+if ! keystone tenant-get admin; then
+ keystone tenant-create --name=admin
+fi
+ADMIN_TENANT_ID=$(keystone tenant-get admin | awk '$2=="id" {print $4}')
+SERVICE_TENANT_ID=$(keystone tenant-create --name=service | awk '$2=="id"
{print $4}')
+
+# Roles
+ADMIN_ROLE_ID=$(keystone role-create --name=admin | awk '$2=="id" {print $4}')
+MEMBER_ROLE_ID=$(keystone role-create --name=Member | awk '$2=="id" {print
$4}')
+
+# Users
+ADMIN_USER_ID=$(keystone user-create --name=admin \
+ --pass="$PASSWORD" \
+ --email="$ADMIN_EMAIL" | awk '$2=="id" {print $4}')
+
+# User Roles
+keystone user-role-add --user-id $ADMIN_USER_ID --role-id $ADMIN_ROLE_ID
--tenant-id $ADMIN_TENANT_ID
+
+register-endpoint "Keystone Identity Service" keystone identity
http://$ENDPOINT:5000 -a http://$ENDPOINT:35357
+
+##
-------------------------------------------------------------------------------
+## setup-endpoints 192.0.2.1 --glance-password unset --heat-password unset
--neutron-password unset --nova-password unset
+##
-------------------------------------------------------------------------------
+
+CINDER_PASSWORD="unset"
+HEAT_PASSWORD="unset"
+GLANCE_PASSWORD="unset"
+NEUTRON_PASSWORD="unset"
+NOVA_PASSWORD="unset"
+
+PASSWORD=$HEAT_PASSWORD register-endpoint "Heat Service" heat orchestration
http://$ENDPOINT:8004
+PASSWORD=$NEUTRON_PASSWORD register-endpoint "Neutron Service" neutron network
http://$ENDPOINT:9696
+PASSWORD=$GLANCE_PASSWORD register-endpoint "Glance Image Service" glance
image http://$ENDPOINT:9292
+register-endpoint $DEBUG "EC2 Compatibility Layer" ec2 ec2
http://$ENDPOINT:8773
+PASSWORD=$NOVA_PASSWORD register-endpoint "Nova Compute Service" nova compute
http://$ENDPOINT:8774
+
+##
-------------------------------------------------------------------------------
+
+keystone role-create --name heat_stack_user
+
+##
-------------------------------------------------------------------------------
+## use regular keystone authentication
+
+cat - > ~/.seedrc <<EOF
+export NOVA_VERSION=1.1
+export OS_PASSWORD=unset
+export OS_AUTH_URL=http://192.0.2.1:5000/v2.0
+export OS_USERNAME=admin
+export OS_TENANT_NAME=admin
+export COMPUTE_API_VERSION=1.1
+export OS_NO_CACHE=True
+export OS_CLOUDNAME=seed
+EOF
+
+. ~/.seedrc
+
+if [ ! -e ~/.ssh/id_rsa.pub ]; then
+ ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
+fi
+
+for c in /etc/glance/glance-api.conf /etc/glance/glance-registry.conf \
+ /etc/neutron/neutron.conf /etc/heat/heat.conf /etc/nova/nova.conf ; do
+ crudini --set $c keystone_authtoken auth_host "192.0.2.1"
+ crudini --set $c keystone_authtoken auth_port 35357
+ crudini --set $c keystone_authtoken auth_protocol http
+ crudini --set $c keystone_authtoken auth_uri $OS_AUTH_URL
+ crudini --set $c keystone_authtoken admin_tenant_name service
+ crudini --set $c keystone_authtoken admin_user $OS_USERNAME
+ crudini --set $c keystone_authtoken admin_password $OS_PASSWORD
+done
+
+for c in /etc/glance/glance-api.conf /etc/glance/glance-registry.conf ; do
+ crudini --set $c keystone_authtoken admin_user glance
+done
+
+crudini --set /etc/neutron/neutron.conf keystone_authtoken admin_user neutron
+crudini --set /etc/heat/heat.conf keystone_authtoken admin_user heat
+crudini --set /etc/nova/nova.conf keystone_authtoken admin_user nova
+
+##
-------------------------------------------------------------------------------
+## setup rabbitmq
+##
-------------------------------------------------------------------------------
+
+rcrabbitmq-server restart
+
+##
-------------------------------------------------------------------------------
+## setup glance
+##
-------------------------------------------------------------------------------
+
+for c in /etc/glance/glance-api.conf /etc/glance/glance-registry.conf; do
+ crudini --set $c DEFAULT sql_connection
'sqlite:////var/lib/glance/glance.sqlite'
+done
+
+rcopenstack-glance-api restart
+rcopenstack-glance-registry restart
+
+KERNEL=/root/tripleo-deploy.x86_64-1.12.1.kernel.3.0.76-0.11-default
+RAMDISK=/root/tripleo-deploy.x86_64-1.12.1.gz
+deploy_kernel_id=$(glance image-create --name bm-vmlinuz --public
--disk-format aki < $KERNEL \
+ | grep ' id ' | awk '{print $4}')
+deploy_ramdisk_id=$(glance image-create --name bm-initrd --public
--disk-format ari < $RAMDISK \
+ | grep ' id ' | awk '{print $4}')
+
+if [ ! -e /root/undercloud.qcow2 ]; then
+ qemu-img create -f qcow2 /root/undercloud.qcow2 10G
+fi
+
+
+##
-------------------------------------------------------------------------------
+## setup neutron
+##
-------------------------------------------------------------------------------
+
+c=/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini
+
+crudini --set $c vlans tenant_network_type 'vlan'
+crudini --set $c vlans network_vlan_ranges 'ctlplane:1000:2000'
+crudini --set $c linux_bridge physical_interface_mappings 'ctlplane:eth1'
+crudini --set $c securitygroup firewall_driver
'neutron.agent.linux.iptables_firewall.IptablesFirewallDriver'
+
+rcopenstack-neutron restart
+
+##
-------------------------------------------------------------------------------
+## setup heat
+##
-------------------------------------------------------------------------------
+
+c=/etc/heat/heat.conf
+
+crudini --set $c DEFAULT heat_metadata_server_url 'http://192.0.2.1:8000'
+crudini --set $c DEFAULT heat_waitcondition_server_url
'http://192.0.2.1:8000/v1/waitcondition'
+crudini --set $c DEFAULT heat_watch_server_url 'http://192.0.2.1:8003'
+crudini --set $c DEFAULT auth_encryption_key 'unset'
+
+crudini --set $c DEFAULT admin_tenant_name 'service'
+
+crudini --set $c ec2authtoken auth_uri 'http://192.0.2.1:5000/v2.0'
+
+rcopenstack-heat-api restart
+rcopenstack-heat-api-cfn restart
+rcopenstack-heat-engine restart
+
+
+##
-------------------------------------------------------------------------------
+## setup nova
+##
-------------------------------------------------------------------------------
+
+c=/etc/nova/nova.conf
+
+crudini --set $c baremetal arch 'x86_64'
+crudini --set $c baremetal power_manager
'nova.virt.baremetal.virtual_power_driver.VirtualPowerManager'
+#crudini --set $c baremetal power_manager
'nova.virt.baremetal.fake.FakePowerManager'
+crudini --set $c baremetal virtual_power_host_user 'stack'
+crudini --set $c baremetal virtual_power_host_key
'/opt/stack/boot-stack/virtual-power-key'
+crudini --set $c baremetal virtual_power_ssh_host '192.168.122.1'
+crudini --set $c baremetal virtual_power_type 'virsh'
+crudini --set $c baremetal virtual_power_libvirt_uri 'qemu:///system'
+crudini --set $c baremetal driver 'nova.virt.baremetal.pxe.PXE'
+crudini --set $c baremetal instance_type_extra_specs 'cpu_arch:x86_64'
+crudini --set $c baremetal sql_connection
'sqlite:////var/lib/nova/nova_bm.sqlite'
+crudini --set $c baremetal tftp_root '/srv/tftpboot'
+
+crudini --set $c DEFAULT host 'seed'
+crudini --set $c DEFAULT neutron_admin_password 'unset'
+crudini --set $c DEFAULT neutron_admin_tenant_name 'service'
+crudini --set $c DEFAULT metadata-proxy 'false'
+crudini --set $c DEFAULT service-password 'unset'
+crudini --set $c DEFAULT compute_driver 'baremetal.driver.BareMetalDriver'
+crudini --set $c DEFAULT my_ip '192.0.2.1'
+crudini --set $c DEFAULT firewall_driver
'nova.virt.firewall.NoopFirewallDriver'
+crudini --set $c DEFAULT scheduler_host_manager
'nova.scheduler.baremetal_host_manager.BaremetalHostManager'
+crudini --set $c DEFAULT ram_allocation_ratio '1.0'
+crudini --set $c DEFAULT reserved_host_memory_mb '0'
+
+# Enable baremetal related services
+mkdir -p /srv/tftpboot/pxelinux.cfg/
+cp /usr/share/syslinux/pxelinux.0 /srv/tftpboot/
+chown -R openstack-nova /srv/tftpboot
+
+dnsmasq --conf-file= --port=0 --enable-tftp --tftp-root=/srv/tftpboot \
+ --dhcp-boot=pxelinux.0 --bind-interfaces --pid-file=/var/run/dnsmasq.pid \
+ --interface=eth1 --dhcp-range=192.0.2.10,192.0.2.20
+
+# baremetal driver is used
+su openstack-nova -s /bin/sh -c "nova-baremetal-manage db sync"
+
+rcopenstack-nova-api restart
+rcopenstack-nova-scheduler restart
+rcopenstack-nova-conductor restart
+rcopenstack-nova-baremetal-deploy-helper restart
+rcopenstack-nova-compute restart
+
+for i in $(seq 1 10); do
+ sleep 1
+ nova list &> /dev/null && break
+done
+
+nova keypair-add --pub-key ~/.ssh/id_rsa.pub default
+
+# While we can't mix hypervisors, having non-baremetal flavors will just
+# confuse things.
+nova flavor-delete m1.tiny || true
+nova flavor-delete m1.small || true
+nova flavor-delete m1.medium || true
+nova flavor-delete m1.large || true
+nova flavor-delete m1.xlarge || true
+
+nova flavor-delete baremetal || true
+
+MEM=2048
+DISK=20
+CPU=1
+ARCH='x86_64'
+
+nova flavor-create baremetal auto $(($MEM/4)) $(($DISK/4)) $CPU
+nova flavor-key baremetal set "cpu_arch"="$ARCH" \
+ "baremetal:deploy_kernel_id"="$deploy_kernel_id" \
+ "baremetal:deploy_ramdisk_id"="$deploy_ramdisk_id"
+
+glance image-create --name undercloud --public --disk-format qcow2 \
+ --container-format bare --property kernel_id="$deploy_kernel_id" \
+ --property ramdisk_id="$deploy_ramdisk_id" --file /root/undercloud.qcow2
+
+##
-------------------------------------------------------------------------------
+## setup-neutron 192.0.2.2 192.0.2.3 192.0.2.0/24 192.0.2.1 ctlplane
+##
-------------------------------------------------------------------------------
+
+# Start of DHCP range
+ALLOCATION_START="192.0.2.2"
+# End of DHCP range
+ALLOCATION_END="192.0.2.3"
+# Network CIDR
+NETWORK_CIDR="192.0.2.0/24"
+# Where to route traffic
+NETWORK_GATEWAY="192.0.2.1"
+# If non-empty create a provider flat network with this name otherwise create a
+# virtual network and setup a router etc.
+PHYSICAL_NETWORK="ctlplane"
+# Start of floating range
+FLOATING_START=""
+# End of floating range
+FLOATING_END=""
+# Floating CIDR
+FLOATING_CIDR=""
+
+ALLOCATION_POOL="start=${ALLOCATION_START},end=${ALLOCATION_END}"
+
+TENANT_ID=$(keystone tenant-list | grep ' admin ' | awk '{print $2}')
+
+if [ -n "$PHYSICAL_NETWORK" ] ; then
+ # Underclouds
+ NET_NAME=$PHYSICAL_NETWORK
+ NET_EXTRA="--tenant_id $TENANT_ID --provider:network_type flat
--provider:physical_network $PHYSICAL_NETWORK"
+ SUBNET_EXTRA="--tenant_id $TENANT_ID"
+else
+ # Overclouds
+ NET_NAME="default-net"
+ NET_EXTRA="--shared"
+ SUBNET_EXTRA=""
+fi
+
+NET_ID=$(neutron net-create $NET_NAME $NET_EXTRA | grep ' id ' | awk '{print
$4}')
+SUBNET_ID=$(neutron subnet-create $SUBNET_EXTRA --ip_version 4
${ALLOCATION_POOL:+--allocation-pool $ALLOCATION_POOL}
${NETWORK_GATEWAY:+--gateway $NETWORK_GATEWAY} $NET_ID $NETWORK_CIDR | grep '
id ' | awk '{print $4}')
+
+if [ -z "$PHYSICAL_NETWORK" ] ; then
+ neutron router-create default-router
+ neutron router-interface-add default-router $SUBNET_ID
+fi
+
+if [ -n "$FLOATING_START" -a -n "$FLOATING_END" -a -n "$FLOATING_CIDR" ] ; then
+ neutron net-create ext-net --router:external=True
+ SUBNET_ID=$(neutron subnet-create ext-net $FLOATING_CIDR --disable-dhcp \
+ --allocation-pool start=$FLOATING_START,end=$FLOATING_END)
+ neutron router-gateway-set default-router ext-net
+fi
+
+
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]