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

Application Connector - module CR has to move into WARNING state when failed to synchronise the runtime with Compass #264

Open
tobiscr opened this issue May 13, 2024 · 0 comments
Labels
area/application-connector Issues or PRs related to application connectivity kind/bug Categorizes issue or PR as related to a bug.

Comments

@tobiscr
Copy link

tobiscr commented May 13, 2024

Description:

The status of Application Connector Module does not reflect the state of connectivity with Compass services as stored in the CompassConnection CR.

Currently the module statusshows as "Ready" only when all module pods are healthy and Istio resources are available.

Details

We need to check periodically compassconnections.compass.kyma-project.io CR state and set the ACM module CR state as READY only if compassconnections state is Synchronized.

When compassconnection CR is in any of states below:

  • Connected
  • ConnectionFailed
  • ConnectionMaintenanceFailed
  • SynchronizationFailed
  • ResourceApplicationFailed
  • MetadataUpdateFailed

The Application Connector Module CR should be set to WARNING state

Impact:

Implementing this issue should enhance possibility to diagnose problems with the module and mitigate such problems with compass connectivity much faster than before.

More info:

  1. Please check actual list of possible states of compassconnection with compass-runtime-agent source code
  2. You can use synchronizationStatus field to set warning message for the user. Example:
  synchronizationStatus:
    error: 'Failed to fetch configuration: Failed to fetch Applications and Labels:
      graphql: Invalid data [reason=runtime does not exist]'
@koala7659 koala7659 added kind/bug Categorizes issue or PR as related to a bug. area/application-connector Issues or PRs related to application connectivity labels May 13, 2024
@koala7659 koala7659 changed the title ACM module CR has to move into WARNING state when application registration at Compass Directory failed Application Connector - module CR has to move into WARNING state when application registration at Compass Directory failed May 13, 2024
@koala7659 koala7659 changed the title Application Connector - module CR has to move into WARNING state when application registration at Compass Directory failed Application Connector - module CR has to move into WARNING state when failed to synchronise the runtime with Compass May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/application-connector Issues or PRs related to application connectivity kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants