Giter VIP home page Giter VIP logo

Comments (5)

ypoplavs avatar ypoplavs commented on July 28, 2024 1

Hi @windowsrefund!
Apologies for the delay.

The error is caused by ReadWriteOnce access mode of a Mongo volume. It means that the volume can be mounted as read-write by a single node. It can still allow multiple pods to access the volume but they need to reside on the same node. More about access modes: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes

There were no changes from our side to Mongo values so the pod was recreated for a different reason (perhaps it needed to be moved to another node as the current one was lacking resources or sth ) and while the volume was still used by a previous pod a new one could not attach to it.

To avoid such issues in future you may consider using Recreate strategy for Deployments: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#recreate-deployment
It will guarantee termination of an older pod before a new one is launched.

from helm-charts.

vsukhin avatar vsukhin commented on July 28, 2024

@ypoplavs please check

from helm-charts.

windowsrefund avatar windowsrefund commented on July 28, 2024

bumping this

from helm-charts.

windowsrefund avatar windowsrefund commented on July 28, 2024

Thanks for this. I was able to upgrade as expected after adding the following into my values.yaml

mongodb:
  updateStrategy:
    type: Recreate

However, now I appear to have hit another issue. A test suite which ran fine on the previous deployment is now failing despite the fact I haven't changed anything related to minio. Here's the appropriate key of the corresponding tse

executionresult:
        status: failed
        output: ""
        outputtype: ""
        errormessage: 'can''t create new test execution, can''t insert into storage:
          could not create bucket: bucket "testkube-logs" already exists'
        steps: []
        reports: null

I'll post an update should I find the root cause

from helm-charts.

windowsrefund avatar windowsrefund commented on July 28, 2024

OK so interestingly enough, the failure occurs only once post upgrade and subsequent runs pass. I'll probably close this out soon (unless my experience changes) as the primary issue has been resolved. That said, feel free to ping me if I can provide any info that may be helpful.

from helm-charts.

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.