Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

OpenStack DevStack Configuration localrc local.conf Tutorial


Published on

OpenStack DevStack Configuration localrc local.conf Tutorial

Published in: Software
  • very nice and informative, looking for openstack tutorial, recently joined in, can anyone suggest me some books and videos.
    Are you sure you want to  Yes  No
    Your message goes here

OpenStack DevStack Configuration localrc local.conf Tutorial

  1. 1. OpenStack DevStack Configuration Tutorial ● localrc ● local.conf
  2. 2. Devstack localrc
  3. 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. 4. OpenStack Training Videos Play Training Videos
  5. 5. Devstack local.conf
  6. 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. 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:
  8. 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. 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
  10. 10. local.conf Configuration 2) Move network ranges away from the local network Example: [[local|localrc]] FIXED_RANGE= FLOATING_RANGE= The network ranges must not overlap with any networks in use on the host.
  11. 11. local.conf Configuration 3) Set the host IP if detection is unreliable Example: [[local|localrc]] HOST_IP= HOST_IP is normally detected on the first run of 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. 12. local.conf Configuration 4) Change Installation Directory Example: [[local|localrc]] DEST=/opt/stack Default: “DEST=/opt/stack”
  13. 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. 14. local.conf Configuration 6) Enable Logging Example: [[local|localrc]] LOGFILE=$DEST/logs/ By default 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
  15. 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. 16. local.conf Configuration 8) A clean installation of OpenStack every time you run Example: [[local|localrc]] RECLONE=yes By default only clones the project repos if they do not exist in $DEST. will freshen each repo on each run if RECLONE is set to yes.
  17. 17. local.conf Configuration 9) Sample local.conf with screen logging enabled Example: [[local|localrc]] FIXED_RANGE= NETWORK_GATEWAY= FLOATING_RANGE= LOGFILE=$DEST/logs/ ADMIN_PASSWORD=secret DATABASE_PASSWORD=secret RABBIT_PASSWORD=secret SERVICE_PASSWORD=secret SERVICE_TOKEN=tokentoken HOST_IP=
  18. 18. Thanks ● Email: ● Training Videos: ● WebSite: ● IRC: saju_m ● Skype: sajuptpm