-
-
Save ryanschwartz/38e7ff2bb5c1270bbc41 to your computer and use it in GitHub Desktop.
Possible bug in vmadm/VM.js when setting zonename in json payload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vstbubba02:/opt/rts/json] root# cat percona2.nozonename.json | |
{ | |
"brand": "joyent", | |
"quota": 50, | |
"alias": "percona2", | |
"nowait": true, | |
"dataset_uuid": "dc1a8b5e-043c-11e2-9d94-0f3fcb2b0c6d", | |
"delegate_dataset": true, | |
"max_physical_memory": 16384, | |
"resolvers": [ | |
"172.18.60.53", | |
"172.18.16.8", | |
"8.8.8.8" | |
], | |
"nics": [ | |
{ | |
"nic_tag": "admin", | |
"ip": "172.18.61.55", | |
"netmask": "255.255.255.0", | |
"gateway": "172.18.61.1", | |
"vlan_id": 61 | |
} | |
] | |
} | |
[vstbubba02:/opt/rts/json] root# cat percona2.json | |
{ | |
"brand": "joyent", | |
"quota": 50, | |
"alias": "percona2", | |
"zonename": "percona2", | |
"nowait": true, | |
"dataset_uuid": "dc1a8b5e-043c-11e2-9d94-0f3fcb2b0c6d", | |
"delegate_dataset": true, | |
"max_physical_memory": 16384, | |
"resolvers": [ | |
"172.18.60.53", | |
"172.18.16.8", | |
"8.8.8.8" | |
], | |
"nics": [ | |
{ | |
"nic_tag": "admin", | |
"ip": "172.18.61.55", | |
"netmask": "255.255.255.0", | |
"gateway": "172.18.61.1", | |
"vlan_id": 61 | |
} | |
] | |
} | |
[vstbubba02:/opt/rts/json] root# diff percona2.* | |
5d4 | |
< "zonename": "percona2", | |
[vstbubba02:/opt/rts/json] root# vmadm list | |
UUID TYPE RAM STATE ALIAS | |
7f832423-5dc1-4a93-b158-a90679effdd8 OS 16384 running percona1 | |
[vstbubba02:/opt/rts/json] root# vmadm create < percona2.nozonename.json | |
Successfully created 1e598aae-9b24-4ac2-8a24-4012cbbe1205 | |
...TIME PASSES... | |
[vstbubba02:/opt/rts/json] root# vmadm list | |
UUID TYPE RAM STATE ALIAS | |
1e598aae-9b24-4ac2-8a24-4012cbbe1205 OS 16384 running percona2 | |
7f832423-5dc1-4a93-b158-a90679effdd8 OS 16384 running percona1 | |
[vstbubba02:/opt/rts/json] root# vmadm delete 1e598aae-9b24-4ac2-8a24-4012cbbe1205 | |
Successfully deleted 1e598aae-9b24-4ac2-8a24-4012cbbe1205 | |
[vstbubba02:/opt/rts/json] root# vmadm create < percona2.json | |
Successfully created 5c76729e-896e-4793-8cd6-bdd6a3bf50aa | |
...TIME PASSES... | |
[vstbubba02:/opt/rts/json] root# vmadm list | |
UUID TYPE RAM STATE ALIAS | |
5c76729e-896e-4793-8cd6-bdd6a3bf50aa OS 16384 provisioning percona2 | |
7f832423-5dc1-4a93-b158-a90679effdd8 OS 16384 running percona1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"percona2 is a VM we haven't seen before and went from uninitialized to initialized at 1363191059645456227","time":"2013-03-13T16:10:59.645Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"percona2","level":20,"msg":"/usr/sbin/zoneadm -z percona2 list -p","time":"2013-03-13T16:10:59.646Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from initialized to ready at 1363191059648561558","time":"2013-03-13T16:10:59.651Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"percona2","level":20,"msg":"/usr/sbin/zfs list -H -p -t filesystem,snapshot,volume -o compression,creation,mountpoint,name,quota,recsize,type,volblocksize,volsize,zoned","time":"2013-03-13T16:10:59.667Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"percona2","level":20,"msg":"zfs running with pid 29034","time":"2013-03-13T16:10:59.672Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"percona2","level":20,"msg":"zfs process 29034 exited with code: 0","time":"2013-03-13T16:10:59.690Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"percona2","level":20,"msg":"/usr/bin/sysinfo ","time":"2013-03-13T16:10:59.690Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"percona2","level":20,"msg":"zfs list took 37 ms","time":"2013-03-13T16:10:59.704Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"percona2","level":50,"err":{"message":"VM.load() empty info when getting record for vm percona2","name":"Error","stack":"Error: VM.load() empty info when getting record for vm percona2\n at loadVM (/usr/vm/node_modules/VM.js:2539:13)\n at exports.load (/usr/vm/node_modules/VM.js:2863:13)\n at /usr/vm/node_modules/VM.js:2359:9\n at _asyncMap (/usr/node/0.8/node_modules/async.js:230:13)\n at async.eachSeries.sync (/usr/node/0.8/node_modules/async.js:134:25)\n at _asyncMap (/usr/node/0.8/node_modules/async.js:227:17)\n at async.series.results (/usr/node/0.8/node_modules/async.js:545:34)\n at /usr/vm/node_modules/VM.js:2354:17\n at async.eachSeries.sync (/usr/node/0.8/node_modules/async.js:134:25)\n at /usr/vm/node_modules/VM.js:2351:21"},"msg":"VM.load() empty info when getting record for vm percona2","time":"2013-03-13T16:10:59.805Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":40,"err":{"message":"VM.load() empty info when getting record for vm percona2","name":"Error","stack":"Error: VM.load() empty info when getting record for vm percona2\n at loadVM (/usr/vm/node_modules/VM.js:2539:13)\n at exports.load (/usr/vm/node_modules/VM.js:2863:13)\n at /usr/vm/node_modules/VM.js:2359:9\n at _asyncMap (/usr/node/0.8/node_modules/async.js:230:13)\n at async.eachSeries.sync (/usr/node/0.8/node_modules/async.js:134:25)\n at _asyncMap (/usr/node/0.8/node_modules/async.js:227:17)\n at async.series.results (/usr/node/0.8/node_modules/async.js:545:34)\n at /usr/vm/node_modules/VM.js:2354:17\n at async.eachSeries.sync (/usr/node/0.8/node_modules/async.js:134:25)\n at /usr/vm/node_modules/VM.js:2351:21"},"msg":"unable to load zone: VM.load() empty info when getting record for vm percona2","time":"2013-03-13T16:10:59.805Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from ready to ready at 1363191060316540491","time":"2013-03-13T16:11:00.316Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from ready to running at 1363191060316930983","time":"2013-03-13T16:11:00.317Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":30,"msg":"VM 1e598aae-9b24-4ac2-8a24-4012cbbe1205 is gone, removing from \"seen\"","time":"2013-03-13T16:11:23.823Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from running to shutting_down at 1363191098895456889","time":"2013-03-13T16:11:38.895Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from shutting_down to shutting_down at 1363191099898583385","time":"2013-03-13T16:11:39.898Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from shutting_down to shutting_down at 1363191099977538776","time":"2013-03-13T16:11:39.977Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from shutting_down to shutting_down at 1363191100270135569","time":"2013-03-13T16:11:40.270Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from shutting_down to uninitialized at 1363191100270211627","time":"2013-03-13T16:11:40.270Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from uninitialized to initialized at 1363191100516777776","time":"2013-03-13T16:11:40.517Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from initialized to ready at 1363191100520362237","time":"2013-03-13T16:11:40.520Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from ready to ready at 1363191100779511109","time":"2013-03-13T16:11:40.779Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM percona2 ignoring transition from ready to running at 1363191100779887323","time":"2013-03-13T16:11:40.780Z","v":0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"1e598aae-9b24-4ac2-8a24-4012cbbe1205 is a VM we haven't seen before and went from uninitialized to initialized at 1363190909527188894","time":"2013-03-13T16:08:29.527Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"/usr/sbin/zoneadm -z 1e598aae-9b24-4ac2-8a24-4012cbbe1205 -u 1e598aae-9b24-4ac2-8a24-4012cbbe1205 list -p","time":"2013-03-13T16:08:29.549Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"Already loading VM 1e598aae-9b24-4ac2-8a24-4012cbbe1205 ignoring transition from initialized to ready at 1363190909529516861","time":"2013-03-13T16:08:29.555Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"/usr/sbin/zfs list -H -p -t filesystem,snapshot,volume -o compression,creation,mountpoint,name,quota,recsize,type,volblocksize,volsize,zoned","time":"2013-03-13T16:08:29.575Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"zfs running with pid 25999","time":"2013-03-13T16:08:29.585Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"zfs process 25999 exited with code: 0","time":"2013-03-13T16:08:29.614Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"/usr/bin/sysinfo ","time":"2013-03-13T16:08:29.615Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"load","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"zfs list took 60 ms","time":"2013-03-13T16:08:29.635Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"waitForProvisioning","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"transition_expire":1363191205926,"now":1363190909690,"msg":"waiting 296.236 sec(s) for provisioning","time":"2013-03-13T16:08:29.690Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"waitForProvisioning","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"setting provision timeout for 1e598aae-9b24-4ac2-8a24-4012cbbe1205","time":"2013-03-13T16:08:29.691Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"waitForProvisioning","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"created watcher for 1e598aae-9b24-4ac2-8a24-4012cbbe1205","time":"2013-03-13T16:08:29.691Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:08:30.181Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:08:30.182Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:09:09.288Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:09:10.285Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:09:10.373Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:09:10.681Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:09:10.681Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:09:10.988Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:09:10.990Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:09:11.348Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"still waiting for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 to complete provisioning, nothing to do.","time":"2013-03-13T16:09:11.348Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"waitForProvisioning","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"watcher.event(1e598aae-9b24-4ac2-8a24-4012cbbe1205): rename","time":"2013-03-13T16:09:16.744Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"waitForProvisioning","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"clearing provision timeout for 1e598aae-9b24-4ac2-8a24-4012cbbe1205","time":"2013-03-13T16:09:16.744Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"waitForProvisioning","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"closing /var/svc/provisioning watcher for 1e598aae-9b24-4ac2-8a24-4012cbbe1205","time":"2013-03-13T16:09:16.744Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"waited for provisioning","time":"2013-03-13T16:09:16.744Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"unsetTransition","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"/usr/sbin/zonecfg -u 1e598aae-9b24-4ac2-8a24-4012cbbe1205 remove attr name=transition","time":"2013-03-13T16:09:16.745Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"unsetTransition","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"stdout":"","stderr":"","msg":"removed transition for zone 1e598aae-9b24-4ac2-8a24-4012cbbe1205","time":"2013-03-13T16:09:16.768Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"action":"unsetTransition","vm":"1e598aae-9b24-4ac2-8a24-4012cbbe1205","level":20,"msg":"/usr/sbin/zonecfg -u 1e598aae-9b24-4ac2-8a24-4012cbbe1205 info attr name=transition","time":"2013-03-13T16:09:16.768Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"unset provision transition for 1e598aae-9b24-4ac2-8a24-4012cbbe1205","time":"2013-03-13T16:09:16.782Z","v":0} | |
{"name":"vmadmd","hostname":"vstbubba02.vitalbook.com","pid":16492,"level":20,"msg":"handleProvision() for 1e598aae-9b24-4ac2-8a24-4012cbbe1205 returned: success","time":"2013-03-13T16:09:16.782Z","v":0} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment