SlideShare a Scribd company logo
OpenStack DevStack Configuration
Tutorial
● localrc
● local.conf
Devstack
localrc
localrc
localrc is the old file used to configure DevStack.
It is deprecated and has been replaced by
local.conf.
DevStack will continue to use localrc if it is
present and ignore the localrc section in
local.conf.
Remove localrc to switch to using the new file.
OpenStack Training Videos
Play Training Videos
https://www.youtube.com/user/sajuptpm/videos
Devstack
local.conf
local.conf
local.conf is a user-maintained setings file that is
sourced in stackrc.
It contains a section that replaces the historical
localrc file.
local.conf
local.conf resides in the root DevStack directory
like the old localrc file.
It is a modified INI format file that introduces a
meta-section header to carry additional
information regarding the configuration files to be
changed.
Read More:
http://docs.openstack.org/developer/devstack/configu
local.conf
A specific meta-section local|localrc is used to
provide a default localrc file.
This allows all custom settings for DevStack to be
contained in a single file.If localrc exists it will be
used instead to preserve backward-compatibility.
Example:
[[local|localrc]]
ADMIN_PASSWORD=secrete
DATABASE_PASSWORD=secrete
local.conf Configuration
1) pre-set the passwords to prevent interactive
prompts
Example:
[[local|localrc]]
ADMIN_PASSWORD=secrete
DATABASE_PASSWORD=secrete
RABBIT_PASSWORD=secrete
SERVICE_PASSWORD=secrete
SERVICE_TOKEN=tokentoken
If the *_PASSWORD variables are not set here you will be prompted to enter values for
them by stack.sh.
local.conf Configuration
2) Move network ranges away from the local
network
Example:
[[local|localrc]]
FIXED_RANGE=172.31.1.0/24
FLOATING_RANGE=192.168.56.0/25
The network ranges must not overlap with any networks in use on the host.
local.conf Configuration
3) Set the host IP if detection is unreliable
Example:
[[local|localrc]]
HOST_IP=192.168.56.104
HOST_IP is normally detected on the first run of stack.sh but often is indeterminate on
later runs due to the IP being moved from an Ethernet interface to a bridge on the host.
Setting it here also makes it available for openrc to set OS_AUTH_URL. HOST_IP is not
set by default.
local.conf Configuration
4) Change Installation Directory
Example:
[[local|localrc]]
DEST=/opt/stack
Default: “DEST=/opt/stack”
local.conf Configuration
5) Specify the libraries to be installed from Git
Example:
[[local|localrc]]
LIBS_FROM_GIT=python-keystoneclient,oslo.config
Default: LIBS_FROM_GIT=”“
By default devstack installs OpenStack server components from git, however it installs
client libraries from released versions on pypi. This is appropriate if you are working on
server development, but if you want to see how an unreleased version of the client affects
the system you can have devstack install it from upstream, or from local git trees.
Multiple libraries can be specified as a comma separated list.
local.conf Configuration
6) Enable Logging
Example:
[[local|localrc]]
LOGFILE=$DEST/logs/stack.sh.log
By default stack.sh output is only written to the console where is runs. It can be sent to a
file in addition to the console by setting LOGFILE to the fully-qualified name of the
destination log file. A timestamp will be appended to the given filename for each run of
stack.sh.
local.conf Configuration
7) Enable Syslog
Example:
[[local|localrc]]
SYSLOG=True
SYSLOG_HOST=$HOST_IP
SYSLOG_PORT=516
Logging all services to a single syslog can be convenient. Enable syslogging by setting
SYSLOG to True. If the destination log host is not localhost SYSLOG_HOST and
SYSLOG_PORT can be used to direct the message stream to the log host.
local.conf Configuration
8) A clean installation of OpenStack every time
you run stack.sh
Example:
[[local|localrc]]
RECLONE=yes
By default stack.sh only clones the project repos if they do not exist in $DEST. stack.sh
will freshen each repo on each run if RECLONE is set to yes.
local.conf Configuration
9) Sample local.conf with screen logging
enabled
Example:
[[local|localrc]]
FIXED_RANGE=10.254.1.0/24
NETWORK_GATEWAY=10.254.1.1
FLOATING_RANGE=192.168.56.0/25
LOGFILE=$DEST/logs/stack.sh.log
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
SERVICE_TOKEN=tokentoken
HOST_IP=192.168.56.104
Thanks
● Email: sajuptpm@gmail.com
● Training Videos: https://www.youtube.com/user/sajuptpm/videos
● WebSite: http://fosshelp.blogspot.in
● IRC: saju_m
● Skype: sajuptpm

More Related Content

What's hot (20)

PDF
Interconnecting Neutron and Network Operators' BGP VPNs
Thomas Morin
 
PDF
Deep dive into Kubernetes Networking
Sreenivas Makam
 
