A few Markdown-oriented issues were causing Docutils errors to
leak into the end-user docs on http://devstack.org
Change-Id: I51fa9698afb1bfb48596478d83bd1fdcd84ac52e
| ... | ... |
@@ -2,7 +2,7 @@ |
| 2 | 2 |
|
| 3 | 3 |
# **swift.sh** |
| 4 | 4 |
|
| 5 |
-# Test swift via the ``swift`` command line from ``python-swiftclient` |
|
| 5 |
+# Test swift via the ``swift`` command line from ``python-swiftclient`` |
|
| 6 | 6 |
|
| 7 | 7 |
echo "*********************************************************************" |
| 8 | 8 |
echo "Begin DevStack Exercise: $0" |
| ... | ... |
@@ -54,7 +54,7 @@ function address_in_net() {
|
| 54 | 54 |
|
| 55 | 55 |
|
| 56 | 56 |
# Wrapper for ``apt-get`` to set cache and proxy environment variables |
| 57 |
-# Uses globals ``OFFLINE``, ``*_proxy` |
|
| 57 |
+# Uses globals ``OFFLINE``, ``*_proxy`` |
|
| 58 | 58 |
# apt_get operation package [package ...] |
| 59 | 59 |
function apt_get() {
|
| 60 | 60 |
[[ "$OFFLINE" = "True" || -z "$@" ]] && return |
| ... | ... |
@@ -260,7 +260,8 @@ function _get_package_dir() {
|
| 260 | 260 |
# |
| 261 | 261 |
# Only packages required for the services in 1st argument will be |
| 262 | 262 |
# included. Two bits of metadata are recognized in the prerequisite files: |
| 263 |
-# - ``# NOPRIME`` defers installation to be performed later in stack.sh |
|
| 263 |
+# |
|
| 264 |
+# - ``# NOPRIME`` defers installation to be performed later in `stack.sh` |
|
| 264 | 265 |
# - ``# dist:DISTRO`` or ``dist:DISTRO1,DISTRO2`` limits the selection |
| 265 | 266 |
# of the package to the distros listed. The distro names are case insensitive. |
| 266 | 267 |
function get_packages() {
|
| ... | ... |
@@ -982,7 +983,7 @@ function is_set() {
|
| 982 | 982 |
|
| 983 | 983 |
# Wrapper for ``pip install`` to set cache and proxy environment variables |
| 984 | 984 |
# Uses globals ``OFFLINE``, ``PIP_DOWNLOAD_CACHE``, ``PIP_USE_MIRRORS``, |
| 985 |
-# ``TRACK_DEPENDS``, ``*_proxy` |
|
| 985 |
+# ``TRACK_DEPENDS``, ``*_proxy`` |
|
| 986 | 986 |
# pip_install package [package ...] |
| 987 | 987 |
function pip_install {
|
| 988 | 988 |
[[ "$OFFLINE" = "True" || -z "$@" ]] && return |
| ... | ... |
@@ -1011,8 +1012,7 @@ function pip_install {
|
| 1011 | 1011 |
# /tmp/$USER-pip-build. Even if a later component specifies foo < |
| 1012 | 1012 |
# 1.1, the existing extracted build will be used and cause |
| 1013 | 1013 |
# confusing errors. By creating unique build directories we avoid |
| 1014 |
- # this problem. See |
|
| 1015 |
- # https://github.com/pypa/pip/issues/709 |
|
| 1014 |
+ # this problem. See https://github.com/pypa/pip/issues/709 |
|
| 1016 | 1015 |
local pip_build_tmp=$(mktemp --tmpdir -d pip-build.XXXXX) |
| 1017 | 1016 |
|
| 1018 | 1017 |
$SUDO_PIP PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-/var/cache/pip} \
|
| ... | ... |
@@ -1146,8 +1146,8 @@ function screen_rc {
|
| 1146 | 1146 |
} |
| 1147 | 1147 |
|
| 1148 | 1148 |
|
| 1149 |
-# Helper to remove the *.failure files under $SERVICE_DIR/$SCREEN_NAME |
|
| 1150 |
-# This is used for service_check when all the screen_it are called finished |
|
| 1149 |
+# Helper to remove the ``*.failure`` files under ``$SERVICE_DIR/$SCREEN_NAME``. |
|
| 1150 |
+# This is used for ``service_check`` when all the ``screen_it`` are called finished |
|
| 1151 | 1151 |
# init_service_check |
| 1152 | 1152 |
function init_service_check() {
|
| 1153 | 1153 |
SCREEN_NAME=${SCREEN_NAME:-stack}
|
| ... | ... |
@@ -1301,10 +1301,12 @@ function trueorfalse() {
|
| 1301 | 1301 |
} |
| 1302 | 1302 |
|
| 1303 | 1303 |
|
| 1304 |
-# Retrieve an image from a URL and upload into Glance |
|
| 1304 |
+# Retrieve an image from a URL and upload into Glance. |
|
| 1305 | 1305 |
# Uses the following variables: |
| 1306 |
-# ``FILES`` must be set to the cache dir |
|
| 1307 |
-# ``GLANCE_HOSTPORT`` |
|
| 1306 |
+# |
|
| 1307 |
+# - ``FILES`` must be set to the cache dir |
|
| 1308 |
+# - ``GLANCE_HOSTPORT`` |
|
| 1309 |
+# |
|
| 1308 | 1310 |
# upload_image image-url glance-token |
| 1309 | 1311 |
function upload_image() {
|
| 1310 | 1312 |
local image_url=$1 |
| ... | ... |
@@ -1466,7 +1468,8 @@ function upload_image() {
|
| 1466 | 1466 |
# When called from stackrc/localrc DATABASE_BACKENDS has not been |
| 1467 | 1467 |
# initialized yet, just save the configuration selection and call back later |
| 1468 | 1468 |
# to validate it. |
| 1469 |
-# $1 The name of the database backend to use (mysql, postgresql, ...) |
|
| 1469 |
+# |
|
| 1470 |
+# ``$1`` - the name of the database backend to use (mysql, postgresql, ...) |
|
| 1470 | 1471 |
function use_database {
|
| 1471 | 1472 |
if [[ -z "$DATABASE_BACKENDS" ]]; then |
| 1472 | 1473 |
# No backends registered means this is likely called from ``localrc`` |
| ... | ... |
@@ -1507,7 +1510,7 @@ function wait_for_service() {
|
| 1507 | 1507 |
|
| 1508 | 1508 |
|
| 1509 | 1509 |
# Wrapper for ``yum`` to set proxy environment variables |
| 1510 |
-# Uses globals ``OFFLINE``, ``*_proxy` |
|
| 1510 |
+# Uses globals ``OFFLINE``, ``*_proxy`` |
|
| 1511 | 1511 |
# yum_install package [package ...] |
| 1512 | 1512 |
function yum_install() {
|
| 1513 | 1513 |
[[ "$OFFLINE" = "True" ]] && return |
| ... | ... |
@@ -83,8 +83,10 @@ BM_POSEUR_EXTRA_OPTS=${BM_POSEUR_EXTRA_OPTS:-}
|
| 83 | 83 |
# To provide PXE, configure nova-network's dnsmasq rather than run the one |
| 84 | 84 |
# dedicated to baremetal. When enable this, make sure these conditions are |
| 85 | 85 |
# fulfilled: |
| 86 |
+# |
|
| 86 | 87 |
# 1) nova-compute and nova-network runs on the same host |
| 87 | 88 |
# 2) nova-network uses FlatDHCPManager |
| 89 |
+# |
|
| 88 | 90 |
# NOTE: the other BM_DNSMASQ_* have no effect on the behavior if this option |
| 89 | 91 |
# is enabled. |
| 90 | 92 |
BM_DNSMASQ_FROM_NOVA_NETWORK=`trueorfalse False $BM_DNSMASQ_FROM_NOVA_NETWORK` |
| ... | ... |
@@ -198,8 +200,8 @@ function create_fake_baremetal_env() {
|
| 198 | 198 |
BM_FIRST_MAC=$(sudo $bm_poseur get-macs) |
| 199 | 199 |
|
| 200 | 200 |
# NOTE: there is currently a limitation in baremetal driver |
| 201 |
- # that requires second MAC even if it is not used. |
|
| 202 |
- # Passing a fake value allows this to work. |
|
| 201 |
+ # that requires second MAC even if it is not used. |
|
| 202 |
+ # Passing a fake value allows this to work. |
|
| 203 | 203 |
# TODO(deva): remove this after driver issue is fixed. |
| 204 | 204 |
BM_SECOND_MAC='12:34:56:78:90:12' |
| 205 | 205 |
} |
| ... | ... |
@@ -2,9 +2,11 @@ |
| 2 | 2 |
# Install and start **Ceilometer** service |
| 3 | 3 |
|
| 4 | 4 |
# To enable a minimal set of Ceilometer services, add the following to localrc: |
| 5 |
+# |
|
| 5 | 6 |
# enable_service ceilometer-acompute ceilometer-acentral ceilometer-collector ceilometer-api |
| 6 | 7 |
# |
| 7 | 8 |
# To ensure Ceilometer alarming services are enabled also, further add to the localrc: |
| 9 |
+# |
|
| 8 | 10 |
# enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator |
| 9 | 11 |
|
| 10 | 12 |
# Dependencies: |
| ... | ... |
@@ -9,10 +9,11 @@ |
| 9 | 9 |
|
| 10 | 10 |
# This is a wrapper for the specific database backends available. |
| 11 | 11 |
# Each database must implement four functions: |
| 12 |
-# recreate_database_$DATABASE_TYPE |
|
| 13 |
-# install_database_$DATABASE_TYPE |
|
| 14 |
-# configure_database_$DATABASE_TYPE |
|
| 15 |
-# database_connection_url_$DATABASE_TYPE |
|
| 12 |
+# |
|
| 13 |
+# - recreate_database_$DATABASE_TYPE |
|
| 14 |
+# - install_database_$DATABASE_TYPE |
|
| 15 |
+# - configure_database_$DATABASE_TYPE |
|
| 16 |
+# - database_connection_url_$DATABASE_TYPE |
|
| 16 | 17 |
# |
| 17 | 18 |
# and call register_database $DATABASE_TYPE |
| 18 | 19 |
|
| ... | ... |
@@ -22,7 +23,9 @@ set +o xtrace |
| 22 | 22 |
|
| 23 | 23 |
|
| 24 | 24 |
# Register a database backend |
| 25 |
-# $1 The name of the database backend |
|
| 25 |
+# |
|
| 26 |
+# $1 The name of the database backend |
|
| 27 |
+# |
|
| 26 | 28 |
# This is required to be defined before the specific database scripts are sourced |
| 27 | 29 |
function register_database {
|
| 28 | 30 |
[ -z "$DATABASE_BACKENDS" ] && DATABASE_BACKENDS=$1 || DATABASE_BACKENDS+=" $1" |
| ... | ... |
@@ -208,7 +208,7 @@ source $TOP_DIR/lib/neutron_plugins/services/loadbalancer |
| 208 | 208 |
source $TOP_DIR/lib/neutron_plugins/services/vpn |
| 209 | 209 |
|
| 210 | 210 |
# Firewall Service Plugin functions |
| 211 |
-# -------------------------------- |
|
| 211 |
+# --------------------------------- |
|
| 212 | 212 |
source $TOP_DIR/lib/neutron_plugins/services/firewall |
| 213 | 213 |
|
| 214 | 214 |
# Use security group or not |
| ... | ... |
@@ -494,6 +494,7 @@ function _configure_neutron_common() {
|
| 494 | 494 |
# For main plugin config file, set ``Q_PLUGIN_CONF_PATH``, ``Q_PLUGIN_CONF_FILENAME``. |
| 495 | 495 |
# For addition plugin config files, set ``Q_PLUGIN_EXTRA_CONF_PATH``, |
| 496 | 496 |
# ``Q_PLUGIN_EXTRA_CONF_FILES``. For example: |
| 497 |
+ # |
|
| 497 | 498 |
# ``Q_PLUGIN_EXTRA_CONF_FILES=(file1, file2)`` |
| 498 | 499 |
neutron_plugin_configure_common |
| 499 | 500 |
|
| ... | ... |
@@ -268,8 +268,8 @@ function configure_swift() {
|
| 268 | 268 |
|
| 269 | 269 |
# By default Swift will be installed with keystone and tempauth middleware |
| 270 | 270 |
# and add the swift3 middleware if its configured for it. The token for |
| 271 |
- # tempauth would be prefixed with the reseller_prefix setting TEMPAUTH_ the |
|
| 272 |
- # token for keystoneauth would have the standard reseller_prefix AUTH_ |
|
| 271 |
+ # tempauth would be prefixed with the reseller_prefix setting `TEMPAUTH_` the |
|
| 272 |
+ # token for keystoneauth would have the standard reseller_prefix `AUTH_` |
|
| 273 | 273 |
if is_service_enabled swift3;then |
| 274 | 274 |
swift_pipeline=" swift3 s3token " |
| 275 | 275 |
fi |
| ... | ... |
@@ -84,11 +84,10 @@ if [ ! -r $CACHEDIR/$DIST_NAME-base.img ]; then |
| 84 | 84 |
$TOOLS_DIR/get_uec_image.sh $DIST_NAME $CACHEDIR/$DIST_NAME-base.img |
| 85 | 85 |
fi |
| 86 | 86 |
|
| 87 |
-# Finds the next available NBD device |
|
| 88 |
-# Exits script if error connecting or none free |
|
| 87 |
+# Finds and returns full device path for the next available NBD device. |
|
| 88 |
+# Exits script if error connecting or none free. |
|
| 89 | 89 |
# map_nbd image |
| 90 |
-# Returns full nbd device path |
|
| 91 |
-function map_nbd {
|
|
| 90 |
+function map_nbd() {
|
|
| 92 | 91 |
for i in `seq 0 15`; do |
| 93 | 92 |
if [ ! -e /sys/block/nbd$i/pid ]; then |
| 94 | 93 |
NBD=/dev/nbd$i |
| ... | ... |
@@ -156,7 +155,7 @@ if [ ! -r $IMG_FILE ]; then |
| 156 | 156 |
|
| 157 | 157 |
# Pre-create the image file |
| 158 | 158 |
# FIXME(dt): This should really get the partition size to |
| 159 |
- # pre-create the image file |
|
| 159 |
+ # pre-create the image file |
|
| 160 | 160 |
dd if=/dev/zero of=$IMG_FILE_TMP bs=1 count=1 seek=$((2*1024*1024*1024)) |
| 161 | 161 |
# Create filesystem image for RAM disk |
| 162 | 162 |
dd if=${NBD}p1 of=$IMG_FILE_TMP bs=1M
|
| ... | ... |
@@ -5,7 +5,9 @@ |
| 5 | 5 |
# Create a user account suitable for running DevStack |
| 6 | 6 |
# - create a group named $STACK_USER if it does not exist |
| 7 | 7 |
# - create a user named $STACK_USER if it does not exist |
| 8 |
+# |
|
| 8 | 9 |
# - home is $DEST |
| 10 |
+# |
|
| 9 | 11 |
# - configure sudo for $STACK_USER |
| 10 | 12 |
|
| 11 | 13 |
# ``stack.sh`` was never intended to run as root. It had a hack to do what is |
| ... | ... |
@@ -5,11 +5,15 @@ |
| 5 | 5 |
# fixup_stuff.sh |
| 6 | 6 |
# |
| 7 | 7 |
# All distro and package specific hacks go in here |
| 8 |
+# |
|
| 8 | 9 |
# - prettytable 0.7.2 permissions are 600 in the package and |
| 9 | 10 |
# pip 1.4 doesn't fix it (1.3 did) |
| 11 |
+# |
|
| 10 | 12 |
# - httplib2 0.8 permissions are 600 in the package and |
| 11 | 13 |
# pip 1.4 doesn't fix it (1.3 did) |
| 14 |
+# |
|
| 12 | 15 |
# - RHEL6: |
| 16 |
+# |
|
| 13 | 17 |
# - set selinux not enforcing |
| 14 | 18 |
# - (re)start messagebus daemon |
| 15 | 19 |
# - remove distro packages python-crypto and python-lxml |
| ... | ... |
@@ -90,7 +94,7 @@ if [[ $DISTRO =~ (rhel6) ]]; then |
| 90 | 90 |
# fresh system via Anaconda and the dependency chain |
| 91 | 91 |
# ``cas`` -> ``python-paramiko`` -> ``python-crypto``. |
| 92 | 92 |
# ``pip uninstall pycrypto`` will remove the packaged ``.egg-info`` |
| 93 |
- # file but leave most of the actual library files behind in |
|
| 93 |
+ # file but leave most of the actual library files behind in |
|
| 94 | 94 |
# ``/usr/lib64/python2.6/Crypto``. Later ``pip install pycrypto`` |
| 95 | 95 |
# will install over the packaged files resulting |
| 96 | 96 |
# in a useless mess of old, rpm-packaged files and pip-installed files. |