Issue
-
After upgrading CloudBees CI Controller to a version between 2.401.1.3 and 2.414.1.4 included, the controller cannot lookup credentials defined in Operations Center when disconnected or when the Operations Center is down.
-
Operations Center Credentials lookup and cache is not working after upgrading Controller to a version between 2.401.1.3 and 2.414.1.4 included
-
When the Operations Center is down, Controller shows:
WARNING com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction invokeServerAction Failed to call from $CJOC_URL/operations-center-server/credentials/lookup java.net.ConnectException: Connection refused
When the Operations Center is reachable from the controller via HTTP/S but the controller is disconnected, the problem is less obvious. A
FINE
logger oncom.cloudbees.opscenter.client.plugin.OperationsCenterCredentialsProvider
andcom.cloudbees.opscenter.client.plugin.OperationsCenterRootAction
would show an empty response to credentials lookup requests:FINE com.cloudbees.opscenter.client.plugin.OperationsCenterCredentialsProvider getCredentials Trying HTTP transport instead of Remoting FINE com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction invokeServerAction posting to $CJOC_URL/operations-center-server/credentials/lookup: $REQUEST FINE com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction invokeServerAction received response: []
Environment
-
CloudBees CI on modern cloud platforms - operations center >= 2.401.1.3 and < 2.414.2.2
-
CloudBees CI on modern cloud platforms - managed controller >= 2.401.1.3 and < 2.414.2.2
-
CloudBees CI on traditional platforms - operations center >= 2.401.1.3 and < 2.414.2.2
-
CloudBees CI on traditional platforms - client controller >= 2.401.1.3 and < 2.414.2.2
Resolution
This is a bug introduced in version 2.401.1.x of CloudBees CI that has been fixed in version 2.414.2.2.
The solution is to upgrade CloudBees CI to version 2.414.2.2 or later.