rhsm last_checkin not being updated in db
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:
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