[hopem,r=]

Don't disable HTTP 100-Continue if using ceph
optimised packages with Apache.
Closes-Bug: 1515387
This commit is contained in:
Edward Hope-Morley 2015-12-02 11:09:50 +00:00
parent c64512cf50
commit 0f76809c4a
3 changed files with 11 additions and 1 deletions

View File

@ -102,6 +102,13 @@ class MonContext(context.OSContextGenerator):
'loglevel': config('loglevel'),
}
if (config('use-ceph-optimised-packages') and
not config('use-embedded-webserver')):
ctxt['disable_100_continue'] = False
else:
# NOTE: currently only applied if NOT using embedded webserver
ctxt['disable_100_continue'] = True
if self.context_complete(ctxt):
return ctxt

View File

@ -19,7 +19,7 @@ rgw socket path = /tmp/radosgw.sock
log file = /var/log/ceph/radosgw.log
{% if embedded_webserver %}
rgw frontends = civetweb port=70
{% else %}
{% elif disable_100_continue %}
# Turn off 100-continue optimization as stock mod_fastcgi
# does not support it
rgw print continue = false

View File

@ -162,6 +162,7 @@ class MonContextTest(CharmTestCase):
expect = {
'auth_supported': 'cephx',
'embedded_webserver': False,
'disable_100_continue': True,
'hostname': '10.0.0.10',
'mon_hosts': '10.5.4.1:6789 10.5.4.2:6789 10.5.4.3:6789',
'old_auth': False,
@ -195,6 +196,7 @@ class MonContextTest(CharmTestCase):
expect = {
'auth_supported': 'none',
'embedded_webserver': False,
'disable_100_continue': True,
'hostname': '10.0.0.10',
'mon_hosts': '10.5.4.1:6789 10.5.4.2:6789 10.5.4.3:6789',
'old_auth': False,
@ -220,6 +222,7 @@ class MonContextTest(CharmTestCase):
expect = {
'auth_supported': 'cephx',
'embedded_webserver': False,
'disable_100_continue': True,
'hostname': '10.0.0.10',
'mon_hosts': '10.5.4.1:6789 10.5.4.2:6789 10.5.4.3:6789',
'old_auth': False,