!722 grpc已废弃,gs_dropnode删除

Merge pull request !722 from liuheng/fix46
This commit is contained in:
opengauss_bot 2024-03-16 09:26:34 +00:00 committed by Gitee
commit dc21ef04d5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -130,21 +130,9 @@ class DropnodeImpl():
self.userProfile, True)
self.commonOper.stopInstance(hostNameLoop, sshtool_host, i,
self.userProfile)
cmdDelCert = "ls %s/share/sslcert/grpc/* | " \
"grep -v openssl.cnf | xargs rm -rf" % self.appPath
result, output = sshtool_host.getSshStatusOutput(cmdDelCert,
[hostNameLoop], self.userProfile)
if result[hostNameLoop] != 'Success':
self.logger.debug(output)
self.logger.log("[gs_dropnode]Failed to delete the GRPC "
"sslcert of %s." % hostNameLoop)
self.logger.log("[gs_dropnode]Please check and delete the "
"GRPC sslcert of %s manually." % hostNameLoop)
self.cleanSshToolFile(sshtool_host)
else:
self.logger.log("[gs_dropnode]Cannot connect %s. Please check "
"and delete the GRPC sslcert of %s manually."
% (hostNameLoop, hostNameLoop))
self.logger.log("[gs_dropnode]Cannot connect %s." % (hostNameLoop))
def dropNodeOnAllHosts(self):
"""