Bug 1647454
| Summary: | RFE to allow for better stats gathering | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jim Perrin <jperrin> | |
| Component: | libdnf | Assignee: | Michal Domonkos <mdomonko> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | rawhide | CC: | dmach, jberan, jmracek, jrohel, mblaha, mdomonko, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vmukhame | |
| Target Milestone: | --- | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | libdnf-0.35.3-1.fc31 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1676891 (view as bug list) | Environment: | ||
| Last Closed: | 2019-08-15 07:58:16 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1676891, 1737516 | |||
|
Description
Jim Perrin
2018-11-07 13:59:14 UTC
Fedora Change: https://fedoraproject.org/wiki/Changes/DNF_Better_Counting The change consists of 2 parts: - User-Agent change - countme feature User-Agent ---------- Schemas: libdnf/$libdnf_version ($NAME $VERSION_ID; Linux.$basearch) libdnf/$libdnf_version ($NAME $VERSION_ID; $VARIANT_ID; Linux.$basearch) Examples: libdnf/0.26.0 (Fedora 29; Linux.x86_64) libdnf/0.26.0 (Fedora 29; server; Linux.x86_64) libdnf/0.26.0 (Red Hat Enterprise Linux 7.6; workstation; Linux.x86_64) Countme ------- Add a new 'countme' option to repo configs, for example: [fedora] countme = 1 Create a new dnf sub-command to trigger the countme feature: $ dnf countme Iterate through all repos: if countme == 1: GET($url?countme=1) where $url is first available from [metalink, mirrorlist, baseurl] # consider using HEAD instead of GET Create a systemd timer triggering the `dnf countme` command periodically Note to (mostly) self on capturing the User-Agent field: 1) Create a local repo (id=myrepo) somewhere on the file system and host it with: $ python -m SimpleHTTPServer & 2) Create /etc/yum.repos.d/myrepo.repo 3) In one terminal, run: # tcpflow -p -c -i lo port 8000 | grep -i user-agent 4) In another terminal, run: # dnf --refresh --disablerepo=\* --enablerepo=myrepo makecache 5) Observe the User-Agent value in the first terminal I've also requests the addition "countme=1" to the fedora-repos package: https://bugzilla.redhat.com/show_bug.cgi?id=1737516 *requested |