Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KCP CLI - show errors #1177

Open
piotrmiskiewicz opened this issue Sep 23, 2024 · 0 comments
Open

KCP CLI - show errors #1177

piotrmiskiewicz opened this issue Sep 23, 2024 · 0 comments

Comments

@piotrmiskiewicz
Copy link
Member

piotrmiskiewicz commented Sep 23, 2024

The KCP cli must show details of an error which failed the operation. It will help and speedup investigations.

AC:
The output of KCP CLI shows errors from all failed (and deprovision incompleted) operations.

The example output looks like:

      "instanceID": "AC2441C3-67DA-432F-A211-38D4CB11A8E1",
      "runtimeID": "",
      "globalAccountID": "c43fa834-6c17-4e48-a436-1ddc5164f14c",
      "subscriptionGlobalAccountID": "",
      "subAccountID": "ee694042-9cc4-4675-9154-583ba30b0451",
      "region": "",
      "subAccountRegion": "cf-eu20-staging",
      "shootName": "c-33771c4",
      "serviceClassID": "47c9dcbf-ff30-448e-ab36-d3bad66ba281",
      "serviceClassName": "kymaruntime",
      "servicePlanID": "4deee563-e5ec-4731-b9b1-53b42d855f0c",
      "servicePlanName": "azure",
      "provider": "Azure",
      "status": {
        "createdAt": "2024-06-24T07:57:44.040102Z",
        "modifiedAt": "2024-06-24T14:59:11.763854Z",
        "state": "failed",
        "provisioning": {
          "state": "failed",
          "description": "Operation created",
          "createdAt": "2024-06-24T07:57:44.031495Z",
          "updatedAt": "2024-06-24T14:59:11.763854Z",
          "operationID": "ef5aa442-88ba-42dc-b68a-426c4e6d12c8",
          "finishedStages": [
            "start"
          ],
          "error": {
            "step": "check_kyma_runtime",
            "code": "ProvisioningTimeout",
            "message": "operation has reached the time limit",
            "team": "Framefrogs",
            "component": "provisioner"
          }
        }
      },
      "userID": "[email protected]",
      "avsInternalEvaluationID": 0
    }

KEB must add the error object to the output. The necessary data is stored in the LastError field.
The operationManager must set the field with proper values when the operation fails. See OperationManager methods:

Consider to not pass to much details to the operation description field (it goes to the customer).
The component -> team mapping can be provided as a KCP CLI config
Every step is assigned to one component, every component has one responsible team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant