Skip to content

Update of pg_num/pgp_num is silently ignored when autoscale_mode is on #123

@priteau

Description

@priteau

Updated pg_num/pgp_num values for a pool are silently ignored if autoscale_mode is on:

                if details['pg_autoscale_mode'] == 'on':
                    delta.pop('pg_num', None)
                    delta.pop('pgp_num', None)

https://github.com/stackhpc/ansible-collection-cephadm/blob/1.14.0/plugins/modules/cephadm_pool.py#L557-L559

This means that autoscale needs to be disabled first, but it has to be done in a separate run:

  1. run with pg_autoscale_mode: off if it is currently on
  2. run again to apply updated pg_num/pgp_num values

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions