Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-2207

MustKillCouchbaseService fails on CBS 6.6.2

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • not-targeted
    • testing
    • None

    Description

      TestNodeServiceDownRecovery and TestRecoveryAfterOneNsServerFailureBucketOneReplica both use the method MustKillCouchbaseService(), which executes the following in a pod:

      mv /etc/service/couchbase-server /tmp/
      

      ... in CBS 6.6.2, this command fails;

      exec_util.go:143: Command: mv /etc/service/couchbase-server /tmp/
      exec_util.go:144: stdout:
      exec_util.go:145: stderr:
      util.go:1288: command terminated with exit code 1
      

      These tests pass in 6.5.2.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            roo.thorp Roo Thorp added a comment -

            I'd guess this is to do with the recent change to run tests as non-root, and the error is just permission denied. I double checked by just trying to run

            mv /etc/service/couchbase-server /tmp/
            

            in the 6.5.2 and 6.6.2 containers, as both root and uid 1000, and I am getting denied in both as uid 1000 (which makes me question why this isn't failing in 6.5.2?)

            roo.thorp Roo Thorp added a comment - I'd guess this is to do with the recent change to run tests as non-root, and the error is just permission denied. I double checked by just trying to run mv /etc/service/couchbase-server /tmp/ in the 6.5.2 and 6.6.2 containers, as both root and uid 1000, and I am getting denied in both as uid 1000 (which makes me question why this isn't failing in 6.5.2?)

            rm -rf /opt/couchbase/* does seem to work as UID 1000 and kill quite a few things but not quite everything. Follow that up with kills of the leftovers and then it cannot restart: killall5

            Ideally though a REST API or similar call to poke to simulate a failure by shutting down the server would be preferred.

            patrick.stephens Patrick Stephens (Inactive) added a comment - - edited rm -rf /opt/couchbase/* does seem to work as UID 1000 and kill quite a few things but not quite everything. Follow that up with kills of the leftovers and then it cannot restart: killall5 Ideally though a REST API or similar call to poke to simulate a failure by shutting down the server would be preferred.

            People

              roo.thorp Roo Thorp
              roo.thorp Roo Thorp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty