Skip to content

Documented EOF in ATTACH_CONTAINER_INPUT#340

Merged
vinodkone merged 1 commit intoapache:masterfrom
bamarni:patch-1
Jul 22, 2019
Merged

Documented EOF in ATTACH_CONTAINER_INPUT#340
vinodkone merged 1 commit intoapache:masterfrom
bamarni:patch-1

Conversation

@bamarni
Copy link
Contributor

@bamarni bamarni commented Jul 2, 2019

@jdef
Copy link
Contributor

jdef commented Jul 2, 2019

@vinodkone PTAL

Copy link
Contributor

@vinodkone vinodkone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Should we add the extra bit about the expectation when TTY is enabled? See comment here: https://github.com/apache/mesos/blob/master/src/slave/containerizer/mesos/io/switchboard.cpp#L1727

@jdef
Copy link
Contributor

jdef commented Jul 2, 2019 via email

@bamarni
Copy link
Contributor Author

bamarni commented Jul 10, 2019

Updated it, I've used launched with an associated IOSwitchboard instead of tty as it's what's being used elsewhere on the page.

@jdef
Copy link
Contributor

jdef commented Jul 10, 2019

@vinodkone PTAL, feedback has been addressed

@vinodkone
Copy link
Contributor

IOSwitchboard is used by containers with or without TTY.

s/launched with an associated IOSwitchboard/launched with TTYInfo in their ContainerInfo/

@bamarni
Copy link
Contributor Author

bamarni commented Jul 10, 2019

@vinodkone : is this sentence a few lines above accurate then?

This call can only be made against containers that have been launched with an associated IOSwitchboard (i.e. nested containers launched via a LAUNCH_NESTED_CONTAINER_SESSION call or normal containers launched with a TTYInfo in their ContainerInfo)

See also https://github.com/dcos/dcos-core-cli/blob/1.14-patch.x/python/lib/dcos/dcos/mesos.py#L1425-L1428, where the code treats a missing I/O Switchboard as missing TTY.

@vinodkone
Copy link
Contributor

@bamarni For a regular container launched by a framework, IOSwitchboard is only enabled when TTY is requested. But an operator can launch a debug container without TTY and IOSwitchboard is still enabled AFAIK. In other words, TTY => IOSwitchboard but not the other way around. @abudnik @Gilbert88 can you confirm?

@abudnik
Copy link
Member

abudnik commented Jul 12, 2019

@bamarni For a regular container launched by a framework, IOSwitchboard is only enabled when TTY is requested. But an operator can launch a debug container without TTY and IOSwitchboard is still enabled AFAIK. In other words, TTY => IOSwitchboard but not the other way around. @abudnik @Gilbert88 can you confirm?

Yes, correct.
Also, a debug container can be launched only by LAUNCH_NESTED_CONTAINER_SESSION call.

@bamarni
Copy link
Contributor Author

bamarni commented Jul 22, 2019

Thanks for the clarification @abudnik @vinodkone , I've updated the PR

@vinodkone vinodkone merged commit 11bdb5f into apache:master Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants