open-horizon / examples

Code examples you can use with Horizon.
Apache License 2.0
40 stars 65 forks source link

An attempt to deploy an operator terminated abnormally if the operator's CRD manifest version is v1 #381

Closed takeyan closed 4 years ago

takeyan commented 4 years ago

An attempt to deploy an operator (triggered by an agreement) terminated abnormally with a message in the eventlog: "2020-07-29 12:42:56: Start terminating agreement for mqttprovider-operator. Termination reason: service terminated“

"2020-07-29 12:42:45:   Node received Proposal message using agreement 12a60afdc451ce80756b7432fa8e630e6ce9c7a311149ae0caaf335598c79c3d for service ieamcluster/mqttprovider-operator from the agbot IBM/ieamcluster-agbot.",
"2020-07-29 12:42:56:   Agreement reached for service mqttprovider-operator. The agreement id is 12a60afdc451ce80756b7432fa8e630e6ce9c7a311149ae0caaf335598c79c3d.",
"2020-07-29 12:42:56:   Start workload service for ieamcluster/mqttprovider-operator.",
"2020-07-29 12:42:56:   Start terminating agreement for mqttprovider-operator. Termination reason: service terminated",
"2020-07-29 12:42:56:   Complete terminating agreement for mqttprovider-operator. Termination reason: service terminated",
"2020-07-29 12:42:57:   Workload destroyed for mqttprovider-operator"

We found that the open-horizon container agent can deploy operators successfully if the CRD manifest version is v1beta1. Operator SDK v0.18 or above generates CRD v1 meanwhile Operator SDK v0.17 generates v1beta1. It looks that the open-horizon container agent prerequisites Operator SDK v0.17 or below.

takeyan commented 4 years ago

Sorry, I inteded to open this issue for open-horizon/anax. Please track the issue there. Thanks.