Skip to content

Deprecate the --monitor-host option of 'init-container' - #617

Merged
debarshiray merged 2 commits into
containers:mainfrom
debarshiray:wip/rishi/deprecate-monitor-host
Mar 7, 2023
Merged

debarshiray merged 2 commits into
containers:mainfrom
debarshiray:wip/rishi/deprecate-monitor-host

Conversation

@debarshiray

@debarshiray debarshiray commented Nov 3, 2020 •

Copy link
Copy Markdown
Member

The --monitor-host option was added to the 'init-container' command in
commit 8b84b5e to accommodate Podman versions older than 1.2.0
that didn't have the '--dns none' and '--no-hosts' options for
'podman create'. These options are necessary to keep the Toolbx
container's /etc/resolv.conf and /etc/hosts files synchronized with
those of the host.

Note that Podman 1.2.0 was already available a few months before
commit 8b84b5e introduced the --monitor-host option. The
chances of someone using an older Podman back then was already on the
decline, and it's very unlikely that a container created with such a
Podman has survived till this date.

Commit b6b484f raised the minimum required Podman version to
1.4.0, and made the '--dns none' and '--no-hosts' options a hard
requirement. The minimum required Podman version was again raised
recently in commit 8e80dd5 to 1.6.4. Therefore, these days,
there's no need to separately use the --monitor-host option of
'init-container' for newly created containers to indicate that the
Podman version wasn't older than 1.2.0.

Given all this, it's time to stop using the --monitor-host option of
'init-container', and assume that it's always set. The option is still
accepted to retain compatibility with existing Toolbx containers.

For containers that were created with the --monitor-host option, a
deprecation notice will be shown as:

  $ podman start --attach CONTAINER
  Flag --monitor-host has been deprecated, it does nothing
  ...

debarshiray added a commit to debarshiray/toolbox that referenced this pull request Nov 3, 2020
The '--monitor-host' option was added to the 'init-container' command
in commit 8b84b5e to accommodate Podman versions older than
1.2.0 that didn't have the '--dns none' and '--no-hosts' options for
'podman create'. These options are necessary to keep the toolbox
container's /etc/resolv.conf and /etc/hosts files synchronized with
those of the host.

Note that Podman 1.2.0 was already available a few months before
commit 8b84b5e introduced the '--monitor-host' option. The
chances of someone using an older Podman back then was already on the
decline, and it's very unlikely that a container created such a Podman
has survived till this date.

Since commit b6b484f, the minimum required Podman version is
1.4.0, and the '--dns none' and '--no-hosts' options are a hard
requirement. Therefore, these days, there's no need to separately use
the '--monitor-host' option of 'init-container' for newly created
containers to indicate that the Podman version wasn't older than 1.2.0.

Given all this, it's time to stop using the '--monitor-host' option of
'init-container', and assume that certain configuration files inside
the toolbox container should always be kept synchronized with their
counterparts on the host. The option is still accepted to retain
compatibility with existing toolbox containers.

containers#617
@debarshiray
debarshiray force-pushed the wip/rishi/deprecate-monitor-host branch from 4b53ea3 to d8212d3 Compare November 3, 2020 23:57
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

debarshiray added a commit to debarshiray/toolbox that referenced this pull request Dec 2, 2020
The '--monitor-host' option was added to the 'init-container' command
in commit 8b84b5e to accommodate Podman versions older than
1.2.0 that didn't have the '--dns none' and '--no-hosts' options for
'podman create'. These options are necessary to keep the toolbox
container's /etc/resolv.conf and /etc/hosts files synchronized with
those of the host.

Note that Podman 1.2.0 was already available a few months before
commit 8b84b5e introduced the '--monitor-host' option. The
chances of someone using an older Podman back then was already on the
decline, and it's very unlikely that a container created such a Podman
has survived till this date.

Since commit b6b484f, the minimum required Podman version is
1.4.0, and the '--dns none' and '--no-hosts' options are a hard
requirement. Therefore, these days, there's no need to separately use
the '--monitor-host' option of 'init-container' for newly created
containers to indicate that the Podman version wasn't older than 1.2.0.

