Git Product home page Git Product logo

Comments (10)

amelki avatar amelki commented on May 27, 2024 1

Hi @parano, thanks for your answer.
Indeed I am writing a yatai install script, including creation of cloud resources (RDS, S3 bucket, secrets), so that I can install several development and testing environments in an automated way.

from yatai.

yubozhao avatar yubozhao commented on May 27, 2024

Hey @amelki

Thank you for reporting the issue, really appreciate it. I am looking to the issue.

I would love you to clarify a few things for me

  1. What version of yatai chart you are using?
  2. did you have the database yatai created in your Postgresql?
  3. Are you able to access the yatai UI? Is the yatai service running successfully?
  4. if you are not able to, can you share with me the log of the crashed yatai service? You can find the crashed logs with
kubectl logs <POD_NAME> --previous -n yatai-system

from yatai.

yubozhao avatar yubozhao commented on May 27, 2024

cc @yetone

from yatai.

amelki avatar amelki commented on May 27, 2024

Hey @yubozhao

  1. What version of yatai chart you are using?

The latest one, in https://bentoml.github.io/yatai-char

  1. did you have the database yatai created in your Postgresql?

Yes : I first installed Yatai with an embedded Postgresql. Then I upgraded with an external RDS, which created the yatai database at some point.
Then I deleted the Yatai release from my K8s cluster, but kept the yatai database in my RDS instance. And when I reinstall the helm chart, referencing my RDS instance, components, operators and builders resources are not created
Maybe this is the issue. Shall I retry from an empty RDS database ?

  1. Are you able to access the yatai UI? Is the yatai service running successfully?

If I install the charts with postgresql=true first, first and then upgrade with my external RDS, yes, I end up with a properly installed Yatai

  1. if you are not able to, can you share with me the log of the crashed yatai service? You can find the crashed logs with
kubectl logs <POD_NAME> --previous -n yatai-system

from yatai.

yetone avatar yetone commented on May 27, 2024

@amelki Yes, you should either retry from an empty RDS database or manually install the yatai deployment component in the yatai UI.

image

from yatai.

amelki avatar amelki commented on May 27, 2024

Guys, I see you reopened the issue. I just tried to reinstall Yatai with an empty RDS database, and it does not seem to work either... Do you confirm ?

from yatai.

amelki avatar amelki commented on May 27, 2024

OK, I had to manually create the yatai DB in my RDS instance, and it worked OK

from yatai.

yetone avatar yetone commented on May 27, 2024

@amelki The thing is, when you tell yatai the name of the database, yatai will think that the database is already created

from yatai.

amelki avatar amelki commented on May 27, 2024

@yetone that is fine with me, I have adapted my install scripts to make sure the DB always exists and is empty when the helm charts are installed. I guess you can close the issue.

from yatai.

parano avatar parano commented on May 27, 2024

Thanks for the update @amelki - our team dive into the issue a bit more and this is definitely something we should improve in documentation. The root cause of the issue is due to installing Yatai helm chat with a database that has information on a previous installation. A regular installation from clean state should not run into this issue.

Yatai has a fairly complex architecture with multiple cluster components, both migrating to a new installation or reinstalling yatai from old DB requires a few extra steps to make sure the cluster state and DB state are in-sync. Our team will work on related documentation soon, as for now, we'd suggest try installing from a clean state as you did in your install script.

It sounds like you are trying to write a script that reinstalls Yatai, may I ask what is this used for? Is it for testing purpose?

from yatai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.