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 | Directory snapshot during juju bootstrap
viswesn@viswesn:/tmp/assessagentmetadata/logs/20161123231135$ tree
.
├── assessagentmetadata-20161123231135-temp-env
├── controller
│ └── machine-0
│ ├── audit.log.gz
│ ├── cloud-init.log.gz
│ ├── cloud-init-output.log.gz
│ ├── environment
│ ├── ifconfig.log.gz
│ ├── interfaces
│ ├── logsink.log.gz
│ ├── lxd.log.gz
│ ├── machine-0.log.gz
│ └── syslog.gz
└── juju_command_times.json
3 directories, 11 files
NOTE: Could not see any files inside assessagentmetadata-20161123231135-temp-env and I feel that is the reason of copy failure during Juju bootstrab.
viswesn@viswesn:~/Win/Ubuntu/juju-ci-tools$ python assess_agent_metadata.py --agent-metadata-url=file:///home/viswesn/Stream/ & > log.txt
[1] 8376
viswesn@viswesn:~/Win/Ubuntu/juju-ci-tools$ 2016-11-23 23:11:35 INFO Environment assessagentmetadata-20161123231135-temp-env
2016-11-23 23:11:35 INFO Created logging directory /tmp/assessagentmetadata/logs/20161123231135
2016-11-23 23:11:35 INFO /usr/bin/python /home/viswesn/Win/Ubuntu/juju-ci-tools/timeout.pyc 600.00 -- juju --show-log kill-controller assessagentmetadata-20161123231135-temp-env -y
error: controller assessagentmetadata-20161123231135-temp-env not found
2016-11-23 23:11:35 INFO juju --show-log bootstrap --constraints mem=2G lxd/localhost assessagentmetadata-20161123231135-temp-env --config /tmp/tmpIvKBZl.yaml --default-model assessagentmetadata-20161123231135-temp-env --agent-version 2.0.1
23:11:35 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
23:11:35 INFO cmd cmd.go:141 cloud "lxd" not found, trying as a provider name
23:11:35 INFO cmd cmd.go:141 no credentials found, checking environment
23:11:36 INFO cmd cmd.go:141 Adding contents of "/home/viswesn/.juju/jes-homes/assessagentmetadata-20161123231135-temp-env/ssh/juju_id_rsa.pub" to authorized-keys
23:11:36 INFO cmd cmd.go:141 Adding contents of "/home/viswesn/.ssh/id_rsa.pub" to authorized-keys
23:11:36 INFO juju.tools.lxdclient client.go:247 using LXD API version "1.0"
23:11:36 INFO juju.tools.lxdclient client.go:301 LXD "default" profile uses network bridge "lxdbr0"
Creating Juju controller "assessagentmetadata-20161123231135-temp-env" on lxd/localhost
23:11:36 INFO juju.cmd.juju.commands bootstrap.go:507 combined bootstrap constraints: mem=2048M
23:11:36 INFO cmd cmd.go:141 Loading image metadata
Looking for packaged Juju agent version 2.0.1 for amd64
23:11:36 INFO juju.environs.bootstrap tools.go:72 looking for bootstrap agent binaries: version=2.0.1
23:11:36 INFO juju.environs.tools tools.go:101 finding agent binaries in stream "released"
23:11:36 INFO juju.environs.tools tools.go:103 reading agent binaries with major.minor version 2.0
23:11:36 INFO juju.environs.tools tools.go:111 filtering agent binaries by version: 2.0.1
23:11:36 INFO juju.environs.tools tools.go:117 filtering agent binaries by architecture: amd64
23:11:42 INFO juju.environs.bootstrap tools.go:74 found 16 packaged agent binaries
23:11:42 INFO cmd cmd.go:141 Starting new instance for initial controller
To configure your system to better support LXD containers, please see: https://github.com/lxc/lxd/blob/master/doc/production-setup.md
Launching controller instance(s) on lxd/localhost...
23:11:43 INFO juju.tools.lxdclient client_image.go:118 no image for ubuntu-xenial found in https://streams.canonical.com/juju/images/releases/
23:11:46 INFO juju.tools.lxdclient client_image.go:124 found image from https://cloud-images.ubuntu.com/releases/ for xenial = b9cba741ef621f14e6e8c306c7f87637a59d7d09c1a3ec8ef717ab0d6e43430a
23:11:49 INFO juju.provider.lxd environ_broker.go:245 starting instance "juju-179660-0" (image "ubuntu-xenial")...
23:11:51 INFO juju.provider.lxd environ_broker.go:56 started instance "juju-179660-0"
- juju-179660-0 (arch=amd64)
23:11:51 INFO juju.environs.bootstrap bootstrap.go:587 newest version: 2.0.1
23:11:51 INFO juju.environs.bootstrap bootstrap.go:602 picked bootstrap tools version: 2.0.1
23:11:51 INFO juju.environs.bootstrap bootstrap.go:378 Installing Juju agent on bootstrap instance
Fetching Juju GUI 2.2.3
Waiting for address
Attempting to connect to 10.200.59.60:22
23:12:01 INFO juju.cloudconfig userdatacfg_unix.go:346 Fetching agent: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz <[https://streams.canonical.com/juju/tools/agent/2.0.1/juju-2.0.1-xenial-amd64.tgz]>
Logging to /var/log/cloud-init-output.log on the bootstrap machine
Running apt-get update
Installing curl, cpu-checker, bridge-utils, cloud-utils, tmux
Fetching Juju agent version 2.0.1 for amd64
Installing Juju machine agent
Starting Juju machine agent (service jujud-machine-0)
Bootstrap agent now started
23:15:34 INFO juju.juju api.go:280 new API addresses to cache [10.200.59.60:17070]
Contacting Juju controller at 10.200.59.60 to verify accessibility...
23:15:34 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:34 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:36 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:36 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:37 INFO cmd cmd.go:141 Still waiting for API to become available: upgrade in progress (upgrade in progress)
23:15:37 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:37 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:37 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:37 INFO cmd cmd.go:141 Still waiting for API to become available: upgrade in progress (upgrade in progress)
23:15:38 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:38 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:38 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:38 INFO cmd cmd.go:141 Still waiting for API to become available: upgrade in progress (upgrade in progress)
23:15:39 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:39 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:39 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
Bootstrap complete, "assessagentmetadata-20161123231135-temp-env" controller now available.
Controller machines are in the "controller" model.
Initial model "assessagentmetadata-20161123231135-temp-env" added.
23:15:39 INFO cmd supercommand.go:465 command finished
2016-11-23 23:15:40 INFO juju --show-log list-controllers
23:15:40 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
Use --refresh flag with this command to see the latest information.
Controller Model User Access Cloud/Region Models Machines HA Version
assessagentmetadata-20161123231135-temp-env* assessagentmetadata-20161123231135-temp-env admin superuser lxd/localhost 2 1 none 2.0.1
23:15:40 INFO cmd supercommand.go:465 command finished
2016-11-23 23:15:40 INFO juju --show-log list-models -c assessagentmetadata-20161123231135-temp-env
23:15:40 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
23:15:40 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:40 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/api"
23:15:41 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/api"
23:15:42 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:42 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/api"
23:15:42 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/api"
Controller: assessagentmetadata-20161123231135-temp-env
Model Cloud/Region Status Machines Cores Access Last connection
controller lxd/localhost available 1 - admin just now
assessagentmetadata-20161123231135-temp-env* lxd/localhost available 0 - admin 4 seconds ago
23:15:43 INFO cmd supercommand.go:465 command finished
2016-11-23 23:15:46 INFO juju --show-log show-status -m assessagentmetadata-20161123231135-temp-env:controller --format yaml
23:15:46 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
23:15:46 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:46 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/model/1b27b925-8245-40d4-8b8e-faa589179660/api"
23:15:46 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/model/1b27b925-8245-40d4-8b8e-faa589179660/api"
model:
name: controller
controller: assessagentmetadata-20161123231135-temp-env
cloud: lxd
region: localhost
version: 2.0.1
machines:
"0":
juju-status:
current: started
since: 23 Nov 2016 23:15:44+05:30
version: 2.0.1
dns-name: 10.200.59.60
ip-addresses:
- 10.200.59.60
instance-id: juju-179660-0
machine-status:
current: pending
since: 23 Nov 2016 23:15:32+05:30
series: xenial
hardware: arch=amd64 cores=0 mem=0M
controller-member-status: has-vote
applications: {}
23:15:46 INFO cmd supercommand.go:465 command finished
2016-11-23 23:15:46 INFO juju --show-log show-status -m assessagentmetadata-20161123231135-temp-env:assessagentmetadata-20161123231135-temp-env --format yaml
23:15:46 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
23:15:46 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:46 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:46 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
model:
name: assessagentmetadata-20161123231135-temp-env
controller: assessagentmetadata-20161123231135-temp-env
cloud: lxd
region: localhost
version: 2.0.1
machines: {}
applications: {}
23:15:46 INFO cmd supercommand.go:465 command finished
2016-11-23 23:15:46 INFO Metadata bootstrap successful.
2016-11-23 23:15:47 INFO juju --show-log list-controllers
23:15:47 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
Use --refresh flag with this command to see the latest information.
Controller Model User Access Cloud/Region Models Machines HA Version
assessagentmetadata-20161123231135-temp-env* assessagentmetadata-20161123231135-temp-env admin superuser lxd/localhost 2 1 none 2.0.1
23:15:47 INFO cmd supercommand.go:465 command finished
2016-11-23 23:15:47 INFO juju --show-log list-models -c assessagentmetadata-20161123231135-temp-env
23:15:47 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
23:15:47 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:47 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/api"
23:15:47 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/api"
23:15:47 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:47 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/api"
23:15:47 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/api"
Controller: assessagentmetadata-20161123231135-temp-env
Model Cloud/Region Status Machines Cores Access Last connection
controller lxd/localhost available 1 - admin just now
assessagentmetadata-20161123231135-temp-env* lxd/localhost available 0 - admin just now
23:15:47 INFO cmd supercommand.go:465 command finished
2016-11-23 23:15:48 INFO juju --show-log show-status -m assessagentmetadata-20161123231135-temp-env:controller --format yaml
23:15:48 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
23:15:48 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:48 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/model/1b27b925-8245-40d4-8b8e-faa589179660/api"
23:15:48 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/model/1b27b925-8245-40d4-8b8e-faa589179660/api"
model:
name: controller
controller: assessagentmetadata-20161123231135-temp-env
cloud: lxd
region: localhost
version: 2.0.1
machines:
"0":
juju-status:
current: started
since: 23 Nov 2016 23:15:44+05:30
version: 2.0.1
dns-name: 10.200.59.60
ip-addresses:
- 10.200.59.60
instance-id: juju-179660-0
machine-status:
current: running
message: Running
since: 23 Nov 2016 23:15:47+05:30
series: xenial
hardware: arch=amd64 cores=0 mem=0M
controller-member-status: has-vote
applications: {}
23:15:48 INFO cmd supercommand.go:465 command finished
2016-11-23 23:15:48 INFO juju --show-log show-status -m assessagentmetadata-20161123231135-temp-env:assessagentmetadata-20161123231135-temp-env --format yaml
23:15:48 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
23:15:48 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:48 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
23:15:48 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/model/4a6f7ba8-d758-45b1-8116-8c3fe9d1b793/api"
model:
name: assessagentmetadata-20161123231135-temp-env
controller: assessagentmetadata-20161123231135-temp-env
cloud: lxd
region: localhost
version: 2.0.1
machines: {}
applications: {}
23:15:48 INFO cmd supercommand.go:465 command finished
2016-11-23 23:15:49 INFO Retrieving logs for machine-0 using <SSHRemote addr='10.200.59.60'>
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
2016-11-23 23:15:50 WARNING Could not allow access to the juju logs:
2016-11-23 23:15:50 WARNING
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
scp: /var/lib/juju/containers/juju-*-lxc-*: No such file or directory
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
scp: /var/log/lxd/juju-*: No such file or directory
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
scp: /var/log/mongodb/mongodb.log: No such file or directory
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.200.59.60' (ECDSA) to the list of known hosts.
2016-11-23 23:15:54 WARNING Could not retrieve some or all logs:
2016-11-23 23:15:54 WARNING CalledProcessError()
Failed to copy file. Source: /home/viswesn/.juju/jes-homes/assessagentmetadata-20161123231135-temp-env/models/cache.yaml Destination: /tmp/assessagentmetadata/logs/20161123231135/controller
2016-11-23 23:15:54 INFO /usr/bin/python /home/viswesn/Win/Ubuntu/juju-ci-tools/timeout.pyc 600.00 -- juju --show-log destroy-controller assessagentmetadata-20161123231135-temp-env -y --destroy-all-models
23:15:54 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
23:15:54 INFO juju.juju api.go:72 connecting to API addresses: [10.200.59.60:17070]
23:15:54 INFO juju.api apiclient.go:530 dialing "wss://10.200.59.60:17070/api"
23:15:54 INFO juju.api apiclient.go:466 connection established to "wss://10.200.59.60:17070/api"
23:15:54 INFO juju.tools.lxdclient client.go:247 using LXD API version "1.0"
23:15:54 INFO juju.tools.lxdclient client.go:301 LXD "default" profile uses network bridge "lxdbr0"
Destroying controller
Waiting for hosted model resources to be reclaimed
Waiting on 1 model
23:15:55 INFO cmd cmd.go:141 admin/assessagentmetadata-20161123231135-temp-env (alive)
All hosted models reclaimed, cleaning up controller machines
23:15:57 INFO juju.provider.common destroy.go:20 destroying model "controller"
23:15:57 INFO juju.provider.common destroy.go:31 destroying instances
23:15:58 INFO juju.provider.common destroy.go:51 destroying storage
23:15:58 INFO cmd supercommand.go:465 command finished
|