Project

Profile

Help

Issue #1385

closed

Content Unit Counts Documented Incorrectly

Added by placko over 6 years ago. Updated about 3 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.6.5
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Easy Fix, Pulp 2
Sprint:
Quarter:

Description

Following Puppet Quick Start Guide [1], Content Unit Counts is not updated when puppet modules are added to repository. Same issue occures with RPM module. One thus can not query repository by number of units it contains.


# pulp-admin puppet repo create --repo-id=repo1 --description="Mirror of Puppet Forge" --display-name="Repo 1" --feed=http://forge.puppetlabs.com
Successfully created repository [repo1]
# pulp-admin puppet repo update --repo-id=repo1 --queries=libvirt
Repository [repo1] successfully updated
# pulp-admin puppet repo sync run --repo-id=repo1
+----------------------------------------------------------------------+
                    Synchronizing Repository [repo1]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Downloading metadata...
[==================================================] 100%
Metadata Query: 1/1 items
... completed

Downloading new modules...
[==================================================] 100%
Module: 8/8 items
... completed

Task Succeeded

Publishing modules...
[==================================================] 100%
Module: 8/8 items
... completed

Generating repository metadata...
[-]
... completed

Publishing repository over HTTP...
... completed

Publishing repository over HTTPS...
... skipped

Task Succeeded

# pulp-admin puppet repo search
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+

Id:                  repo1
Display Name:        Repo 1
Description:         Mirror of Puppet Forge
Content Unit Counts:
  Puppet Module: 8
Last Unit Added:     2015-11-24T14:12:36Z
Last Unit Removed:   None
Notes:

# pulp-admin puppet repo search --gt='content_unit_count=0'
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+

[1] http://pulp-puppet.readthedocs.org/en/latest/user-guide/quick-start.html

Actions #1

Updated by ipanova@redhat.com over 6 years ago

  • Description updated (diff)
Actions #2

Updated by ipanova@redhat.com over 6 years ago

First observation is that the field is not 'content_unit_count' but 'content_unit_counts', but nevertheless it still does not work.

I think we did some changes in here because the output is different from the docs and the dict structure changed:

$ pulp-admin puppet repo list

+----------------------------------------------------------------------+
                          Puppet Repositories
+----------------------------------------------------------------------+

Id:                  pup
Display Name:        pup
Description:         None
Content Unit Counts: 
  Puppet Module: 8

Now it looks like: 
"content_unit_counts": {
      "puppet_module": 8
    }, 
Actions #3

Updated by mhrivnak over 6 years ago

  • Project changed from Pulp to Puppet Support
  • Subject changed from Content Unit Counts not updated to Content Unit Counts Documented Incorrectly
  • Category deleted (14)
  • Severity changed from 2. Medium to 1. Low
  • Triaged changed from No to Yes
  • Tags Documentation, Easy Fix added
Actions #4

Updated by bmbouter about 3 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #5

Updated by bmbouter about 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF