Better to raise an error; eth0 will never be correct.
Signed-off-by: Sage Weil <sage@newdream.net>
from ceph.deployment.service_spec import IngressSpec
from cephadm.utils import resolve_ip
-
+from orchestrator import OrchestratorError
from cephadm.services.cephadmservice import CephadmDaemonDeploySpec, CephService
logger = logging.getLogger(__name__)
)
break
if not interface:
- interface = 'eth0'
+ raise OrchestratorError(
+ "Unable to identify interface for {spec.virtual_ip} on {host}"
+ )
# script to monitor health
script = '/usr/bin/false'