Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1444711

Summary: Improper message append to rhsmcertd.log when restart rhsmcertd service while system not registered
Product: Red Hat Enterprise Linux 7 Reporter: Wei Liu <weiliu>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: khowell, qianzhan, redakkan, skallesh
Target Milestone: rc   
Target Release: ---   
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: 2017-04-24 14:40:06 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:
Attachments:
Description Flags
the rhsm log
none
the rhsmcertd log none

Description Wei Liu 2017-04-24 05:04:13 UTC
Description of problem:
Impoper message appending to rhsmcertd.log when restart rhsmcertd service while system not registered.

Version-Release number of selected component (if applicable):
[root@dhcp-129-210 rhsm]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.21-1
subscription management rules: 5.15.1
subscription-manager: 1.19.9-1.el7
python-rhsm: 1.19.5-1.el7

How reproducible:
always

Steps to Reproduce:
1. Install build RHEL-7.4-20170421.1
2. edit /etc/rhsm/rhsm.conf and set certFrequency=1
3. #subscription-manager clean
4. #service rhsmcertd restart
5. tail -f /var/log/rhsm/rhsmcertd.log

Mon Apr 24 12:53:31 2017 [INFO] rhsmcertd is shutting down...
Mon Apr 24 12:53:31 2017 [INFO] Starting rhsmcertd...
Mon Apr 24 12:53:31 2017 [INFO] Auto-attach interval: 1440.0 minutes [86400 seconds]
Mon Apr 24 12:53:31 2017 [INFO] Cert check interval: 1.0 minutes [60 seconds]
Mon Apr 24 12:53:31 2017 [INFO] Waiting 2.0 minutes plus 31691 splay seconds [31811 seconds total] before performing first auto-attach.
Mon Apr 24 12:53:31 2017 [INFO] Waiting 2.0 minutes plus 38 splay seconds [158 seconds total] before performing first cert check.





Mon Apr 24 12:54:31 2017 [WARN] unable to open ATI��US��1�H��` to write timestamp: Permission denied
Mon Apr 24 12:55:31 2017 [WARN] unable to open ATI��US��1�H��` to write timestamp: Permission denied
Mon Apr 24 12:56:09 2017 [WARN] (Cert Check) Update failed (255), retry will occur on next run.
Mon Apr 24 12:56:31 2017 [WARN] unable to open ATI��US��1�H��` to write timestamp: Permission denied
Mon Apr 24 12:57:09 2017 [WARN] (Cert Check) Update failed (255), retry will occur on next run.
Mon Apr 24 12:57:31 2017 [WARN] unable to open ATI��US��1�H��` to write timestamp: Permission denied


Actual results:
As step5.

Expected results:
No improper message:[WARN] unable to open ATI��US��1�H��` to write timestamp: Permission denied

Additional info:

Comment 2 Wei Liu 2017-04-24 05:05:21 UTC
Created attachment 1273506 [details]
the rhsm log

Comment 3 Wei Liu 2017-04-24 05:05:51 UTC
Created attachment 1273507 [details]
the rhsmcertd log

Comment 4 Kevin Howell 2017-04-24 14:40:06 UTC

*** This bug has been marked as a duplicate of bug 1443215 ***