From 6741082eb3e03db608899a8a5fef44fb05d356b7 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 26 Jan 2021 13:11:13 -0600 Subject: [PATCH] vstart.sh: only extract first container digest Otherwise the container_image value includes the same hash twice, separated by a newline, causing all sorts of confusion. Signed-off-by: Sage Weil --- src/vstart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vstart.sh b/src/vstart.sh index 29e50ed8b12..fc99655f458 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -1036,7 +1036,7 @@ EOF if [ "$new" -eq 1 ]; then digest=$(curl -s \ https://registry.hub.docker.com/v2/repositories/ceph/daemon-base/tags/latest-master-devel \ - | jq -r '.images[].digest') + | jq -r '.images[0].digest') ceph_adm config set global container_image "docker.io/ceph/daemon-base@$digest" fi ceph_adm config-key set mgr/cephadm/ssh_identity_key -i ~/.ssh/id_rsa -- 2.47.3