Skip to content

Commit 0d61375

Browse files
authored
Merge pull request ceph#59485 from mcv21/cephadm_image_warn
cephadm: emit warning if daemon's image is not to be used Reviewed-by: Adam King <[email protected]>
2 parents 4640698 + b863c93 commit 0d61375

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cephadm/cephadm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@ def infer_local_ceph_image(ctx: CephadmContext, container_path: str) -> Optional
595595
if digest and not digest.endswith('@'):
596596
logger.info(f"Using ceph image with id '{image_id}' and tag '{tag}' created on {created_date}\n{digest}")
597597
return digest
598+
if container_info is not None:
599+
logger.warning(f"Not using image '{container_info.image_id}' as it's not in list of non-dangling images with ceph=True label")
598600
return None
599601

600602

0 commit comments

Comments
 (0)