Commit 95fc1f8
committed
rbd: extend use of "none" placeholder to IMAGES section
Currently if there are no mirror-enabled images, IMAGES section
in "rbd mirror pool status --verbose" output isn't terminated:
$ rbd mirror pool status data --verbose
health: OK
daemon health: OK
image health: OK
images: 0 total
DAEMONS
service 4388:
...
health: OK
IMAGES$
DAEMONS section has a "none" placeholder for when there are no
rbd-mirror daemons running. Fix some issues with the separator logic
and employ the placeholder in IMAGES section:
$ rbd mirror pool status data --verbose
health: OK
daemon health: OK
image health: OK
images: 0 total
DAEMONS
service 4388:
...
health: OK
IMAGES
none
$
$ rbd mirror pool status data --verbose
health: UNKNOWN
daemon health: UNKNOWN
image health: OK
images: 0 total
DAEMONS
none
IMAGES
none
$
Signed-off-by: Ilya Dryomov <[email protected]>1 parent 3616888 commit 95fc1f8
1 file changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
| 609 | + | |
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
| 614 | + | |
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
| |||
692 | 693 | | |
693 | 694 | | |
694 | 695 | | |
| 696 | + | |
695 | 697 | | |
696 | 698 | | |
697 | 699 | | |
| |||
741 | 743 | | |
742 | 744 | | |
743 | 745 | | |
| 746 | + | |
744 | 747 | | |
745 | 748 | | |
746 | 749 | | |
| |||
1642 | 1645 | | |
1643 | 1646 | | |
1644 | 1647 | | |
1645 | | - | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
| 1648 | + | |
1649 | 1649 | | |
1650 | | - | |
| 1650 | + | |
| 1651 | + | |
1651 | 1652 | | |
1652 | 1653 | | |
1653 | 1654 | | |
| |||
1660 | 1661 | | |
1661 | 1662 | | |
1662 | 1663 | | |
1663 | | - | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
1664 | 1667 | | |
1665 | 1668 | | |
1666 | 1669 | | |
| |||
1675 | 1678 | | |
1676 | 1679 | | |
1677 | 1680 | | |
1678 | | - | |
| 1681 | + | |
1679 | 1682 | | |
1680 | 1683 | | |
1681 | 1684 | | |
| |||
1702 | 1705 | | |
1703 | 1706 | | |
1704 | 1707 | | |
| 1708 | + | |
1705 | 1709 | | |
1706 | 1710 | | |
1707 | | - | |
| 1711 | + | |
1708 | 1712 | | |
1709 | 1713 | | |
1710 | 1714 | | |
1711 | 1715 | | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
1712 | 1720 | | |
1713 | 1721 | | |
1714 | 1722 | | |
| |||
0 commit comments