TritonDataCenter / sdc-imgapi

SDC internal API for managing OS images
Mozilla Public License 2.0
5 stars 18 forks source link

sdc-imgapi health, Are images actually on disk, or just in the index? #12

Closed Smithx10 closed 4 years ago

Smithx10 commented 7 years ago

sdc-imgapi seems to have orphaned images.

For example, sdc-imgadm list showed a uuid as present. sdc-imgadm delete ${uuid} and "file not found"
So I was forced to reimport the image.

Is there anyway to find out if an image actually is written on disk?

initial error: cnapi.wait_task_ensure_image 16-11-23T18:43:00.825Z","v":0} {"name":"imgadm","req_id":"5de37da0-b1ac-11e6-b624-7364c04e84d5","hostname":"rusty","pid":5045,"level":20,"unlockInfo":{"uuid":"7b27a514-89d7-11e6-bee6-3f96f367bee7","lockPath":"/var/run/img.7b27a514-89d7-11e6-bee6-3f96f367bee7.import.lock"},"msg":"released lock","time":"2016-11-23T18:43:00.825Z","v":0} {"name":"imgadm","req_id":"5de37da0-b1ac-11e6-b624-7364c04e84d5","hostname":"rusty","pid":5045,"level":20,"subcmd":"import","exitStatus":1,"cli":true,"msg":"cli exit","time":"2016-11-23T18:43:00.826Z","v":0} imgadm import: error (InternalServerError): InternalServerError at ClientRequest.onResponse (/usr/img/node_modules/restify/lib/clients/http_client.js:161:26) at ClientRequest.g (events.js:180:16) at ClientRequest.EventEmitter.emit (events.js:95:17) at HTTPParser.parserOnIncomingClient (http.js:1688:21) at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23) at Socket.socketOnData (http.js:1583:20) at TCP.onread (net.js:530:27)