]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/diskprediction_cloud: Service unavailable 29454/head
authorhsiang41 <rick.chen@prophetstor.com>
Fri, 21 Jun 2019 09:38:52 +0000 (17:38 +0800)
committerPrashant D <pdhange@redhat.com>
Thu, 1 Aug 2019 23:36:10 +0000 (19:36 -0400)
Reset the grpc ssl_target_name_override and default_authority
default to be 'localhost'.

Fixes: http://tracker.ceph.com/issues/40478
Signed-off-by: Rick Chen <rick.chen@prophetstor.com>
(cherry picked from commit 693ec6dfdf45a84eacf355a7fcce4828f901d2c6)

src/pybind/mgr/diskprediction_cloud/module.py

index 151b2bc9c8fd71b0404b790def4e8484ad5aee28..fb918a09102c8d766377f1402740ff62bfd4728f 100644 (file)
@@ -82,11 +82,11 @@ class Module(MgrModule):
         },
         {
             'name': 'diskprediction_ssl_target_name_override',
-            'default': 'api.diskprophet.com'
+            'default': 'localhost'
         },
         {
             'name': 'diskprediction_default_authority',
-            'default': 'api.diskprophet.com'
+            'default': 'localhost'
         },
         {
             'name': 'sleep_interval',
@@ -398,7 +398,7 @@ class Module(MgrModule):
                         restart_agent = True
                         break
             except Exception as IOError:
-                self.log.error('disk prediction plugin faield to started and try to restart')
+                self.log.error('disk prediction plugin failed to started and try to restart')
                 restart_agent = True
 
             if restart_agent: