Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1235821 - Inconsistent output on hammer repository-set
Summary: Inconsistent output on hammer repository-set
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Zach Huntington-Meath
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-25 20:11 UTC by Andrew Schofield
Modified: 2019-10-10 09:54 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-15 19:19:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Andrew Schofield 2015-06-25 20:11:29 UTC
Description of problem:

Switching between tabulated and CSV output changes the ENABLED column form yes / no to true / false.

# hammer repository-set available-repositories --product "Red Hat Enterprise Linux Server" --name "Red Hat Enterprise Linux 6 Server (RPMs)" --organization-id 3
------------------------------------------------------|--------|---------|--------
NAME                                                  | ARCH   | RELEASE | ENABLED
------------------------------------------------------|--------|---------|--------
Red Hat Enterprise Linux 6 Server RPMs i386 6.1       | i386   | 6.1     | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.1     | x86_64 | 6.1     | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.2       | i386   | 6.2     | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.2     | x86_64 | 6.2     | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.3       | i386   | 6.3     | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.3     | x86_64 | 6.3     | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.4       | i386   | 6.4     | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.4     | x86_64 | 6.4     | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.5       | i386   | 6.5     | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.5     | x86_64 | 6.5     | no
Red Hat Enterprise Linux 6 Server RPMs i386 6.6       | i386   | 6.6     | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.6     | x86_64 | 6.6     | no
Red Hat Enterprise Linux 6 Server RPMs i386 6Server   | i386   | 6Server | no
Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server | x86_64 | 6Server | yes
------------------------------------------------------|--------|---------|--------

VS

# hammer --csv repository-set available-repositories --product "Red Hat Enterprise Linux Server" --name "Red Hat Enterprise Linux 6 Server (RPMs)" --organization-id 3
Name,Arch,Release,Enabled
Red Hat Enterprise Linux 6 Server RPMs i386 6.1,i386,6.1,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.1,x86_64,6.1,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.2,i386,6.2,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.2,x86_64,6.2,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.3,i386,6.3,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.3,x86_64,6.3,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.4,i386,6.4,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.4,x86_64,6.4,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.5,i386,6.5,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.5,x86_64,6.5,false
Red Hat Enterprise Linux 6 Server RPMs i386 6.6,i386,6.6,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.6,x86_64,6.6,false
Red Hat Enterprise Linux 6 Server RPMs i386 6Server,i386,6Server,false
Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server,x86_64,6Server,true



Version-Release number of selected component (if applicable):

6.1 public beta.

How reproducible:

Always.

Steps to Reproduce:
1.
2.
3.

Actual results:




Expected results:


Additional info:

Comment 1 RHEL Program Management 2015-06-25 20:22:35 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Bryan Kearney 2015-10-22 16:37:40 UTC
Created redmine issue http://projects.theforeman.org/issues/12267 from this bug

Comment 5 Zach Huntington-Meath 2016-03-03 18:44:23 UTC
This feature has been added to both the web ui and to hammer cli. Unfortunately something has broken it on the web ui. I will look into what is causing it to break in the web ui.

Comment 6 Zach Huntington-Meath 2016-03-03 19:31:55 UTC
(In reply to Zach Huntington-Meath from comment #5)
> This feature has been added to both the web ui and to hammer cli.
> Unfortunately something has broken it on the web ui. I will look into what
> is causing it to break in the web ui.

Sorry, ignore this comment, it was meant for a different bug.

Comment 7 Mike McCune 2016-03-15 19:19:56 UTC
The CSV output is unformatted and straight from the API where the tabular format is translated to some degree to offer better display value.

This behavior while somewhat confusing is consistent across the application and desired to keep the CSV output unmodified.

Going to close this as NOTABUG


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