PPTX
OVN - Basics and deep dive
Trinath Somanchi
 
PDF
Midi technique - présentation docker
Olivier Eeckhoutte
 
PDF
DHCP sous fedora
Souhaib El
 
PDF
Deploiement de la virtualisation des postes de travail sous vmware
Mame Cheikh Ibra Niang
 
PPTX
Turning Virtual Machines Cloud-Native using KubeVirt
Suman Chakraborty
 
PDF
Présentation docker et kubernetes
Kiwi Backup
 
PDF
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
Ian Choi
 
PDF
OpenShift Virtualization- Technical Overview.pdf
ssuser1490e8
 
PPTX
présentation sur le vpn
Manuel Cédric EBODE MBALLA
 
PDF
SDN OpenDaylight
Mokhless Hachicha
 
PDF
Mise en place d'une infrastructure basée sur OpenStack
Ahmed Slim
 
PDF
Understanding Open vSwitch
YongKi Kim
 
PDF
Docker Tutorial.pdf
MuhammadYusuf767705
 
DOCX
Rapprot de satge supervision de résau par EyesOfNetwok
Abdessamad IDRISSI
 
PDF
Mise en place d'un système de messagerie sous debian avec: postfix, dovecot, ...
Manassé Achim kpaya
 
PDF
Kubernetes Deployment Strategies
Abdennour TM
 
PPTX
Dockers and containers basics
Sourabh Saxena
 
Interconnecting Neutron and Network Operators' BGP VPNs
Thomas Morin
 
Deep dive into Kubernetes Networking
Sreenivas Makam
 
OVN - Basics and deep dive
Trinath Somanchi
 
Midi technique - présentation docker
Olivier Eeckhoutte
 
DHCP sous fedora
Souhaib El
 
Deploiement de la virtualisation des postes de travail sous vmware
Mame Cheikh Ibra Niang
 
Turning Virtual Machines Cloud-Native using KubeVirt
Suman Chakraborty
 
Présentation docker et kubernetes
Kiwi Backup
 
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
Ian Choi
 
OpenShift Virtualization- Technical Overview.pdf
ssuser1490e8
 
présentation sur le vpn
Manuel Cédric EBODE MBALLA
 
SDN OpenDaylight
Mokhless Hachicha
 
Mise en place d'une infrastructure basée sur OpenStack
Ahmed Slim
 
Understanding Open vSwitch
YongKi Kim
 
Docker Tutorial.pdf
MuhammadYusuf767705
 
Rapprot de satge supervision de résau par EyesOfNetwok
Abdessamad IDRISSI
 
Mise en place d'un système de messagerie sous debian avec: postfix, dovecot, ...
Manassé Achim kpaya
 
Kubernetes Deployment Strategies
Abdennour TM
 
Dockers and containers basics
Sourabh Saxena
 

Viewers also liked (20)

ODP
OpenStack DevStack Tutorial
Saju Madhavan
 
PDF
Devstack lab guide
openstackcisco
 
PPTX
DevStack
Everett Toews
 
PDF
Virtualization, The future of computing (archived)
Bud Siddhisena
 
PPTX
OpenStack Development Using devstack
mestery
 
PDF
Make your DVR playground using DevStack
Jiang Jun
 
PPTX
Enhancing OpenStack FWaaS for real world application
openstackindia
 
PDF
PRUG Meetup - RGSoC Team Rubinius
Akanksha Agrawal
 
PDF
Rubinius - Ruby Implemented with Ruby
Akanksha Agrawal
 
PDF
Contributing to OpenStack, A beginner's perspective
Akanksha Agrawal
 
PPTX
Delimiter - OpenStack Cross Project Quota Library Proposal
Yahoo
 
PPT
OEO Presentation For The State Library (2)
Deborah Hotchkiss
 
PDF
OpenStack@Mini-Deb Conf'16 Mumbai
Akanksha Agrawal
 
PDF
Your first patch to OpenStack
openstackindia
 
PDF
Copr HD OpenStack Day India
openstackindia
 
PDF
Deploying openstack using ansible
openstackindia
 
PPTX
The OpenStack Contribution Workflow
openstackindia
 
PDF
Your first patch to open stack
Akanksha Agrawal
 
PDF
Open stack qa and tempest
Kamesh Pemmaraju
 
PDF
Guts & OpenStack migration
openstackindia
 
OpenStack DevStack Tutorial
Saju Madhavan
 
Devstack lab guide
openstackcisco
 
DevStack
Everett Toews
 
Virtualization, The future of computing (archived)
Bud Siddhisena
 
OpenStack Development Using devstack
mestery
 
Make your DVR playground using DevStack
Jiang Jun
 
Enhancing OpenStack FWaaS for real world application
openstackindia
 
PRUG Meetup - RGSoC Team Rubinius
Akanksha Agrawal
 
