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 769370 - headpin cli system info shows time incorrectly
Summary: headpin cli system info shows time incorrectly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.1
Hardware: Unspecified
OS: Linux
urgent
urgent
Target Milestone: Unspecified
Assignee: Bryan Kearney
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 703617 katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-12-20 16:00 UTC by Eric Sammons
Modified: 2019-09-26 13:27 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
headpin
Last Closed: 2012-04-27 00:32:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Webui screenshot showing last checkin and registration (142.29 KB, image/png)
2011-12-20 16:00 UTC, Eric Sammons
no flags Details

Description Eric Sammons 2011-12-20 16:00:27 UTC
Created attachment 548873 [details]
Webui screenshot showing last checkin and registration

Description of problem:
When running 'headpin system info' the output shows time incorrectly; possible not using local time zone.  Also, last update does not reflect last checkin which may be expected; however, there appears to be no way to get last checkin from 'headpin system'

Version-Release number of selected component (if applicable):
# rpm -q katello-cli-headpin
katello-cli-headpin-0.1.13-2.el6.noarch

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.2 (Santiago)

Steps to Reproduce:
1.Run headpin system info
 $ headpin -u admin -p admin system info --name [SYSTEMNAME] --org ACME_Corporation --env Test
2. Review output
  
Actual results:
----------------------------------------------------------------------------------------
        System Information For Environment [ Test ] in Org [ ACME_Corporation ]
----------------------------------------------------------------------------------------

Name:            brain.usersys.redhat.com
Uuid:            82b720c7-008d-4635-bb90-a265812e26a8
Location:        None
Registered:      2011/12/20 15:17:39
Last updated:    2011/12/20 15:17:39
Description:
    Initial Registration Params


Compare results to those in the webui (attached).

Expected results:
I would expect to see Last Checkin somewhere from the command line; however, info and facts both fail to reflect this information.

Also, Date reflected at command line matches (minutes and seconds) of webui; however, hour is wrong.  I have verified timezone of the 5.8 system.

# date
Tue Dec 20 10:59:22 EST 2011

Additional info:

Comment 1 Bryan Kearney 2011-12-21 18:55:37 UTC
fixed in katello master at 4ab42150b2ae6f0e9974ec70a0e35782115be612. You will see this in katello-common-cli version 0.1.31 or later.

Comment 2 Eric Sammons 2012-01-23 15:27:04 UTC
# headpin -u admin -p admin system info --name System-2OM2NHQCsMqW5p --org ACME_Corporation --env DEV
------------------------------------------------------------------------------------------------------------------------------------------
                                  System Information For Environment [ DEV ] in Org [ ACME_Corporation ]
------------------------------------------------------------------------------------------------------------------------------------------

Name:            System-2OM2NHQCsMqW5p
Uuid:            b86fc612-5001-442b-b00f-b4df51f69dd6
Location:        None
Registered:      2012/01/23 09:24:32
Last updated:    2012/01/23 09:24:32
Description:
    Initial Registration Params


VERIFIED:
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-0.1.34-2.el6.noarch
candlepin-0.5.10-1.el6.noarch
thumbslug-0.0.21-1.el6.noarch
katello-cli-headpin-0.1.13-2.el6.noarch
candlepin-tomcat6-0.5.10-1.el6.noarch
katello-common-0.1.180-2.el6.noarch
katello-headpin-0.1.126-2.el6.noarch
katello-configure-0.1.52-2.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-certs-tools-1.0.1-2.el6.noarch
katello-glue-candlepin-0.1.180-2.el6.noarch
katello-headpin-all-0.1.126-2.el6.noarch

Comment 4 Mike McCune 2013-08-16 17:57:31 UTC
getting rid of 6.0.0 version since that doesn't exist


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