Hi,

Perhaps the version of CDS client libriaries. CDS schemas were changed in 
Honolulu and maybe it was not updated in the policy module.

Anyway, this schema change was reverted recently, but you will not find that in 
the Honolulu oom deployment yet.

Regards,

[Logo Orange]

Łukasz Rajewski, R&D Expert
Orange Labs Polska, Virtual Programmable Infrastructure Skill center
Mob.: +48 604307879
Orange Polska, Obrzeżna 7, 02-691 Warszawa
www.orange.pl<http://www.orange.pl/>



From: [email protected] <[email protected]> On Behalf Of 
Andrzej Denisiewicz via lists.onap.org
Sent: Friday, August 27, 2021 12:45 PM
To: [email protected]
Subject: [onap-discuss] #honolulu #drools #clamp #cds Policy cannot call python 
workflow by grpc


Hi, I run a closed loop,where the operational policy in drools tries to call a 
python function defined in CBA. (Calling manually by rest works). But I get an 
exception :

[2021-08-25T12:08:06.285+00:00|INFO|CdsProcessorHandler|Thread-203] Processing 
blueprint(1.0.0:clamp-204) for action(1.0.0)
[2021-08-25T12:08:06.287+00:00|INFO|network|Thread-203] 
[OUT|REST|gRPC://cds-blueprints-processor-grpc:9111/]
commonHeader {
  requestId: "836412cd-49a0-4ed7-86db-d035d22d78d7"
  subRequestId: "0"
  originatorId: "POLICY"
}
actionIdentifiers {
  blueprintName: "clamp-204"
  blueprintVersion: "1.0.0"
  actionName: "execute-scale-down"
  mode: "sync"
}
payload {
  fields {
    key: "execute-scale-down-request"
    value {
      struct_value {
        fields {
          key: "execute-scale-down-properties"
          value {
            struct_value {
              fields {
                key: "data"
                value {
                  struct_value {
                  }
                }
              }
              fields {
                key: "generic-vnf.vnf-id"
                value {
                  string_value: "d2c8d4c4-463d-41b3-a06e-323c44d34518"
                }
              }
              fields {
                key: "service-instance.service-instance-id"
                value {
                  string_value: "8b112efe-bfa7-4eb2-b2a1-99efc20d6e11"
                }
              }
            }
          }
        }
        fields {
          key: "resolution-key"
          value {
            string_value: "fa4ab81c-b448-4475-9624-86233c985a3b"
          }
        }
      }
    }
  }
}

[2021-08-25T12:08:06.302+00:00|INFO|CambriaSimplerBatchPublisher|pool-8-thread-1]
 sending 2 msgs to /events/POLICY-CL-MGT. Oldest: 28 ms
[2021-08-25T12:08:06.303+00:00|INFO|HttpClient|pool-8-thread-1] POST 
https://message-router:3905/events/POLICY-CL-MGT (anonymous) ...
[2021-08-25T12:08:06.307+00:00|INFO|HttpClient|pool-8-thread-1]         --> 
HTTP/1.1 200 OK
[2021-08-25T12:08:06.307+00:00|INFO|CambriaSimplerBatchPublisher|pool-8-thread-1]
 cambria reply ok (5 ms):{"serverTimeMs":0,"count":2}
[2021-08-25T12:08:06.324+00:00|INFO|CdsProcessorHandler|grpc-default-executor-0]
 [IN|REST|gRPC://cds-blueprints-processor-grpc:9111/|]
{}
io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found: 
org.onap.ccsdk.cds.controllerblueprints.processing.api.BluePrintProcessingService/process
        at io.grpc.Status.asRuntimeException(Status.java:534)
        at 
io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:478)
        at 
io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:464)
        at 
io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:428)
        at 
io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:461)
        at 
io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553)
        at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68)
        at 
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739)
        at 
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718)
        at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at 
io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
[2021-08-25T12:08:06.326+00:00|WARN|OperationPartial|Thread-204] exception 
thrown by operation CDS.execute-scale-down for 
836412cd-49a0-4ed7-86db-d035d22d78d7
java.util.concurrent.CompletionException: io.grpc.StatusRuntimeException: 
UNIMPLEMENTED: Method not found: 
org.onap.ccsdk.cds.controllerblueprints.processing.api.BluePrintProcessingService/process
        at 
java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
        at 
java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
        at 
java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:870)
        at 
java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
        at 
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
        at 
java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
        at 
org.onap.policy.controlloop.actor.cds.CdsActorServiceManager.onError(CdsActorServiceManager.java:81)
        at 
org.onap.policy.cds.client.CdsProcessorHandler$1.onError(CdsProcessorHandler.java:67)
        at 
io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:478)
        at 
io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:464)
        at 
io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:428)
        at 
io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:461)
        at 
io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553)
        at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68)
        at 
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739)
        at 
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718)
        at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at 
io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found: 
org.onap.ccsdk.cds.controllerblueprints.processing.api.BluePrintProcessingService/process
        at io.grpc.Status.asRuntimeException(Status.java:534)
        ... 13 common frames omitted
[2021-08-25T12:08:06.326+00:00|INFO|CdsProcessorGrpcClient|Thread-206] 
CdsProcessorListener stopped
[2021-08-25T12:08:06.329+00:00|INFO|ControlLoopOperationParams|Thread-207] 
completed operation CDS.execute-scale-down outcome=Failure_Exception for 
836412cd-49a0-4ed7-86db-d035d22d78d7



Where is the problem?

Andrzej



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#23512): https://lists.onap.org/g/onap-discuss/message/23512
Mute This Topic: https://lists.onap.org/mt/85182987/21656
Mute #clamp:https://lists.onap.org/g/onap-discuss/mutehashtag/clamp
Mute #drools:https://lists.onap.org/g/onap-discuss/mutehashtag/drools
Mute #cds:https://lists.onap.org/g/onap-discuss/mutehashtag/cds
Mute #honolulu:https://lists.onap.org/g/onap-discuss/mutehashtag/honolulu
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to