Rubinius - Ruby Implemented with Ruby
Akanksha Agrawal
 
Contributing to OpenStack, A beginner's perspective
Akanksha Agrawal
 
Delimiter - OpenStack Cross Project Quota Library Proposal
Yahoo
 
OEO Presentation For The State Library (2)
Deborah Hotchkiss
 
OpenStack@Mini-Deb Conf'16 Mumbai
Akanksha Agrawal
 
Your first patch to OpenStack
openstackindia
 
Copr HD OpenStack Day India
openstackindia
 
Deploying openstack using ansible
openstackindia
 
The OpenStack Contribution Workflow
openstackindia
 
Your first patch to open stack
Akanksha Agrawal
 
Open stack qa and tempest
Kamesh Pemmaraju
 
Guts & OpenStack migration
openstackindia
 
Ad

Similar to OpenStack DevStack Configuration localrc local.conf Tutorial (20)

PPTX
#OSATH Deploy OpenStack: DevStack (cont'd)
Thanassis Parathyras
 
PDF
How to integrate_custom_openstack_services_with_devstack
Sławomir Kapłoński
 
DOCX
ESXi PXE Server-Instructions/Documentation
Jeremy Dixon
 
PDF
Kernel Recipes 2019 - Kernel documentation: past, present, and future
Anne Nicolas
 
PPTX
One click deployment
Alex Su
 
PPTX
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot
 
PDF
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh
 
PPTX
Dspace4 150227090306-conversion-gate01
walaba06
 
PPTX
DSpace 4.2 Basics & Configuration
DuraSpace
 
DOC
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh
 
PDF
Docker dDessi november 2015
Massimiliano Dessì
 
DOCX
Content server installation guide
Naveed Bashir
 
PPT
les_02.ppt of the Oracle course train_2 file
YulinLiu27
 
PDF
Bacula - Backup system
Mohammad Parvin
 
PPTX
DPKG caching framework-latest .pptx
KalimuthuVelappan
 
PDF
Docker storage designing a platform for persistent data
Docker, Inc.
 
PPTX
DockerCon 18 docker storage
Daniel Finneran
 
PDF
Rac on NFS
mengjiagou
 
PDF
linux installation.pdf
MuhammadShoaibHussai2
 
PPT
eZ Publish cluster unleashed revisited
Bertrand Dunogier
 
#OSATH Deploy OpenStack: DevStack (cont'd)
Thanassis Parathyras
 
How to integrate_custom_openstack_services_with_devstack
Sławomir Kapłoński
 
ESXi PXE Server-Instructions/Documentation
Jeremy Dixon
 
Kernel Recipes 2019 - Kernel documentation: past, present, and future
Anne Nicolas
 
One click deployment
Alex Su
 
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot
 
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh
 
Dspace4 150227090306-conversion-gate01
walaba06
 
DSpace 4.2 Basics & Configuration
DuraSpace
 
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh
 
Docker dDessi november 2015
Massimiliano Dessì
 
Content server installation guide
Naveed Bashir
 
les_02.ppt of the Oracle course train_2 file
YulinLiu27
 
Bacula - Backup system
Mohammad Parvin
 
DPKG caching framework-latest .pptx
KalimuthuVelappan
 
Docker storage designing a platform for persistent data
Docker, Inc.
 
DockerCon 18 docker storage
Daniel Finneran
 
Rac on NFS
mengjiagou
 
linux installation.pdf
MuhammadShoaibHussai2
 
eZ Publish cluster unleashed revisited
Bertrand Dunogier
 
Ad

Recently uploaded (20)

PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PDF
Laboratory Workflows Digitalized and live in 90 days with Scifeon´s SAPPA P...
info969686
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PPTX
Quality on Autopilot: Scaling Testing in Uyuni
Oscar Barrios Torrero
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PPTX
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
PDF
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PPTX
Perfecting XM Cloud for Multisite Setup.pptx
Ahmed Okour
 
PPTX
PowerISO Crack 2025 – Free Download Full Version with Serial Key [Latest](1)....
HyperPc soft
 
PPTX
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PDF
2025年 Linux 核心專題: 探討 sched_ext 及機器學習.pdf
Eric Chou
 
PPTX
NeuroStrata: Harnessing Neuro-Symbolic Paradigms for Improved Testability and...
Ivan Ruchkin
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
Laboratory Workflows Digitalized and live in 90 days with Scifeon´s SAPPA P...
info969686
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Quality on Autopilot: Scaling Testing in Uyuni
Oscar Barrios Torrero
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
Perfecting XM Cloud for Multisite Setup.pptx
Ahmed Okour
 
PowerISO Crack 2025 – Free Download Full Version with Serial Key [Latest](1)....
HyperPc soft
 
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
2025年 Linux 核心專題: 探討 sched_ext 及機器學習.pdf
Eric Chou
 