Given all this, it's time to stop using the '--monitor-host' option of
'init-container', and assume that certain configuration files inside
the toolbox container should always be kept synchronized with their
counterparts on the host. The option is still accepted to retain
compatibility with existing toolbox containers.

containers#617
@debarshiray
debarshiray force-pushed the wip/rishi/deprecate-monitor-host branch from d8212d3 to 224556d Compare December 2, 2020 17:56
@softwarefactory-delete-me

Copy link
Copy Markdown

Build succeeded.

@martymichal martymichal added 2. Container Configuration Configuration of a container. Mounts, environmental variables, privileges. 2. Container Realm The issue is related to what happens inside of a toolbox container 3. Enhancement Improvement to an existing feature 6. Minor Change Should not cause breakage 6. Requires Toolbx Recreation This will take effect in new Toolbox containers and not in existing ones labels Feb 26, 2021
@martymichal martymichal added this to the Release 0.1.0 milestone Feb 26, 2021
@martymichal martymichal removed the 6. Requires Toolbx Recreation This will take effect in new Toolbox containers and not in existing ones label Mar 1, 2021
martymichal added a commit to martymichal/toolbox that referenced this pull request Mar 4, 2021
This updates the wording of the description and splits it into a few
subsections.

The description of the --monitor-host was inaccurate and while the
option will go away in the future[0], it is currently in and should be
more documented.

[0] containers#617
Base automatically changed from master to main March 25, 2021 22:25
martymichal added a commit to martymichal/toolbox that referenced this pull request May 24, 2021
- Update "See also" sections

Toolbox does not use Buildah for a considerable time now[0]. We can stop
referencing it in the "See also" sections of the documentation.

In some places mention podman command man pages where they are relevant.

- Add section about toolbox images/containers

Toolbox only supports certain OCI images. These should be documented.
Also, document the change of fedora-toolbox image name.

- Add a section about toolbox container setup

Toolbox containers are specifically configured OCI containers. This
should be documented so that users know what they're using.

- Remove redundant part documentation

The description of what `toolbox init-container` does is already in
toolbox-init-container(1). There's no need to have it in
toolbox-create(1). Instead, replace the text with a hint to visit the
other part of documentation.

- Clarify behaviour of --image option

The fact that Toolbox by default tries to pull from the Fedora
registry[1] should be noted.

- Update synopsis & description of commands

Mention options passed to `podman exec`. Remove redundant paragraph
about container names (is already dealt with in toolbox-create(1)).

There's no need to mention the name of the default container on Fedora
since Toolbox now also supports RHEL.

Mention the default used image on unrecognised systems.

Emphasize the fact that toolboxes are not a fully sandboxed environment.

Update the wording of the description and splits it into a few
subsections.

The description of the --monitor-host was inaccurate and while the
option will go away in the future[2], it is currently in and should be
more documented.

[0] containers#160
[1] https://registry.fedoraproject.org
[2] containers#617

containers#512
martymichal added a commit to martymichal/toolbox that referenced this pull request May 24, 2021
- Update "See also" sections

Toolbox does not use Buildah for a considerable time now[0]. We can stop
referencing it in the "See also" sections of the documentation.

In some places mention podman command man pages where they are relevant.

- Add section about toolbox images/containers

Toolbox only supports certain OCI images. These should be documented.
Also, document the change of fedora-toolbox image name.

- Add a section about toolbox container setup

Toolbox containers are specifically configured OCI containers. This
should be documented so that users know what they're using.

- Remove redundant part documentation

The description of what `toolbox init-container` does is already in
toolbox-init-container(1). There's no need to have it in
toolbox-create(1). Instead, replace the text with a hint to visit the
other part of documentation.

- Clarify behaviour of --image option

The fact that Toolbox by default tries to pull from the Fedora
registry[1] should be noted.

- Update synopsis & description of commands

Mention options passed to `podman exec`. Remove redundant paragraph
about container names (is already dealt with in toolbox-create(1)).

There's no need to mention the name of the default container on Fedora
since Toolbox now also supports RHEL.

Mention the default used image on unrecognised systems.

