Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quincy: pybind/mgr/pg_autoscaler: fix warn when not too few pgs #53675

Merged
merged 1 commit into from Oct 10, 2023

Conversation

kamoltat
Copy link
Member

@kamoltat kamoltat commented Sep 26, 2023

Problem:

when pg_num_final is equal to pg_num_target
we get too many PGs warnings in ceph health while
warn mode in the autoscaler.

Solution:

Get rid of else condition and add an
elif p['pg_num_final'] < p['pg_num_target']
instead

Fixes: https://tracker.ceph.com/issues/61570

Backporting relevant commits from main PR:

#51923

Signed-off-by: Kamoltat ksirivad@redhat.com

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

Problem:

when `pg_num_final` is equal to `pg_num_target`
we get too many PGs warnings in ceph health while
`warn` mode in the autoscaler.

Solution:

Get rid of `else` condition and add an
`elif p['pg_num_final'] < p['pg_num_target']`
instead

Fixes: https://tracker.ceph.com/issues/61570

Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit bfef567)
@kamoltat kamoltat added this to the quincy milestone Sep 26, 2023
@kamoltat kamoltat self-assigned this Sep 26, 2023
@ljflores
Copy link
Contributor

jenkins test make chck

@kamoltat
Copy link
Member Author

Make check fail is unrelated, cephadm stuff:

        def _crush_location_checker(ctx, fsid, daemon_type, daemon_id, container, uid, gid, **kwargs):
            print(container.args)
            raise Exception(' '.join(container.args))
    
        _deploy_daemon.side_effect = _crush_location_checker
    
>       with pytest.raises(Exception, match='--set-crush-location database=a'):
E       AssertionError: Regex pattern did not match.
E        Regex: '--set-crush-location database=a'
E        Input: "Failed to extract uid/gid for path /var/lib/ceph: Failed command: /usr/bin/docker run --rm --ipc=host --stop-signal=SIGTERM --ulimit nofile=1048576 --net=host --entrypoint stat --init -e CONTAINER_IMAGE=quay.io/ceph/ceph:v17 -e NODE_NAME=braggi17.front.sepia.ceph.com -e CEPH_USE_RANDOM_NONCE=1 quay.io/ceph/ceph:v17 -c %u %g /var/lib/ceph: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.\nSee 'docker run --help'.\n"

tests/test_cephadm.py:343: AssertionError

@kamoltat
Copy link
Member Author

jenkins test make check

@kamoltat
Copy link
Member Author

jenkins test make chck

@yuriw
Copy link
Contributor

yuriw commented Oct 7, 2023

jenkins test make check

@yuriw
Copy link
Contributor

yuriw commented Oct 7, 2023

@kamoltat pls merge when all checks passed
ref: https://trello.com/c/vB5XcEdi

@vshankar
Copy link
Contributor

@ljflores leave it for you to merge.

@yuriw yuriw merged commit 0366e36 into ceph:quincy Oct 10, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants