Skip to content

Instantly share code, notes, and snippets.

@amotoki
Last active March 22, 2018 16:46
Show Gist options
  • Save amotoki/b5ca4affd768177ed911 to your computer and use it in GitHub Desktop.
Save amotoki/b5ca4affd768177ed911 to your computer and use it in GitHub Desktop.
local.conf (Mitaka) - Almost all services are enabled with Neutron
[[local|localrc]]
#OFFLINE=True
RECLONE=True
HORIZON_BRANCH=stable/mitaka
KEYSTONE_BRANCH=stable/mitaka
NOVA_BRANCH=stable/mitaka
NEUTRON_BRANCH=stable/mitaka
GLANCE_BRANCH=stable/mitaka
CINDER_BRANCH=stable/mitaka
HEAT_BRANCH=stable/mitaka
#-----------------------------
# Common congigurations
#-----------------------------
#disable_service cinder c-sch c-api c-vol
#disable_service tempest
#disable_service horizon
#disable_service heat h-api h-api-cfn h-api-cw h-eng
enable_service ceilometer-acompute ceilometer-acentral ceilometer-collector ceilometer-api
enable_service s-proxy s-object s-container s-account
enable_plugin sahara git://git.openstack.org/openstack/sahara stable/mitaka
enable_plugin trove git://git.openstack.org/openstack/trove stable/mitaka
enable_plugin sahara-dashboard git://git.openstack.org/openstack/sahara-dashboard stable/mitaka
enable_plugin trove-dashboard git://git.openstack.org/openstack/trove-dashboard stable/mitaka
enable_plugin neutron https://git.openstack.org/openstack/neutron stable/mitaka
#enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas
#NEUTRON_LBAAS_SERVICE_PROVIDERV2="LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default"
#NEUTRON_LBAAS_SERVICE_PROVIDERV2="LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default"
#enable_plugin neutron-lbaas-dashboard https://git.openstack.org/openstack/neutron-lbaas-dashboard
#enable_plugin neutron-lbaas-dashboard file:///home/ubuntu/work/neutron-lbaas-dashboard review/akihiro_motoki/devstack-plugin
enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas stable/mitaka
enable_plugin magnum https://git.openstack.org/openstack/magnum master
enable_plugin magnum-ui https://git.openstack.org/openstack/magnum-ui master
# designate-dashboard is installed by designate devstack plugin
enable_plugin designate https://git.openstack.org/openstack/designate stable/mitaka
DESIGNATE_BACKEND_DRIVER=fake
DESIGNATE_BRANCH=stable/mitaka
DESIGNATEDASHBOARD_BRANCH=stable/mitaka
# murano-dashboard is installed by murano devstack plugin
enable_plugin murano https://git.openstack.org/openstack/murano stable/mitaka
MURANO_BRANCH=stable/mitaka
MURANO_DASHBOARD_BRANCH=stable/mitaka
enable_service murano-cfapi
MURANO_APPS=io.murano.apps.apache.Tomcat,io.murano.apps.Guacamole
# Some more processing for translation check site
enable_plugin horizon-i18n-tools https://github.com/amotoki/horizon-i18n-tools.git
LIBS_FROM_GIT=django_openstack_auth
HORIZONAUTH_BRANCH=stable/mitaka
KEYSTONE_TOKEN_FORMAT=UUID
PRIVATE_NETWORK_NAME=net1
PUBLIC_NETWORK_NAME=ext_net
#-----------------------------
# Neutron
#-----------------------------
disable_service n-net
enable_service neutron q-svc q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
#enable_service q-lbaas
enable_service q-lbaasv2
enable_service q-fwaas
enable_service q-vpn
enable_service q-qos
enable_service q-flavors
# murano devstack enables q-metering by default
disable_service q-metering
Q_PLUGIN=ml2
#Q_USE_DEBUG_COMMAND=True
if [ "$Q_PLUGIN" = "ml2" ]; then
#Q_ML2_TENANT_NETWORK_TYPE=gre
Q_ML2_TENANT_NETWORK_TYPE=vxlan
:
fi
#-----------------------------
# Devstack configurations
#-----------------------------
LOGDIR=$DEST/logs
SCREEN_LOGDIR=$LOGDIR
SCREEN_HARDSTATUS="%{= rw} %H %{= wk} %L=%-w%{= bw}%30L> %n%f %t*%{= wk}%+Lw%-17< %-=%{= gk} %y/%m/%d %c"
LOGFILE=$LOGDIR/devstack.log
LOGDAYS=1
#LOG_COLOR=False
ADMIN_PASSWORD=UW3D9n6TqdGn
MYSQL_PASSWORD=EemCSA3gLAqK2hwg
RABBIT_PASSWORD=FeFfxuSvDaAQnfEK
SERVICE_PASSWORD=tVQfFNNlsDUb5Bzp
SERVICE_TOKEN=xynMtSp9KS59SPHp
SWIFT_HASH=JRBj7ukxMG4tckek
[[post-config|/etc/neutron/dhcp_agent.ini]]
[DEFAULT]
enable_isolated_metadata = True
@umeshgithub
Copy link

It appears to be an AIO kind of setup? How about Multinode with standalone Neutron and compute nodes?

@venumurthy
Copy link

Thank you for publishing this,
The only issue I've encountered using this localrc file is that ceilometer is not available.

For example we get this error for command "ceilometer meter-list"

PublicURL endpoint for metering service in RegionOne region not found

keystone service-list does not list ceilometer,

7caf39568a70438089d67d627bbdd023 | cinder | volume | Cinder Volume Service |
| f62db846faf241a9ac46f20d31e64cdd | cinderv2 | volumev2 | Cinder Volume Service V2 |
| a75c4a969f5b4a148d26c48d48880add | designate | dns | Designate DNS Service |
| d3b60a847f384b60911638b43135bc54 | glance | image | Glance Image Service |
| f79d81c238134d248479bf879c9fb2ce | heat | orchestration | Heat Orchestration Service |
| 77c637dd1e574d3ab217cd6467864ee8 | heat-cfn | cloudformation | Heat CloudFormation Service |
| dd21c082e33542d58e55ec9803ba6a99 | keystone | identity | |
| c5edb1ed60da43ef8b8d7783abde271f | magnum | container-infra | Container Infrastructure Management Service |
| 92b08eaa3e44458393886b138fbcb159 | murano | application-catalog | Application Catalog Service |
| 0c2bb949cf624117896802c59b30b03b | murano-cfapi | service-broker | Murano CloudFoundry Service Broker |
| 3c38da4cb1da4f739a77fc8d172f1c34 | neutron | network | Neutron Service |
| bc554a70dd91481a9dd642c4c08bbc72 | nova | compute | Nova Compute Service |
| 4685eae92f6c4c13a578453b5c2ae501 | nova_legacy | compute_legacy | Nova Compute Service (Legacy 2.0) |
| 23e81bee71364cd198f4d022270bf988 | sahara | data-processing | Sahara Data Processing |
| 653a7717e5c7409eb6aff025072971a9 | swift | object-store | Swift Service |
| 49275636db8a41fbb9043174acec4fd6 | trove | database | Trove Service |
+

I've tried to find the cause for this this from past 4 days and was not able to, any help would be very much appreciable.

By the way, have devstack installed on a Ubuntu 14.04.

Thank you

@richardsith
Copy link

with Ubuntu 16.04Lts Server Edition there is an error that I've reported here:
2016-08-05 19:37:59.589 | E: Package 'openswan' has no installation candidate
2016-08-05 19:37:59.601 | +functions-common:apt_get:1 exit_trap
2016-08-05 19:37:59.612 | +./stack.sh:exit_trap:480 local r=100
2016-08-05 19:37:59.633 | ++./stack.sh:exit_trap:481 jobs -p
2016-08-05 19:37:59.647 | +./stack.sh:exit_trap:481 jobs=
2016-08-05 19:37:59.659 | +./stack.sh:exit_trap:484 [[ -n '' ]]
2016-08-05 19:37:59.670 | +./stack.sh:exit_trap:490 kill_spinner
2016-08-05 19:37:59.682 | +./stack.sh:kill_spinner:376 '[' '!' -z '' ']'
2016-08-05 19:37:59.696 | +./stack.sh:exit_trap:492 [[ 100 -ne 0 ]]
2016-08-05 19:37:59.708 | +./stack.sh:exit_trap:493 echo 'Error on exit'
2016-08-05 19:37:59.708 | Error on exit
2016-08-05 19:37:59.719 | +./stack.sh:exit_trap:494 generate-subunit 1470424796 1083 fail
2016-08-05 19:38:00.489 | +./stack.sh:exit_trap:495 [[ -z /opt/stack/logs ]]
2016-08-05 19:38:00.500 | +./stack.sh:exit_trap:498 /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2016-08-05 19:38:01.383 | +./stack.sh:exit_trap:504 exit 100

Openswan package is not avalable on Ubuntu 16.04Lts. How Can I resolve that? thanks in advance

@amotoki
Copy link
Author

amotoki commented Aug 22, 2016

@venumurthy This local.conf is for stable/mitaka. Which branch did you use? DevStack changes release by release and day by day, so there is no surprise this doesn't work with the latest master branch.

@amotoki
Copy link
Author

amotoki commented Aug 22, 2016

@richardsith Does IPSEC_PACKAGE=strongswan work for you?
If it doesn't work. devstack plugin in neutron-vpnaas needs to be updated.

@SyCode7
Copy link

