]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Luminous specifc changes
authorDavid Zafman <dzafman@redhat.com>
Fri, 18 May 2018 00:35:54 +0000 (17:35 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 18 May 2018 16:38:46 +0000 (09:38 -0700)
*** Not sure why this wasn't seen earlier

Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/scrub/osd-scrub-snaps.sh

index eca467f20c58ae9fc3b8a0ff0fd74107ebccfcf0..a83cfe75c9a8ee49daf15e722e3e18f8bbfcc629 100755 (executable)
@@ -833,7 +833,7 @@ function _scrub_snaps_multi() {
     # Since all of the snapshots on the primary is consistent there are no errors here
     if [ $which = "replica" ];
     then
-        scruberrors="20"
+        scruberrors="21"
         jq "$jqfilter" << EOF | python -c "$sortkeys" > $dir/checkcsjson
 {
     "epoch": 23,
@@ -842,7 +842,7 @@ function _scrub_snaps_multi() {
 EOF
 
 else
-        scruberrors="30"
+        scruberrors="33"
         jq "$jqfilter" << EOF | python -c "$sortkeys" > $dir/checkcsjson
 {
     "epoch": 23,
@@ -917,6 +917,7 @@ else
             "locator": "",
             "snap": "head",
             "snapset": {
+                "head_exists": 1,
                 "snap_context": {
                     "seq": 1,
                     "snaps": [
@@ -942,6 +943,7 @@ else
             "locator": "",
             "snap": "head",
             "snapset": {
+                "head_exists": 1,
                 "snap_context": {
                     "seq": 1,
                     "snaps": [
@@ -957,12 +959,41 @@ else
                 1
             ]
         },
+        {
+           "errors": [
+             "head_mismatch"
+           ],
+           "locator": "",
+           "name": "obj12",
+           "nspace": "",
+           "snap": "head",
+           "snapset": {
+             "clones": [
+               {
+                 "overlap": "[]",
+                 "size": 1032,
+                 "snap": 1,
+                 "snaps": [
+                   1
+                 ]
+               }
+             ],
+             "head_exists": 0,
+              "snap_context": {
+              "seq": 1,
+              "snaps": [
+                1
+              ]
+            }
+          }
+        },
         {
             "name": "obj14",
             "nspace": "",
             "locator": "",
             "snap": "head",
             "snapset": {
+                "head_exists": 1,
                 "snap_context": {
                     "seq": 1,
                     "snaps": [
@@ -988,6 +1019,7 @@ else
             "locator": "",
             "snap": "head",
             "snapset": {
+                "head_exists": 1,
                 "snap_context": {
                     "seq": 6,
                     "snaps": [
@@ -1049,6 +1081,7 @@ else
             "locator": "",
             "snap": "head",
             "snapset": {
+                "head_exists": 1,
                 "snap_context": {
                     "seq": 1,
                     "snaps": [
@@ -1070,6 +1103,7 @@ else
             "locator": "",
             "snap": "head",
             "snapset": {
+                "head_exists": 0,
                 "snap_context": {
                     "seq": 0,
                     "snaps": []
@@ -1077,6 +1111,7 @@ else
                 "clones": []
             },
             "errors": [
+                "head_mismatch",
                 "extra_clones"
             ],
             "extra clones": [
@@ -1089,6 +1124,7 @@ else
             "locator": "",
             "snap": "head",
             "snapset": {
+                "head_exists": 1,
                 "snap_context": {
                     "seq": 0,
                     "snaps": [
@@ -1116,6 +1152,7 @@ else
             "locator": "",
             "snap": "head",
             "snapset": {
+                "head_exists": 1,
                 "snap_context": {
                     "seq": 1,
                     "snaps": [