Ubuntu Pastebin

Paste from stokachu at Mon, 14 Mar 2016 22:49:16 +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
Current Model:
local.mydev:staging

Models:
NAME        OWNER        LAST CONNECTION
mydev       admin@local  2 hours ago
staging*    admin@local  1 hour ago
production  admin@local  2016-03-10

Loading the API code:

In [38]: Juju.client.Client(request='Status')
Out[38]: {'Machines': {'0': {'InstanceId': 'juju-7dfd43ae-2c26-4485-83f6-fe1d1129c2dc-machine-0'}}}

In [39]: Juju.client.Client(request='FullStatus')
Out[39]: 
{'AvailableVersion': '',
 'Machines': {'0': {'Agent': {'Data': {},
    'Err': None,
    'Info': '',
    'Kind': '',
    'Life': '',
    'Since': '2016-03-10T18:24:29.07747954Z',
    'Status': 'started',
    'Version': '2.0-beta2.1'},
   'Containers': {},
   'DNSName': '10.0.3.226',
   'Hardware': 'arch=amd64 cpu-cores=0 mem=0M',
   'HasVote': True,
   'Id': '0',
   'InstanceId': 'juju-7dfd43ae-2c26-4485-83f6-fe1d1129c2dc-machine-0',
   'InstanceState': 'Running',
   'Jobs': ['JobManageModel', 'JobHostUnits'],
   'Series': 'trusty',
   'WantsVote': True}},
 'ModelName': 'mydev',
 'Networks': {},
 'Relations': None,
 'Services': {}}

In [40]: Juju.client.Client(request='ModelInfo')
Out[40]: 
{'DefaultSeries': 'trusty',
 'Name': 'mydev',
 'ProviderType': 'lxd',
 'ServerUUID': '7dfd43ae-2c26-4485-83f6-fe1d1129c2dc',
 'UUID': '7dfd43ae-2c26-4485-83f6-fe1d1129c2dc'}
Download as text