Skip to content

Instantly share code, notes, and snippets.

@bowrocker
Created November 20, 2019 16:15
Show Gist options
  • Save bowrocker/f9f8cb61d01405718ad1f74746348082 to your computer and use it in GitHub Desktop.
Save bowrocker/f9f8cb61d01405718ad1f74746348082 to your computer and use it in GitHub Desktop.
root@headnode (coal-1) ~]# updates-imgadm -d -C experimental list name=manta-buckets-api --latest -H -o uuid
^?{"name":"updates-imgadm","hostname":"headnode","pid":19476,"level":20,"opts":{"debug":true,"channel":"experimental","latest":true,"H":true,"o":true,"argv":{"remain":["list","name=manta-buckets-api","uuid"],"cooked":["--debug","--channel","experimental","list","name=manta-buckets-api","--latest","-H","-o","uuid"],"original":["-d","-C","experimental","list","name=manta-buckets-api","--latest","-H","-o","uuid"]}},"argv":["/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/build/node/bin/node","/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/bin/updates-imgadm","-d","-C","experimental","list","name=manta-buckets-api","--latest","-H","-o","uuid"],"msg":"parsed argv","time":"2019-11-20T16:14:09.646Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/lib/cli.js","line":272},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"level":30,"user":"(none)","identities":"(none)","msg":"signature auth","time":"2019-11-20T16:14:09.651Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/lib/cli.js","line":292},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"level":10,"opts":{"debug":true,"channel":"experimental","latest":true,"skipHeader":true,"output":"uuid","argv":{"remain":["list","name=manta-buckets-api"],"cooked":["--debug","--channel","experimental","list","name=manta-buckets-api","--latest","--skipHeader","--output","uuid"],"original":["-d","-C","experimental","list","name=manta-buckets-api","--latest","-H","-o","uuid"]}},"argv":["/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/build/node/bin/node","/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/bin/updates-imgadm","-d","-C","experimental","list","name=manta-buckets-api","--latest","-H","-o","uuid"],"msg":"parsed subcmd argv","time":"2019-11-20T16:14:09.658Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/lib/cli.js","line":511,"func":"dispatch"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"client_req":{"method":"GET","url":"/images?channel=experimental&name=manta-buckets-api","address":"updates.joyent.com","port":null,"headers":{"accept":"application/json","user-agent":"restify/1.6.0 (ia32-sunos; v8/3.14.5.11; OpenSSL/1.0.1u) node/0.10.48","accept-version":"*","date":"Wed, 20 Nov 2019 16:14:09 GMT"}},"msg":"request sent","time":"2019-11-20T16:14:09.702Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":314,"func":"rawRequest"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"err":{"message":"getaddrinfo ENOTFOUND","name":"Error","stack":"Error: getaddrinfo ENOTFOUND\n at errnoException (dns.js:37:11)\n at Object.onanswer [as oncomplete] (dns.js:126:16)","code":"ENOTFOUND"},"msg":"Request failed","time":"2019-11-20T16:14:09.886Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":230,"func":"onError"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"client_req":{"method":"GET","url":"/images?channel=experimental&name=manta-buckets-api","address":"updates.joyent.com","port":null,"headers":{"accept":"application/json","user-agent":"restify/1.6.0 (ia32-sunos; v8/3.14.5.11; OpenSSL/1.0.1u) node/0.10.48","accept-version":"*","date":"Wed, 20 Nov 2019 16:14:09 GMT"}},"msg":"request sent","time":"2019-11-20T16:14:10.896Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":314,"func":"rawRequest"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"err":{"message":"getaddrinfo ENOTFOUND","name":"Error","stack":"Error: getaddrinfo ENOTFOUND\n at errnoException (dns.js:37:11)\n at Object.onanswer [as oncomplete] (dns.js:126:16)","code":"ENOTFOUND"},"msg":"Request failed","time":"2019-11-20T16:14:10.899Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":230,"func":"onError"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"client_req":{"method":"GET","url":"/images?channel=experimental&name=manta-buckets-api","address":"updates.joyent.com","port":null,"headers":{"accept":"application/json","user-agent":"restify/1.6.0 (ia32-sunos; v8/3.14.5.11; OpenSSL/1.0.1u) node/0.10.48","accept-version":"*","date":"Wed, 20 Nov 2019 16:14:09 GMT"}},"msg":"request sent","time":"2019-11-20T16:14:12.903Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":314,"func":"rawRequest"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"err":{"message":"getaddrinfo ENOTFOUND","name":"Error","stack":"Error: getaddrinfo ENOTFOUND\n at errnoException (dns.js:37:11)\n at Object.onanswer [as oncomplete] (dns.js:126:16)","code":"ENOTFOUND"},"msg":"Request failed","time":"2019-11-20T16:14:12.905Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":230,"func":"onError"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"client_req":{"method":"GET","url":"/images?channel=experimental&name=manta-buckets-api","address":"updates.joyent.com","port":null,"headers":{"accept":"application/json","user-agent":"restify/1.6.0 (ia32-sunos; v8/3.14.5.11; OpenSSL/1.0.1u) node/0.10.48","accept-version":"*","date":"Wed, 20 Nov 2019 16:14:09 GMT"}},"msg":"request sent","time":"2019-11-20T16:14:16.914Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":314,"func":"rawRequest"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"err":{"message":"getaddrinfo ENOTFOUND","name":"Error","stack":"Error: getaddrinfo ENOTFOUND\n at errnoException (dns.js:37:11)\n at Object.onanswer [as oncomplete] (dns.js:126:16)","code":"ENOTFOUND"},"msg":"Request failed","time":"2019-11-20T16:14:17.279Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":230,"func":"onError"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"client_req":{"method":"GET","url":"/images?channel=experimental&name=manta-buckets-api","address":"updates.joyent.com","port":null,"headers":{"accept":"application/json","user-agent":"restify/1.6.0 (ia32-sunos; v8/3.14.5.11; OpenSSL/1.0.1u) node/0.10.48","accept-version":"*","date":"Wed, 20 Nov 2019 16:14:09 GMT"}},"msg":"request sent","time":"2019-11-20T16:14:25.281Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":314,"func":"rawRequest"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"err":{"message":"getaddrinfo ENOTFOUND","name":"Error","stack":"Error: getaddrinfo ENOTFOUND\n at errnoException (dns.js:37:11)\n at Object.onanswer [as oncomplete] (dns.js:126:16)","code":"ENOTFOUND"},"msg":"Request failed","time":"2019-11-20T16:14:25.433Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":230,"func":"onError"},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"level":10,"err":{"message":"getaddrinfo ENOTFOUND","name":"Error","stack":"Error: getaddrinfo ENOTFOUND\n at errnoException (dns.js:37:11)\n at Object.onanswer [as oncomplete] (dns.js:126:16)","code":"ENOTFOUND"},"msg":"ListImages","time":"2019-11-20T16:14:25.435Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/lib/cli.js","line":675},"v":0}
{"name":"updates-imgadm","hostname":"headnode","pid":19476,"component":"api","level":10,"err":{"message":"socket hang up","name":"Error","stack":"Error: socket hang up\n at SecurePair.error (tls.js:1060:23)\n at EncryptedStream.CryptoStream._done (tls.js:752:22)\n at EncryptedStream.read [as _read] (tls.js:544:12)\n at EncryptedStream.Readable.read (_stream_readable.js:341:10)\n at CleartextStream.onCryptoStreamFinish (tls.js:353:47)\n at CleartextStream.g (events.js:180:16)\n at CleartextStream.emit (events.js:92:17)\n at finishMaybe (_stream_writable.js:360:12)\n at endWritable (_stream_writable.js:367:3)\n at CleartextStream.Writable.end (_stream_writable.js:345:5)","code":"ECONNRESET"},"msg":"Request failed","time":"2019-11-20T16:14:25.440Z","src":{"file":"/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/HttpClient.js","line":230,"func":"onError"},"v":0}
updates-imgadm: error (ClientError): Error: getaddrinfo ENOTFOUND
ClientError: Error: getaddrinfo ENOTFOUND; caused by Error: getaddrinfo ENOTFOUND
at CLI._errorFromClientError (/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/lib/cli.js:568:16)
at /zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/lib/cli.js:677:34
at doneFetching (/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/lib/imgapi.js:600:24)
at /zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/async/lib/async.js:677:28
at /zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/lib/imgapi.js:628:28
at _parse (/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/restify-clients/lib/StringClient.js:116:21)
at f (/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/once/once.js:25:25)
at FunctionCall.doCallback_ (/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/backoff/lib/function_call.js:162:20)
at Backoff.emit (events.js:95:17)
at Backoff.backoff (/zones/1d0e914f-2f79-4cba-a9e7-6c77e9eff940/root/opt/smartdc/sdc/node_modules/imgapi-cli/node_modules/sdc-clients/node_modules/backoff/lib/backoff.js:41:14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment