You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: create replicated mirrored pool on cluster 1
@@ -1650,6 +1650,14 @@ jobs:
1650
1650
kubectl create -f pool-test.yaml
1651
1651
timeout 180 sh -c 'until [ "$(kubectl -n rook-ceph get cephblockpool replicapool -o jsonpath='{.status.phase}'|grep -c "Ready")" -eq 1 ]; do echo "waiting for pool replicapool to be created on cluster 1" && sleep 1; done'
1652
1652
1653
+
- name: create ec pool on cluster 1
1654
+
run: |
1655
+
cd deploy/examples/
1656
+
yq w -i pool-ec.yaml spec.failureDomain osd
1657
+
yq w -i pool-ec.yaml metadata.name ecpool
1658
+
kubectl create -f pool-ec.yaml
1659
+
timeout 180 sh -c 'until [ "$(kubectl -n rook-ceph get cephblockpool ecpool -o jsonpath='{.status.phase}'|grep -c "Ready")" -eq 1 ]; do echo "waiting for pool ecpool to be created on cluster 1" && sleep 1; done'
1660
+
1653
1661
- name: create replicated mirrored pool 2 on cluster 1
1654
1662
run: |
1655
1663
cd deploy/examples/
@@ -1665,6 +1673,13 @@ jobs:
1665
1673
kubectl create -f pool-test.yaml
1666
1674
timeout 180 sh -c 'until [ "$(kubectl -n rook-ceph-secondary get cephblockpool replicapool -o jsonpath='{.status.phase}'|grep -c "Ready")" -eq 1 ]; do echo "waiting for pool replicapool to be created on cluster 2" && sleep 1; done'
1667
1675
1676
+
- name: create ec-pool pool on cluster 2
1677
+
run: |
1678
+
cd deploy/examples/
1679
+
yq w -i pool-ec.yaml metadata.namespace rook-ceph-secondary
1680
+
kubectl create -f pool-ec.yaml
1681
+
timeout 180 sh -c 'until [ "$(kubectl -n rook-ceph-secondary get cephblockpool ecpool -o jsonpath='{.status.phase}'|grep -c "Ready")" -eq 1 ]; do echo "waiting for pool ecpool to be created on cluster 2" && sleep 1; done'
1682
+
1668
1683
- name: create replicated mirrored pool 2 on cluster 2
kubectl exec -n rook-ceph deploy/rook-ceph-tools -t -- rbd -p replicapool2 info test
@@ -1708,7 +1726,12 @@ jobs:
1708
1726
- name: verify image has been mirrored for replicapool
1709
1727
run: |
1710
1728
# let's wait a bit for the image to be present
1711
-
timeout 120 sh -c 'until [ "$(kubectl exec -n rook-ceph-secondary deploy/rook-ceph-tools -t -- rbd -p replicapool ls|grep -c test)" -eq 1 ]; do echo "waiting for image to be mirrored in pool replicapool" && sleep 1; done'
1729
+
timeout 120 sh -c 'until [ "$(kubectl exec -n rook-ceph-secondary deploy/rook-ceph-tools -t -- rbd -p replicapool ls|grep -c test)" -ge 1 ]; do echo "waiting for image to be mirrored in pool replicapool" && sleep 1; done'
1730
+
1731
+
- name: verify image has been mirrored for ec
1732
+
run: |
1733
+
# let's wait a bit for the image to be present
1734
+
timeout 120 sh -c 'until [ "$(kubectl exec -n rook-ceph-secondary deploy/rook-ceph-tools -t -- rbd -p replicapool ls|grep -c ec-test-image)" -eq 1 ]; do echo "waiting for image to be mirrored in ecpool replicapool" && sleep 1; done'
1712
1735
1713
1736
- name: verify image has been mirrored for replicapool2
1714
1737
run: |
@@ -1721,6 +1744,7 @@ jobs:
1721
1744
timeout 80 sh -c 'until [ "$(kubectl -n rook-ceph-secondary get cephblockpool replicapool2 -o jsonpath='{.status.mirroringStatus.summary.daemon_health}'|grep -c OK)" -eq 1 ]; do echo "waiting for mirroring status to be updated in replicapool2" && sleep 1; done'
1722
1745
kubectl -n rook-ceph-secondary get cephblockpool replicapool -o yaml
1723
1746
kubectl -n rook-ceph-secondary get cephblockpool replicapool2 -o yaml
1747
+
kubectl -n rook-ceph-secondary get cephblockpool ecpool -o yaml
1724
1748
kubectl exec -n rook-ceph deploy/rook-ceph-tools -t -- rbd -p replicapool info test
1725
1749
kubectl exec -n rook-ceph deploy/rook-ceph-tools -t -- rbd -p replicapool2 info test
0 commit comments