node icon indicating copy to clipboard operation
node copied to clipboard

akash provider lease-shell and the way it handles EOF

Open arno01 opened this issue 3 years ago • 1 comments

akash v0.16.4-rc2.

There are different use-cases getting broken due to the way akash provider lease-shell handles EOF.

  1. Can upload the data into the container using this command, despite the error:
$ tar -cf - -C /usr/share -- info | akash provider lease-shell --stdin app1 -- tar -xf - -C /root
Error: EOF: failed while reading from stdin
  1. When passing "z" flag (compressed tar), it just hangs until I Ctrl+C it:
$ tar -czf - -C /usr/share -- info | akash provider lease-shell --stdin app1 -- tar -xzf - -C /root
halted by signal: interrupt

even a small file:

$ tar -czf - -C /etc -- hosts | akash provider lease-shell --stdin app1 -- tar -xzf - -C /root
halted by signal: interrupt
  1. It is waiting forever on user input (neither Ctrl+D is helping):
$ echo hi30 | akash provider lease-shell --stdin app1 -- cat -
hi30
<prompt hangs in here>

arno01 avatar May 30 '22 22:05 arno01

I think the correct behavior here would be

  1. --stdin close when EOF is received by the local process
  2. --tty - expect interactive console with user input

tidrolpolelsef avatar Jun 17 '22 19:06 tidrolpolelsef

Todo

  • [ ] check provider-services 0.1.0 (and 0.1.1-rc1 probably as well)

andy108369 avatar Nov 29 '22 17:11 andy108369