SyCode7 commented Oct 3, 2016

@amotoki
I have the errors below :

nova-compute Guru Meditation Report

Skipping as nova-compute does not appear to be running

@dheerajchitara
Copy link

dheerajchitara commented Jan 3, 2017

@amotoki
Hi, I am facing openstacksdk version problem.

2016-12-26 07:11:30.013 | ++userrc_early:source:7 OS_USER_DOMAIN_ID=default
2016-12-26 07:11:30.020 | ++userrc_early:source:8 export OS_PASSWORD=root
2016-12-26 07:11:30.027 | ++userrc_early:source:8 OS_PASSWORD=root
2016-12-26 07:11:30.033 | ++userrc_early:source:9 export OS_PROJECT_NAME=admin
2016-12-26 07:11:30.039 | ++userrc_early:source:9 OS_PROJECT_NAME=admin
2016-12-26 07:11:30.045 | ++userrc_early:source:10 export OS_PROJECT_DOMAIN_ID=default
2016-12-26 07:11:30.051 | ++userrc_early:source:10 OS_PROJECT_DOMAIN_ID=default
2016-12-26 07:11:30.057 | ++userrc_early:source:11 export OS_REGION_NAME=RegionOne
2016-12-26 07:11:30.064 | ++userrc_early:source:11 OS_REGION_NAME=RegionOne
2016-12-26 07:11:30.069 | +./stack.sh:main:1033 create_keystone_accounts
2016-12-26 07:11:30.074 | +lib/keystone:create_keystone_accounts:372 local admin_tenant
2016-12-26 07:11:30.081 | ++lib/keystone:create_keystone_accounts:373 openstack project show admin -f value -c id
2016-12-26 07:11:31.019 | Traceback (most recent call last):
2016-12-26 07:11:31.019 | File "/usr/local/bin/openstack", line 7, in
2016-12-26 07:11:31.019 | from openstackclient.shell import main
2016-12-26 07:11:31.019 | File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 32, in
2016-12-26 07:11:31.019 | from openstackclient.common import clientmanager
2016-12-26 07:11:31.019 | File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 293, in
2016-12-26 07:11:31.019 | 'openstack.cli.base',
2016-12-26 07:11:31.019 | File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 264, in get_plugin_modules
2016-12-26 07:11:31.019 | import(ep.module_name)
2016-12-26 07:11:31.019 | File "/usr/local/lib/python2.7/dist-packages/openstackclient/network/client.py", line 16, in
2016-12-26 07:11:31.019 | from openstack import connection
2016-12-26 07:11:31.019 | File "/usr/local/lib/python2.7/dist-packages/openstack/connection.py", line 68, in
2016-12-26 07:11:31.019 | from openstack import session as _session
2016-12-26 07:11:31.019 | File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 29, in
2016-12-26 07:11:31.019 | DEFAULT_USER_AGENT = "openstacksdk/%s" % openstack.version
2016-12-26 07:11:31.019 | AttributeError: 'module' object has no attribute 'version'
2016-12-26 07:11:31.041 | +lib/keystone:create_keystone_accounts:373 admin_tenant=
2016-12-26 07:11:31.049 | +lib/keystone:create_keystone_accounts:1 exit_trap
2016-12-26 07:11:31.056 | +./stack.sh:exit_trap:474 local r=1
2016-12-26 07:11:31.064 | ++./stack.sh:exit_trap:475 jobs -p
2016-12-26 07:11:31.072 | +./stack.sh:exit_trap:475 jobs=
2016-12-26 07:11:31.079 | +./stack.sh:exit_trap:478 [[ -n '' ]]
2016-12-26 07:11:31.086 | +./stack.sh:exit_trap:484 kill_spinner
2016-12-26 07:11:31.092 | +./stack.sh:kill_spinner:370 '[' '!' -z '' ']'
2016-12-26 07:11:31.098 | +./stack.sh:exit_trap:486 [[ 1 -ne 0 ]]
2016-12-26 07:11:31.105 | +./stack.sh:exit_trap:487 echo 'Error on exit'
2016-12-26 07:11:31.105 | Error on exit
2016-12-26 07:11:31.110 | +./stack.sh:exit_trap:488 generate-subunit 1482733821 2470 fail
2016-12-26 07:11:31.479 | +./stack.sh:exit_trap:489 [[ -z /opt/stack/logs ]]
2016-12-26 07:11:31.487 | +./stack.sh:exit_trap:492 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2016-12-26 07:11:31.895 | +./stack.sh:exit_trap:498 exit 1
stack@openstack:~/devstack$

I've tried to find the cause for this this from past few days and I found that they updated openstacksdk version (UPDATE DEFAULT_USER_AGENT = "openstacksdk/%s" % openstack_version.__version__),; But it's not working and throwing same error.
Any help would be very much appreciable.

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment