Browse code

Merge "Fix docs build errors"

Jenkins authored on 2014/10/09 07:14:51
Showing 11 changed files
... ...
@@ -48,10 +48,10 @@ function upload_image {
48 48
         fi
49 49
         image="$FILES/${image_fname}"
50 50
     else
51
-        # File based URL (RFC 1738): file://host/path
51
+        # File based URL (RFC 1738): ``file://host/path``
52 52
         # Remote files are not considered here.
53
-        # *nix: file:///home/user/path/file
54
-        # windows: file:///C:/Documents%20and%20Settings/user/path/file
53
+        # unix: ``file:///home/user/path/file``
54
+        # windows: ``file:///C:/Documents%20and%20Settings/user/path/file``
55 55
         image=$(echo $image_url | sed "s/^file:\/\///g")
56 56
         if [[ ! -f $image || "$(stat -c "%s" $image)" == "0" ]]; then
57 57
             echo "Not found: $image_url"
... ...
@@ -100,7 +100,7 @@ function upload_image {
100 100
         if [[ "$vmdk_create_type" = "monolithicSparse" ]]; then
101 101
             vmdk_disktype="sparse"
102 102
         elif [[ "$vmdk_create_type" = "monolithicFlat" || "$vmdk_create_type" = "vmfs" ]]; then
103
-            # Attempt to retrieve the *-flat.vmdk
103
+            # Attempt to retrieve the ``*-flat.vmdk``
104 104
             local flat_fname="$(head -25 $image | { grep -G 'RW\|RDONLY [0-9]+ FLAT\|VMFS' $image || true; })"
105 105
             flat_fname="${flat_fname#*\"}"
106 106
             flat_fname="${flat_fname%?}"
... ...
@@ -31,6 +31,7 @@
31 31
 # - ``TRACK_DEPENDS``
32 32
 # - ``UNDO_REQUIREMENTS``
33 33
 # - ``http_proxy``, ``https_proxy``, ``no_proxy``
34
+#
34 35
 
35 36
 # Save trace setting
36 37
 XTRACE=$(set +o | grep xtrace)
... ...
@@ -1270,7 +1271,8 @@ function screen_service {
1270 1270
         # - the pid of the background process is saved in the usual place
1271 1271
         # - the server process is brought back to the foreground
1272 1272
         # - if the server process exits prematurely the fg command errors
1273
-        #   and a message is written to stdout and the service failure file
1273
+        # and a message is written to stdout and the service failure file
1274
+        #
1274 1275
         # The pid saved can be used in stop_process() as a process group
1275 1276
         # id to kill off all child processes
1276 1277
         if [[ -n "$group" ]]; then
... ...
@@ -16,6 +16,7 @@
16 16
 #
17 17
 # Authors:
18 18
 #   Alon Marx <alonma@il.ibm.com>
19
+#
19 20
 
20 21
 # lib/cinder_plugins/xiv
21 22
 # Configure the xiv_ds8k driver for xiv testing
... ...
@@ -61,7 +62,7 @@ function configure_cinder_backend_xiv {
61 61
     fi
62 62
 
63 63
     # For reference:
64
-    # XIV_DS8K_BACKEND='IBM-XIV_'${SAN_IP}'_'${SAN_CLUSTERNAME}'_'${CONNECTION_TYPE}
64
+    # ``XIV_DS8K_BACKEND='IBM-XIV_'${SAN_IP}'_'${SAN_CLUSTERNAME}'_'${CONNECTION_TYPE}``
65 65
     iniset $CINDER_CONF DEFAULT xiv_ds8k_driver_version $XIV_DRIVER_VERSION
66 66
 
67 67
     iniset $CINDER_CONF $be_name san_ip $SAN_IP
... ...
@@ -186,9 +186,10 @@ fi
186 186
 
187 187
 # Distributed Virtual Router (DVR) configuration
188 188
 # Can be:
189
-#     legacy   - No DVR functionality
190
-#     dvr_snat - Controller or single node DVR
191
-#     dvr      - Compute node in multi-node DVR
189
+# - ``legacy``   - No DVR functionality
190
+# - ``dvr_snat`` - Controller or single node DVR
191
+# - ``dvr``      - Compute node in multi-node DVR
192
+#
192 193
 Q_DVR_MODE=${Q_DVR_MODE:-legacy}
193 194
 if [[ "$Q_DVR_MODE" != "legacy" ]]; then
194 195
     Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge,l2population
... ...
@@ -1,5 +1,6 @@
1 1
 # Neutron One Convergence plugin
2
-# ---------------------------
2
+# ------------------------------
3
+
3 4
 # Save trace setting
4 5
 OC_XTRACE=$(set +o | grep xtrace)
5 6
 set +o xtrace
... ...
@@ -706,7 +706,7 @@ function start_nova_compute {
706 706
 
707 707
     if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then
708 708
         # The group **$LIBVIRT_GROUP** is added to the current user in this script.
709
-        # sg' will be used in run_process to execute nova-compute as a member of the
709
+        # ``sg`` is used in run_process to execute nova-compute as a member of the
710 710
         # **$LIBVIRT_GROUP** group.
711 711
         run_process n-cpu "$NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf" $LIBVIRT_GROUP
712 712
     elif [[ "$VIRT_DRIVER" = 'fake' ]]; then
... ...
@@ -10,7 +10,7 @@ LV_XTRACE=$(set +o | grep xtrace)
10 10
 set +o xtrace
11 11
 
12 12
 # Defaults
13
-# -------
13
+# --------
14 14
 
15 15
 # if we should turn on massive libvirt debugging
16 16
 DEBUG_LIBVIRT=$(trueorfalse False $DEBUG_LIBVIRT)
... ...
@@ -3,9 +3,9 @@
3 3
 
4 4
 # Dependencies:
5 5
 #
6
-# - ``functions`` file
7
-# # ``DEST`` must be defined
8
-# # ``STACK_USER`` must be defined
6
+# ``functions`` file
7
+# ``DEST`` must be defined
8
+# ``STACK_USER`` must be defined
9 9
 
10 10
 # ``stack.sh`` calls the entry points in this order:
11 11
 #
... ...
@@ -55,7 +55,7 @@ ODL_URL=${ODL_URL:-https://nexus.opendaylight.org/content/repositories/opendayli
55 55
 
56 56
 # Default arguments for OpenDaylight. This is typically used to set
57 57
 # Java memory options.
58
-#   ODL_ARGS=Xmx1024m -XX:MaxPermSize=512m
58
+# ``ODL_ARGS=Xmx1024m -XX:MaxPermSize=512m``
59 59
 ODL_ARGS=${ODL_ARGS:-"-XX:MaxPermSize=384m"}
60 60
 
61 61
 # How long to pause after ODL starts to let it complete booting
... ...
@@ -64,8 +64,6 @@ ODL_BOOT_WAIT=${ODL_BOOT_WAIT:-60}
64 64
 # The physical provider network to device mapping
65 65
 ODL_PROVIDER_MAPPINGS=${ODL_PROVIDER_MAPPINGS:-physnet1:eth1}
66 66
 
67
-# Set up default directories
68
-
69 67
 
70 68
 # Entry Points
71 69
 # ------------
... ...
@@ -139,6 +137,7 @@ function start_opendaylight {
139 139
     # The flags to ODL have the following meaning:
140 140
     #   -of13: runs ODL using OpenFlow 1.3 protocol support.
141 141
     #   -virt ovsdb: Runs ODL in "virtualization" mode with OVSDB support
142
+
142 143
     # NOTE(chdent): Leaving this as screen_it instead of run_process until
143 144
     # the right thing for this service is determined.
144 145
     screen_it odl-server "cd $ODL_DIR/opendaylight && JAVA_HOME=$JHOME ./run.sh $ODL_ARGS -of13 -virt ovsdb"
... ...
@@ -433,7 +433,7 @@ function start_tls_proxy {
433 433
 
434 434
 
435 435
 # Cleanup Functions
436
-# ===============
436
+# =================
437 437
 
438 438
 
439 439
 # Stops all stud processes. This should be done only after all services
... ...
@@ -120,7 +120,7 @@ GIT_TIMEOUT=${GIT_TIMEOUT:-0}
120 120
 # ------------
121 121
 
122 122
 # Base GIT Repo URL
123
-# Another option is http://review.openstack.org/p
123
+# Another option is https://git.openstack.org
124 124
 GIT_BASE=${GIT_BASE:-git://git.openstack.org}
125 125
 
126 126
 ##############
... ...
@@ -245,7 +245,7 @@ function get_user_id {
245 245
 }
246 246
 
247 247
 if [ $MODE != "create" ]; then
248
-# looks like I can't ask for all tenant related to a specified user
248
+    # looks like I can't ask for all tenant related to a specified user
249 249
     openstack project list --long --quote none -f csv | grep ',True' | grep -v "${SKIP_TENANT}" | while IFS=, read tenant_id tenant_name desc enabled; do
250 250
         openstack user list --project $tenant_id --long --quote none -f csv | grep ',True' | while IFS=, read user_id user_name project email enabled; do
251 251
             if [ $MODE = one -a "$user_name" != "$USER_NAME" ]; then
... ...
@@ -253,8 +253,7 @@ if [ $MODE != "create" ]; then
253 253
             fi
254 254
 
255 255
             # Checks for a specific password defined for an user.
256
-            # Example for an username johndoe:
257
-            #                     JOHNDOE_PASSWORD=1234
256
+            # Example for an username johndoe: JOHNDOE_PASSWORD=1234
258 257
             eval SPECIFIC_UPASSWORD="\$${USER_NAME^^}_PASSWORD"
259 258
             if [ -n "$SPECIFIC_UPASSWORD" ]; then
260 259
                 USER_PASS=$SPECIFIC_UPASSWORD