Skip to content

Commit cedaa19

Browse files
authored
Bypass finding master for api type (#381)
Issue calls directly against input host when API used due to issues with Cloud, EDE, ECK clusters.
1 parent 0e684c0 commit cedaa19

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.elasticsearch</groupId>
66
<artifactId>support-diagnostics</artifactId>
7-
<version>8.0.0</version>
7+
<version>8.0.1</version>
88
<packaging>jar</packaging>
99
<name>Support Diagnostics Utilities</name>
1010
<properties>

src/main/java/com/elastic/support/diagnostics/chain/DiagnosticChainExec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public static void runDiagnostic(DiagnosticContext context, String type) {
2121
case Constants.api :
2222
new CheckElasticsearchVersion().execute(context);
2323
new CheckUserAuthLevel().execute(context);
24-
new CheckPlatformDetails().execute(context);
24+
// Removed temporarily due to issues with finding and accessing cloud master
25+
//new CheckPlatformDetails().execute(context);
2526
new RunClusterQueries().execute(context);
2627
break;
2728

src/main/java/com/elastic/support/diagnostics/commands/CheckPlatformDetails.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ public void execute(DiagnosticContext context) {
111111
targetOS = context.targetNode.os;
112112
}
113113

114-
115114
syscmd = new RemoteSystem(
116115
targetOS,
117116
context.diagnosticInputs.remoteUser,
@@ -153,12 +152,6 @@ public void execute(DiagnosticContext context) {
153152

154153
break;
155154

156-
case Constants.api:
157-
context.targetNode = findRemoteTargetNode(
158-
context.diagnosticInputs.host, nodeProfiles);
159-
context.runSystemCalls = false;
160-
break;
161-
162155
default:
163156
// If it's not one of the above types it shouldn't be here but try to keep going...
164157
context.runSystemCalls = false;

0 commit comments

Comments
 (0)