OpenStack DevStack Configuration localrc local.conf Tutorial

Saju Madhavan
Saju MadhavanCloud Computing, OpenStack Engineer at Reliance Jio Infocomm
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
1 of 18

Recommended

presentation on Docker by
presentation on Dockerpresentation on Docker
presentation on DockerVirendra Ruhela
11.1K views30 slides
Docker Networking Deep Dive by
Docker Networking Deep DiveDocker Networking Deep Dive
Docker Networking Deep DiveDocker, Inc.
17.5K views34 slides
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker... by
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...Simplilearn
5.2K views61 slides
An introduction to terraform by
An introduction to terraformAn introduction to terraform
An introduction to terraformJulien Pivotto
12.7K views27 slides
Docker introduction by
Docker introductionDocker introduction
Docker introductionPhuc Nguyen
1.3K views62 slides
Introduction to docker by
Introduction to dockerIntroduction to docker
Introduction to dockerFrederik Mogensen
2.2K views39 slides

More Related Content

What's hot

Docker 101: Introduction to Docker by
Docker 101: Introduction to DockerDocker 101: Introduction to Docker
Docker 101: Introduction to DockerDocker, Inc.
71.1K views30 slides
Docker, LinuX Container by
Docker, LinuX ContainerDocker, LinuX Container
Docker, LinuX ContainerAraf Karsh Hamid
5.6K views71 slides
Introduction to docker by
Introduction to dockerIntroduction to docker
Introduction to dockerInstruqt
657 views43 slides
Introduction to Docker by
Introduction to DockerIntroduction to Docker
Introduction to DockerLuong Vo
417 views53 slides
Introduction To OpenStack by
Introduction To OpenStackIntroduction To OpenStack
Introduction To OpenStackHaim Ateya
2.2K views37 slides
Introduction to OpenStack Cinder by
Introduction to OpenStack CinderIntroduction to OpenStack Cinder
Introduction to OpenStack CinderSean McGinnis
2.3K views24 slides

What's hot(20)

Docker 101: Introduction to Docker by Docker, Inc.
Docker 101: Introduction to DockerDocker 101: Introduction to Docker
Docker 101: Introduction to Docker
Docker, Inc.71.1K views
Introduction to docker by Instruqt
Introduction to dockerIntroduction to docker
Introduction to docker
Instruqt657 views
Introduction to Docker by Luong Vo
Introduction to DockerIntroduction to Docker
Introduction to Docker
Luong Vo417 views
Introduction To OpenStack by Haim Ateya
Introduction To OpenStackIntroduction To OpenStack
Introduction To OpenStack
Haim Ateya2.2K views
Introduction to OpenStack Cinder by Sean McGinnis
Introduction to OpenStack CinderIntroduction to OpenStack Cinder
Introduction to OpenStack Cinder
Sean McGinnis2.3K views
Introduction to Ansible by Knoldus Inc.
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
Knoldus Inc.24.2K views
Dockers and containers basics by Sourabh Saxena
Dockers and containers basicsDockers and containers basics
Dockers and containers basics
Sourabh Saxena2.4K views
Ansible presentation by Suresh Kumar
Ansible presentationAnsible presentation
Ansible presentation
Suresh Kumar7.1K views
Docker 101 - Nov 2016 by Docker, Inc.
Docker 101 - Nov 2016Docker 101 - Nov 2016
Docker 101 - Nov 2016
Docker, Inc.7.2K views
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화 by OpenStack Korea Community
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
Red Hat OpenShift on Bare Metal and Containerized Storage by Greg Hoelzer
Red Hat OpenShift on Bare Metal and Containerized StorageRed Hat OpenShift on Bare Metal and Containerized Storage
Red Hat OpenShift on Bare Metal and Containerized Storage
Greg Hoelzer3.8K views
Openstack zun,virtual kubelet by Chanyeol yoon
Openstack zun,virtual kubeletOpenstack zun,virtual kubelet
Openstack zun,virtual kubelet
Chanyeol yoon1.1K views
Webinar "Introduction to OpenStack" by CREATE-NET
Webinar "Introduction to OpenStack"Webinar "Introduction to OpenStack"
Webinar "Introduction to OpenStack"
CREATE-NET639 views
Docker introduction by dotCloud
Docker introductionDocker introduction
Docker introduction
dotCloud455.8K views

Viewers also liked

OpenStack DevStack Tutorial by
OpenStack DevStack TutorialOpenStack DevStack Tutorial
OpenStack DevStack TutorialSaju Madhavan
7.3K views25 slides
Devstack lab guide by
Devstack lab guideDevstack lab guide
Devstack lab guideopenstackcisco
2.5K views41 slides
DevStack by
DevStackDevStack
DevStackEverett Toews
1.7K views22 slides
Virtualization, The future of computing (archived) by
Virtualization, The future of computing (archived)Virtualization, The future of computing (archived)
Virtualization, The future of computing (archived)Bud Siddhisena
509 views19 slides
OpenStack Development Using devstack by
OpenStack Development Using devstackOpenStack Development Using devstack
OpenStack Development Using devstackmestery
13.1K views20 slides
Make your DVR playground using DevStack by
Make your DVR playground using DevStackMake your DVR playground using DevStack
Make your DVR playground using DevStackJiang Jun
593 views30 slides

