Skip to content
  • Guillaume Abrioux's avatar
    osd: ensure /var/lib/ceph/osd/{cluster}-{id} is present · d86a159a
    Guillaume Abrioux authored
    This commit ensures that the `/var/lib/ceph/osd/{{ cluster }}-{{ osd_id }}` is
    present before starting OSDs.
    
    This is needed specificly when redeploying an OSD in case of OS upgrade
    failure.
    Since ceph data are still present on its devices then the node can be
    redeployed, however those directories aren't present since they are
    initially created by ceph-volume. We could recreate them manually but
    for better user experience we can ask ceph-ansible to recreate them.
    
    NOTE:
    this only works for OSDs that were deployed with ceph-volume.
    ceph-disk deployed OSDs would have to get those directories recreated
    manually.
    
    Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1898486
    
    
    
    Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
    (cherry picked from commit 873fc8ec)
    d86a159a