Skip to content
  • Dimitri Savineau's avatar
    cephadm-adopt: make the playbook idempotent · 6886700a
    Dimitri Savineau authored
    
    
    If the cephadm-adopt.yml fails during the first execution and some
    daemons have already been adopted by cephadm then we can't rerun
    the playbook because the old container won't exist anymore.
    
    Error: no container with name or ID ceph-mon-xxx found: no such container
    
    If the daemons are adopted then the old systemd unit doesn't exist anymore
    so any call to that unit with systemd will fail.
    
    Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1918424
    
    Signed-off-by: default avatarDimitri Savineau <dsavinea@redhat.com>
    6886700a