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

Improve ceph test reliability #12384

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

simondeziel
Copy link
Member

@simondeziel simondeziel commented Oct 13, 2023

Tests failing at:

  lxc storage create lxdtest-5zO ceph volume.size=25MiB ceph.osd.pg_num=8

All seem to have microceph.ceph status show as:

 + sudo microceph.ceph status
  cluster:
    id:     7e42c215-815d-477f-afa9-5f218fcc3081
    health: HEALTH_WARN
            mon fv-az1234-656 is low on available space
            nobackfill,norebalance,norecover,noscrub,nodeep-scrub,nosnaptrim flag(s) set
            3 pool(s) have no replicas configured
            OSD count 0 < osd_pool_default_size 1

  services:
    mon: 1 daemons, quorum fv-az1234-656 (age 63s)
    mgr: fv-az1234-656(active, since 55s)
    mds: 1/1 daemons up
    osd: 0 osds: 0 up, 0 in
         flags nobackfill,norebalance,norecover,noscrub,nodeep-scrub,nosnaptrim

  data:
    volumes: 1/1 healthy
    pools:   3 pools, 65 pgs
    objects: 0 objects, 0 B
    usage:   0 B used, 0 B / 0 B avail
    pgs:     100.000% pgs unknown
             65 unknown

Poll ceph pg stat for up to a minute to stabilize and no longer have unknown pgs.

Tests failing at:

```
  lxc storage create lxdtest-5zO ceph volume.size=25MiB ceph.osd.pg_num=8
```

All seem to have `microceph.ceph status` show as:

```
 + sudo microceph.ceph status
  cluster:
    id:     7e42c215-815d-477f-afa9-5f218fcc3081
    health: HEALTH_WARN
            mon fv-az1234-656 is low on available space
            nobackfill,norebalance,norecover,noscrub,nodeep-scrub,nosnaptrim flag(s) set
            3 pool(s) have no replicas configured
            OSD count 0 < osd_pool_default_size 1

  services:
    mon: 1 daemons, quorum fv-az1234-656 (age 63s)
    mgr: fv-az1234-656(active, since 55s)
    mds: 1/1 daemons up
    osd: 0 osds: 0 up, 0 in
         flags nobackfill,norebalance,norecover,noscrub,nodeep-scrub,nosnaptrim

  data:
    volumes: 1/1 healthy
    pools:   3 pools, 65 pgs
    objects: 0 objects, 0 B
    usage:   0 B used, 0 B / 0 B avail
    pgs:     100.000% pgs unknown
             65 unknown
```

Poll `ceph pg stat` for up to a minute to stabilize and no longer have unknown pgs.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@simondeziel simondeziel marked this pull request as ready for review October 13, 2023 17:25
@tomponline
Copy link
Member

Good catch

@tomponline tomponline merged commit 81376bd into canonical:main Oct 13, 2023
@simondeziel simondeziel deleted the ceph-test-reliability branch October 13, 2023 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants