LGTM, thanks On Wed, 27 May 2015 at 18:26 'Klaus Aehlig' via ganeti-devel < [email protected]> wrote:
> When opportunistically allocating nodes for an instance to be created, > not all nodes can be considered for instance placement. Support debugging > which nodes were considered. > > Signed-off-by: Klaus Aehlig <[email protected]> > --- > lib/cmdlib/instance_create.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/cmdlib/instance_create.py b/lib/cmdlib/instance_create.py > index 5188596..c6e83eb 100644 > --- a/lib/cmdlib/instance_create.py > +++ b/lib/cmdlib/instance_create.py > @@ -438,6 +438,7 @@ class LUInstanceCreate(LogicalUnit): > node_name_whitelist = self.cfg.GetNodeNames( > set(self.owned_locks(locking.LEVEL_NODE)) & > set(self.owned_locks(locking.LEVEL_NODE_RES))) > + logging.debug("Trying to allocate on nodes %s", node_name_whitelist) > else: > node_name_whitelist = None > > -- > 2.2.0.rc0.207.ga3a616c > >
