|
...
|
...
|
@@ -518,7 +518,11 @@ function _configure_quantum_service() {
|
|
518
|
518
|
iniset $QUANTUM_CONF DEFAULT allow_overlapping_ips $Q_ALLOW_OVERLAPPING_IP
|
|
519
|
519
|
|
|
520
|
520
|
iniset $QUANTUM_CONF DEFAULT auth_strategy $Q_AUTH_STRATEGY
|
|
521
|
|
- _quantum_setup_keystone $Q_API_PASTE_FILE filter:authtoken
|
|
|
521
|
+ _quantum_setup_keystone $QUANTUM_CONF keystone_authtoken
|
|
|
522
|
+ # Comment out keystone authtoken configuration in api-paste.ini
|
|
|
523
|
+ # It is required to avoid any breakage in Quantum where the sample
|
|
|
524
|
+ # api-paste.ini has authtoken configurations.
|
|
|
525
|
+ _quantum_commentout_keystone_authtoken $Q_API_PASTE_FILE filter:authtoken
|
|
522
|
526
|
|
|
523
|
527
|
# Configure plugin
|
|
524
|
528
|
quantum_plugin_configure_service
|
|
...
|
...
|
@@ -584,6 +588,21 @@ function _quantum_setup_keystone() {
|
|
584
|
584
|
rm -f $QUANTUM_AUTH_CACHE_DIR/*
|
|
585
|
585
|
}
|
|
586
|
586
|
|
|
|
587
|
+function _quantum_commentout_keystone_authtoken() {
|
|
|
588
|
+ local conf_file=$1
|
|
|
589
|
+ local section=$2
|
|
|
590
|
+
|
|
|
591
|
+ inicomment $conf_file $section auth_host
|
|
|
592
|
+ inicomment $conf_file $section auth_port
|
|
|
593
|
+ inicomment $conf_file $section auth_protocol
|
|
|
594
|
+ inicomment $conf_file $section auth_url
|
|
|
595
|
+
|
|
|
596
|
+ inicomment $conf_file $section admin_tenant_name
|
|
|
597
|
+ inicomment $conf_file $section admin_user
|
|
|
598
|
+ inicomment $conf_file $section admin_password
|
|
|
599
|
+ inicomment $conf_file $section signing_dir
|
|
|
600
|
+}
|
|
|
601
|
+
|
|
587
|
602
|
function _quantum_setup_interface_driver() {
|
|
588
|
603
|
quantum_plugin_setup_interface_driver $1
|
|
589
|
604
|
}
|