diff --git a/src/utils/ceph.ts b/src/utils/ceph.ts index 554a5cf..a14d561 100644 --- a/src/utils/ceph.ts +++ b/src/utils/ceph.ts @@ -1,5 +1,6 @@ import {execa} from 'execa' import * as fsp from 'node:fs/promises' +import {sleep} from './common' import {CLOUD_AGENT_CEPH_CONFIG} from './env' const POOL = 'rbd' @@ -160,6 +161,9 @@ export async function imageRm(imageSpec: ImageSpec) { return } + // Sleep for 10 seconds to avoid excessive requests to ceph + await sleep(10 * 1000) + throw new Error(stderr) }