Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmadm.create_snapshot error: vmadm exited with code: 1 signal: null #24

Open
gbmeuk opened this issue Jan 16, 2017 · 0 comments
Open

vmadm.create_snapshot error: vmadm exited with code: 1 signal: null #24

gbmeuk opened this issue Jan 16, 2017 · 0 comments

Comments

@gbmeuk
Copy link

gbmeuk commented Jan 16, 2017

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:

{ "result": "", "error": "vmadm.create_snapshot error: vmadm exited with code: 1 signal: null", "name": "cnapi.wait_task", "started_at": "2017-01-16T17:55:26.054Z", "finished_at": "2017-01-16T17:55:26.732Z" }`

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.

[2017-01-16T18:34:39.259Z] INFO: vmapi/api/85120 on bdaab734-7347-410e-ab2d-b5dfc876540c: (req_id=7046d710-dc1a-11e6-a07a-093d1b4c37c1)
evt: {
"ph": "b",
"name": "getvm",
"req_seq": 1484591679259519
}
[2017-01-16T18:34:39.270Z] INFO: vmapi/api/85120 on bdaab734-7347-410e-ab2d-b5dfc876540c: handled: 200 (req_id=7046d710-dc1a-11e6-a07a-093d1b4c37c1, vm_uuid=3a12b5e8-36f8-4de1-be76-5a3548a38a0a, route=getvm, audit=true, remoteAddress=192.168.77.38, remotePort=40049, latency=11, _audit=true, req.version=)
GET /vms/3a12b5e8-36f8-4de1-be76-5a3548a38a0a?owner_uuid=930896af-bf8c-48d4-885c-6573a94b1853&fields=
HTTP/1.1
x-request-id: 7046d710-dc1a-11e6-a07a-093d1b4c37c1
accept: application/json
user-agent: restify/2.8.5 (ia32-sunos; v8/3.14.5.9; OpenSSL/1.0.1t) node/0.10.46
date: Mon, 16 Jan 2017 18:34:39 GMT
host: vmapi.gb-home.gorillass.co.uk
connection: keep-alive
--
HTTP/1.1 200 OK
content-type: application/json
content-length: 2810
content-md5: jJxou9iOH5Tu8OXY2ZN+mw==
date: Mon, 16 Jan 2017 18:34:39 GMT
server: VMAPI
x-request-id: 7046d710-dc1a-11e6-a07a-093d1b4c37c1
x-response-time: 11
x-server-name: bdaab734-7347-410e-ab2d-b5dfc876540c
--
req.timers: {
"handler-0": 4,
"bunyan": 17,
"handler-2": 125,
"parseAccept": 50,
"readBody": 7,
"parseBody": 1,
"parseDate": 5,
"parseQueryString": 55,
"_setApp": 2,
"loadVm": 5532,
"getVm": 9,
"renderVms": 4627
}
[2017-01-16T18:34:39.270Z] INFO: vmapi/api/85120 on bdaab734-7347-410e-ab2d-b5dfc876540c: (req_id=7046d710-dc1a-11e6-a07a-093d1b4c37c1)
evt: {
"ph": "e",
"name": "getvm",
"req_seq": 1484591679259519
}
[2017-01-16T18:34:39.293Z] INFO: vmapi/api/85120 on bdaab734-7347-410e-ab2d-b5dfc876540c: (req_id=7046d710-dc1a-11e6-a07a-093d1b4c37c1)
evt: {
"ph": "b",
"name": "updatevm",
"req_seq": 1484591679293520
}
[2017-01-16T18:34:39.418Z] INFO: vmapi/api/85120 on bdaab734-7347-410e-ab2d-b5dfc876540c: handled: 202 (req_id=7046d710-dc1a-11e6-a07a-093d1b4c37c1, vm_uuid=3a12b5e8-36f8-4de1-be76-5a3548a38a0a, route=updatevm, audit=true, remoteAddress=192.168.77.38, remotePort=40049, latency=125, _audit=true, req.version=*)
POST /vms/3a12b5e8-36f8-4de1-be76-5a3548a38a0a?action=create_snapshot&owner_uuid=930896af-bf8c-48d4-885c-6573a94b1853&snapshot_name=20170116T183439Z&origin=cloudapi&creator_uuid=930896af-bf8c-48d4-885c-6573a94b1853 HTTP/1.1
x-request-id: 7046d710-dc1a-11e6-a07a-093d1b4c37c1
x-context: {"caller":{"type":"signature","ip":"127.0.0.1","keyId":"/admin/keys/XXXXXXXXXXXXXXXXXXX"},"params":{"account":"admin","machine":"3a12b5e8-36f8-4de1-be76-5a3548a38a0a","image":"45ece41a-38b3-11e6-a55d-df4c49216a4a"}}
accept: application/json
content-type: application/json
user-agent: restify/2.8.5 (ia32-sunos; v8/3.14.5.9; OpenSSL/1.0.1t) node/0.10.46
date: Mon, 16 Jan 2017 18:34:39 GMT
content-length: 2
content-md5: mZFLkyvTelC5g8XnyQrpOw==
host: vmapi.gb-home.gorillass.co.uk
connection: keep-alive
{}
--
HTTP/1.1 202 Accepted
workflow-api: http://workflow.GB-Home.gorillass.co.uk
content-type: application/json
content-length: 100
content-md5: CHjQ9HhILLGThrZYlotSmw==
date: Mon, 16 Jan 2017 18:34:39 GMT
server: VMAPI
x-request-id: 7046d710-dc1a-11e6-a07a-093d1b4c37c1
x-response-time: 124
x-server-name: bdaab734-7347-410e-ab2d-b5dfc876540c
{
"vm_uuid": "3a12b5e8-36f8-4de1-be76-5a3548a38a0a",
"job_uuid": "5b666571-be52-4888-a2a1-ec269e5cf283"
}
--
req.timers: {
"handler-0": 9,
"bunyan": 29,
"handler-2": 131,
"parseAccept": 55,
"readBody": 179,
"parseBody": 17,
"parseDate": 8,
"parseQueryString": 97,
"_setApp": 10,
"checkWfapi": 3,
"loadVm": 4311,
"updateVm": 119420
}`

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant