This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
session-results> (e-s r) | |
phases invoked: first, second | |
groups invoked: bad, good | |
phases: | |
phase first: | |
group bad: | |
node 192.168.56.123: | |
action #1 | |
script: | |
| #!/usr/bin/env bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(learn-pallet/bootstrap-ns session-results nil) | |
(ns session-results | |
(:require [pallet.actions :as actions] | |
[pallet.api :as api])) | |
(def good-group | |
(api/group-spec | |
"good" | |
:extends *base-spec* | |
:phases |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"good" | |
:extends *base-spec* | |
:phases | |
{:first (api/plan-fn (actions/exec-script | |
(println "first!"))) | |
:second (api/plan-fn | |
(actions/exec-checked-script | |
"say hello!" | |
("echo" "hello world!")))})) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> ----------------------------------------- | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> #!/usr/bin/env bash | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> echo 'package-manager configure :proxy http://10.0.3.2:3128...'; | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> { | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> echo 'remote-file /etc/apt/apt.conf.d/50pallet...'; | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> { | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:150 | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:322 | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:315 | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> { cat > /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new <<'EOFpallet' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-05-20 10:44:06,576 DEBUG p.execute 192.168.56.103 <== [sudo] password for vmfest: package-manager configure :proxy http://10.0.3.2:3128... | |
2013-05-20 10:44:06,576 DEBUG p.execute 192.168.56.103 <== remote-file /etc/apt/apt.conf.d/50pallet... | |
2013-05-20 10:44:06,576 DEBUG p.execute 192.168.56.103 <== palletYJkgc: line 9: /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new: No such file or directory | |
2013-05-20 10:44:06,576 ERROR p.execute 192.168.56.103 #> remote-file /etc/apt/apt.conf.d/50pallet : FAIL | |
2013-05-20 10:44:06,576 WARN p.s.transport 192.168.56.103 Exit status : 1 | |
2013-05-20 10:44:06,679 DEBUG p.s.execute 192.168.56.103 <== ------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
session-results> (pprint (run)) | |
{:phase-errors true, | |
:phase :second, | |
:results | |
({:errors | |
({:error | |
{:server "192.168.56.101", | |
:type :pallet-script-excution-error, | |
:message "192.168.56.101 Error executing script", | |
:exit 255, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
session-results> (pprint (explain-session result)) | |
{:phases [:configure], | |
:groups (:bad :good), | |
:node-ids | |
("100d9b8d-3304-44f8-b197-28204187e2f9" | |
"69c77ef6-513e-4bd6-ada4-4302d916fb2f" | |
"9be50cc7-e2d0-4812-a6d4-c8919ccb7131" | |
"d6ffc984-fb1b-4f9f-9fff-cb28d58f1653"), | |
:runs | |
{:configure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
session-results> (pprint (explain-session result)) | |
{:phases [:configure], | |
:groups (:bad :good), | |
:node-ids | |
("100d9b8d-3304-44f8-b197-28204187e2f9" | |
"69c77ef6-513e-4bd6-ada4-4302d916fb2f" | |
"9be50cc7-e2d0-4812-a6d4-c8919ccb7131" | |
"d6ffc984-fb1b-4f9f-9fff-cb28d58f1653"), | |
:runs | |
{:configure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GROUPS: group-a, group-b | |
PHASES: phase-1, phase-2 | |
RESULTS: 1 ERROR | |
group-a with 3 nodes | |
node-a-1 | |
phase-1: OK | |
phase-2: OK | |
node-a-2 | |
phase-1: OK | |
phase-2: FAIL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(learn-pallet/bootstrap-ns multi-node nil) | |
(ns multi-node | |
(:require | |
[pallet.api :as api] | |
[pallet.crate :as crate] | |
[pallet.node :as node] | |
[pallet.actions :as actions])) | |
(def group-a | |
(api/group-spec |