forked from ungleich-public/cdist
Add warning message for faulty dependencies case.
This commit is contained in:
parent
88b436b4c1
commit
d49af95d3c
18 changed files with 138 additions and 3 deletions
|
|
@ -246,6 +246,35 @@ connection. In this case ssh will disable multiplexing.
|
|||
This limit is controlled with sshd :strong:`MaxSessions` configuration
|
||||
options. For more details refer to :strong:`sshd_config`\ (5).
|
||||
|
||||
When requirements for the same object are defined in different manifests (see
|
||||
example below) in init manifest and in some other type manifest and they differs
|
||||
then dependency resolver cannot detect dependencies right. This happends because
|
||||
cdist cannot prepare all objects first and then run objects because some
|
||||
object can depend on the result of type explorer(s) and explorers are executed
|
||||
during object run. cdist will detect such case and write warning message.
|
||||
Example for such a case:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
init manifest:
|
||||
__a a
|
||||
require="__e/e" __b b
|
||||
require="__f/f" __c c
|
||||
__e e
|
||||
__f f
|
||||
require="__c/c" __d d
|
||||
__g g
|
||||
__h h
|
||||
|
||||
type __g manifest:
|
||||
require="__c/c __d/d" __a a
|
||||
|
||||
Warning message:
|
||||
.WARNING: cdisttesthost: Object __a/a already exists with requirements:
|
||||
/usr/home/darko/ungleich/cdist/cdist/test/config/fixtures/manifest/init-deps-resolver /tmp/tmp.cdist.test.ozagkg54/local/759547ff4356de6e3d9e08522b0d0807/data/conf/type/__g/manifest: set()
|
||||
/tmp/tmp.cdist.test.ozagkg54/local/759547ff4356de6e3d9e08522b0d0807/data/conf/type/__g/manifest: {'__c/c', '__d/d'}
|
||||
Dependency resolver could not handle dependencies as expected.
|
||||
|
||||
COPYING
|
||||
-------
|
||||
Copyright \(C) 2011-2013 Nico Schottelius. Free use of this software is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue