Browse code

Merge "iniset_rpc_backend default section"

Jenkins authored on 2015/03/22 11:41:03
Showing 11 changed files
... ...
@@ -165,7 +165,7 @@ function _config_ceilometer_apache_wsgi {
165 165
 function configure_ceilometer {
166 166
     sudo install -d -o $STACK_USER -m 755 $CEILOMETER_CONF_DIR $CEILOMETER_API_LOG_DIR
167 167
 
168
-    iniset_rpc_backend ceilometer $CEILOMETER_CONF DEFAULT
168
+    iniset_rpc_backend ceilometer $CEILOMETER_CONF
169 169
 
170 170
     iniset $CEILOMETER_CONF DEFAULT notification_topics "$CEILOMETER_NOTIFICATION_TOPICS"
171 171
     iniset $CEILOMETER_CONF DEFAULT verbose True
... ...
@@ -277,7 +277,7 @@ function configure_cinder {
277 277
         iniset $CINDER_CONF DEFAULT use_syslog True
278 278
     fi
279 279
 
280
-    iniset_rpc_backend cinder $CINDER_CONF DEFAULT
280
+    iniset_rpc_backend cinder $CINDER_CONF
281 281
 
282 282
     if [[ "$CINDER_SECURE_DELETE" == "False" ]]; then
283 283
         iniset $CINDER_CONF DEFAULT secure_delete False
... ...
@@ -104,7 +104,7 @@ function configure_glance {
104 104
     if is_service_enabled qpid || [ -n "$RABBIT_HOST" ] && [ -n "$RABBIT_PASSWORD" ]; then
105 105
         iniset $GLANCE_REGISTRY_CONF DEFAULT notification_driver messaging
106 106
     fi
107
-    iniset_rpc_backend glance $GLANCE_REGISTRY_CONF DEFAULT
107
+    iniset_rpc_backend glance $GLANCE_REGISTRY_CONF
108 108
 
109 109
     cp $GLANCE_DIR/etc/glance-api.conf $GLANCE_API_CONF
110 110
     iniset $GLANCE_API_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
... ...
@@ -117,7 +117,7 @@ function configure_glance {
117 117
     if is_service_enabled qpid || [ -n "$RABBIT_HOST" ] && [ -n "$RABBIT_PASSWORD" ]; then
118 118
         iniset $GLANCE_API_CONF DEFAULT notification_driver messaging
119 119
     fi
120
-    iniset_rpc_backend glance $GLANCE_API_CONF DEFAULT
120
+    iniset_rpc_backend glance $GLANCE_API_CONF
121 121
     if [ "$VIRT_DRIVER" = 'xenserver' ]; then
122 122
         iniset $GLANCE_API_CONF DEFAULT container_formats "ami,ari,aki,bare,ovf,tgz"
123 123
         iniset $GLANCE_API_CONF DEFAULT disk_formats "ami,ari,aki,vhd,raw,iso"
... ...
@@ -106,7 +106,7 @@ function configure_heat {
106 106
     cp $HEAT_DIR/etc/heat/policy.json $HEAT_POLICY_FILE
107 107
 
108 108
     # common options
109
-    iniset_rpc_backend heat $HEAT_CONF DEFAULT
109
+    iniset_rpc_backend heat $HEAT_CONF
110 110
     iniset $HEAT_CONF DEFAULT heat_metadata_server_url http://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT
111 111
     iniset $HEAT_CONF DEFAULT heat_waitcondition_server_url http://$HEAT_API_CFN_HOST:$HEAT_API_CFN_PORT/v1/waitcondition
112 112
     iniset $HEAT_CONF DEFAULT heat_watch_server_url http://$HEAT_API_CW_HOST:$HEAT_API_CW_PORT
... ...
@@ -305,7 +305,7 @@ function configure_ironic_api {
305 305
     iniset $IRONIC_CONF_FILE keystone_authtoken cafile $SSL_BUNDLE_FILE
306 306
     iniset $IRONIC_CONF_FILE keystone_authtoken signing_dir $IRONIC_AUTH_CACHE_DIR/api
307 307
 
308
-    iniset_rpc_backend ironic $IRONIC_CONF_FILE DEFAULT
308
+    iniset_rpc_backend ironic $IRONIC_CONF_FILE
309 309
     iniset $IRONIC_CONF_FILE api port $IRONIC_SERVICE_PORT
310 310
 
311 311
     cp -p $IRONIC_DIR/etc/ironic/policy.json $IRONIC_POLICY_JSON
... ...
@@ -222,7 +222,7 @@ function configure_keystone {
222 222
         iniset $KEYSTONE_CONF assignment driver "keystone.assignment.backends.$KEYSTONE_ASSIGNMENT_BACKEND.Assignment"
223 223
     fi
224 224
 
225
-    iniset_rpc_backend keystone $KEYSTONE_CONF DEFAULT
225
+    iniset_rpc_backend keystone $KEYSTONE_CONF
226 226
 
227 227
     # Set the URL advertised in the ``versions`` structure returned by the '/' route
228 228
     iniset $KEYSTONE_CONF DEFAULT public_endpoint "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/"
... ...
@@ -426,7 +426,7 @@ function is_neutron_enabled {
426 426
 # Set common config for all neutron server and agents.
427 427
 function configure_neutron {
428 428
     _configure_neutron_common
429
-    iniset_rpc_backend neutron $NEUTRON_CONF DEFAULT
429
+    iniset_rpc_backend neutron $NEUTRON_CONF
430 430
 
431 431
     # goes before q-svc to init Q_SERVICE_PLUGIN_CLASSES
432 432
     if is_service_enabled q-lbaas; then
... ...
@@ -532,7 +532,7 @@ function create_nova_conf {
532 532
 
533 533
     iniset $NOVA_CONF DEFAULT ec2_dmz_host "$EC2_DMZ_HOST"
534 534
     iniset $NOVA_CONF DEFAULT keystone_ec2_url $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v2.0/ec2tokens
535
-    iniset_rpc_backend nova $NOVA_CONF DEFAULT
535
+    iniset_rpc_backend nova $NOVA_CONF
536 536
     iniset $NOVA_CONF glance api_servers "${GLANCE_SERVICE_PROTOCOL}://${GLANCE_HOSTPORT}"
537 537
 
538 538
     iniset $NOVA_CONF DEFAULT osapi_compute_workers "$API_WORKERS"
... ...
@@ -246,7 +246,7 @@ function get_transport_url {
246 246
 function iniset_rpc_backend {
247 247
     local package=$1
248 248
     local file=$2
249
-    local section=$3
249
+    local section=${3:-DEFAULT}
250 250
     if is_service_enabled zeromq; then
251 251
         iniset $file $section rpc_backend "zmq"
252 252
         iniset $file $section rpc_zmq_host `hostname`
... ...
@@ -118,7 +118,7 @@ function configure_sahara {
118 118
     if is_service_enabled ceilometer; then
119 119
         iniset $SAHARA_CONF_FILE DEFAULT enable_notifications "true"
120 120
         iniset $SAHARA_CONF_FILE DEFAULT notification_driver "messaging"
121
-        iniset_rpc_backend sahara $SAHARA_CONF_FILE DEFAULT
121
+        iniset_rpc_backend sahara $SAHARA_CONF_FILE
122 122
     fi
123 123
 
124 124
     iniset $SAHARA_CONF_FILE DEFAULT verbose True
... ...
@@ -132,7 +132,7 @@ function configure_zaqar {
132 132
         iniset $ZAQAR_CONF DEFAULT notification_driver messaging
133 133
         iniset $ZAQAR_CONF DEFAULT control_exchange zaqar
134 134
     fi
135
-    iniset_rpc_backend zaqar $ZAQAR_CONF DEFAULT
135
+    iniset_rpc_backend zaqar $ZAQAR_CONF
136 136
 
137 137
     cleanup_zaqar
138 138
 }