[lxc-devel] [nova-lxd/master] Devstack

zulcss on Github lxc-bot at linuxcontainers.org
Tue May 3 15:04:21 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 356 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160503/e08feb3d/attachment.bin>
-------------- next part --------------
From 19157160d5573cf21f3455931c3354f9c4aebe6b Mon Sep 17 00:00:00 2001
From: Chuck Short <chuck.short at canonical.com>
Date: Mon, 2 May 2016 12:43:19 -0400
Subject: [PATCH 1/3] Add sample local.conf

Signed-off-by: Chuck Short <chuck.short at canonical.com>
---
 devstack/local.conf.example | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 devstack/local.conf.example

diff --git a/devstack/local.conf.example b/devstack/local.conf.example
new file mode 100644
index 0000000..bc35c9f
--- /dev/null
+++ b/devstack/local.conf.example
@@ -0,0 +1,36 @@
+[[local|localrc]]
+LOGFILE=/opt/stack/logs/stack.sh.log
+SCREEN_LOGDIR=~/screen_log/
+LOGDAYS=1
+
+ADMIN_PASSWORD=admin
+MYSQL_PASSWORD=mysql
+RABBIT_PASSWORD=rabbit
+SERVICE_PASSWORD=admin
+SERVICE_TOKEN=service
+
+MULTI_HOST=0
+HOST_NAME=$(hostname)
+
+FLOATING_RANGE=192.168.2.0/24
+FIXED_RANGE=10.11.12.0/24
+NETWORK_GATEWAY=10.11.12.1
+PUBLIC_NETWORK_GATEWAY=192.168.2.1
+FLAT_INTERFACE=eth0
+Q_PLUGIN=ml2
+Q_ML2_TENANT_NETWORK_TYPE=vlan
+Q_ML2_PLUGIN_TYPE_DRIVERS=vlan
+ENABLE_TENANT_VLANS=True
+PHYSICAL_NETWORK=default
+TENANT_VLAN_RANGE=1000:1999
+
+# Enable services 
+enable_service neutron
+disable_service n-net
+disable_service horizon
+disable_service n-novnc
+disable_service cinder
+
+# Enable plugins
+enable_plugin nova-lxd https://github.com/lxc/nova-lxd
+

From d13dfc691eb7e069589a1d06ffac52e822ed60ff Mon Sep 17 00:00:00 2001
From: Chuck Short <chuck.short at canonical.com>
Date: Tue, 3 May 2016 11:00:23 -0400
Subject: [PATCH 2/3] Turn off configdrive

Turn off config drive by default. Its currently on by default
in devstack.

Signed-off-by: Chuck Short <chuck.short at canonical.com>
---
 devstack/plugin.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index bab1818..672ac23 100755
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -32,6 +32,7 @@ function install_nova-lxd() {
 function configure_nova-lxd() {
     # Configure the service.
     iniset $NOVA_CONF DEFAULT compute_driver nova_lxd.nova.virt.lxd.LXDDriver
+    iniset $NOVA_CONF DEFAULT force_config_drive False
 }
 
 function init_nova-lxd() {

From 3a211e454ae567794cc22934baf4da6fd3aea3b9 Mon Sep 17 00:00:00 2001
From: Chuck Short <chuck.short at canonical.com>
Date: Tue, 3 May 2016 11:01:09 -0400
Subject: [PATCH 3/3] Add sample local.conf configuration

Add sample local.conf configuration for devstack.
Does the following:

- Setup passwords
- Enable nova services (rabbit, mysql, nova, neutron, etc)
- Disable services such as cinder, n-net, and horizon.
- Enable nova-lxd devstack plugin.

Signed-off-by: Chuck Short <chuck.short at canonical.com>
---
 devstack/local.conf.sample | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 devstack/local.conf.sample

diff --git a/devstack/local.conf.sample b/devstack/local.conf.sample
new file mode 100644
index 0000000..f25ebda
--- /dev/null
+++ b/devstack/local.conf.sample
@@ -0,0 +1,24 @@
+[[local|localrc]]
+
+HOST_IP=10.5.18.85 # set this to your IP
+FLAT_INTERFACE=ens2 # change this to your eth0
+
+DATABASE_PASSWORD=password
+RABBIT_PASSWORD=password
+SERVICE_PASSWORD=password
+SERVICE_TOKEN=password
+ADMIN_PASSWORD=password
+
+#run the services you want to use
+ENABLED_SERVICES=rabbit,mysql,key
+ENABLED_SERVICES+=,g-api,g-reg
+ENABLED_SERVICES+=,n-cpu,n-api,n-crt,n-obj,n-cond,n-sch,n-novnc,n-cauth
+ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-meta
+
+# disabled services
+disable_service cinder, c-sch, c-api, c-vol
+disable_service n-net
+disable_service horizon
+
+# enable nova-lxd
+enable_plugin nova-lxd https://github.com/lxc/nova-lxd


More information about the lxc-devel mailing list