Commit graph

2616 commits

Author SHA1 Message Date
Nico Schottelius
15ae422cb2 catch cdist errors in emulator or config install, not in main, because catching there does not work in multiprocess env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-16 00:15:41 +02:00
Nico Schottelius
72687b5aeb create new method to encapsulate configinstall run of one host
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-16 00:12:51 +02:00
Nico Schottelius
3883fe4247 raise cdist error instead of oserror
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-16 00:12:32 +02:00
Nico Schottelius
3c31b4f9a3 and finally also adjust the requirement itself
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 23:40:11 +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
5a72223ae3 strip away / in emulator in requirements
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 23:23:57 +02:00
Nico Schottelius
92de3d2f10 need cdist module for various constens
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 23:23:30 +02:00
Nico Schottelius
053903bb69 use instance logger in explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 12:00:46 +02:00
Steven Armstrong
b8b9719cc6 Merge remote-tracking branch 'telmich/master'
Conflicts:
	lib/cdist/core/explorer.py
	lib/cdist/emulator.py

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-15 10:51:08 +02:00
Nico Schottelius
ee1c568c7b almost finish correct requirement loading, but need sleep
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 02:54:54 +02:00
Nico Schottelius
0dd38f75c2 remove leading / from object_id of requirement
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 02:46:28 +02:00
Nico Schottelius
a7a3ee6f19 adjust prefix
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 02:36:33 +02:00
Nico Schottelius
e002710c4c rewrite emulator to class based approach for better logging
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 02:31:40 +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
a415cc4b91 add correct logger in manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 01:38:22 +02:00
Nico Schottelius
67b1094712 flatten error message in remotescripterror as well
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 01:25:57 +02:00
Nico Schottelius
ad1e51cb2e catch unicodedecodeerror
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 01:11:54 +02:00
Steven Armstrong
889e6c23cb Explorer tracks which type explorers have been transferred instad of Type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-15 00:44:54 +02:00
Steven Armstrong
60509a49e2 Merge remote-tracking branch 'telmich/master' 2011-10-15 00:31:04 +02:00
Steven Armstrong
d83de25774 Stripp leading slash from requirements object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-15 00:26:00 +02:00
Nico Schottelius
c64ab97f2a irrrrrrgs, ugly output
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 00:25:55 +02:00
Nico Schottelius
cba202186e missing prefix documented
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 00:16:34 +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
0d441eb378 report info when running initial manifest (it may take some time)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 00:12:08 +02:00
Nico Schottelius
3f76f03239 return full command only in local mode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 00:10:35 +02:00
Nico Schottelius
85c9c3e283 more changes for next release
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:57:58 +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
Nico Schottelius
46fde0e9fe Merge remote-tracking branch 'steven/master' 2011-10-14 23:55:46 +02:00
Steven Armstrong
fb2a3cb06e Merge remote-tracking branch 'telmich/master' 2011-10-14 23:52:51 +02:00
Steven Armstrong
b5b7d8e727 add missing return_output=True argument when fetching script content
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 23:52:05 +02:00
Nico Schottelius
72e930ac1c Merge remote-tracking branch 'steven/master' 2011-10-14 23:52:00 +02:00
Nico Schottelius
9223663136 CLEANUP: return flat name, not python list to user
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:51:01 +02:00
Nico Schottelius
1e31721ad9 BUGFIX: remote path for explorer in __object variable
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:50:31 +02:00
Steven Armstrong
325a13088c implement that type explorers are only transfered once
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 23:47:05 +02:00
Steven Armstrong
814b46f0c7 /transfered_explorers/explorers_transferred/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 23:44:27 +02:00
Steven Armstrong
c38959699f test for: transfer_type_explorers_only_once
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 23:42:16 +02:00
Steven Armstrong
1e57ae469e Merge remote-tracking branch 'telmich/master' 2011-10-14 23:30:08 +02:00
Nico Schottelius
2a0f7512b7 add full output of error
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:27:55 +02:00
Steven Armstrong
66324db4b3 Merge remote-tracking branch 'telmich/master' 2011-10-14 23:23:53 +02:00
Nico Schottelius
57f4aae2a1 --obsolete files
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:23:44 +02:00
Nico Schottelius
ba59339f67 fixup code and manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:21:22 +02:00
Nico Schottelius
df8be73c10 test for debug in manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:18:58 +02:00
Steven Armstrong
e766f5048b Merge remote-tracking branch 'telmich/master' 2011-10-14 23:18:17 +02:00
Nico Schottelius
f80520090b remove obsolete global_explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:14:49 +02:00
Nico Schottelius
02934055e7 make debug test work for explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:14:05 +02:00
Steven Armstrong
23bcb018c5 Merge remote-tracking branch 'telmich/master' 2011-10-14 23:13:19 +02:00
Nico Schottelius
db04ec0473 test whether debug is setup in explorer env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:11:57 +02:00
Nico Schottelius
bc85237eaa make code setup debug env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:04:19 +02:00
Nico Schottelius
dd05a9b0d7 add test to verify code setups debug env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:02:47 +02:00