Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-23861

cbbackupmgr doesn't take into account xattrs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 5.0.0
    • tools
    • 5.0.0-2564-enterprise
    • Untriaged
    • Centos 64-bit
    • No

    Description

      backup/restore docs with xattr doesn't work with cbbackupmgr. is it known issue?

      test http://review.couchbase.org/#/c/72414/19/pytests/subdoc/subdoc_xattr_sdk.py

      test logs

      2017-04-11 21:52:21,214 - root - INFO - running command.raw on 172.23.106.88: /opt/couchbase/bin/cbbackupmgr config --archive /tmp/backups --repo example
      2017-04-11 21:52:21,937 - root - INFO - command executed successfully
      2017-04-11 21:52:21,937 - root - INFO - ['Backup repository `example` created successfully in archive `/tmp/backups`']
      2017-04-11 21:52:21,937 - root - INFO - running command.raw on 172.23.106.88: /opt/couchbase/bin/cbbackupmgr backup --archive /tmp/backups --repo example --cluster couchbase://127.0.0.1 --username Administrator --password password
      2017-04-11 21:52:31,046 - root - INFO - command executed successfully
      2017-04-11 21:52:31,047 - root - INFO - ['Warning: Progess bar disabled because terminal width is less than 80 characters', 'Backup successfully completed']
      2017-04-11 21:52:31,931 - root - INFO - deleting existing buckets [u'default'] on 172.23.106.88
      2017-04-11 21:52:31,931 - root - INFO - remove bucket default ...
      2017-04-11 21:52:33,334 - root - INFO - deleted bucket : default from 172.23.106.88
      2017-04-11 21:52:33,335 - root - INFO - waiting for bucket deletion to complete....
      2017-04-11 21:52:33,769 - root - INFO - node 172.23.106.88 existing buckets : []
      2017-04-11 21:52:34,639 - root - INFO - deleting existing buckets [] on 172.23.105.194
      2017-04-11 21:52:35,506 - root - INFO - deleting existing buckets [] on 172.23.106.87
      2017-04-11 21:52:36,374 - root - INFO - deleting existing buckets [] on 172.23.105.174
      2017-04-11 21:52:37,242 - root - INFO - deleting existing buckets [] on 172.23.105.175
      2017-04-11 21:52:39,999 - root - INFO - http://172.23.106.88:8091/pools/default/buckets with param: bucketType=membase&threadsNumber=3&authType=sasl&replicaIndex=1&name=default&saslPassword=None&evictionPolicy=valueOnly&flushEnabled=1&replicaNumber=1&ramQuotaMB=250
      2017-04-11 21:52:40,437 - root - INFO - 0.44 seconds to create bucket default
      2017-04-11 21:52:40,438 - root - INFO - bucket 'default' was created with per node RAM quota: 250
      2017-04-11 21:52:40,483 - root - INFO - running command.raw on 172.23.106.88: ls /tmp/backups/example
      2017-04-11 21:52:40,951 - root - INFO - command executed successfully
      2017-04-11 21:52:40,952 - root - INFO - running command.raw on 172.23.106.88: /opt/couchbase/bin/cbbackupmgr restore --archive /tmp/backups --repo example --cluster couchbase://127.0.0.1 --username Administrator --password password --start 2017-04-11T11_52_22.609080872-07_00
      2017-04-11 21:52:43,835 - root - INFO - command executed successfully
      2017-04-11 21:52:43,836 - root - INFO - ['Warning: Progess bar disabled because terminal width is less than 80 characters', 'Restore completed successfully']
      41598ms [I1] {30189} [WARN] (negotiation - L:441) <172.23.106.88:11210> (SASLREQ=0x7fb924001a90) SELECT_BUCKET Disabled by application
      FAIL
       
      summary so far suite subdoc.subdoc_xattr_sdk.XattrEnterpriseBackupRestoreTest , pass 0 , fail 1
      ======================================================================
      failures so far...
      FAIL: test_backup_restore_with_python_sdk (subdoc.subdoc_xattr_sdk.XattrEnterpriseBackupRestoreTest)
      subdoc.subdoc_xattr_sdk.XattrEnterpriseBackupRestoreTest.test_backup_restore_with_python_sdk
      testrunner logs, diags and results are available under /home/andrei/couchbase_src/couchbase/testrunner/logs/testrunner-17-Apr-11_21-50-09/test_1
      test 'subdoc.subdoc_xattr_sdk.XattrUpgradeTests.online_upgrade_rebalance_in_with_ops,initial_version=4.1.1-5914,items=1000,nodes_init=2,nodes_in=1,nodes_out=1,GROUP=3_0;ONLINE;P0' skipped, is not in the requested group
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      Run after suite setup for subdoc.subdoc_xattr_sdk.XattrUpgradeTests.online_upgrade_rebalance_in_with_ops,initial_version=4.1.1-5914,items=1000,nodes_init=2,nodes_in=1,nodes_out=1,GROUP=3_0;ONLINE;P0
        File "pytests/subdoc/subdoc_xattr_sdk.py", line 1493, in test_backup_restore_with_python_sdk
      Thread Thread-7 was not properly terminated, will be terminated now.
          self._verify_all_buckets()
        File "pytests/subdoc/subdoc_xattr_sdk.py", line 1463, in _verify_all_buckets
          self.assertTrue(rv.exists('xattr_%s' % i))
      AssertionError: False is not true
      

      Attachments

        Issue Links

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

          Activity

            People

              mikew Mike Wiederhold [X] (Inactive)
              andreibaranouski Andrei Baranouski
              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