You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whilst trying to add a schedule for creating snapshots of zones, I've found that if that zone has a delegated dataset, the triton cli utility silently fails. Tracking down some more I've found the details below.
command with verbose output [root@992ab1ac-eb0f-c157-d638-bcac2334cd32 ~]# triton -v instance snapshot create amon0 {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"config":{"cacheDir":"cache","profile":"mesoform-lab-private","_user":{"profile":"mesoform-lab-private"},"_defaults":{"cacheDir":"cache"},"_configDir":"/root/.triton"},"msg":"loaded config","time":"2017-01-16T18:02:43.220Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/cli.js","line":284,"func":"getConfig"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"profile":{"account":"admin","keyId":"XXXXXXXXXXXXXXXXXXX","url":"https://cloudapi.triton.mobile","insecure":true,"name":"mesoform-lab-private"},"msg":"loaded profile","time":"2017-01-16T18:02:43.240Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/cli.js","line":300,"func":"getProfile"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"cacheDir":"/root/.triton/cache/admin@cloudapi_triton_mobile","msg":"cache dir","time":"2017-01-16T18:02:43.262Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/tritonapi.js","line":149,"func":"TritonApi"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"client_req":{"method":"GET","url":"/admin/machines?name=amon0&limit=1000&offset=0","address":"cloudapi.triton.mobile","port":null,"headers":{"date":"Mon, 16 Jan 2017 18:02:43 GMT","authorization":"Signature keyId=\"/admin/keys/XXXXXXXXXXXXXXXXXXX\",algorithm=\"rsa-sha256\",headers=\"date\",signature=\"Y02n7cidTUcz3PSRd+WqXXeMlAJLvwatH6ddrDj3ByFATi7cY1nRtZyhNxVgInFfuQOCceVkXWgvJMvGb0siLTQd4TKe+3hF0axOuBy6ayA4k8CRpRT9smoBzLrWQqREffif9jS2fIQfIzIG4TJy2wSuhDH+Uz9dbJOG4CZDyNTL6FbqhHSR6lpXyg64ktNI4ZLchMh6h02R/X2NtATQuCWw5BasYfna1WOGdzCC+BgPyqnnvx0tMSyhZwHwSFLUujURJeBZnjWMRWv9f7y7lskGZGhoZONnckfp11iHw5pUo0f4q6INCFC/pzyZOZUBdwsGwdPIEb1ayXgjMmH+Zw==\"","accept":"application/json","user-agent":"triton/4.15.0 (x64-sunos; node/6.7.0)","accept-version":"~8||~7"}},"msg":"request sent","time":"2017-01-16T18:02:43.671Z","src":{"file":"/opt/local/lib/node_modules/triton/node_modules/restify-clients/lib/HttpClient.js","line":268,"func":"rawRequest"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"client_res":{"statusCode":200,"headers":{"role-tag":"ops","x-query-limit":"1000","x-resource-count":"1","content-type":"application/json","content-length":"1759","access-control-allow-origin":"*","access-control-allow-headers":"Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version, Response-Time","access-control-allow-methods":"POST, GET, HEAD","access-control-expose-headers":"Api-Version, Request-Id, Response-Time","connection":"Keep-Alive","content-md5":"Y/NjZQBps8O8UQz0VHEUWA==","date":"Mon, 16 Jan 2017 18:02:45 GMT","server":"Joyent Triton 8.0.2","api-version":"8.0.0","request-id":"fa8d5890-dc15-11e6-bd9c-edaae1fb46cd","response-time":"2142"}},"msg":"Response received","time":"2017-01-16T18:02:45.875Z","src":{"file":"/opt/local/lib/node_modules/triton/node_modules/restify-clients/lib/HttpClient.js","line":164,"func":"onResponse"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"body":"[{\"id\":\"3a12b5e8-36f8-4de1-be76-5a3548a38a0a\",\"name\":\"amon0\",\"type\":\"smartmachine\",\"brand\":\"joyent-minimal\",\"state\":\"running\",\"image\":\"45ece41a-38b3-11e6-a55d-df4c49216a4a\",\"ips\":[\"192.168.77.24\",\"192.168.78.27\"],\"memory\":256,\"disk\":3072,\"metadata\":{\"sapi-url\":\"http://192.168.77.31\",\"user-script\":\"#!/usr/bin/bash\\n#\\n# This Source Code Form is subject to the terms of the Mozilla Public\\n# License, v. 2.0. If a copy of the MPL was not distributed with this\\n# file, You can obtain one at http://mozilla.org/MPL/2.0/.\\n#\\n\\n#\\n# Copyright (c) 2014, Joyent, Inc.\\n#\\n\\nexport PS4='[\\\\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'\\n\\nset -o xtrace\\nset -o errexit\\nset -o pipefail\\n\\n#\\n# The presence of the /var/svc/.ran-user-script file indicates that the\\n# instance has already been setup (i.e. the instance has booted previously).\\n#\\n# Upon first boot, run the setup.sh script if present. On all boots including\\n# the first one, run the configure.sh script if present.\\n#\\n\\nSENTINEL=/var/svc/.ran-user-script\\n\\nDIR=/opt/smartdc/boot\\n\\nif [[ ! -e ${SENTINEL} ]]; then\\n if [[ -f ${DIR}/setup.sh ]]; then\\n ${DIR}/setup.sh 2>&1 | tee /var/svc/setup.log\\n fi\\n\\n touch ${SENTINEL}\\nfi\\n\\nif [[ ! -f ${DIR}/configure.sh ]]; then\\n echo \\\"Missing ${DIR}/configure.sh cannot configure.\\\"\\n exit 1\\nfi\\n\\nexec ${DIR}/configure.sh\\n\",\"assets-ip\":\"192.168.77.7\"},\"tags\":{\"smartdc_role\":\"amon\",\"smartdc_type\":\"core\"},\"created\":\"2015-11-30T23:17:39.582Z\",\"updated\":\"2016-12-22T18:15:54.000Z\",\"networks\":[\"5fde9367-5949-4446-b2e2-2525883aaaec\",\"987915f9-9188-414a-b6f3-cb4eeffc6ab5\"],\"primaryIp\":\"192.168.78.27\",\"firewall_enabled\":true,\"compute_node\":\"40028d03-5c04-5505-3806-4b0700080009\",\"package\":\"sdc_256\"}]","len":1759,"msg":"body received","time":"2017-01-16T18:02:45.879Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/SaferJsonClient.js","line":100,"func":"finish"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"client_req":{"method":"POST","url":"/admin/machines/3a12b5e8-36f8-4de1-be76-5a3548a38a0a/snapshots","address":"cloudapi.triton.mobile","port":null,"headers":{"date":"Mon, 16 Jan 2017 18:02:45 GMT","authorization":"Signature keyId=\"/admin/keys/XXXXXXXXXXXXXXXXXXX\",algorithm=\"rsa-sha256\",headers=\"date\",signature=\"Bi+ZCqhu+uFDtfFYeU5dJfK7hNqHa8TehvmIIfxVAHNnPJicPDUMZeEGklezJkK0P+3mUjsblvelxn6dq9avUz4XteWYy8zMYBxtXS9AA1ib8U8RTDgJZz059aud15NUDtnG/igd6pbKEqImbctoJikY0IYiIkSMcXWEhrXIq9YoEoI/0cvbRZIK8F/9fB62TMSojoIFGiuADTJ3EBlL3eZ+WfEZgEY86JH4nTFlSNsrBcQrLNgngY9OV/ZZ5AW8EjnwM/SI8Lk8OEtyfV2OqzHdfuqVHsyNOcCZWs1pB6wYQHoBwp0HyrFNcZ0D4hKdaw0uMZGUhZdX0E27tgpPpA==\"","accept":"application/json","content-type":"application/json","user-agent":"triton/4.15.0 (x64-sunos; node/6.7.0)","accept-version":"~8||~7","content-length":2,"content-md5":"mZFLkyvTelC5g8XnyQrpOw=="}},"msg":"request sent","time":"2017-01-16T18:02:45.891Z","src":{"file":"/opt/local/lib/node_modules/triton/node_modules/restify-clients/lib/HttpClient.js","line":268,"func":"rawRequest"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"client_res":{"statusCode":201,"headers":{"content-type":"application/json","content-length":"44","access-control-allow-origin":"*","access-control-allow-headers":"Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version, Response-Time","access-control-allow-methods":"POST, GET, HEAD","access-control-expose-headers":"Api-Version, Request-Id, Response-Time","connection":"Keep-Alive","content-md5":"wM2Fx2l1htFrUfJys7tjdw==","date":"Mon, 16 Jan 2017 18:02:46 GMT","server":"Joyent Triton 8.0.2","api-version":"8.0.0","request-id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","response-time":"115"}},"msg":"Response received","time":"2017-01-16T18:02:46.012Z","src":{"file":"/opt/local/lib/node_modules/triton/node_modules/restify-clients/lib/HttpClient.js","line":164,"func":"onResponse"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"body":"{\"name\":\"20170116T180245Z\",\"state\":\"queued\"}","len":44,"msg":"body received","time":"2017-01-16T18:02:46.013Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/SaferJsonClient.js","line":100,"func":"finish"},"v":0} Creating snapshot 20170116T180245Z of instance amon0 {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"subcmd":"instance","msg":"cli fini","time":"2017-01-16T18:02:46.015Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/cli.js","line":340,"func":"fini"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"host":"cloudapi.triton.mobile","msg":"close cloudapi http client","time":"2017-01-16T18:02:46.016Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/cloudapi2.js","line":126,"func":"close"},"v":0}
CN Agent error:
`[2017-01-16T18:02:47.177Z] ERROR: /opt/smartdc/agents/lib/node_modules/cn-agent/lib/tasks/machine_create_snapshot/41275 on headnode: error executing vmadm (req_id=fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd, code=1, signal=null, stdout="")
cmdline: [
"/usr/sbin/vmadm",
"create-snapshot",
"3a12b5e8-36f8-4de1-be76-5a3548a38a0a",
"20170116T180245Z"
]
--
stderrLines: [
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot","level":30,"evt":{"args":{},"ph":"b","name":"create-snapshot"},"msg":"","time":"2017-01-16T18:02:47.014Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":30,"evt":{"args":{},"ph":"b","name":"load"},"msg":"","time":"2017-01-16T18:02:47.016Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"cmdline":"/usr/sbin/zoneadm -z 3a12b5e8-36f8-4de1-be76-5a3548a38a0a -u 3a12b5e8-36f8-4de1-be76-5a3548a38a0a list -p","msg":"executing zoneadm","time":"2017-01-16T18:02:47.017Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"zoneadm[41286] running","time":"2017-01-16T18:02:47.059Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"zoneadm[41286] exited with code: 0 (1 lines to stdout)","time":"2017-01-16T18:02:47.068Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"loading zoneadm_objects took 52 ms","time":"2017-01-16T18:02:47.069Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"loading zonexml_objects took 16 ms","time":"2017-01-16T18:02:47.085Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"cmdline":"/usr/sbin/zfs list -H -p -t filesystem,snapshot -o creation,mountpoint,name,type,zoned -r zones/3a12b5e8-36f8-4de1-be76-5a3548a38a0a","msg":"executing zfs","time":"2017-01-16T18:02:47.088Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"zfs[41287] running","time":"2017-01-16T18:02:47.115Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"zfs[41287] exited with code: 0 (2 lines to stdout)","time":"2017-01-16T18:02:47.119Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"zfs list took 33 ms","time":"2017-01-16T18:02:47.120Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"cmdline":"/usr/sbin/zfs list -H -p -t filesystem,snapshot -o creation,mountpoint,name,type,zoned -r zones/3a12b5e8-36f8-4de1-be76-5a3548a38a0a/data","msg":"executing zfs","time":"2017-01-16T18:02:47.120Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"zfs[41288] running","time":"2017-01-16T18:02:47.148Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"zfs[41288] exited with code: 0 (1 lines to stdout)","time":"2017-01-16T18:02:47.152Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":20,"msg":"loading dataset_objects took 66 ms","time":"2017-01-16T18:02:47.152Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot.load","level":30,"evt":{"args":{"result":0},"ph":"e","name":"load"},"msg":"","time":"2017-01-16T18:02:47.154Z","v":0}",
"{"name":"vmadm","req_id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","hostname":"headnode","pid":41284,"action":"create_snapshot","vm":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","stack":"vmadm.create-snapshot","level":30,"evt":{"args":{"result":-1},"ph":"e","name":"create-snapshot"},"msg":"","time":"2017-01-16T18:02:47.154Z","v":0}",
"Cannot currently snapshot zones that have datasets"
]
[2017-01-16T18:02:47.178Z] INFO: /opt/smartdc/agents/lib/node_modules/cn-agent/lib/tasks/machine_create_snapshot/41275 on headnode: Received event (error) from task instance (req_id=fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd)
event: {
"error": "vmadm.create_snapshot error: vmadm exited with code: 1 signal: null",
"req_id": "fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd"
}
vmapi does nothing more than accept the request and running vmadm from the CLI returns the same "Cannot currently snapshot zones that have datasets" error. I feel this error is with vmadm tool but it isn't clear what repository I should be adding the ticket to. Plus, I do wonder if VMAPI should be passing that error back through.
Whilst trying to add a schedule for creating snapshots of zones, I've found that if that zone has a delegated dataset, the triton cli utility silently fails. Tracking down some more I've found the details below.
command with verbose output
[root@992ab1ac-eb0f-c157-d638-bcac2334cd32 ~]# triton -v instance snapshot create amon0 {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"config":{"cacheDir":"cache","profile":"mesoform-lab-private","_user":{"profile":"mesoform-lab-private"},"_defaults":{"cacheDir":"cache"},"_configDir":"/root/.triton"},"msg":"loaded config","time":"2017-01-16T18:02:43.220Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/cli.js","line":284,"func":"getConfig"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"profile":{"account":"admin","keyId":"XXXXXXXXXXXXXXXXXXX","url":"https://cloudapi.triton.mobile","insecure":true,"name":"mesoform-lab-private"},"msg":"loaded profile","time":"2017-01-16T18:02:43.240Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/cli.js","line":300,"func":"getProfile"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"cacheDir":"/root/.triton/cache/admin@cloudapi_triton_mobile","msg":"cache dir","time":"2017-01-16T18:02:43.262Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/tritonapi.js","line":149,"func":"TritonApi"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"client_req":{"method":"GET","url":"/admin/machines?name=amon0&limit=1000&offset=0","address":"cloudapi.triton.mobile","port":null,"headers":{"date":"Mon, 16 Jan 2017 18:02:43 GMT","authorization":"Signature keyId=\"/admin/keys/XXXXXXXXXXXXXXXXXXX\",algorithm=\"rsa-sha256\",headers=\"date\",signature=\"Y02n7cidTUcz3PSRd+WqXXeMlAJLvwatH6ddrDj3ByFATi7cY1nRtZyhNxVgInFfuQOCceVkXWgvJMvGb0siLTQd4TKe+3hF0axOuBy6ayA4k8CRpRT9smoBzLrWQqREffif9jS2fIQfIzIG4TJy2wSuhDH+Uz9dbJOG4CZDyNTL6FbqhHSR6lpXyg64ktNI4ZLchMh6h02R/X2NtATQuCWw5BasYfna1WOGdzCC+BgPyqnnvx0tMSyhZwHwSFLUujURJeBZnjWMRWv9f7y7lskGZGhoZONnckfp11iHw5pUo0f4q6INCFC/pzyZOZUBdwsGwdPIEb1ayXgjMmH+Zw==\"","accept":"application/json","user-agent":"triton/4.15.0 (x64-sunos; node/6.7.0)","accept-version":"~8||~7"}},"msg":"request sent","time":"2017-01-16T18:02:43.671Z","src":{"file":"/opt/local/lib/node_modules/triton/node_modules/restify-clients/lib/HttpClient.js","line":268,"func":"rawRequest"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"client_res":{"statusCode":200,"headers":{"role-tag":"ops","x-query-limit":"1000","x-resource-count":"1","content-type":"application/json","content-length":"1759","access-control-allow-origin":"*","access-control-allow-headers":"Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version, Response-Time","access-control-allow-methods":"POST, GET, HEAD","access-control-expose-headers":"Api-Version, Request-Id, Response-Time","connection":"Keep-Alive","content-md5":"Y/NjZQBps8O8UQz0VHEUWA==","date":"Mon, 16 Jan 2017 18:02:45 GMT","server":"Joyent Triton 8.0.2","api-version":"8.0.0","request-id":"fa8d5890-dc15-11e6-bd9c-edaae1fb46cd","response-time":"2142"}},"msg":"Response received","time":"2017-01-16T18:02:45.875Z","src":{"file":"/opt/local/lib/node_modules/triton/node_modules/restify-clients/lib/HttpClient.js","line":164,"func":"onResponse"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"body":"[{\"id\":\"3a12b5e8-36f8-4de1-be76-5a3548a38a0a\",\"name\":\"amon0\",\"type\":\"smartmachine\",\"brand\":\"joyent-minimal\",\"state\":\"running\",\"image\":\"45ece41a-38b3-11e6-a55d-df4c49216a4a\",\"ips\":[\"192.168.77.24\",\"192.168.78.27\"],\"memory\":256,\"disk\":3072,\"metadata\":{\"sapi-url\":\"http://192.168.77.31\",\"user-script\":\"#!/usr/bin/bash\\n#\\n# This Source Code Form is subject to the terms of the Mozilla Public\\n# License, v. 2.0. If a copy of the MPL was not distributed with this\\n# file, You can obtain one at http://mozilla.org/MPL/2.0/.\\n#\\n\\n#\\n# Copyright (c) 2014, Joyent, Inc.\\n#\\n\\nexport PS4='[\\\\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'\\n\\nset -o xtrace\\nset -o errexit\\nset -o pipefail\\n\\n#\\n# The presence of the /var/svc/.ran-user-script file indicates that the\\n# instance has already been setup (i.e. the instance has booted previously).\\n#\\n# Upon first boot, run the setup.sh script if present. On all boots including\\n# the first one, run the configure.sh script if present.\\n#\\n\\nSENTINEL=/var/svc/.ran-user-script\\n\\nDIR=/opt/smartdc/boot\\n\\nif [[ ! -e ${SENTINEL} ]]; then\\n if [[ -f ${DIR}/setup.sh ]]; then\\n ${DIR}/setup.sh 2>&1 | tee /var/svc/setup.log\\n fi\\n\\n touch ${SENTINEL}\\nfi\\n\\nif [[ ! -f ${DIR}/configure.sh ]]; then\\n echo \\\"Missing ${DIR}/configure.sh cannot configure.\\\"\\n exit 1\\nfi\\n\\nexec ${DIR}/configure.sh\\n\",\"assets-ip\":\"192.168.77.7\"},\"tags\":{\"smartdc_role\":\"amon\",\"smartdc_type\":\"core\"},\"created\":\"2015-11-30T23:17:39.582Z\",\"updated\":\"2016-12-22T18:15:54.000Z\",\"networks\":[\"5fde9367-5949-4446-b2e2-2525883aaaec\",\"987915f9-9188-414a-b6f3-cb4eeffc6ab5\"],\"primaryIp\":\"192.168.78.27\",\"firewall_enabled\":true,\"compute_node\":\"40028d03-5c04-5505-3806-4b0700080009\",\"package\":\"sdc_256\"}]","len":1759,"msg":"body received","time":"2017-01-16T18:02:45.879Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/SaferJsonClient.js","line":100,"func":"finish"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"client_req":{"method":"POST","url":"/admin/machines/3a12b5e8-36f8-4de1-be76-5a3548a38a0a/snapshots","address":"cloudapi.triton.mobile","port":null,"headers":{"date":"Mon, 16 Jan 2017 18:02:45 GMT","authorization":"Signature keyId=\"/admin/keys/XXXXXXXXXXXXXXXXXXX\",algorithm=\"rsa-sha256\",headers=\"date\",signature=\"Bi+ZCqhu+uFDtfFYeU5dJfK7hNqHa8TehvmIIfxVAHNnPJicPDUMZeEGklezJkK0P+3mUjsblvelxn6dq9avUz4XteWYy8zMYBxtXS9AA1ib8U8RTDgJZz059aud15NUDtnG/igd6pbKEqImbctoJikY0IYiIkSMcXWEhrXIq9YoEoI/0cvbRZIK8F/9fB62TMSojoIFGiuADTJ3EBlL3eZ+WfEZgEY86JH4nTFlSNsrBcQrLNgngY9OV/ZZ5AW8EjnwM/SI8Lk8OEtyfV2OqzHdfuqVHsyNOcCZWs1pB6wYQHoBwp0HyrFNcZ0D4hKdaw0uMZGUhZdX0E27tgpPpA==\"","accept":"application/json","content-type":"application/json","user-agent":"triton/4.15.0 (x64-sunos; node/6.7.0)","accept-version":"~8||~7","content-length":2,"content-md5":"mZFLkyvTelC5g8XnyQrpOw=="}},"msg":"request sent","time":"2017-01-16T18:02:45.891Z","src":{"file":"/opt/local/lib/node_modules/triton/node_modules/restify-clients/lib/HttpClient.js","line":268,"func":"rawRequest"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"client_res":{"statusCode":201,"headers":{"content-type":"application/json","content-length":"44","access-control-allow-origin":"*","access-control-allow-headers":"Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Api-Version, Response-Time","access-control-allow-methods":"POST, GET, HEAD","access-control-expose-headers":"Api-Version, Request-Id, Response-Time","connection":"Keep-Alive","content-md5":"wM2Fx2l1htFrUfJys7tjdw==","date":"Mon, 16 Jan 2017 18:02:46 GMT","server":"Joyent Triton 8.0.2","api-version":"8.0.0","request-id":"fbd7d9f0-dc15-11e6-bd9c-edaae1fb46cd","response-time":"115"}},"msg":"Response received","time":"2017-01-16T18:02:46.012Z","src":{"file":"/opt/local/lib/node_modules/triton/node_modules/restify-clients/lib/HttpClient.js","line":164,"func":"onResponse"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"body":"{\"name\":\"20170116T180245Z\",\"state\":\"queued\"}","len":44,"msg":"body received","time":"2017-01-16T18:02:46.013Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/SaferJsonClient.js","line":100,"func":"finish"},"v":0} Creating snapshot 20170116T180245Z of instance amon0 {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"subcmd":"instance","msg":"cli fini","time":"2017-01-16T18:02:46.015Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/cli.js","line":340,"func":"fini"},"v":0} {"name":"triton","hostname":"992ab1ac-eb0f-c157-d638-bcac2334cd32","pid":7649,"level":10,"host":"cloudapi.triton.mobile","msg":"close cloudapi http client","time":"2017-01-16T18:02:46.016Z","src":{"file":"/opt/local/lib/node_modules/triton/lib/cloudapi2.js","line":126,"func":"close"},"v":0}
The Workflow job erred as follows:
vmapi does nothing more than accept the request and running vmadm from the CLI returns the same
"Cannot currently snapshot zones that have datasets"
error. I feel this error is with vmadm tool but it isn't clear what repository I should be adding the ticket to. Plus, I do wonder if VMAPI should be passing that error back through.Thanks
The text was updated successfully, but these errors were encountered: