Ubuntu Pastebin

Paste from Michael Foord at Mon, 8 Feb 2016 10:50:46 +0000

Download as text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
$ go test github.com/juju/juju/cmd/juju/status -check.f "TestStatusAllFormats"

----------------------------------------------------------------------
FAIL: status_test.go:1239: StatusSuite.TestStatusAllFormats

[LOG] 0:00.003 DEBUG juju.environs.configstore Made dir /tmp/check-5577006791947779410/2/home/ubuntu/.local/share/juju/models
[LOG] 0:00.048 DEBUG juju.environs.configstore writing cache file
[LOG] 0:00.048 DEBUG juju.environs.tools reading v1.* tools
[LOG] 0:00.048 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-trusty-amd64
[LOG] 0:00.049 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-precise-amd64
[LOG] 0:00.050 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-wily-amd64
[LOG] 0:00.051 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.052 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.052 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-released-tools.json
[LOG] 0:00.131 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.131 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2081327e0]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208132900]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208132a20]}] map[] Mon, 08 Feb 2016 10:46:53 +0000 products:1.0 com.ubuntu.juju:released:tools  }
[LOG] 0:00.131 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.131 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.131 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.131 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.132 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.132 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.132 INFO juju.environs.tools Metadata for stream "released" unchanged
[LOG] 0:00.132 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.132 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.132 DEBUG juju.environs.tools reading v1.* tools
[LOG] 0:00.132 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-trusty-amd64
[LOG] 0:00.133 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-precise-amd64
[LOG] 0:00.134 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-wily-amd64
[LOG] 0:00.135 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.135 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208132840]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208132960]} com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208132720]}] map[] Mon, 08 Feb 2016 10:46:53 +0000 products:1.0 com.ubuntu.juju:released:tools  }
[LOG] 0:00.135 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.135 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.135 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.135 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.135 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.135 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.135 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.136 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.136 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-devel-tools.json
[LOG] 0:00.243 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.244 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208005620]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208005740]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208005860]}] map[] Mon, 08 Feb 2016 10:46:53 +0000 products:1.0 com.ubuntu.juju:released:tools  }
[LOG] 0:00.244 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.244 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.244 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.244 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:00.244 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.json"
[LOG] 0:00.244 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208218ba0]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208218cc0]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208218de0]}] map[] Mon, 08 Feb 2016 10:46:54 +0000 products:1.0 com.ubuntu.juju:devel:tools  }
[LOG] 0:00.245 INFO juju.environs.tools Metadata for stream "devel" unchanged
[LOG] 0:00.245 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.245 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.245 INFO juju.network setting prefer-ipv6 to true
[LOG] 0:00.245 DEBUG juju.environs.bootstrap model "dummymodel" supports service/machine networks: true
[LOG] 0:00.245 DEBUG juju.environs.bootstrap network management by juju enabled: true
[LOG] 0:00.245 INFO juju.environs.bootstrap looking for bootstrap tools: version=2.0-alpha2
[LOG] 0:00.245 INFO juju.environs.tools finding tools in stream "devel"
[LOG] 0:00.245 INFO juju.environs.tools reading tools with major.minor version 2.0
[LOG] 0:00.245 INFO juju.environs.tools filtering tools by version: 2.0-alpha2
[LOG] 0:00.247 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.sjson"
[LOG] 0:00.247 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208165380]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2081654a0]} com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208165260]}] map[] Mon, 08 Feb 2016 10:46:54 +0000 products:1.0 com.ubuntu.juju:devel:tools  }
[LOG] 0:00.268 INFO juju.network setting prefer-ipv6 to true
[LOG] 0:00.268 INFO juju.provider.dummy would pick tools from 2.0-alpha2-trusty-amd64
[LOG] 0:00.269 INFO juju.provider.dummy creating bootstrap instance
[LOG] 0:00.269 INFO juju.state opening state, mongo addresses: ["[::1]:42969" "localhost:42969"]; entity <nil>
[LOG] 0:00.269 DEBUG juju.state dialing mongo
[LOG] 0:00.270 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:42969"
[LOG] 0:00.270 INFO juju.mongo dialled mongo successfully on address "[::1]:42969"
[LOG] 0:00.270 DEBUG juju.state connection established
[LOG] 0:00.270 DEBUG juju.state mongodb login successful
[LOG] 0:00.332 INFO juju.state initializing controller model deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.346 INFO juju.state running state anonymously; using unique client id
[LOG] 0:00.346 INFO juju.state creating lease clients as anon-a9b390de-de18-4721-86b7-4dca069ef3b9
[LOG] 0:00.347 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:42969"
[LOG] 0:00.349 INFO juju.state starting leadership lease manager
[LOG] 0:00.349 DEBUG juju.worker.lease waking to check leases at 2016-02-08 10:47:54.254492038 +0000 GMT
[LOG] 0:00.352 INFO juju.state starting singular lease manager
[LOG] 0:00.352 INFO juju.state creating cloud image metadata storage
[LOG] 0:00.352 INFO juju.state starting presence watcher
[LOG] 0:00.352 DEBUG juju.worker.lease waking to check leases at 2016-02-08 10:47:54.257769192 +0000 GMT
[LOG] 0:00.370 DEBUG juju.provider.dummy setting password for "dummy-admin" to "dummy-secret"
[LOG] 0:00.372 INFO juju.apiserver listening on "[::]:42828"
[LOG] 0:00.378 INFO juju.environs.bootstrap newest version: 2.0-alpha2
[LOG] 0:00.378 INFO juju.environs.bootstrap picked bootstrap tools version: 2.0-alpha2
[LOG] 0:00.379 ERROR juju.apiserver Unable to prime /tmp/check-5577006791947779410/4/logsink.log (proceeding anyway): chown /tmp/check-5577006791947779410/4/logsink.log: operation not permitted
[LOG] 0:00.379 INFO juju.state opening state, mongo addresses: ["[::1]:42969" "localhost:42969"]; entity <nil>
[LOG] 0:00.379 DEBUG juju.state dialing mongo
[LOG] 0:00.387 INFO juju.mongo dialled mongo successfully on address "[::1]:42969"
[LOG] 0:00.387 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:42969"
[LOG] 0:00.387 DEBUG juju.state connection established
[LOG] 0:00.388 DEBUG juju.state mongodb login successful
[LOG] 0:00.392 INFO juju.state running state anonymously; using unique client id
[LOG] 0:00.392 INFO juju.state creating lease clients as anon-cbdcc8d0-4ff7-4c2e-8d23-601a1e1a17d6
[LOG] 0:00.392 INFO juju.state starting leadership lease manager
[LOG] 0:00.392 DEBUG juju.worker.lease waking to check leases at 2016-02-08 10:47:54.298279163 +0000 GMT
[LOG] 0:00.393 INFO juju.state starting singular lease manager
[LOG] 0:00.393 INFO juju.state creating cloud image metadata storage
[LOG] 0:00.393 INFO juju.state starting presence watcher
[LOG] 0:00.405 DEBUG juju.worker.lease waking to check leases at 2016-02-08 10:47:54.310934095 +0000 GMT
[LOG] 0:00.421 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:42969"
[LOG] 0:00.422 DEBUG juju.environs ControllerInstances returned: [localhost]
[LOG] 0:00.422 WARNING juju.network no addresses found in space "default"
[LOG] 0:00.422 WARNING juju.environs using all API addresses (cannot pick by space "default"): [localhost]
[LOG] 0:00.422 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.427 INFO juju.apiserver [1] API connection from 127.0.0.1:37452
[LOG] 0:00.427 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.427 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.428 DEBUG juju.apiserver <- [1] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.432 DEBUG juju.apiserver hostPorts: []
[LOG] 0:00.433 DEBUG juju.apiserver -> [1] user-dummy-admin@local 5.041214ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.433 WARNING juju.network no hostPorts found in space "default"
[LOG] 0:00.433 WARNING juju.state cannot determine API addresses in space "default" to use as API endpoints; using all addresses
[LOG] 0:00.435 DEBUG juju.state setting API hostPorts: [[localhost:42828]]
[LOG] 0:00.437 DEBUG juju.environs.configstore writing cache file
jenv host ports: [][]network.HostPort{[]network.HostPort{localhost:42828}}
test 0: add two services and expose one, then add 2 more machines and some units
step 0
status.addMachine{machineId:"0", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil), RootDisk:(*uint64)(nil), Tags:(*[]string)(nil), InstanceType:(*string)(nil), Spaces:(*[]string)(nil), Networks:(*[]string)(nil)}, job:2}
step 1
status.setAddresses{machineId:"0", addresses:[]network.Address{network.Address{Value:"dummymodel-0.dns", Type:"hostname", NetworkName:"", Scope:"", SpaceName:""}}}
[LOG] 0:00.451 INFO juju.mongo dialled mongo successfully on address "[::1]:42969"
step 2
status.startAliveMachine{machineId:"0"}
[LOG] 0:00.471 INFO juju.environs.tools finding tools in stream "devel"
[LOG] 0:00.471 INFO juju.environs.tools reading tools with major version -1
[LOG] 0:00.471 INFO juju.environs.tools filtering tools by version: 2.0-alpha2
[LOG] 0:00.471 INFO juju.environs.tools filtering tools by series: trusty
[LOG] 0:00.472 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.sjson"
[LOG] 0:00.472 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082e88a0]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082e8a20]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082e8b40]}] map[] Mon, 08 Feb 2016 10:46:54 +0000 products:1.0 com.ubuntu.juju:devel:tools  }
[LOG] 0:00.472 INFO juju.provider.dummy dummy startinstance, machine 0
[LOG] 0:00.472 INFO juju.provider.dummy would pick tools from 2.0-alpha2-trusty-amd64
[LOG] 0:00.472 DEBUG juju.provider.dummy StartInstance addresses: [dummymodel-0.dns local-machine:127.0.0.1 local-cloud:fc00::1]
step 3
status.setMachineStatus{machineId:"0", status:"started", statusInfo:""}
step 4
status.addCharm{name:"dummy"}
step 5
status.addService{name:"dummy-service", charm:"dummy", networks:[]string(nil), cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil), RootDisk:(*uint64)(nil), Tags:(*[]string)(nil), InstanceType:(*string)(nil), Spaces:(*[]string)(nil), Networks:(*[]string)(nil)}}
step 6
status.addService{name:"exposed-service", charm:"dummy", networks:[]string(nil), cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil), RootDisk:(*uint64)(nil), Tags:(*[]string)(nil), InstanceType:(*string)(nil), Spaces:(*[]string)(nil), Networks:(*[]string)(nil)}}
step 7
status.expect{what:"no services exposed yet", output:status.M{"services":status.M{"dummy-service":status.M{"service-status":status.M{"current":"unknown", "message":"Waiting for agent initialization to finish", "since":"01 Apr 15 01:23+10:00"}, "charm":"cs:quantal/dummy-1", "exposed":false}, "exposed-service":status.M{"service-status":status.M{"current":"unknown", "message":"Waiting for agent initialization to finish", "since":"01 Apr 15 01:23+10:00"}, "charm":"cs:quantal/dummy-1", "exposed":false}}, "model":"dummymodel", "machines":status.M{"0":status.M{"hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "controller-member-status":"adding-vote", "agent-state":"started", "dns-name":"dummymodel-0.dns", "instance-id":"dummymodel-0", "series":"quantal"}}}}

expect: no services exposed yet 

format "yaml"
running status --format yaml
[LOG] 0:00.510 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.510 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.517 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.522 INFO juju.apiserver [2] API connection from 127.0.0.1:37456
[LOG] 0:00.523 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.523 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.523 DEBUG juju.apiserver <- [2] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.524 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.524 DEBUG juju.apiserver -> [2] user-dummy-admin@local 1.288621ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.524 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.524 DEBUG juju.api API addresses unchanged
[LOG] 0:00.524 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.524 DEBUG juju.apiserver <- [2] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.526 DEBUG juju.apiserver.client Services: map[dummy-service:dummy-service exposed-service:exposed-service]
[LOG] 0:00.527 DEBUG juju.apiserver -> [2] user-dummy-admin@local 3.11266ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.528 DEBUG juju.api health ping failed: connection is shut down
format "json"
running status --format json
[LOG] 0:00.530 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.530 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.538 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.539 INFO juju.apiserver [2] user-dummy-admin@local API connection terminated after 16.148409ms
[LOG] 0:00.544 INFO juju.apiserver [3] API connection from 127.0.0.1:37458
[LOG] 0:00.544 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.544 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.544 DEBUG juju.apiserver <- [3] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.545 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.545 DEBUG juju.apiserver -> [3] user-dummy-admin@local 896.423us {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.545 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.545 DEBUG juju.api API addresses unchanged
[LOG] 0:00.545 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.545 DEBUG juju.apiserver <- [3] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.547 DEBUG juju.apiserver.client Services: map[dummy-service:dummy-service exposed-service:exposed-service]
[LOG] 0:00.548 DEBUG juju.apiserver -> [3] user-dummy-admin@local 2.863255ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.549 DEBUG juju.api health ping failed: connection is shut down
step 8
status.setServiceExposed{name:"exposed-service", exposed:true}
[LOG] 0:00.549 INFO juju.apiserver [3] user-dummy-admin@local API connection terminated after 5.504602ms
step 9
status.expect{what:"one exposed service", output:status.M{"model":"dummymodel", "machines":status.M{"0":status.M{"agent-state":"started", "dns-name":"dummymodel-0.dns", "instance-id":"dummymodel-0", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "controller-member-status":"adding-vote"}}, "services":status.M{"dummy-service":status.M{"service-status":status.M{"current":"unknown", "message":"Waiting for agent initialization to finish", "since":"01 Apr 15 01:23+10:00"}, "charm":"cs:quantal/dummy-1", "exposed":false}, "exposed-service":status.M{"charm":"cs:quantal/dummy-1", "exposed":true, "service-status":status.M{"since":"01 Apr 15 01:23+10:00", "current":"unknown", "message":"Waiting for agent initialization to finish"}}}}}

expect: one exposed service 

format "yaml"
running status --format yaml
[LOG] 0:00.554 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.554 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.562 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.568 INFO juju.apiserver [4] API connection from 127.0.0.1:37460
[LOG] 0:00.568 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.568 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.568 DEBUG juju.apiserver <- [4] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.569 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.569 DEBUG juju.apiserver -> [4] user-dummy-admin@local 989.841us {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.569 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.569 DEBUG juju.api API addresses unchanged
[LOG] 0:00.569 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.569 DEBUG juju.apiserver <- [4] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.571 DEBUG juju.apiserver.client Services: map[dummy-service:dummy-service exposed-service:exposed-service]
[LOG] 0:00.572 DEBUG juju.apiserver -> [4] user-dummy-admin@local 3.172314ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.573 DEBUG juju.api health ping failed: connection is shut down
format "json"
running status --format json
[LOG] 0:00.574 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.574 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.582 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.583 INFO juju.apiserver [4] user-dummy-admin@local API connection terminated after 15.251929ms
[LOG] 0:00.587 INFO juju.apiserver [5] API connection from 127.0.0.1:37462
[LOG] 0:00.587 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.587 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.587 DEBUG juju.apiserver <- [5] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.588 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.588 DEBUG juju.apiserver -> [5] user-dummy-admin@local 1.026321ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.588 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.588 DEBUG juju.api API addresses unchanged
[LOG] 0:00.588 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.588 DEBUG juju.apiserver <- [5] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.589 DEBUG juju.apiserver.client Services: map[dummy-service:dummy-service exposed-service:exposed-service]
[LOG] 0:00.591 DEBUG juju.apiserver -> [5] user-dummy-admin@local 3.179054ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.592 DEBUG juju.api health ping failed: connection is shut down
step 10
status.addMachine{machineId:"1", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil), RootDisk:(*uint64)(nil), Tags:(*[]string)(nil), InstanceType:(*string)(nil), Spaces:(*[]string)(nil), Networks:(*[]string)(nil)}, job:1}
[LOG] 0:00.594 INFO juju.apiserver [5] user-dummy-admin@local API connection terminated after 6.945372ms
step 11
status.setAddresses{machineId:"1", addresses:[]network.Address{network.Address{Value:"dummymodel-1.dns", Type:"hostname", NetworkName:"", Scope:"", SpaceName:""}}}
step 12
status.startAliveMachine{machineId:"1"}
[LOG] 0:00.607 INFO juju.environs.tools finding tools in stream "devel"
[LOG] 0:00.607 INFO juju.environs.tools reading tools with major version -1
[LOG] 0:00.607 INFO juju.environs.tools filtering tools by version: 2.0-alpha2
[LOG] 0:00.607 INFO juju.environs.tools filtering tools by series: trusty
[LOG] 0:00.607 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.sjson"
[LOG] 0:00.607 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082df140]} com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082def00]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082df020]}] map[] Mon, 08 Feb 2016 10:46:54 +0000 products:1.0 com.ubuntu.juju:devel:tools  }
[LOG] 0:00.608 INFO juju.provider.dummy dummy startinstance, machine 1
[LOG] 0:00.608 INFO juju.provider.dummy would pick tools from 2.0-alpha2-trusty-amd64
[LOG] 0:00.608 DEBUG juju.provider.dummy StartInstance addresses: [dummymodel-1.dns local-machine:127.0.0.1 local-cloud:fc00::2]
step 13
status.setMachineStatus{machineId:"1", status:"started", statusInfo:""}
step 14
status.addMachine{machineId:"2", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil), RootDisk:(*uint64)(nil), Tags:(*[]string)(nil), InstanceType:(*string)(nil), Spaces:(*[]string)(nil), Networks:(*[]string)(nil)}, job:1}
step 15
status.setAddresses{machineId:"2", addresses:[]network.Address{network.Address{Value:"dummymodel-2.dns", Type:"hostname", NetworkName:"", Scope:"", SpaceName:""}}}
step 16
status.startAliveMachine{machineId:"2"}
[LOG] 0:00.626 INFO juju.environs.tools finding tools in stream "devel"
[LOG] 0:00.626 INFO juju.environs.tools reading tools with major version -1
[LOG] 0:00.626 INFO juju.environs.tools filtering tools by version: 2.0-alpha2
[LOG] 0:00.626 INFO juju.environs.tools filtering tools by series: trusty
[LOG] 0:00.626 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.sjson"
[LOG] 0:00.627 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208441bc0]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208441ce0]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208441e00]}] map[] Mon, 08 Feb 2016 10:46:54 +0000 products:1.0 com.ubuntu.juju:devel:tools  }
[LOG] 0:00.627 INFO juju.provider.dummy dummy startinstance, machine 2
[LOG] 0:00.627 INFO juju.provider.dummy would pick tools from 2.0-alpha2-trusty-amd64
[LOG] 0:00.627 DEBUG juju.provider.dummy StartInstance addresses: [dummymodel-2.dns local-machine:127.0.0.1 local-cloud:fc00::3]
step 17
status.setMachineStatus{machineId:"2", status:"started", statusInfo:""}
step 18
status.expect{what:"two more machines added", output:status.M{"model":"dummymodel", "machines":status.M{"2":status.M{"series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"started", "dns-name":"dummymodel-2.dns", "instance-id":"dummymodel-2"}, "0":status.M{"dns-name":"dummymodel-0.dns", "instance-id":"dummymodel-0", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "controller-member-status":"adding-vote", "agent-state":"started"}, "1":status.M{"instance-id":"dummymodel-1", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"started", "dns-name":"dummymodel-1.dns"}}, "services":status.M{"dummy-service":status.M{"service-status":status.M{"current":"unknown", "message":"Waiting for agent initialization to finish", "since":"01 Apr 15 01:23+10:00"}, "charm":"cs:quantal/dummy-1", "exposed":false}, "exposed-service":status.M{"service-status":status.M{"current":"unknown", "message":"Waiting for agent initialization to finish", "since":"01 Apr 15 01:23+10:00"}, "charm":"cs:quantal/dummy-1", "exposed":true}}}}

expect: two more machines added 

format "yaml"
running status --format yaml
[LOG] 0:00.632 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.632 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.639 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.643 INFO juju.apiserver [6] API connection from 127.0.0.1:37464
[LOG] 0:00.643 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.643 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.644 DEBUG juju.apiserver <- [6] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.645 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.645 DEBUG juju.apiserver -> [6] user-dummy-admin@local 1.10309ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.645 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.645 DEBUG juju.api API addresses unchanged
[LOG] 0:00.645 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.645 DEBUG juju.apiserver <- [6] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.646 DEBUG juju.apiserver.client Services: map[dummy-service:dummy-service exposed-service:exposed-service]
[LOG] 0:00.651 DEBUG juju.apiserver -> [6] user-dummy-admin@local 5.561982ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.651 DEBUG juju.api health ping failed: connection is shut down
format "json"
running status --format json
[LOG] 0:00.654 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.654 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.660 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.662 INFO juju.apiserver [6] user-dummy-admin@local API connection terminated after 18.097741ms
[LOG] 0:00.665 INFO juju.apiserver [7] API connection from 127.0.0.1:37466
[LOG] 0:00.665 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.665 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.666 DEBUG juju.apiserver <- [7] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.666 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.667 DEBUG juju.apiserver -> [7] user-dummy-admin@local 1.014168ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.667 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.667 DEBUG juju.api API addresses unchanged
[LOG] 0:00.667 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.667 DEBUG juju.apiserver <- [7] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.668 DEBUG juju.apiserver.client Services: map[dummy-service:dummy-service exposed-service:exposed-service]
[LOG] 0:00.670 DEBUG juju.apiserver -> [7] user-dummy-admin@local 3.160399ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.670 DEBUG juju.api health ping failed: connection is shut down
step 19
status.addAliveUnit{serviceName:"dummy-service", machineId:"1"}
[LOG] 0:00.671 INFO juju.apiserver [7] user-dummy-admin@local API connection terminated after 5.667068ms
step 20
status.addAliveUnit{serviceName:"exposed-service", machineId:"2"}
step 21
status.setAgentStatus{unitName:"exposed-service/0", status:"error", statusInfo:"You Require More Vespene Gas", statusData:map[string]interface {}(nil)}
step 22
status.openUnitPort{unitName:"exposed-service/0", protocol:"udp", number:10}
step 23
status.openUnitPort{unitName:"exposed-service/0", protocol:"udp", number:2}
step 24
status.openUnitPort{unitName:"exposed-service/0", protocol:"tcp", number:3}
step 25
status.openUnitPort{unitName:"exposed-service/0", protocol:"tcp", number:2}
step 26
status.setUnitStatus{unitName:"dummy-service/0", status:"terminated", statusInfo:"", statusData:map[string]interface {}(nil)}
step 27
status.setAgentStatus{unitName:"dummy-service/0", status:"idle", statusInfo:"", statusData:map[string]interface {}(nil)}
step 28
status.expect{what:"add two units, one alive (in error state), one started", output:status.M{"machines":status.M{"0":status.M{"controller-member-status":"adding-vote", "agent-state":"started", "dns-name":"dummymodel-0.dns", "instance-id":"dummymodel-0", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}, "1":status.M{"instance-id":"dummymodel-1", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"started", "dns-name":"dummymodel-1.dns"}, "2":status.M{"hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"started", "dns-name":"dummymodel-2.dns", "instance-id":"dummymodel-2", "series":"quantal"}}, "services":status.M{"exposed-service":status.M{"charm":"cs:quantal/dummy-1", "exposed":true, "service-status":status.M{"current":"error", "message":"You Require More Vespene Gas", "since":"01 Apr 15 01:23+10:00"}, "units":status.M{"exposed-service/0":status.M{"machine":"2", "workload-status":status.M{"current":"error", "message":"You Require More Vespene Gas", "since":"01 Apr 15 01:23+10:00"}, "agent-status":status.M{"since":"01 Apr 15 01:23+10:00", "current":"idle"}, "open-ports":status.L{"2/tcp", "3/tcp", "2/udp", "10/udp"}, "public-address":"dummymodel-2.dns"}}}, "dummy-service":status.M{"service-status":status.M{"current":"terminated", "since":"01 Apr 15 01:23+10:00"}, "units":status.M{"dummy-service/0":status.M{"machine":"1", "workload-status":status.M{"current":"terminated", "since":"01 Apr 15 01:23+10:00"}, "agent-status":status.M{"current":"idle", "since":"01 Apr 15 01:23+10:00"}, "public-address":"dummymodel-1.dns"}}, "charm":"cs:quantal/dummy-1", "exposed":false}}, "model":"dummymodel"}}

expect: add two units, one alive (in error state), one started 

format "yaml"
running status --format yaml
[LOG] 0:00.718 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.718 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.725 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.730 INFO juju.apiserver [8] API connection from 127.0.0.1:37468
[LOG] 0:00.730 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.730 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.730 DEBUG juju.apiserver <- [8] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.731 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.731 DEBUG juju.apiserver -> [8] user-dummy-admin@local 997.883us {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.732 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.732 DEBUG juju.api API addresses unchanged
[LOG] 0:00.732 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.732 DEBUG juju.apiserver <- [8] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.733 DEBUG juju.apiserver.client Services: map[exposed-service:exposed-service dummy-service:dummy-service]
[LOG] 0:00.754 DEBUG juju.apiserver -> [8] user-dummy-admin@local 22.181018ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.755 DEBUG juju.api health ping failed: connection is shut down
format "json"
running status --format json
[LOG] 0:00.758 INFO juju.apiserver [8] user-dummy-admin@local API connection terminated after 27.493543ms
[LOG] 0:00.759 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.759 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.765 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.771 INFO juju.apiserver [9] API connection from 127.0.0.1:37470
[LOG] 0:00.771 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.771 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.771 DEBUG juju.apiserver <- [9] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.772 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.772 DEBUG juju.apiserver -> [9] user-dummy-admin@local 1.252446ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.772 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.772 DEBUG juju.api API addresses unchanged
[LOG] 0:00.772 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.772 DEBUG juju.apiserver <- [9] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.774 DEBUG juju.apiserver.client Services: map[dummy-service:dummy-service exposed-service:exposed-service]
[LOG] 0:00.777 DEBUG juju.apiserver -> [9] user-dummy-admin@local 4.392792ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.777 DEBUG juju.api health ping failed: connection is shut down
step 29
status.addMachine{machineId:"3", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil), RootDisk:(*uint64)(nil), Tags:(*[]string)(nil), InstanceType:(*string)(nil), Spaces:(*[]string)(nil), Networks:(*[]string)(nil)}, job:1}
[LOG] 0:00.778 INFO juju.apiserver [9] user-dummy-admin@local API connection terminated after 7.457931ms
step 30
status.startMachine{machineId:"3"}
[LOG] 0:00.790 INFO juju.environs.tools finding tools in stream "devel"
[LOG] 0:00.790 INFO juju.environs.tools reading tools with major version -1
[LOG] 0:00.790 INFO juju.environs.tools filtering tools by version: 2.0-alpha2
[LOG] 0:00.790 INFO juju.environs.tools filtering tools by series: trusty
[LOG] 0:00.790 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.sjson"
[LOG] 0:00.790 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082ac6c0]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082ac7e0]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082ac900]}] map[] Mon, 08 Feb 2016 10:46:54 +0000 products:1.0 com.ubuntu.juju:devel:tools  }
[LOG] 0:00.790 INFO juju.provider.dummy dummy startinstance, machine 3
[LOG] 0:00.790 INFO juju.provider.dummy would pick tools from 2.0-alpha2-trusty-amd64
[LOG] 0:00.790 DEBUG juju.provider.dummy StartInstance addresses: [dummymodel-3.dns local-machine:127.0.0.1 local-cloud:fc00::4]
step 31
status.setAddresses{machineId:"3", addresses:[]network.Address{network.Address{Value:"dummymodel-3.dns", Type:"hostname", NetworkName:"", Scope:"", SpaceName:""}}}
step 32
status.setMachineStatus{machineId:"3", status:"stopped", statusInfo:"Really?"}
step 33
status.addMachine{machineId:"4", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil), RootDisk:(*uint64)(nil), Tags:(*[]string)(nil), InstanceType:(*string)(nil), Spaces:(*[]string)(nil), Networks:(*[]string)(nil)}, job:1}
step 34
status.setAddresses{machineId:"4", addresses:[]network.Address{network.Address{Value:"dummymodel-4.dns", Type:"hostname", NetworkName:"", Scope:"", SpaceName:""}}}
step 35
status.startAliveMachine{machineId:"4"}
[LOG] 0:00.809 INFO juju.environs.tools finding tools in stream "devel"
[LOG] 0:00.809 INFO juju.environs.tools reading tools with major version -1
[LOG] 0:00.809 INFO juju.environs.tools filtering tools by version: 2.0-alpha2
[LOG] 0:00.809 INFO juju.environs.tools filtering tools by series: trusty
[LOG] 0:00.809 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/5/tools/streams/v1/index2.sjson"
[LOG] 0:00.810 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2083a8c00]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2083a8de0]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2083a8f00]}] map[] Mon, 08 Feb 2016 10:46:54 +0000 products:1.0 com.ubuntu.juju:devel:tools  }
[LOG] 0:00.810 INFO juju.provider.dummy dummy startinstance, machine 4
[LOG] 0:00.810 INFO juju.provider.dummy would pick tools from 2.0-alpha2-trusty-amd64
[LOG] 0:00.810 DEBUG juju.provider.dummy StartInstance addresses: [dummymodel-4.dns local-machine:127.0.0.1 local-cloud:fc00::5]
step 36
status.setMachineStatus{machineId:"4", status:"error", statusInfo:"Beware the red toys"}
step 37
status.ensureDyingUnit{unitName:"dummy-service/0"}
step 38
status.addMachine{machineId:"5", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil), RootDisk:(*uint64)(nil), Tags:(*[]string)(nil), InstanceType:(*string)(nil), Spaces:(*[]string)(nil), Networks:(*[]string)(nil)}, job:1}
step 39
status.ensureDeadMachine{machineId:"5"}
step 40
status.expect{what:"add three more machine, one with a dead agent, one in error state and one dead itself; also one dying unit", output:status.M{"model":"dummymodel", "machines":status.M{"0":status.M{"dns-name":"dummymodel-0.dns", "instance-id":"dummymodel-0", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "controller-member-status":"adding-vote", "agent-state":"started"}, "1":status.M{"instance-id":"dummymodel-1", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"started", "dns-name":"dummymodel-1.dns"}, "2":status.M{"hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"started", "dns-name":"dummymodel-2.dns", "instance-id":"dummymodel-2", "series":"quantal"}, "3":status.M{"dns-name":"dummymodel-3.dns", "instance-id":"dummymodel-3", "agent-state":"stopped", "agent-state-info":"Really?", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}, "4":status.M{"dns-name":"dummymodel-4.dns", "instance-id":"dummymodel-4", "agent-state":"error", "agent-state-info":"Beware the red toys", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}, "5":status.M{"agent-state":"pending", "life":"dead", "instance-id":"pending", "series":"quantal"}}, "services":status.M{"exposed-service":status.M{"charm":"cs:quantal/dummy-1", "exposed":true, "service-status":status.M{"current":"error", "message":"You Require More Vespene Gas", "since":"01 Apr 15 01:23+10:00"}, "units":status.M{"exposed-service/0":status.M{"agent-status":status.M{"current":"idle", "since":"01 Apr 15 01:23+10:00"}, "open-ports":status.L{"2/tcp", "3/tcp", "2/udp", "10/udp"}, "public-address":"dummymodel-2.dns", "machine":"2", "workload-status":status.M{"current":"error", "message":"You Require More Vespene Gas", "since":"01 Apr 15 01:23+10:00"}}}}, "dummy-service":status.M{"charm":"cs:quantal/dummy-1", "exposed":false, "service-status":status.M{"since":"01 Apr 15 01:23+10:00", "current":"terminated"}, "units":status.M{"dummy-service/0":status.M{"public-address":"dummymodel-1.dns", "machine":"1", "workload-status":status.M{"since":"01 Apr 15 01:23+10:00", "current":"terminated"}, "agent-status":status.M{"current":"idle", "since":"01 Apr 15 01:23+10:00"}}}}}}}

expect: add three more machine, one with a dead agent, one in error state and one dead itself; also one dying unit 

format "yaml"
running status --format yaml
[LOG] 0:00.832 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.832 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.839 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.844 INFO juju.apiserver [A] API connection from 127.0.0.1:37472
[LOG] 0:00.844 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.844 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.844 DEBUG juju.apiserver <- [A] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.847 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.848 DEBUG juju.apiserver -> [A] user-dummy-admin@local 3.250654ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.848 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.848 DEBUG juju.api API addresses unchanged
[LOG] 0:00.848 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.848 DEBUG juju.apiserver <- [A] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.849 DEBUG juju.apiserver.client Services: map[exposed-service:exposed-service dummy-service:dummy-service]
[LOG] 0:00.853 DEBUG juju.apiserver -> [A] user-dummy-admin@local 5.036884ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.854 DEBUG juju.api health ping failed: connection is shut down
format "json"
running status --format json
[LOG] 0:00.857 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.857 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.863 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.865 INFO juju.apiserver [A] user-dummy-admin@local API connection terminated after 20.3748ms
[LOG] 0:00.868 INFO juju.apiserver [B] API connection from 127.0.0.1:37474
[LOG] 0:00.868 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.868 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.868 DEBUG juju.apiserver <- [B] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.870 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.870 DEBUG juju.apiserver -> [B] user-dummy-admin@local 1.321948ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.870 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.870 DEBUG juju.api API addresses unchanged
[LOG] 0:00.870 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.870 DEBUG juju.apiserver <- [B] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.872 DEBUG juju.apiserver.client Services: map[exposed-service:exposed-service dummy-service:dummy-service]
[LOG] 0:00.878 DEBUG juju.apiserver -> [B] user-dummy-admin@local 7.473057ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:00.878 DEBUG juju.api health ping failed: connection is shut down
step 41
status.scopedExpect{what:"scope status on dummy-service/0 unit", scope:[]string{"dummy-service/0"}, output:status.M{"model":"dummymodel", "machines":status.M{"1":status.M{"agent-state":"started", "dns-name":"dummymodel-1.dns", "instance-id":"dummymodel-1", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}}, "services":status.M{"dummy-service":status.M{"exposed":false, "service-status":status.M{"current":"terminated", "since":"01 Apr 15 01:23+10:00"}, "units":status.M{"dummy-service/0":status.M{"machine":"1", "workload-status":status.M{"current":"terminated", "since":"01 Apr 15 01:23+10:00"}, "agent-status":status.M{"since":"01 Apr 15 01:23+10:00", "current":"idle"}, "public-address":"dummymodel-1.dns"}}, "charm":"cs:quantal/dummy-1"}}}}

expect: scope status on dummy-service/0 unit dummy-service/0

format "yaml"
running status --format yaml dummy-service/0
[LOG] 0:00.881 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:00.881 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:00.887 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.889 INFO juju.apiserver [B] user-dummy-admin@local API connection terminated after 20.364111ms
[LOG] 0:00.892 INFO juju.apiserver [C] API connection from 127.0.0.1:37476
[LOG] 0:00.892 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:00.892 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:00.892 DEBUG juju.apiserver <- [C] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:00.893 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:00.894 DEBUG juju.apiserver -> [C] user-dummy-admin@local 1.216082ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:00.894 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:00.894 DEBUG juju.api API addresses unchanged
[LOG] 0:00.894 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:00.894 DEBUG juju.apiserver <- [C] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:00.896 DEBUG juju.apiserver.client Services: map[dummy-service:dummy-service exposed-service:exposed-service]
[LOG] 0:01.433 DEBUG juju.apiserver.client mid 1 is hosting something.
[LOG] 0:02.037 DEBUG juju.apiserver -> [C] user-dummy-admin@local 1.143490428s {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:02.038 DEBUG juju.api health ping failed: connection is shut down
format "json"
running status --format json dummy-service/0
[LOG] 0:02.039 INFO juju.apiserver [C] user-dummy-admin@local API connection terminated after 1.147083036s
[LOG] 0:02.042 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:02.042 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:02.050 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:02.061 INFO juju.apiserver [D] API connection from 127.0.0.1:37484
[LOG] 0:02.061 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:02.061 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:02.061 DEBUG juju.apiserver <- [D] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:02.062 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:02.063 DEBUG juju.apiserver -> [D] user-dummy-admin@local 1.599677ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:02.063 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:02.063 DEBUG juju.api API addresses unchanged
[LOG] 0:02.063 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:02.063 DEBUG juju.apiserver <- [D] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:02.065 DEBUG juju.apiserver.client Services: map[exposed-service:exposed-service dummy-service:dummy-service]
[LOG] 0:02.626 DEBUG juju.apiserver.client mid 1 is hosting something.
[LOG] 0:03.751 DEBUG juju.apiserver -> [D] user-dummy-admin@local 1.687821856s {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:03.751 DEBUG juju.api health ping failed: connection is shut down
step 42
status.scopedExpect{what:"scope status on exposed-service service", scope:[]string{"exposed-service"}, output:status.M{"model":"dummymodel", "machines":status.M{"2":status.M{"agent-state":"started", "dns-name":"dummymodel-2.dns", "instance-id":"dummymodel-2", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}}, "services":status.M{"exposed-service":status.M{"charm":"cs:quantal/dummy-1", "exposed":true, "service-status":status.M{"current":"error", "message":"You Require More Vespene Gas", "since":"01 Apr 15 01:23+10:00"}, "units":status.M{"exposed-service/0":status.M{"open-ports":status.L{"2/tcp", "3/tcp", "2/udp", "10/udp"}, "public-address":"dummymodel-2.dns", "machine":"2", "workload-status":status.M{"message":"You Require More Vespene Gas", "since":"01 Apr 15 01:23+10:00", "current":"error"}, "agent-status":status.M{"current":"idle", "since":"01 Apr 15 01:23+10:00"}}}}}}}

expect: scope status on exposed-service service exposed-service

format "yaml"
running status --format yaml exposed-service
[LOG] 0:03.753 DEBUG juju.api trying cached API connection settings - endpoints [localhost:42828]
[LOG] 0:03.753 INFO juju.api connecting to API addresses: [localhost:42828]
[LOG] 0:03.762 INFO juju.api dialing "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:03.762 INFO juju.apiserver [D] user-dummy-admin@local API connection terminated after 1.701202439s
[LOG] 0:03.768 INFO juju.apiserver [E] API connection from 127.0.0.1:37676
[LOG] 0:03.768 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:03.768 INFO juju.api connection established to "wss://localhost:42828/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:03.768 DEBUG juju.apiserver <- [E] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:03.769 DEBUG juju.apiserver hostPorts: [[localhost:42828]]
[LOG] 0:03.769 DEBUG juju.apiserver -> [E] user-dummy-admin@local 1.004553ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:03.770 DEBUG juju.api API hostnames [localhost:42828] - resolving hostnames
[LOG] 0:03.770 DEBUG juju.api API addresses unchanged
[LOG] 0:03.770 DEBUG juju.api cacheChangedAPIInfo: serverUUID="deadbeef-0bad-400d-8000-4b1d0d06f00d"
[LOG] 0:03.770 DEBUG juju.apiserver <- [E] user-dummy-admin@local {"RequestId":3,"Type":"Client","Version":1,"Request":"FullStatus","Params":"'params redacted'"}
[LOG] 0:03.771 DEBUG juju.apiserver.client Services: map[exposed-service:exposed-service dummy-service:dummy-service]
[LOG] 0:04.221 DEBUG juju.apiserver.client mid 1 is hosting something.
[LOG] 0:04.221 DEBUG juju.apiserver.client mid 2 is hosting something.
[LOG] 0:04.437 DEBUG juju.apiserver -> [E] user-dummy-admin@local 667.505809ms {"RequestId":3,"Response":"'body redacted'"} Client[""].FullStatus
[LOG] 0:04.438 DEBUG juju.api health ping failed: connection is shut down
status_test.go:1247:
    func(t testCase) {
        // Prepare context and run all steps to setup.
        ctx := s.newContext(c)
        defer s.resetContext(c, ctx)
        ctx.run(c, t.steps)
    }(t)
status_test.go:1222:
    c.Assert(actual, jc.DeepEquals, expected)
... obtained status.M = status.M{"model":"dummymodel", "machines":map[interface {}]interface {}{"1":map[interface {}]interface {}{"instance-id":"dummymodel-1", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"started", "dns-name":"dummymodel-1.dns"}, "2":map[interface {}]interface {}{"hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"started", "dns-name":"dummymodel-2.dns", "instance-id":"dummymodel-2", "series":"quantal"}, "3":map[interface {}]interface {}{"agent-state":"stopped", "agent-state-info":"Really?", "dns-name":"dummymodel-3.dns", "instance-id":"dummymodel-3", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}, "4":map[interface {}]interface {}{"agent-state":"error", "agent-state-info":"Beware the red toys", "dns-name":"dummymodel-4.dns", "instance-id":"dummymodel-4", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}, "0":map[interface {}]interface {}{"agent-state":"started", "dns-name":"dummymodel-0.dns", "instance-id":"dummymodel-0", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "controller-member-status":"adding-vote"}}, "services":map[interface {}]interface {}{"dummy-service":map[interface {}]interface {}{"charm":"cs:quantal/dummy-1", "exposed":false, "service-status":map[interface {}]interface {}{"current":"terminated", "since":"01 Apr 15 01:23+10:00"}, "units":map[interface {}]interface {}{"dummy-service/0":map[interface {}]interface {}{"workload-status":map[interface {}]interface {}{"current":"terminated", "since":"01 Apr 15 01:23+10:00"}, "agent-status":map[interface {}]interface {}{"current":"idle", "since":"01 Apr 15 01:23+10:00"}, "machine":"1", "public-address":"dummymodel-1.dns"}}}, "exposed-service":map[interface {}]interface {}{"exposed":true, "service-status":map[interface {}]interface {}{"since":"01 Apr 15 01:23+10:00", "current":"error", "message":"You Require More Vespene Gas"}, "units":map[interface {}]interface {}{"exposed-service/0":map[interface {}]interface {}{"workload-status":map[interface {}]interface {}{"current":"error", "message":"You Require More Vespene Gas", "since":"01 Apr 15 01:23+10:00"}, "agent-status":map[interface {}]interface {}{"current":"idle", "since":"01 Apr 15 01:23+10:00"}, "machine":"2", "open-ports":[]interface {}{"2/tcp", "3/tcp", "2/udp", "10/udp"}, "public-address":"dummymodel-2.dns"}}, "charm":"cs:quantal/dummy-1"}}}
... expected status.M = status.M{"machines":map[interface {}]interface {}{"2":map[interface {}]interface {}{"series":"quantal", "agent-state":"started", "dns-name":"dummymodel-2.dns", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "instance-id":"dummymodel-2"}}, "model":"dummymodel", "services":map[interface {}]interface {}{"exposed-service":map[interface {}]interface {}{"exposed":true, "service-status":map[interface {}]interface {}{"since":"01 Apr 15 01:23+10:00", "current":"error", "message":"You Require More Vespene Gas"}, "units":map[interface {}]interface {}{"exposed-service/0":map[interface {}]interface {}{"machine":"2", "open-ports":[]interface {}{"2/tcp", "3/tcp", "2/udp", "10/udp"}, "public-address":"dummymodel-2.dns", "workload-status":map[interface {}]interface {}{"since":"01 Apr 15 01:23+10:00", "current":"error", "message":"You Require More Vespene Gas"}, "agent-status":map[interface {}]interface {}{"current":"idle", "since":"01 Apr 15 01:23+10:00"}}}, "charm":"cs:quantal/dummy-1"}}}
... mismatch at ["machines"]: length mismatch, 5 vs 1; obtained map[interface {}]interface {}{"2":map[interface {}]interface {}{"hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"started", "dns-name":"dummymodel-2.dns", "instance-id":"dummymodel-2", "series":"quantal"}, "3":map[interface {}]interface {}{"agent-state":"stopped", "agent-state-info":"Really?", "dns-name":"dummymodel-3.dns", "instance-id":"dummymodel-3", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}, "4":map[interface {}]interface {}{"agent-state-info":"Beware the red toys", "dns-name":"dummymodel-4.dns", "instance-id":"dummymodel-4", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "agent-state":"error"}, "0":map[interface {}]interface {}{"controller-member-status":"adding-vote", "agent-state":"started", "dns-name":"dummymodel-0.dns", "instance-id":"dummymodel-0", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}, "1":map[interface {}]interface {}{"agent-state":"started", "dns-name":"dummymodel-1.dns", "instance-id":"dummymodel-1", "series":"quantal", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M"}}; expected map[interface {}]interface {}{"2":map[interface {}]interface {}{"series":"quantal", "agent-state":"started", "dns-name":"dummymodel-2.dns", "hardware":"arch=amd64 cpu-cores=1 mem=1024M root-disk=8192M", "instance-id":"dummymodel-2"}}

[LOG] 0:04.447 INFO juju.apiserver [E] user-dummy-admin@local API connection terminated after 679.133607ms
[LOG] 0:04.451 DEBUG juju.api health ping failed: connection is shut down
[LOG] 0:04.452 DEBUG juju.state closed state without error
[LOG] 0:04.452 INFO juju.provider.dummy reset model
[LOG] 0:04.452 INFO juju.apiserver [1] user-dummy-admin@local API connection terminated after 4.024428915s
[LOG] 0:04.452 DEBUG juju.state closed state without error
[LOG] 0:04.452 DEBUG juju.state closed state without error
[LOG] 0:04.453 INFO juju.testing reset successfully reset admin password
[LOG] 0:04.457 INFO juju.testing reset successfully reset admin password
[LOG] 0:04.458 DEBUG juju.environs.configstore Made dir /tmp/check-5577006791947779410/19/home/ubuntu/.local/share/juju/models
[LOG] 0:04.501 DEBUG juju.environs.configstore writing cache file
[LOG] 0:04.502 DEBUG juju.environs.tools reading v1.* tools
[LOG] 0:04.502 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-trusty-amd64
[LOG] 0:04.503 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-precise-amd64
[LOG] 0:04.504 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-wily-amd64
[LOG] 0:04.505 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:04.505 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:04.505 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-released-tools.json
[LOG] 0:04.589 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.590 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208327f20]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208254060]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc2082541e0]}] map[] Mon, 08 Feb 2016 10:46:58 +0000 products:1.0 com.ubuntu.juju:released:tools  }
[LOG] 0:04.590 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.590 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:04.590 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.590 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:04.590 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.590 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:04.591 INFO juju.environs.tools Metadata for stream "released" unchanged
[LOG] 0:04.591 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:04.591 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:04.591 DEBUG juju.environs.tools reading v1.* tools
[LOG] 0:04.591 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-trusty-amd64
[LOG] 0:04.593 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-precise-amd64
[LOG] 0:04.593 INFO juju.environs.testing uploading FAKE tools 2.0-alpha2-wily-amd64
[LOG] 0:04.594 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.599 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208254960]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208254ae0]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208254c00]}] map[] Mon, 08 Feb 2016 10:46:58 +0000 products:1.0 com.ubuntu.juju:released:tools  }
[LOG] 0:04.599 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.599 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:04.599 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.599 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:04.599 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.599 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:04.599 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:04.600 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:04.600 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-devel-tools.json
[LOG] 0:04.710 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.711 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208326300]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208326420]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208326540]}] map[] Mon, 08 Feb 2016 10:46:58 +0000 products:1.0 com.ubuntu.juju:released:tools  }
[LOG] 0:04.712 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.712 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:04.712 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.712 DEBUG juju.environs.simplestreams skipping index "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json" because of missing information: "content-download" data not found
[LOG] 0:04.712 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.json"
[LOG] 0:04.713 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208326d20]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208326ea0]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208327080]}] map[] Mon, 08 Feb 2016 10:46:58 +0000 products:1.0 com.ubuntu.juju:devel:tools  }
[LOG] 0:04.713 INFO juju.environs.tools Metadata for stream "devel" unchanged
[LOG] 0:04.713 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:04.714 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:04.714 INFO juju.network setting prefer-ipv6 to true
[LOG] 0:04.714 DEBUG juju.environs.bootstrap model "dummymodel" supports service/machine networks: true
[LOG] 0:04.714 DEBUG juju.environs.bootstrap network management by juju enabled: true
[LOG] 0:04.714 INFO juju.environs.bootstrap looking for bootstrap tools: version=2.0-alpha2
[LOG] 0:04.714 INFO juju.environs.tools finding tools in stream "devel"
[LOG] 0:04.714 INFO juju.environs.tools reading tools with major.minor version 2.0
[LOG] 0:04.714 INFO juju.environs.tools filtering tools by version: 2.0-alpha2
[LOG] 0:04.714 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-5577006791947779410/22/tools/streams/v1/index2.sjson"
[LOG] 0:04.722 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208489440]} com.ubuntu.juju:14.04:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208489560]} com.ubuntu.juju:15.10:amd64:{ 2.0-alpha2 amd64   map[20160208:0xc208489680]}] map[] Mon, 08 Feb 2016 10:46:58 +0000 products:1.0 com.ubuntu.juju:devel:tools  }
[LOG] 0:04.743 INFO juju.network setting prefer-ipv6 to true
[LOG] 0:04.743 INFO juju.provider.dummy would pick tools from 2.0-alpha2-trusty-amd64
[LOG] 0:04.743 INFO juju.provider.dummy creating bootstrap instance
[LOG] 0:04.743 INFO juju.state opening state, mongo addresses: ["[::1]:42969" "localhost:42969"]; entity <nil>
[LOG] 0:04.743 DEBUG juju.state dialing mongo
[LOG] 0:04.765 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:42969"
[LOG] 0:04.765 INFO juju.mongo dialled mongo successfully on address "[::1]:42969"
[LOG] 0:04.766 DEBUG juju.state connection established
[LOG] 0:04.766 DEBUG juju.state mongodb login successful
[LOG] 0:04.835 INFO juju.state initializing controller model deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:04.857 INFO juju.state running state anonymously; using unique client id
[LOG] 0:04.857 INFO juju.state creating lease clients as anon-e9d3b60b-d4a2-47b3-8dc3-d981a7bbcb29
[LOG] 0:04.858 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:42969"
[LOG] 0:04.861 INFO juju.state starting leadership lease manager
[LOG] 0:04.861 DEBUG juju.worker.lease waking to check leases at 2016-02-08 10:47:58.767021072 +0000 GMT
[LOG] 0:04.864 INFO juju.state starting singular lease manager
[LOG] 0:04.864 INFO juju.state creating cloud image metadata storage
[LOG] 0:04.864 INFO juju.state starting presence watcher
[LOG] 0:04.864 DEBUG juju.worker.lease waking to check leases at 2016-02-08 10:47:58.769609142 +0000 GMT
[LOG] 0:04.892 DEBUG juju.provider.dummy setting password for "dummy-admin" to "dummy-secret"
[LOG] 0:04.895 INFO juju.apiserver listening on "[::]:42221"
[LOG] 0:04.903 INFO juju.environs.bootstrap newest version: 2.0-alpha2
[LOG] 0:04.903 INFO juju.environs.bootstrap picked bootstrap tools version: 2.0-alpha2
[LOG] 0:04.903 ERROR juju.apiserver Unable to prime /tmp/check-5577006791947779410/21/logsink.log (proceeding anyway): chown /tmp/check-5577006791947779410/21/logsink.log: operation not permitted
[LOG] 0:04.903 INFO juju.state opening state, mongo addresses: ["[::1]:42969" "localhost:42969"]; entity <nil>
[LOG] 0:04.903 DEBUG juju.state dialing mongo
[LOG] 0:04.905 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:42969"
[LOG] 0:04.906 INFO juju.mongo dialled mongo successfully on address "[::1]:42969"
[LOG] 0:04.906 DEBUG juju.state connection established
[LOG] 0:04.906 DEBUG juju.state mongodb login successful
[LOG] 0:04.911 INFO juju.state running state anonymously; using unique client id
[LOG] 0:04.911 INFO juju.state creating lease clients as anon-c8ed7840-3ed5-4043-89b7-2e08be7472dc
[LOG] 0:04.911 INFO juju.state starting leadership lease manager
[LOG] 0:04.911 DEBUG juju.worker.lease waking to check leases at 2016-02-08 10:47:58.816802186 +0000 GMT
[LOG] 0:04.911 INFO juju.state starting singular lease manager
[LOG] 0:04.911 INFO juju.state creating cloud image metadata storage
[LOG] 0:04.911 INFO juju.state starting presence watcher
[LOG] 0:04.924 DEBUG juju.worker.lease waking to check leases at 2016-02-08 10:47:58.830191503 +0000 GMT
[LOG] 0:04.936 DEBUG juju.environs ControllerInstances returned: [localhost]
[LOG] 0:04.936 WARNING juju.network no addresses found in space "default"
[LOG] 0:04.936 WARNING juju.environs using all API addresses (cannot pick by space "default"): [localhost]
[LOG] 0:04.936 INFO juju.api dialing "wss://localhost:42221/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:04.936 INFO juju.mongo dialled mongo successfully on address "127.0.0.1:42969"
[LOG] 0:04.945 INFO juju.apiserver [F] API connection from 127.0.0.1:54610
[LOG] 0:04.945 DEBUG juju.apiserver validate model uuid: controller model - deadbeef-0bad-400d-8000-4b1d0d06f00d
[LOG] 0:04.945 INFO juju.api connection established to "wss://localhost:42221/model/deadbeef-0bad-400d-8000-4b1d0d06f00d/api"
[LOG] 0:04.945 DEBUG juju.apiserver <- [F] <unknown> {"RequestId":1,"Type":"Admin","Version":2,"Request":"Login","Params":"'params redacted'"}
[LOG] 0:04.947 DEBUG juju.apiserver hostPorts: []
[LOG] 0:04.947 DEBUG juju.apiserver -> [F] user-dummy-admin@local 1.581969ms {"RequestId":1,"Response":"'body redacted'"} Admin[""].Login
[LOG] 0:04.947 WARNING juju.network no hostPorts found in space "default"
[LOG] 0:04.947 WARNING juju.state cannot determine API addresses in space "default" to use as API endpoints; using all addresses
[LOG] 0:04.950 DEBUG juju.state setting API hostPorts: [[localhost:42221]]
[LOG] 0:04.950 DEBUG juju.environs.configstore writing cache file
jenv host ports: [][]network.HostPort{[]network.HostPort{localhost:42221}}
[LOG] 0:04.956 DEBUG juju.api health ping failed: connection is shut down
[LOG] 0:04.956 DEBUG juju.state closed state without error
[LOG] 0:04.956 INFO juju.provider.dummy reset model
[LOG] 0:04.956 INFO juju.apiserver [F] user-dummy-admin@local API connection terminated after 11.137353ms
[LOG] 0:04.956 DEBUG juju.state closed state without error
[LOG] 0:04.956 DEBUG juju.state closed state without error
[LOG] 0:04.958 INFO juju.testing reset successfully reset admin password
[LOG] 0:04.961 INFO juju.testing reset successfully reset admin password
[LOG] 0:04.962 INFO juju.testing reset successfully reset admin password
OOPS: 0 passed, 1 FAILED
--- FAIL: TestPackage (5.00 seconds)
FAIL
FAIL	github.com/juju/juju/cmd/juju/status	5.112s
Download as text