Fix unavailable MCS link
MapR control System service does not start because of wrong permissions of ssl_keystore file. This is fixed by changing owner of this file to mapr. Change-Id: I17ad1abd324a56324ea162c3b3f3a531e4b2003f Closes-Bug: #1566910
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
import sahara.plugins.mapr.domain.node_process as np
|
||||
import sahara.plugins.mapr.domain.service as s
|
||||
import sahara.plugins.mapr.util.commands as cmd
|
||||
import sahara.plugins.mapr.util.validation_utils as vu
|
||||
|
||||
|
||||
@@ -43,6 +44,8 @@ METRICS = np.NodeProcess(
|
||||
|
||||
|
||||
class Management(s.Service):
|
||||
SSL_KEYSTORE = '/opt/mapr/conf/ssl_keystore'
|
||||
|
||||
def __init__(self):
|
||||
super(Management, self).__init__()
|
||||
self._ui_name = 'Management'
|
||||
@@ -55,3 +58,7 @@ class Management(s.Service):
|
||||
vu.at_least(1, WEB_SERVER),
|
||||
vu.odd_count_of(ZOOKEEPER),
|
||||
]
|
||||
|
||||
def post_install(self, cluster_context, instances):
|
||||
instance = cluster_context.get_instance(WEB_SERVER)
|
||||
cmd.chown(instance, 'mapr:mapr', self.SSL_KEYSTORE)
|
||||
|
||||
Reference in New Issue
Block a user