Project

General

Profile

Bug #13122

rhsm last_checkin not being updated in db

Added by Justin Sherrill almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
medium
Triaged:
Yes
Bugzilla link:

Description

Currently the last_checking db column is not being updated at all and is normally blank.

Couple of issues here.

  • There is an api endpoint /consumers/:id/checkin but this does not appear to be used by current subscription manager
  • The candlepin url /consumers/61ae6368-a553-4349-914a-0524c168ab0e/certificates/serials seems to trigger a change in the last_checkin within candlepin
  • we do not currently intercept this call, its a pure proxy path-through

You can use this curl command to trigger the serial fetch and see the last_checkin from candlepin change:

```

Katello::System.first.lastCheckin

"2016-01-12T00:30:03.019+0000"

curl -k -X GET https://localhost/rhsm/consumers/61ae6368-a553-4349-914a-0524c168ab0e/certificates/serials --cert /etc/pki/consumer/bundle.pem

2.2.0 :070 > Katello::System.first.lastCheckin
=> "2016-01-12T00:34:41.194+0000"
```


Related issues

Blocks Katello - Feature #11435: Host Unification TrackerNew

Associated revisions

Revision b0184e07 (diff)
Added by Justin Sherrill almost 4 years ago

Fixes #13123,#13122 - properly import and save release_version via api and migration

Revision 1a7b987b
Added by Justin Sherrill almost 4 years ago

Merge pull request #5699 from jlsherrill/13123

Fixes #13123,#13122 - properly import and save release_version via api..

Revision c021031b (diff)
Added by Justin Sherrill almost 4 years ago

Fixes #13122 - intercept rhsm serial requests and update last_checkin

Revision e8a3f939
Added by Justin Sherrill almost 4 years ago

Merge pull request #5700 from jlsherrill/13122

Fixes #13122 - intercept rhsm serial requests and update last_checkin

History

#1 Updated by Justin Sherrill almost 4 years ago

#2 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Pull request https://github.com/Katello/katello/pull/5699 added

#3 Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/Katello/katello/pull/5700 added

#4 Updated by Justin Sherrill almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF