Description of problem: Total count is not coming in pendingoperations section of "heketi-cli db check" command output. Version-Release number of selected component (if applicable): heketi-8.0.0-8.el7rhgs.x86_64 How reproducible: Steps to Reproduce: 1. create volumes # for i in {1..8}; do heketi-cli volume create --size 1 & done 2. check the output of "heketi-cli db check" # heketi-cli db check Actual results: "pendingoperations": { "total": 0, "pending": 0, "ok": 8, "notok": 0, "inconsistencies": null }, Expected results: total count should be there Additional info:
# heketi-cli db check { "clusters": { "total": 1, "pending": 0, "ok": 1, "notok": 0, "inconsistencies": null }, "volumes": { "total": 9, "pending": 8, "ok": 8, "notok": 1, "inconsistencies": [ "Volume 4963e5e6e0b617514935b7554e0bb958 mount hosts list([10.70.47.31 10.70.46.99 10.70.46.7]) is not same as list of all nodes of the cluster([48dac2c26112c558da055e2494101aa0 db67763501c3f6645d9a08a201f71fcc e3dd0582f004eada2f0017cf1138ea8f f19fdd1c652de2f1d6f4672829dffe02])" ] }, "bricks": { "total": 27, "pending": 24, "ok": 27, "notok": 0, "inconsistencies": null }, "nodes": { "total": 4, "pending": 0, "ok": 4, "notok": 0, "inconsistencies": null }, "devices": { "total": 4, "pending": 0, "ok": 4, "notok": 0, "inconsistencies": null }, "blockvolumes": { "total": 0, "pending": 0, "ok": 0, "notok": 0, "inconsistencies": null }, "dbattributes": { "total": 0, "pending": 0, "ok": 0, "notok": 0, "inconsistencies": null }, "pendingoperations": { "total": 0, "pending": 0, "ok": 8, "notok": 0, "inconsistencies": null }, "totalinconsistencies": 1 }
I can confirm this issue. The "Total" counter is not being updated when looping over the pending ops while the "Ok" and "NotOk" counters are.
upstream url https://github.com/heketi/heketi/pull/1505
Hi John, I have updated the doc text. Kindly review.
I would not capitalize 'heketi-cli' since that is the command name rather than a reference to the Heketi project or Heketi system. Users who want to copy and paste the capitalized version would need to fix the command as well.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0663