tsuru icon indicating copy to clipboard operation
tsuru copied to clipboard

tsuru run output should include unit name

Open guestisp opened this issue 12 years ago • 4 comments

tsuru run output should include node name, something like this:

$ tsuru run -a wordpress 'pwd'
== output for "pwd" on unit  11d2d635596d498df7ec28a0154feb52393563dc3495ee5964e859bc1b03cae7 ==
/home/application/current

== output for "pwd" on unit  2373cef432266da30dd827d2bc6c929f3600c05ecfd8c1c77cd989fa789e715c ==
/home/application/current

== output for "pwd" on unit  232991a63c4cccb52f02ba6d740a1bb1e533707dbc3d2dd114ac3c96e727a8ea ==
/home/application/current

actually is hard to detect who is writing what, for example, a "tsuru run 'ls'" will be hard to read, you don't know which files are on which units.

guestisp avatar Jan 15 '14 09:01 guestisp

What do you means is include the unit name? if yes, I'm +1 with this issue.

there is an issue (#375) to add information about the unit in tsuru log output.

andrewsmedina avatar Jan 15 '14 11:01 andrewsmedina

Yes, unit name or container id as above sample output.

guestisp avatar Jan 15 '14 12:01 guestisp

In docker provisioner the unit name is the container id.

andrewsmedina avatar Jan 15 '14 12:01 andrewsmedina

This could be a flag of RunArgs: https://github.com/tsuru/tsuru/blob/main/provision/provision.go#L217, after that kubernetes provisioner takes care of change the stream of this command.

wpjunior avatar Oct 01 '21 13:10 wpjunior

This issue is 350 days old, marking as stale! cc: @guestisp

github-actions[bot] avatar Sep 16 '22 17:09 github-actions[bot]