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

test: ceph osd stat out has changed, fix tests for that #16403

Merged
merged 1 commit into from
Jul 20, 2017

Commits on Jul 19, 2017

  1. qa/workunits/cephtool/test.sh: ceph osd stat out has changed, fix tes…

    …ts for that
    
    The output of ceph osd stat has changed,
    It printed:
    
    cluster b370a29d-9287-4ca3-ab57-3d824f65e339
     health HEALTH_OK
     monmap e1: 1 mons at {ceph1=10.0.0.8:6789/0}, election epoch 2, quorum 0 ceph1
     osdmap e63: 2 osds: 2 up, 2 in
      pgmap v41338: 952 pgs, 20 pools, 17130 MB data, 2199 objects
            115 GB used, 167 GB / 297 GB avail
                 952 active+clean
    
    but now the osdmap line has gone and thus this no longer works:
    qa/workunits/cephtool/test.sh:1944:
    old_pgs=$(ceph osd pool get $TEST_POOL_GETSET pg_num | sed -e 's/pg_num: //')
    new_pgs=$(($old_pgs+$(ceph osd stat | grep osdmap | awk '{print $3}')*32))
    
    4: qa/workunits/cephtool/test.sh: line 1945: 10+*32: syntax errotoken is "*32")
    
     - And parse the output in json , with jq, for better reliability
    
    Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
    wjwithagen committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    4f49402 View commit details
    Browse the repository at this point in the history