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

openfga does not start as helm child #121

Open
6 tasks done
lachnerd opened this issue Mar 20, 2024 · 2 comments
Open
6 tasks done

openfga does not start as helm child #121

lachnerd opened this issue Mar 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lachnerd
Copy link

lachnerd commented Mar 20, 2024

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of OpenFGA and the issue still persists.
  • I have searched the OpenFGA Community and have not found a suitable solution or answer.
  • I agree to the terms within the OpenFGA Code of Conduct.

Description

openfga does not start if deployed on azure aks as helm child chart using postgres database engine.
the pod says:

Back-off restarting failed container wait-for-migration in pod

I also see no job that does the migration i think that might be the problem.

I tested locally with docker-dekstop-k8s everything works as expected:

  • postgres starts
  • migrate job does whatever this migarte job does
  • openfg starts successfulley

Any clues or hints for me?

Expectation

openfga starts with postgres backend

Reproduction

integrate as child dependency
add some yaml
select postgres

Store data

model_file: |
  model
    schema 1.1
  type user
  type organization
    relations
      define member: [user]
tuples:
  - user: user:anne
    relation: member
    object: organization:openfga
  - user: user:bob
    relation: member
    object: organization:openfga
tests: # remove this if not a bug in Check or ListObjects API
  - name: test-1
    check:
      - user: user:anne
        object: organization:openfga
        assertions:
          member: true
    list_objects:
      - user: user:anne
        type: organization
        assertions:
          member:
            - organization:openfga

OpenFGA version

1.40

How are you running OpenFGA?

In Kubernetes

What datastore are you using?

Postgres

OpenFGA Flags

waitForMigrations: true

Logs

No response

@lachnerd lachnerd added the bug Something isn't working label Mar 20, 2024
@miparnisari miparnisari transferred this issue from openfga/openfga Mar 25, 2024
@jon-whit
Copy link
Member

@lachnerd I don't quite have enough information to troubleshoot this issue. Could you please provide the precise helm install ... command that is not behaving as you expect?

Also, what version of the Helm chart are you using?

helm search repo openfga -l

If you're not running the latest Helm chart version 0.1.41, then please helm update and verify you are running the latest.

Let's start there and we can troubleshoot further. Cheers 🍻

@antangelo
Copy link

antangelo commented May 28, 2024

I believe I have also run into this issue on version 0.2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants