@@ -191,10 +191,18 @@ func setupCeph() (string, string) {
191
191
Expect (err ).NotTo (HaveOccurred ())
192
192
193
193
container .Delete ()
194
- Expect (container .PullImage ("docker.io/ceph/demo:tag-stable-3.0-jewel-ubuntu-16.04" )).To (Succeed ())
195
- Expect (container .Run ("docker.io/ceph/demo:tag-stable-3.0-jewel-ubuntu-16.04" ,
196
- map [string ]string {"MON_IP" : monIP , "CEPH_PUBLIC_NETWORK" : cephPublicNetwork },
197
- "host" , nil , false )).To (Succeed ())
194
+ Expect (container .PullImage ("docker.io/ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7" )).To (Succeed ())
195
+ Expect (container .Run ("docker.io/ceph/daemon:v3.1.0-stable-3.1-mimic-centos-7" ,
196
+ map [string ]string {
197
+ "MON_IP" : monIP ,
198
+ "CEPH_PUBLIC_NETWORK" : cephPublicNetwork ,
199
+ "CEPH_DEMO_UID" : "foo" ,
200
+ "CEPH_DEMO_ACCESS_KEY" : "foo" ,
201
+ "CEPH_DEMO_SECRET_KEY" : "foo" ,
202
+ "CEPH_DEMO_BUCKET" : "foo" ,
203
+ "DEMO_DAEMONS" : "osd mds" ,
204
+ },
205
+ "host" , nil , false , "demo" )).To (Succeed ())
198
206
199
207
cephContainerExecutor := container .Executor (false , "" )
200
208
By ("Waiting for ceph cluster" )
@@ -211,14 +219,13 @@ func setupCeph() (string, string) {
211
219
212
220
// Add rbd pool and volume
213
221
`ceph osd pool create libvirt-pool 8 8` ,
214
- `apt-get update && apt-get install -y qemu-utils 2> /dev/null` ,
215
- `qemu-img create -f rbd rbd:libvirt-pool/rbd-test-image1 10M` ,
216
- `qemu-img create -f rbd rbd:libvirt-pool/rbd-test-image2 10M` ,
217
- `qemu-img create -f rbd rbd:libvirt-pool/rbd-test-image-pv 10M` ,
222
+ `rbd create rbd-test-image1 --size 10M --pool libvirt-pool --image-feature layering` ,
223
+ `rbd create rbd-test-image2 --size 10M --pool libvirt-pool --image-feature layering` ,
224
+ `rbd create rbd-test-image-pv --size 10M --pool libvirt-pool --image-feature layering` ,
218
225
219
226
// Add user for virtlet
220
227
`ceph auth get-or-create client.libvirt` ,
221
- `ceph auth caps client.libvirt mon "allow *" osd "allow *" msd "allow *" ` ,
228
+ `ceph auth caps client.libvirt mon "allow *" osd "allow *"` ,
222
229
`ceph auth get-key client.libvirt` ,
223
230
}
224
231
for _ , cmd := range commands {
0 commit comments