From 074f1ff246bc9e957bbb398b50ec4b8cda1f156f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 20 Dec 2019 11:50:00 -0600 Subject: [PATCH] cephadm: python3 shebang We need to figure out if/how we can make this as tolerant as possible for the curl users so that it can still run on a python2-only host. Maybe. Signed-off-by: Sage Weil --- ceph.spec.in | 1 + src/cephadm/cephadm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 59d539ce381..eda6893b456 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -390,6 +390,7 @@ Base is the package that includes all the files shared amongst ceph servers Summary: Utility to bootstrap Ceph clusters Requires: podman Requires: lvm2 +Requires: python%{python3_pkgversion} %description -n cephadm Utility to bootstrap a Ceph cluster and manage Ceph daemons deployed with systemd and podman. diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 526f9a0cefe..4085e89dcdc 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 DEFAULT_IMAGE='ceph/daemon-base:latest-master-devel' # FIXME when octopus is ready!!! DATA_DIR='/var/lib/ceph'