Bug 1492832
Summary: | Hammer CLI has not option to list repository content | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Renzo Nuccitelli <rnuccite> |
Component: | Repositories | Assignee: | Andrew Kofink <akofink> |
Status: | CLOSED ERRATA | QA Contact: | Renzo Nuccitelli <rnuccite> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.0 | CC: | akofink, bbuckingham, dhlavacd, ehelms, sghai, tstrachota, zhunting |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-21 17:00:37 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: |
Description
Renzo Nuccitelli
2017-09-18 17:21:56 UTC
Created redmine issue http://projects.theforeman.org/issues/21142 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21142 has been resolved. I've read the PR but were not able to realize what command should I use to get file content. I've tried the info but still it has no info about the content: hammer> repository info --id=1 ID: 1 Name: file-repo Label: file-repo Organization: Default Organization Red Hat Repository: no Content Type: file Mirror on Sync: yes URL: Publish Via HTTP: yes Published At: http://some.sat.host/isos/919c22dc-a130-4b01-a256-d2825978d1d4/ Relative Path: Default_Organization/Library/custom/file-product/file-repo Download Policy: Product: ID: 1 Name: file-product GPG Key: Sync: Status: Not Synced Created: 2017/10/16 14:33:25 Updated: 2017/10/16 14:33:28 Content Counts: I have also ran hammer repository --help to check if a new command was added, but there is no new command. So could an example of how to use this command be provided? $ hammer file list --repository-id 5 ---|----------------|--------------- ID | NAME | PATH ---|----------------|--------------- 5 | bar.txt | bar.txt 1 | NCC-170115.xml | NCC-170115.xml ---|----------------|--------------- The command is not available on last sat 6.3 release: [root@ ~]# rpm -q satellite satellite-6.3.0-20.0.beta.el7sat.noarch [root@ ~]# hammer file Error: No such sub-command 'file' Is it possible that we didn't cherry pick this change to last compose? The hammer component didn't make it into snap 20. I'm moving it to MODIFIED so it can make it into the next snap. Command worked on satellite 6.3.0 snap 21: hammer> file list --repository-id 4 ---|-----------------------|---------------------- ID | NAME | PATH ---|-----------------------|---------------------- 1 | zoo_custom_gpgkey.txt | zoo_custom_gpgkey.txt ---|-----------------------|---------------------- Moving this BZ to verified Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336 |