]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/rgw.py: start Apache before RadosGW. 13846/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 7 Mar 2017 16:31:52 +0000 (17:31 +0100)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 7 Mar 2017 16:31:52 +0000 (17:31 +0100)
At the end of start_rgw() we wait till establishing HTTP connections
with RadosGW become possible. However, if RadosGW uses the FastCGI,
the condition can't be fulfilled without spawning HTTP server first.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
qa/tasks/rgw.py

index c8da3629c7de094aa9fd20f72db9878b6f247299..254c5294c847ff36644834685216bf4f26bc14dd 100644 (file)
@@ -1305,8 +1305,8 @@ def task(ctx, config):
             subtasks.extend([
                 lambda: ship_apache_configs(ctx=ctx, config=config,
                                             role_endpoints=role_endpoints, on_client=master_client),
-                lambda: start_rgw(ctx=ctx, config=config, on_client=master_client),
                 lambda: start_apache(ctx=ctx, config=config, on_client=master_client),
+                lambda: start_rgw(ctx=ctx, config=config, on_client=master_client),
             ])
         elif ctx.rgw.frontend == 'civetweb':
             subtasks.extend([
@@ -1345,15 +1345,15 @@ def task(ctx, config):
                                             on_client=None,
                                             except_client = master_client,
                 ),
-                lambda: start_rgw(ctx=ctx,
-                                  config=config,
-                                  on_client=None,
-                                  except_client = master_client),
                 lambda: start_apache(ctx=ctx,
                                      config = config,
                                      on_client=None,
                                      except_client = master_client,
                 ),
+                lambda: start_rgw(ctx=ctx,
+                                  config=config,
+                                  on_client=None,
+                                  except_client = master_client),
             ])
         elif ctx.rgw.frontend == 'civetweb':
             subtasks.extend([
@@ -1386,9 +1386,9 @@ def task(ctx, config):
             subtasks.extend([
                 lambda: ship_apache_configs(ctx=ctx, config=config,
                                             role_endpoints=role_endpoints),
+                lambda: start_apache(ctx=ctx, config=config),
                 lambda: start_rgw(ctx=ctx,
                                   config=config),
-                lambda: start_apache(ctx=ctx, config=config),
                 ])
         elif ctx.rgw.frontend == 'civetweb':
             subtasks.extend([