]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix get_status() to find client.rados text inside of ps command results.
authorWarren Usui <warren.usui@inktank.com>
Fri, 21 Feb 2014 05:11:45 +0000 (21:11 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 11 Mar 2014 03:40:07 +0000 (20:40 -0700)
Added port (fixed value for right now in teuthology) to hostname.
Fixes: 7374
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Warren Usui <warren.usui@inktank.com>
(cherry picked from commit 8200b8a02511e367370d33cb74c3d45ef85fca31)

qa/workunits/rgw/s3_multipart_upload.pl

index 0f40119ef7690b5c868aededfb8c28f68909e074..2566688e9b5c4e8748b1a14659cc9fadfc1dea23 100755 (executable)
@@ -45,7 +45,7 @@ Pod::Usage::pod2usage(-verbose => 1) && exit if ($help);
 my $s3;
 my $domain   = "front.sepia.ceph.com";
 my $host     = get_hostname();
-our $hostname = "$host.$domain";
+our $hostname = "$host.$domain:7280";
 my $testfileloc;
 my $sec;
 my $min;
@@ -77,7 +77,7 @@ sub get_status {
     my $service = "radosgw";
     my $cmd = "ps -ef | grep $service | grep -v grep";
     my $status = get_cmd_op($cmd);
-    if ($status =~ /client.radosgw/ ){
+    if ($status =~ m/client.radosgw/ ){
         return 0;
     }
     return 1;