Actions
Bug #13122
closedrhsm last_checkin not being updated in db
Difficulty:
medium
Triaged:
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"
```
Actions