Skip to content

Instantly share code, notes, and snippets.

@zadunn
Created August 2, 2016 21:54
Show Gist options
  • Save zadunn/1c46cbc5f7262aa9218bc2d8e1b9acf8 to your computer and use it in GitHub Desktop.
Save zadunn/1c46cbc5f7262aa9218bc2d8e1b9acf8 to your computer and use it in GitHub Desktop.
[root@headnode (iad3) ~]# sdc-sapi /instances/9a1b7646-92e1-4d09-ad4b-a31e1e20554b/upgrade -X PUT -d '{"image_uuid": "d370f5f2-8beb-4abf-d676-8cdae3c37d63"}'
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Content-Length: 1211
Date: Tue, 02 Aug 2016 21:52:13 GMT
Connection: keep-alive
{
"code": "ReprovisionFailedError",
"message": "job reprovision-7.0.3 (7198789b-0c8f-4c8a-bac7-a49198a2bb87) failed: cnapi.wait_task: mage-id validated\",\"time\":\"2016-08-02T21:52:11.198Z\",\"v\":0}\n{\"name\":\"imgadm\",\"req_id\":\"5c2457a0-58fb-11e6-b441-23127a880929\",\"hostname\":\"bugbear-torpedo.us-east.optoro.io\",\"pid\":4087,\"level\":20,\"subcmd\":\"import\",\"exitStatus\":1,\"cli\":true,\"msg\":\"cli exit\",\"time\":\"2016-08-02T21:52:11.308Z\",\"v\":0}\nimgadm import: error (ActiveImageNotFound): ActiveImageNotFoundError: an active image \"d370f5f2-8beb-4abf-d676-8cdae3c37d63\" was not found in image sources\n at /usr/img/lib/cli.js:1386:26\n at finish (/usr/img/lib/imgadm.js:1127:9)\n at next (/usr/img/node_modules/vasync/lib/vasync.js:201:4)\n at /usr/img/lib/imgadm.js:1120:17\n at /usr/img/lib/sources/imgapi.js:148:9\n at /usr/img/node_modules/sdc-clients/lib/imgapi.js:682:17\n at parseResponse (/usr/img/node_modules/restify/lib/clients/json_client.js:84:9)\n at IncomingMessage.done (/usr/img/node_modules/restify/lib/clients/string_client.js:151:17)\n at IncomingMessage.g (events.js:180:16)\n at IncomingMessage.EventEmitter.emit (events.js:117:20)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment