Skip to content

Commit 327eaa9

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Drop workaround for old gophercloud"
2 parents b5941f3 + 9931327 commit 327eaa9

2 files changed

Lines changed: 0 additions & 41 deletions

File tree

devstack/lib/magnum

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
# - magnum_configure_flavor
2020
# - start_magnum
2121
# - configure_iptables_magnum
22-
# - configure_apache_magnum
2322
# - stop_magnum
2423
# - cleanup_magnum
2524

@@ -372,45 +371,6 @@ function configure_iptables_magnum {
372371
fi
373372
}
374373

375-
function configure_apache_magnum {
376-
# Set redirection for kubernetes openstack cloud provider
377-
# FIXME: When [1] is in kubernetes, we won't need the redirection anymore.
378-
# [1] https://github.com/gophercloud/gophercloud/pull/423
379-
HTACCESS_PATH=/var/www/html
380-
if is_ubuntu; then
381-
OVERRIDE_CONF_FILE=/etc/apache2/apache2.conf
382-
elif is_fedora; then
383-
OVERRIDE_CONF_FILE=/etc/httpd/conf/httpd.conf
384-
fi
385-
# If horizon is enabled then we need
386-
if is_service_enabled horizon; then
387-
HTACCESS_PATH=$DEST/horizon/.blackhole
388-
sudo tee -a $APACHE_CONF_DIR/horizon.conf <<EOF
389-
<Directory $HTACCESS_PATH>
390-
Options Indexes FollowSymLinks
391-
AllowOverride all
392-
Require all granted
393-
</Directory>
394-
EOF
395-
else
396-
sudo tee -a $OVERRIDE_CONF_FILE <<EOF
397-
<Directory $HTACCESS_PATH>
398-
Options Indexes FollowSymLinks
399-
AllowOverride all
400-
Require all granted
401-
</Directory>
402-
EOF
403-
fi
404-
405-
sudo mkdir -p $HTACCESS_PATH
406-
sudo tee $HTACCESS_PATH/.htaccess <<EOF
407-
RewriteEngine on
408-
RewriteRule ^v2\.0(.*) /identity/v2.0\$1
409-
RewriteRule ^v3(.*) /identity/v3\$1
410-
EOF
411-
enable_apache_mod rewrite
412-
}
413-
414374
# start_magnum() - Start running processes, including screen
415375
function start_magnum {
416376

devstack/plugin.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ if is_service_enabled magnum-api magnum-cond; then
4646
start_magnum
4747

4848
configure_iptables_magnum
49-
configure_apache_magnum
5049
fi
5150

5251
if [[ "$1" == "unstack" ]]; then

0 commit comments

Comments
 (0)