]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: add explanation for EACCESS on 'realm pull' 8264/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 23 Mar 2016 15:11:48 +0000 (11:11 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 23 Mar 2016 15:25:21 +0000 (11:25 -0400)
References #15200

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_admin.cc

index 6239dc603a7f867fbb424b7216aa0d13b833fd70..46ed41b1c6d06d6d2ad81eb1e089b21ed5270cf5 100644 (file)
@@ -2746,6 +2746,11 @@ int main(int argc, char **argv)
                                         info, bl, p);
         if (ret < 0) {
           cerr << "request failed: " << cpp_strerror(-ret) << std::endl;
+          if (ret == -EACCES) {
+            cerr << "If the realm has been changed on the master zone, the "
+                "master zone's gateway may need to be restarted to recognize "
+                "this user." << std::endl;
+          }
           return ret;
         }
         RGWRealm realm;