|
145 | 145 | monA.succeed( |
146 | 146 | "ceph osd pool create single-node-test 32 32", |
147 | 147 | "ceph osd pool ls | grep 'single-node-test'", |
| 148 | +
|
| 149 | + # We need to enable an application on the pool, otherwise it will |
| 150 | + # stay unhealthy in state POOL_APP_NOT_ENABLED. |
| 151 | + # Creating a CephFS would do this automatically, but we haven't done that here. |
| 152 | + # See: https://docs.ceph.com/en/reef/rados/operations/pools/#associating-a-pool-with-an-application |
| 153 | + # We use the custom application name "nixos-test" for this. |
| 154 | + "ceph osd pool application enable single-node-test nixos-test", |
| 155 | +
|
148 | 156 | "ceph osd pool rename single-node-test single-node-other-test", |
149 | 157 | "ceph osd pool ls | grep 'single-node-other-test'", |
150 | 158 | ) |
@@ -182,19 +190,16 @@ let |
182 | 190 | monA.wait_until_succeeds("ceph -s | grep 'mgr: ${cfg.monA.name}(active,'") |
183 | 191 | monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'") |
184 | 192 |
|
185 | | - # This test has been commented out due to the upstream issue with pyo3 |
186 | | - # that has broken this dashboard |
187 | | - # Reference: https://www.spinics.net/lists/ceph-users/msg77812.html |
188 | 193 | # Enable the dashboard and recheck health |
189 | | - # monA.succeed( |
190 | | - # "ceph mgr module enable dashboard", |
191 | | - # "ceph config set mgr mgr/dashboard/ssl false", |
192 | | - # # default is 8080 but it's better to be explicit |
193 | | - # "ceph config set mgr mgr/dashboard/server_port 8080", |
194 | | - # ) |
195 | | - # monA.wait_for_open_port(8080) |
196 | | - # monA.wait_until_succeeds("curl -q --fail http://localhost:8080") |
197 | | - # monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'") |
| 194 | + monA.succeed( |
| 195 | + "ceph mgr module enable dashboard", |
| 196 | + "ceph config set mgr mgr/dashboard/ssl false", |
| 197 | + # default is 8080 but it's better to be explicit |
| 198 | + "ceph config set mgr mgr/dashboard/server_port 8080", |
| 199 | + ) |
| 200 | + monA.wait_for_open_port(8080) |
| 201 | + monA.wait_until_succeeds("curl -q --fail http://localhost:8080") |
| 202 | + monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'") |
198 | 203 | ''; |
199 | 204 | in { |
200 | 205 | name = "basic-single-node-ceph-cluster"; |
|
0 commit comments