Viewers also liked(20)

OpenStack DevStack Tutorial by Saju Madhavan
OpenStack DevStack TutorialOpenStack DevStack Tutorial
OpenStack DevStack Tutorial
Saju Madhavan7.3K views
Virtualization, The future of computing (archived) by Bud Siddhisena
Virtualization, The future of computing (archived)Virtualization, The future of computing (archived)
Virtualization, The future of computing (archived)
Bud Siddhisena509 views
OpenStack Development Using devstack by mestery
OpenStack Development Using devstackOpenStack Development Using devstack
OpenStack Development Using devstack
mestery13.1K views
Make your DVR playground using DevStack by Jiang Jun
Make your DVR playground using DevStackMake your DVR playground using DevStack
Make your DVR playground using DevStack
Jiang Jun593 views
Enhancing OpenStack FWaaS for real world application by openstackindia
Enhancing OpenStack FWaaS for real world applicationEnhancing OpenStack FWaaS for real world application
Enhancing OpenStack FWaaS for real world application
openstackindia1.3K views
Rubinius - Ruby Implemented with Ruby by Akanksha Agrawal
Rubinius - Ruby Implemented with RubyRubinius - Ruby Implemented with Ruby
Rubinius - Ruby Implemented with Ruby
Akanksha Agrawal434 views
Contributing to OpenStack, A beginner's perspective by Akanksha Agrawal
Contributing to OpenStack,  A beginner's perspectiveContributing to OpenStack,  A beginner's perspective
Contributing to OpenStack, A beginner's perspective
Akanksha Agrawal307 views
Delimiter - OpenStack Cross Project Quota Library Proposal by Yahoo
Delimiter - OpenStack Cross Project Quota Library ProposalDelimiter - OpenStack Cross Project Quota Library Proposal
Delimiter - OpenStack Cross Project Quota Library Proposal
Yahoo799 views
OEO Presentation For The State Library (2) by Deborah Hotchkiss
OEO Presentation For The State Library (2)OEO Presentation For The State Library (2)
OEO Presentation For The State Library (2)
Deborah Hotchkiss533 views
Your first patch to OpenStack by openstackindia
Your first patch to OpenStackYour first patch to OpenStack
Your first patch to OpenStack
openstackindia1.3K views
Copr HD OpenStack Day India by openstackindia
Copr HD OpenStack Day IndiaCopr HD OpenStack Day India
Copr HD OpenStack Day India
openstackindia1.1K views
Deploying openstack using ansible by openstackindia
Deploying openstack using ansibleDeploying openstack using ansible
Deploying openstack using ansible
openstackindia1.7K views
The OpenStack Contribution Workflow by openstackindia
The OpenStack Contribution WorkflowThe OpenStack Contribution Workflow
The OpenStack Contribution Workflow
openstackindia852 views
Guts & OpenStack migration by openstackindia
Guts & OpenStack migrationGuts & OpenStack migration
Guts & OpenStack migration
openstackindia1.8K views

Similar to OpenStack DevStack Configuration localrc local.conf Tutorial

#OSATH Deploy OpenStack: DevStack (cont'd) by
#OSATH Deploy OpenStack: DevStack (cont'd)#OSATH Deploy OpenStack: DevStack (cont'd)
#OSATH Deploy OpenStack: DevStack (cont'd)Thanassis Parathyras
4K views12 slides
How to integrate_custom_openstack_services_with_devstack by
How to integrate_custom_openstack_services_with_devstackHow to integrate_custom_openstack_services_with_devstack
How to integrate_custom_openstack_services_with_devstackSławomir Kapłoński
103 views25 slides
ESXi PXE Server-Instructions/Documentation by
ESXi PXE Server-Instructions/DocumentationESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/DocumentationJeremy Dixon
207 views7 slides
Kernel Recipes 2019 - Kernel documentation: past, present, and future by
Kernel Recipes 2019 - Kernel documentation: past, present, and futureKernel Recipes 2019 - Kernel documentation: past, present, and future
Kernel Recipes 2019 - Kernel documentation: past, present, and futureAnne Nicolas
826 views63 slides
One click deployment by
One click deploymentOne click deployment
One click deploymentAlex Su
3.1K views52 slides
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen... by
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...BertrandDrouvot
1.1K views27 slides

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