Emphasize the fact that toolboxes are not a fully sandboxed environment.

Update the wording of the description and splits it into a few
subsections.

The description of the --monitor-host was inaccurate and while the
option will go away in the future[2], it is currently in and should be
more documented.

[0] containers#160
[1] https://registry.fedoraproject.org
[2] containers#617

containers#512
martymichal added a commit that referenced this pull request May 24, 2021
- Update "See also" sections

Toolbox does not use Buildah for a considerable time now[0]. We can stop
referencing it in the "See also" sections of the documentation.

In some places mention podman command man pages where they are relevant.

- Add section about toolbox images/containers

Toolbox only supports certain OCI images. These should be documented.
Also, document the change of fedora-toolbox image name.

- Add a section about toolbox container setup

Toolbox containers are specifically configured OCI containers. This
should be documented so that users know what they're using.

- Remove redundant part documentation

The description of what `toolbox init-container` does is already in
toolbox-init-container(1). There's no need to have it in
toolbox-create(1). Instead, replace the text with a hint to visit the
other part of documentation.

- Clarify behaviour of --image option

The fact that Toolbox by default tries to pull from the Fedora
registry[1] should be noted.

- Update synopsis & description of commands

Mention options passed to `podman exec`. Remove redundant paragraph
about container names (is already dealt with in toolbox-create(1)).

There's no need to mention the name of the default container on Fedora
since Toolbox now also supports RHEL.

Mention the default used image on unrecognised systems.

Emphasize the fact that toolboxes are not a fully sandboxed environment.

Update the wording of the description and splits it into a few
subsections.

The description of the --monitor-host was inaccurate and while the
option will go away in the future[2], it is currently in and should be
more documented.

[0] #160
[1] https://registry.fedoraproject.org
[2] #617

#512
The --monitor-host option was added to the 'init-container' command in
commit 8b84b5e to accommodate Podman versions older than 1.2.0
that didn't have the '--dns none' and '--no-hosts' options for
'podman create'.  These options are necessary to keep the Toolbx
container's /etc/resolv.conf and /etc/hosts files synchronized with
those of the host.

Note that Podman 1.2.0 was already available a few months before
commit 8b84b5e introduced the --monitor-host option.  The
chances of someone using an older Podman back then was already on the
decline, and it's very unlikely that a container created with such a
Podman has survived till this date.

Commit b6b484f raised the minimum required Podman version to
1.4.0, and made the '--dns none' and '--no-hosts' options a hard
requirement.  The minimum required Podman version was again raised
recently in commit 8e80dd5 to 1.6.4.  Therefore, these days,
there's no need to separately use the --monitor-host option of
'init-container' for newly created containers to indicate that the
Podman version wasn't older than 1.2.0.

Given all this, it's time to stop using the --monitor-host option of
'init-container', and assume that it's always set.  The option is still
accepted to retain compatibility with existing Toolbx containers.

For containers that were created with the --monitor-host option, a
deprecation notice will be shown as:
  $ podman start --attach CONTAINER
  Flag --monitor-host has been deprecated, it does nothing
  ...

containers#617
@debarshiray
debarshiray force-pushed the wip/rishi/deprecate-monitor-host branch from 224556d to 58638c5 Compare March 7, 2023 14:46
@debarshiray debarshiray changed the title Deprecate the '--monitor-host' option of 'init-container' eprecate the --monitor-host option of 'init-container' Mar 7, 2023
@debarshiray debarshiray changed the title eprecate the --monitor-host option of 'init-container' Deprecate the --monitor-host option of 'init-container' Mar 7, 2023
@softwarefactory-delete-me

Copy link
Copy Markdown

@debarshiray debarshiray closed this Mar 7, 2023
@debarshiray
debarshiray merged commit 58638c5 into containers:main Mar 7, 2023
@debarshiray
debarshiray deleted the wip/rishi/deprecate-monitor-host branch March 7, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. Container Configuration Configuration of a container. Mounts, environmental variables, privileges. 2. Container Realm The issue is related to what happens inside of a toolbox container 3. Enhancement Improvement to an existing feature 6. Minor Change Should not cause breakage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants