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

Pool form: Add information about max. PGs available when creating a pool

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.6.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • External issue ID:
      bsc#1073653

      Description

      We should include the max. available PGs in the add pool form,

      otherwise it could result in an error, if the suggested value is used and it exceeds the max. available number of PGs of the cluster, see attached image.

       

      ceph version 12.2.2-361-g5030136da9 (5030136da9267f4f4d9700e343ad4ee911f89d8c) luminous (stable)

      /var/log/openattic/openattic.log:

      2017-12-20 10:17:09,177 2601 runsystemd INFO taskqueue.models#finish_task - Task finished: True
      2017-12-20 10:17:09,177 2601 runsystemd INFO taskqueue.models#transition - Task Transition: Running -> Finished
      2017-12-20 10:17:09,180 2601 runsystemd INFO taskqueue.models#transition - Task Transition: Not Started -> Running
      2017-12-20 10:17:09,183 2601 runsystemd INFO taskqueue.models#run_once - Running 9: taskqueue.tests.wait with [30], {}. Estimated: None
      2017-12-20 10:17:14,173 2601 runsystemd INFO taskqueue.models#run_once - Running 9: taskqueue.tests.wait with [29, 30], {}. Estimated: None
      2017-12-20 10:17:19,173 2601 runsystemd INFO taskqueue.models#run_once - Running 9: taskqueue.tests.wait with [28, 30], {}. Estimated: None
      2017-12-20 10:17:23,606 2788 mod_wsgi INFO taskqueue.models#finish_task - Task finished: None
      2017-12-20 10:17:23,606 2788 mod_wsgi INFO taskqueue.models#transition - Task Transition: Running -> Aborted
      2017-12-20 10:18:24,172 2601 runsystemd INFO taskqueue.models#transition - Task Transition: Not Started -> Running
      2017-12-20 10:18:24,177 2601 runsystemd INFO taskqueue.models#run_once - Running 10: taskqueue.tests.wait with [2], {}. Estimated: None
      2017-12-20 10:18:29,173 2601 runsystemd INFO taskqueue.models#run_once - Running 10: taskqueue.tests.wait with [1, 2], {}. Estimated: None
      2017-12-20 10:18:29,175 2601 runsystemd INFO taskqueue.models#finish_task - Task finished: True
      2017-12-20 10:18:29,175 2601 runsystemd INFO taskqueue.models#transition - Task Transition: Running -> Finished
      2017-12-20 10:20:13,406 2790 mod_wsgi ERROR utilities#run - Exception when running a librados process.
      Traceback (most recent call last):
        File "/srv/openattic/backend/utilities.py", line 150, in run
          self.com_pipe.send(func())
        File "/srv/openattic/backend/ceph/librados.py", line 436, in with_client
          return method(client)
        File "/srv/openattic/backend/ceph/librados.py", line 1058, in <lambda>
          lambda client: client.mon_command(cmd, argdict, output_format), cmd,
        File "/srv/openattic/backend/ceph/librados.py", line 387, in mon_command
          {'prefix': cmd}, argdict, output_format, default_return, target)
        File "/srv/openattic/backend/ceph/librados.py", line 410, in mon_command
          raise ExternalCommandError(err, cmd, argdict, code=ret)
      ExternalCommandError: Executing "osd pool create pool_type=replicated pg_num=128 pool=e2e_replicated_with_128_pgs pgp_num=128" failed: " pg_num 128 size 3 would mean 2040 total pgs, which exceeds max 1800 (mon_max_pg_per_osd 200 * num_in_osds 9)" code=ERANGE

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lpaduano Paduano, Laura
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: