Bug 1965813 - dnf: it is not possible to effectively opt out from countme counting
Summary: dnf: it is not possible to effectively opt out from countme counting
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-30 11:15 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2024-05-09 04:56 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-31 11:44:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2021-05-30 11:15:32 UTC
Description of problem:
The docs for countme don't say whether it's enough to set 'countme=0' in the global config to disable, or whether the user needs to set 'countme=0' in each and every repo file.

In general, how is a user that wants to opt-out to go about this?

Expected results:
https://fedoraproject.org/wiki/Changes/DNF_Better_Counting says that it's possible to opt out, but it's not clear how to do that.

Comment 1 Daniel Mach 2021-05-31 11:44:04 UTC
It is just another option and this documented behavior applies to it:

> OPTIONS FOR BOTH [MAIN] AND REPO
>        Some options can be applied in either the main section, per repository,
>        or in a combination. The value provided in the main section is used for
>        all repositories as the default  value,  which  repositories  can  then
>        override in their configuration.

Opt-out is possible by changing the individual .repo files.
There's no global option to turn it all off at once.

Comment 2 Zbigniew Jędrzejewski-Szmek 2021-05-31 16:42:01 UTC
Makes sense, thanks.

Comment 3 Zbigniew Jędrzejewski-Szmek 2021-05-31 17:47:07 UTC
I need to document how to opt out (I'm writing some end-user docs). 
I tried 'dnf config-manager --setopt={fedora,updates,rawhide,…}.countme=0 --save', but that is fragile because the repo list needs to match exactly.
The best I could come up with:
  sudo sed -r -i s/countme=0/countme=1/ /etc/yum.repos.d/*repo

Any better ideas?

Comment 4 Zbigniew Jędrzejewski-Szmek 2021-05-31 18:40:37 UTC
I now realized that needs to be done after every update of fedora-repos and fedora-workstation-repositories and whatever other packages.
That's a very bad UX.
https://fedoraproject.org/wiki/Changes/DNF_Better_Counting#User_Experience said:
> Users who wish to opt out of counting will have an easy way to do so.

Personally, I don't have anything against counting, or even more popcon-style statistics. But some
people do, and since we promised an opt-out mechanism, I would be nice to provide one. We should
at least discuss this.

@mattdm, comments?

Comment 5 Marek Blaha 2021-06-01 07:28:56 UTC
Slightly better might be `dnf config-manager --setopt='*.countme=0' --save`.
But it still is kind of fragile - once you add a new repo, you need to repeat the step.

Comment 6 Daniel Mach 2021-06-07 11:33:02 UTC
We'll look into implementing global (repo) configuration overrides.

Comment 7 Ben Cotton 2021-08-10 13:45:48 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 8 Ben Cotton 2022-11-29 16:58:07 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 9 Ben Cotton 2023-02-07 15:08:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 10 purpleidea 2024-03-16 03:50:29 UTC
I can confirm this is enabled by default in Fedora 39. I'd love an Anaconda kickstart setting to disable it.

Comment 11 Aoife Moloney 2024-05-07 15:43:57 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.


Note You need to log in before you can comment on or make changes to this bug.