diff options
author | MichaelMorris <michael.morris@est.tech> | 2021-10-13 21:09:19 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2021-10-14 12:44:53 +0000 |
commit | 9e81c0f8d1c759cfe54312fed69b9ba263f4e52e (patch) | |
tree | befc660c61ca1d10cde570fb8a98743496d2e0f5 /catalog-be | |
parent | a22d38859d780418e13dd9cced57bdffdcfaa309 (diff) |
Fix auth failure to dmaap after upgrade
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-3756
Change-Id: I58e6f99156e1e64443cd79c2e08f73987329b88d
Diffstat (limited to 'catalog-be')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/DistributionEngineInitTask.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/DistributionEngineInitTask.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/DistributionEngineInitTask.java index 6207cd2a5a..d61e15016a 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/DistributionEngineInitTask.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/DistributionEngineInitTask.java @@ -197,6 +197,14 @@ public class DistributionEngineInitTask implements Runnable { CambriaErrorResponse registerStatus = cambriaHandler .registerToTopic(environmentEntry.getDmaapUebAddress(), environmentEntry.getUebApikey(), environmentEntry.getUebSecretKey(), environmentEntry.getUebApikey(), subscriberType, topicName); + + if (CambriaOperationStatus.AUTHENTICATION_ERROR.equals(registerStatus.getOperationStatus()) + || CambriaOperationStatus.CONNNECTION_ERROR.equals(registerStatus.getOperationStatus())){ + registerStatus = cambriaHandler + .registerToTopic(environmentEntry.getDmaapUebAddress(), deConfiguration.getUebPublicKey(), deConfiguration.getUebSecretKey(), + environmentEntry.getUebApikey(), subscriberType, topicName); + } + String role = CONSUMER; if (subscriberType == SubscriberTypeEnum.PRODUCER) { role = PRODUCER; |