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

Pod Recovery Must Be Based on Original Image

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.3.0
    • None
    • operator
    • None
    • 9: R&D, leftovers
    • 3

    Description

      When we test killing pods during an upgrade with a persistent storage backed cluster, we only test killing the new pod, and not the old pod.  If we were to do so, then the old pod would be recovered with a new image, as we cannot know what the old image was by that point.  The result is that the new couchbase is incompatible with the old couchbase's data structures, and cannot perform an online migration as that is done in post-install scripts in the package manager – containers should be immutable so using a package manager to do the upgrade is out of the question.  While in theory you should be able to rollback the upgrade, this doesn't appear possible from my simple manual testing, and thus needs more investigation.

      We need to provide a PVC annotation with the EXACT image that was used to create this data, then use that for recovery.  This will need the tests extending, and an upgrade path to generate annotations on existing pods, tests etc.

      Attachments

        Issue Links

          For Gerrit Dashboard: K8S-2665
          # Subject Branch Project Status CR V

          Activity

            People

              roo.thorp Roo Thorp
              simon.murray Simon Murray
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty