Giter Site home page Giter Site logo

Comments (5)

voelzmo avatar voelzmo commented on June 19, 2024

cc @tylerschultz @holgero @beyhan

from bosh-agent.

voelzmo avatar voelzmo commented on June 19, 2024

After some more investigation:

  • we have co-located some job that re-starts the agent
  • when the agent runs a second time, it also re-sets the permissions to 700 in setupTmpDir
  • it doesn't run the code for mounting again, which in stemcell 3262.12 means it also didn't change permissions to 770, see
    if !mounted && err == nil {
    // mount
    err = bindMounter.Mount(mountSource, mountPoint, "-o", "nodev", "-o", "noexec", "-o", "nosuid")
    if err != nil {
    return bosherr.WrapErrorf(err, "Bind mounting %s dir over %s", mountSource, mountPoint)
    }
    // change permissions for mount point
    err = p.changeTmpDirPermissions(mountPoint)
    if err != nil {
    return err
    }
    } else if err != nil {
  • this seems to be fixed on develop, because permission change is now independent of bind-mounting, see https://github.com/cloudfoundry/bosh-agent/blob/develop/platform/linux_platform.go#L821-L839

from bosh-agent.

dpb587-pivotal avatar dpb587-pivotal commented on June 19, 2024

Nice investigation! I agree with what you've discovered. So, to recap, the issue happens to be fixed on bosh-agent's develop, but we should consider backporting those fixes onto 3262.x because, while most environments won't hit this initially, if the agent crashes or is intentionally restarted we will start seeing this strange and incorrect behavior during standard BOSH lifecycles.

Sounds like something @cppforlife will care about.

from bosh-agent.

cppforlife avatar cppforlife commented on June 19, 2024

I believe this could be closed at this point? @voelzmo @dpb587-pivotal

from bosh-agent.

voelzmo avatar voelzmo commented on June 19, 2024

yeah, this is fixed in most recent stemcells.

from bosh-agent.

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.