Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-3197

RBD image update fails when RBD image uses a dedicated data pool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.2
    • Fix Version/s: 3.7.3
    • Component/s: Backend: Ceph
    • Labels:
    • External issue ID:
      bsc#1139451

      Description

      When an RBD image is created with a dedicated pool to store its data, the image is created with an additional image feature called "data-pool" that is automatically added by librbd code.

      This image feature is not editable and it does not even appear in the openATTIC WebUI RBD edit form.

      When we edit an RBD image that uses a dedicated data pool from the openATTIC WebUI, the frontend sends the RBD image information without the "data-pool" feature in the image features list. The backend in turn tries to disable the "data-pool" feature (which is impossible) triggering the following stacktrace:

      2019-06-26 14:06:05,534 1939 mod_wsgi ERROR utilities#run - Exception when running a librados process.
      Traceback (most recent call last):
        File "/usr/share/openattic/utilities.py", line 152, in run
          self.com_pipe.send(func())
        File "/usr/share/openattic/ceph/librados.py", line 436, in with_client
          return method(client)
        File "/usr/share/openattic/ceph/librados.py", line 1416, in _set_image_features
          image.update_features(bitmask, enabled)
        File "rbd.pyx", line 1683, in rbd.Image.update_features (/home/abuild/rpmbuild/BUILD/ceph-12.2.12-573-g67074fa839/build/src/pybind/rbd/pyrex/rbd.c:17146)
      InvalidArgument: [errno 22] error updating features for image ec_image
      2019-06-26 14:06:05,550 1939 mod_wsgi WARNING py.warnings#run - /usr/share/openattic/utilities.py:155: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
        self.com_pipe.send(e)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rdias Ricardo Dias
              Reporter:
              rdias Ricardo Dias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: