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

Ceph Luminous: pool deletion is disabled by default

    XMLWordPrintable

    Details

    • Sprint:
      Sprint 29, Sprint 30

      Description

      Since Ceph Kraken it's not possible to delete a pool without setting the config option

      mon_allow_pool_delete
      

      to true.
      So currently it's not possible to delete a pool when Ceph is based on Kraken. This causes UI tests to fail. The current fix for that is to set the above mentioned config option.

      But in general we need a way to handle it in the backend/frontend if we want to allow users to still be able to delete pools.

      Jenkins reported:

      • oa-test-gui-pr-sle-1/866
      2017-09-05 13:43:37,159 3185 mod_wsgi ERROR ceph.librados#run - Exception when running a librados process.
      Traceback (most recent call last):
        File "/srv/openattic/backend/ceph/librados.py", line 406, in run
          self.com_pipe.send(func())
        File "/srv/openattic/backend/ceph/librados.py", line 430, in with_client
          return method(client)
        File "/srv/openattic/backend/ceph/librados.py", line 991, in <lambda>
          lambda client: client.mon_command(cmd, argdict, output_format),
        File "/srv/openattic/backend/ceph/librados.py", line 342, in mon_command
          {'prefix': cmd}, argdict, output_format, default_return)
        File "/srv/openattic/backend/ceph/librados.py", line 363, in mon_command
          raise ExternalCommandError(err, cmd, argdict)
      ExternalCommandError: Executing "osd pool delete pool2=ceph_replicated_with_16_pgs sure=--yes-i-really-really-mean-it pool=ceph_replicated_with_16_pgs" failed: pool deletion is disabled; you must first set the mon_allow_pool_delete config option to true before you can destroy a pool
      

      e2e Test failure is:

      1) should test the ceph pools panel should have the configured pool "demo" in the pool list of cluster "ceph"
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              swagner Sebastian Wagner
              Reporter:
              lpaduano Paduano, Laura
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: