Skip to content
  • Klaus Aehlig's avatar
    Verify clean DATA_DIR on cluster init · 3a805689
    Klaus Aehlig authored
    
    
    A new Ganeti cluster should not inherit state from a previously existing
    cluster. Therefore, on cluster initialization, verify that no dangerous
    left-overs are present in the DATA_DIR. We cannot, however, insist on
    the DATA_DIR being completely empty, as it is good practice to set up
    the rapi user file ahead of time. What we therefore do is to verify
    that
    - the DATA_DIR, if present, only contains directory entries, and
    - the QUEUE_DIR, if present, is empty.
    
    Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
    Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
    3a805689