Commit graph

117 commits

Author SHA1 Message Date
Steven Armstrong
252ae5ea56 new feature: dependency resolver 2012-01-19 07:51:02 +01:00
Steven Armstrong
6dd1465aa8 --AttributeError
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 15:29:07 +01:00
Steven Armstrong
e1cf8d094b --AttributeError
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:29:36 +01:00
Steven Armstrong
ae23f1576f --TypeError
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:28:51 +01:00
Steven Armstrong
f95ee8062f --SyntaxError
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:28:04 +01:00
Nico Schottelius
b3337a18b9 in theory catch error when requiring an undefined object (in practise not)
Error message trying to fix:

ERROR: [Errno 2] No such file or directory: '/home/users/nico/.tmp/tmptvy1ic/out/object/__localch_yum_repos/singleton/.cdist/state'

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-09 18:30:12 +01:00
Nico Schottelius
e18bd97c86 SUCESSFUL is very helpful to grep for :-)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-08 08:28:04 +01:00
Steven Armstrong
81e4c0a418 move run_*_explorers from config_install to core.explorer
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-20 11:10:30 +02:00
Nico Schottelius
c189bd9daf resort output in object_run
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-19 16:47:52 +02:00
Steven Armstrong
ca1ef28fe1 change order of log.info
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:42:14 +02:00
Steven Armstrong
e9541b2a2a == is not = :-/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:29:30 +02:00
Steven Armstrong
de8a09b45d ++FIXME
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:16:52 +02:00
Steven Armstrong
9156d2f5ac trust in telmich we do (or should)
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:15:52 +02:00
Steven Armstrong
c45c9cd702 dont re-run already fulfilled requirements
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:07:13 +02:00
Steven Armstrong
24bf7369d9 ++info
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:54:26 +02:00
Steven Armstrong
50eead577c +missing import
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:49:32 +02:00
Steven Armstrong
8cfc16cd76 finish migration to cdist_object.state
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:48:22 +02:00
Steven Armstrong
6734ff693f fix object_prepare to use object.state
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:39:38 +02:00
Nico Schottelius
e98272e0c5 move log.info down
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-19 15:34:24 +02:00
Nico Schottelius
0e7c532870 add new state code, begin to detect circular dependencies
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-19 15:32:06 +02:00
Nico Schottelius
7bb81e2f18 Whitespace does not not weigh anything - remove - sed -i 's/ *$//g' *py */*py
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-18 13:32:36 +02:00
Nico Schottelius
420b6aeae7 ensure object is not ran twice
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-16 15:08:00 +02:00
Nico Schottelius
950424d478 move log output into correct function, also log object code run/gencode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 23:29:27 +02:00
Nico Schottelius
42e1c21f43 print progress output in info level for object prepare
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 23:26:54 +02:00
Nico Schottelius
00a1f1eeb9 ++ more host prefixing log code
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 01:41:11 +02:00
Nico Schottelius
db6fdeebfe log.info for global explorers (may also take some time)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 00:14:25 +02:00
Nico Schottelius
ef1ebbd0b7 remove senseless message superseeded by new logging prefix
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:56:33 +02:00
Steven Armstrong
9f231a9ce7 suffix cache path with target_host
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 09:47:59 +02:00
Steven Armstrong
1c1cff37e3 --debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 09:07:21 +02:00
Steven Armstrong
74f4ec2f5d resolve required objects using new object_from_name method
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 09:06:32 +02:00
Steven Armstrong
cf6139504b ++debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 21:38:37 +02:00
Steven Armstrong
94724427fa ++debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 21:27:19 +02:00
Steven Armstrong
6271e27eb5 transfer object parameter before running type explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:38:09 +02:00
Steven Armstrong
d37ca88752 +run_type_explorers, minor fixes
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:53:48 +02:00
Steven Armstrong
08ffaf61f5 -legacy code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:36:00 +02:00
Steven Armstrong
fced07634a initial rewrite of config_install
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:27:41 +02:00
Nico Schottelius
79ad04ebe5 -ws
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-13 12:21:24 +02:00
Nico Schottelius
143939a6f7 do not change current env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-13 11:09:57 +02:00
Nico Schottelius
c305735ed5 begin cleanup/reordering in config_install
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-13 11:08:23 +02:00
Nico Schottelius
62383eed8d ++stuff
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-13 03:00:57 +02:00
Nico Schottelius
09209e47d6 ideas for explorer run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-12 20:29:53 +02:00
Nico Schottelius
e8f7fe3faa intermediate commit for cdist state
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-12 16:59:02 +02:00
Nico Schottelius
9f49f99294 use self.log for correct logger
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 17:09:47 +02:00
Nico Schottelius
b7824c3ead move explorer out dir creation into Explorer class
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 17:05:35 +02:00
Nico Schottelius
d95d195b40 have object seave its explorer outputs
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:59:43 +02:00
Nico Schottelius
794a11d866 %s/\(self.\)\([a-z]*_path\)/\1context.\2/g
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:56:05 +02:00
Nico Schottelius
588731661e use context in explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:49:50 +02:00
Nico Schottelius
dbd31252a8 remove CODE_HEADER
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:45:36 +02:00
Nico Schottelius
b8a3cf2f49 remove manifest code from config_install
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:25:48 +02:00
Nico Schottelius
d9d9e6bff6 move back transfer stuff to exec
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 15:47:32 +02:00