• Michael Hanselmann's avatar
    iallocator: Add node whitelist · fb60bc6a
    Michael Hanselmann authored
    In the future instance creations might have a lock on all nodes as was
    the case until the implementation of opportunistic locking. Nodes for
    which the lock is not held will be shown to the iallocator plugin as if
    they were marked offline.
    
    This patch adds a new parameter named “node_whitelist” to
    “IAReqInstanceAlloc”. If set to a list, only nodes contained within are
    shown as online.
    Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
    Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
    fb60bc6a
iallocator.py 20 KB