NeuroStrata: Harnessing Neuro-Symbolic Paradigms for Improved Testability and...
Ivan Ruchkin
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 

OpenStack DevStack Configuration localrc local.conf Tutorial

  • 3. localrc localrc is the old file used to configure DevStack. It is deprecated and has been replaced by local.conf. DevStack will continue to use localrc if it is present and ignore the localrc section in local.conf. Remove localrc to switch to using the new file.
  • 4. OpenStack Training Videos Play Training Videos https://www.youtube.com/user/sajuptpm/videos
  • 6. local.conf local.conf is a user-maintained setings file that is sourced in stackrc. It contains a section that replaces the historical localrc file.
  • 7. local.conf local.conf resides in the root DevStack directory like the old localrc file. It is a modified INI format file that introduces a meta-section header to carry additional information regarding the configuration files to be changed. Read More: http://docs.openstack.org/developer/devstack/configu
  • 8. local.conf A specific meta-section local|localrc is used to provide a default localrc file. This allows all custom settings for DevStack to be contained in a single file.If localrc exists it will be used instead to preserve backward-compatibility. Example: [[local|localrc]] ADMIN_PASSWORD=secrete DATABASE_PASSWORD=secrete
  • 9. local.conf Configuration 1) pre-set the passwords to prevent interactive prompts Example: [[local|localrc]] ADMIN_PASSWORD=secrete DATABASE_PASSWORD=secrete RABBIT_PASSWORD=secrete SERVICE_PASSWORD=secrete SERVICE_TOKEN=tokentoken If the *_PASSWORD variables are not set here you will be prompted to enter values for them by stack.sh.
  • 10. local.conf Configuration 2) Move network ranges away from the local network Example: [[local|localrc]] FIXED_RANGE=172.31.1.0/24 FLOATING_RANGE=192.168.56.0/25 The network ranges must not overlap with any networks in use on the host.
  • 11. local.conf Configuration 3) Set the host IP if detection is unreliable Example: [[local|localrc]] HOST_IP=192.168.56.104 HOST_IP is normally detected on the first run of stack.sh but often is indeterminate on later runs due to the IP being moved from an Ethernet interface to a bridge on the host. Setting it here also makes it available for openrc to set OS_AUTH_URL. HOST_IP is not set by default.
  • 12. local.conf Configuration 4) Change Installation Directory Example: [[local|localrc]] DEST=/opt/stack Default: “DEST=/opt/stack”
  • 13. local.conf Configuration 5) Specify the libraries to be installed from Git Example: [[local|localrc]] LIBS_FROM_GIT=python-keystoneclient,oslo.config Default: LIBS_FROM_GIT=”“ By default devstack installs OpenStack server components from git, however it installs client libraries from released versions on pypi. This is appropriate if you are working on server development, but if you want to see how an unreleased version of the client affects the system you can have devstack install it from upstream, or from local git trees. Multiple libraries can be specified as a comma separated list.
  • 14. local.conf Configuration 6) Enable Logging Example: [[local|localrc]] LOGFILE=$DEST/logs/stack.sh.log By default stack.sh output is only written to the console where is runs. It can be sent to a file in addition to the console by setting LOGFILE to the fully-qualified name of the destination log file. A timestamp will be appended to the given filename for each run of stack.sh.
  • 15. local.conf Configuration 7) Enable Syslog Example: [[local|localrc]] SYSLOG=True SYSLOG_HOST=$HOST_IP SYSLOG_PORT=516 Logging all services to a single syslog can be convenient. Enable syslogging by setting SYSLOG to True. If the destination log host is not localhost SYSLOG_HOST and SYSLOG_PORT can be used to direct the message stream to the log host.
  • 16. local.conf Configuration 8) A clean installation of OpenStack every time you run stack.sh Example: [[local|localrc]] RECLONE=yes By default stack.sh only clones the project repos if they do not exist in $DEST. stack.sh will freshen each repo on each run if RECLONE is set to yes.
  • 17. local.conf Configuration 9) Sample local.conf with screen logging enabled Example: [[local|localrc]] FIXED_RANGE=10.254.1.0/24 NETWORK_GATEWAY=10.254.1.1 FLOATING_RANGE=192.168.56.0/25 LOGFILE=$DEST/logs/stack.sh.log ADMIN_PASSWORD=secret DATABASE_PASSWORD=secret RABBIT_PASSWORD=secret SERVICE_PASSWORD=secret SERVICE_TOKEN=tokentoken HOST_IP=192.168.56.104
  • 18. Thanks ● Email: [email protected] Training Videos: https://www.youtube.com/user/sajuptpm/videos ● WebSite: http://fosshelp.blogspot.in ● IRC: saju_m ● Skype: sajuptpm