How to integrate_custom_openstack_services_with_devstack by Sławomir Kapłoński
How to integrate_custom_openstack_services_with_devstackHow to integrate_custom_openstack_services_with_devstack
How to integrate_custom_openstack_services_with_devstack
ESXi PXE Server-Instructions/Documentation by Jeremy Dixon
ESXi PXE Server-Instructions/DocumentationESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/Documentation
Jeremy Dixon207 views
Kernel Recipes 2019 - Kernel documentation: past, present, and future by Anne Nicolas
Kernel Recipes 2019 - Kernel documentation: past, present, and futureKernel Recipes 2019 - Kernel documentation: past, present, and future
Kernel Recipes 2019 - Kernel documentation: past, present, and future
Anne Nicolas826 views
One click deployment by Alex Su
One click deploymentOne click deployment
One click deployment
Alex Su3.1K views
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen... by BertrandDrouvot
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot1.1K views
Oracle applications 11i hot backup cloning with rapid clone by Deepti Singh
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh1.4K views
DSpace 4.2 Basics & Configuration by DuraSpace
DSpace 4.2 Basics & ConfigurationDSpace 4.2 Basics & Configuration
DSpace 4.2 Basics & Configuration
DuraSpace8.6K views
Dspace4 150227090306-conversion-gate01 by walaba06
Dspace4 150227090306-conversion-gate01Dspace4 150227090306-conversion-gate01
Dspace4 150227090306-conversion-gate01
walaba0683 views
Oracle applications 11i hot backup cloning with rapid clone by Deepti Singh
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh1.1K views
Content server installation guide by Naveed Bashir
Content server installation guideContent server installation guide
Content server installation guide
Naveed Bashir642 views
Docker storage designing a platform for persistent data by Docker, Inc.
Docker storage designing a platform for persistent dataDocker storage designing a platform for persistent data
Docker storage designing a platform for persistent data
Docker, Inc.3K views
eZ Publish cluster unleashed revisited by Bertrand Dunogier
eZ Publish cluster unleashed revisitedeZ Publish cluster unleashed revisited
eZ Publish cluster unleashed revisited
Bertrand Dunogier1.9K views
Kubernetes for the PHP developer by Paul Czarkowski
Kubernetes for the PHP developerKubernetes for the PHP developer
Kubernetes for the PHP developer
Paul Czarkowski362 views
Linux Survival Kit for Proof of Concept & Proof of Technology by Nugroho Gito
Linux Survival Kit for Proof of Concept & Proof of TechnologyLinux Survival Kit for Proof of Concept & Proof of Technology
Linux Survival Kit for Proof of Concept & Proof of Technology
Nugroho Gito496 views

Recently uploaded

Tridens DevOps by
Tridens DevOpsTridens DevOps
Tridens DevOpsTridens
9 views28 slides
WebAssembly by
WebAssemblyWebAssembly
WebAssemblyJens Siebert
35 views18 slides
Headless JS UG Presentation.pptx by
Headless JS UG Presentation.pptxHeadless JS UG Presentation.pptx
Headless JS UG Presentation.pptxJack Spektor
7 views24 slides
Unleash The Monkeys by
Unleash The MonkeysUnleash The Monkeys
Unleash The MonkeysJacob Duijzer
7 views28 slides
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the... by
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...Deltares
6 views22 slides
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut... by
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...Deltares
6 views28 slides

Recently uploaded(20)

Tridens DevOps by Tridens
Tridens DevOpsTridens DevOps
Tridens DevOps
Tridens9 views
Headless JS UG Presentation.pptx by Jack Spektor
Headless JS UG Presentation.pptxHeadless JS UG Presentation.pptx
Headless JS UG Presentation.pptx
Jack Spektor7 views
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the... by Deltares
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...
DSD-INT 2023 Leveraging the results of a 3D hydrodynamic model to improve the...
Deltares6 views
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut... by Deltares
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...
Deltares6 views
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J... by Deltares
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
Deltares9 views
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko... by Deltares
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
Deltares12 views
Generic or specific? Making sensible software design decisions by Bert Jan Schrijver
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge... by Deltares
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
Deltares17 views
2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx by animuscrm
2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx
2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx
animuscrm13 views
Roadmap y Novedades de producto by Neo4j
Roadmap y Novedades de productoRoadmap y Novedades de producto
Roadmap y Novedades de producto
Neo4j50 views
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t... by Deltares
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...
Deltares9 views
Elevate your SAP landscape's efficiency and performance with HCL Workload Aut... by HCLSoftware
Elevate your SAP landscape's efficiency and performance with HCL Workload Aut...Elevate your SAP landscape's efficiency and performance with HCL Workload Aut...
Elevate your SAP landscape's efficiency and performance with HCL Workload Aut...
HCLSoftware6 views
El Arte de lo Possible by Neo4j
El Arte de lo PossibleEl Arte de lo Possible
El Arte de lo Possible
Neo4j39 views
Copilot Prompting Toolkit_All Resources.pdf by Riccardo Zamana
Copilot Prompting Toolkit_All Resources.pdfCopilot Prompting Toolkit_All Resources.pdf
Copilot Prompting Toolkit_All Resources.pdf
Riccardo Zamana8 views
What Can Employee Monitoring Software Do?​ by wAnywhere
What Can Employee Monitoring Software Do?​What Can Employee Monitoring Software Do?​
What Can Employee Monitoring Software Do?​
wAnywhere21 views

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: sajuptpm@gmail.com ● Training Videos: https://www.youtube.com/user/sajuptpm/videos ● WebSite: http://fosshelp.blogspot.in ● IRC: saju_m ● Skype: sajuptpm