Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not remove runtime package #383

Closed
wants to merge 1 commit into from

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Jul 10, 2024

#372 Above pull request introduces "apt-get purge '*-dev'", it is intended to remove only needless development packages, but actually --auto-remove removes also runtime packages.

This behavior is not intended at all, so drop --auto-remove option.

Before: with --auto-remove

The following packages will be REMOVED:
  libc-dev-bin* libc6-dev* libcrypt-dev* libffi-dev* libgmp-dev* libgmpxx4ldbl* libgssapi-krb5-2* libk5crypto3* libkeyutils1* libkrb5-3* libkrb5support0* libnsl-dev* libnsl2*
  libssl-dev* libtirpc-common* libtirpc-dev* libtirpc3* libyaml-dev* linux-libc-dev* rpcsvc-proto* zlib1g-dev*
0 upgraded, 0 newly installed, 21 to remove and 0 not upgraded.
After this operation, 40.1 MB disk space will be freed.
Do you want to continue? [Y/n] 

After: without --auto-remove

The following packages were automatically installed and are no longer required:
  libc-dev-bin libgmpxx4ldbl libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libnsl2 libtirpc-common libtirpc3 rpcsvc-proto
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libc6-dev* libcrypt-dev* libffi-dev* libgmp-dev* libnsl-dev* libssl-dev* libtirpc-dev* libyaml-dev* linux-libc-dev* zlib1g-dev*
0 upgraded, 0 newly installed, 10 to remove and 0 not upgraded.
After this operation, 37.0 MB disk space will be freed.
Do you want to continue? [Y/n] 

@kenhys kenhys requested a review from daipom July 10, 2024 04:11
@kenhys
Copy link
Contributor Author

kenhys commented Jul 10, 2024

I'll create another PR to update images.

@daipom
Copy link
Contributor

daipom commented Jul 10, 2024

kenhys added a commit to kenhys/fluentd-kubernetes-daemonset that referenced this pull request Jul 10, 2024
Closes: fluent#1492

related: fluent/fluentd-docker-image#383

Reported by @gpapaz

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
kenhys added a commit to kenhys/fluentd-kubernetes-daemonset that referenced this pull request Jul 10, 2024
Closes: fluent#1492

related: fluent/fluentd-docker-image#383

Reported by @gpapaz

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@kenhys
Copy link
Contributor Author

kenhys commented Jul 10, 2024

I'll check effection to $buildDeps.

@kenhys
Copy link
Contributor Author

kenhys commented Jul 10, 2024

  • --auto-remove $buildDeps '*-dev'
  • --auto-remove $buildDeps and without --auto-remove '*-dev' (separate command)
  • without --auto-remove $buildDeps '*-dev'
    • $buildDeps dependency packages were not removed . (libsasl2-2 was not removed )
      noautoremove-dev.log

@kenhys
Copy link
Contributor Author

kenhys commented Jul 10, 2024

But removed runtime is reported against k8s images, not fluentd docker image.
So, option 2 `--auto-remove $buildDeps and without --auto-remove '*-dev' (separate command) ) seems enough for this docker image.

fluent#372
Above pull request introduces "apt-get purge '*-dev'",
it is intended to remove only needless development packages, but
actually --auto-remove removes also runtime packages.

This behavior is not intended at all, so do not apply
--auto-remove when purging '*-dev'.

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@daipom
Copy link
Contributor

daipom commented Jul 10, 2024

I see! Thanks for the investigation!
I will check the behavior as well.

kenhys added a commit to kenhys/fluentd-kubernetes-daemonset that referenced this pull request Jul 10, 2024
Closes: fluent#1492

related: fluent/fluentd-docker-image#383

Reported by @gpapaz

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
kenhys added a commit to kenhys/fluentd-kubernetes-daemonset that referenced this pull request Jul 10, 2024
Closes: fluent#1492

related: fluent/fluentd-docker-image#383

Reported by @gpapaz

When runtime package was not specified explicitly, apt-get purge
--auto-remove removes runtime packages.
So not to be removed libsasl2-2 and libsasl2-module by apt-get
purge --auto-remove '*-dev', install them explicitly in beforehand.

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
kenhys added a commit to kenhys/fluentd-kubernetes-daemonset that referenced this pull request Jul 10, 2024
Closes: fluent#1492

related: fluent/fluentd-docker-image#383

Reported by @gpapaz

When runtime package was not specified explicitly, apt-get purge
--auto-remove removes runtime packages.
So not to be removed libsasl2-2 by apt-get
purge --auto-remove '*-dev', install them explicitly in beforehand.

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@kenhys
Copy link
Contributor Author

kenhys commented Jul 10, 2024

Reconsidered to withdraw it.
(No need to care specially)

@kenhys kenhys closed this Jul 10, 2024
@kenhys kenhys deleted the not-purge-runtime branch July 10, 2024 08:47
kenhys added a commit to kenhys/fluentd-kubernetes-daemonset that referenced this pull request Jul 10, 2024
Closes: fluent#1492

related: fluent/fluentd-docker-image#383

Reported by @gpapaz

When runtime package was not specified explicitly, apt-get purge
--auto-remove removes runtime packages.
So not to be removed libsasl2-2 by apt-get
purge --auto-remove '*-dev', install them explicitly in beforehand.

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
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.

2 participants