Ubuntu Pastebin

Paste from Mmike at Fri, 29 Jul 2016 14:50:32 +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
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ juju destroy-environment --force -y $JUJU_ENV 
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ ./juju bootstrap -v --upload-tools
WARNING Config attribute "tools-metadata-url" (https://streams.canonical.com/juju/tools/) is deprecated. 
It is replaced by "agent-metadata-url" attribute. 
Your configuration should be updated to set "agent-metadata-url" as follows 
agent-metadata-url: https://streams.canonical.com/juju/tools/.
WARNING Config attribute "tools-metadata-url" (https://streams.canonical.com/juju/tools/) is deprecated. 
It is replaced by "agent-metadata-url" attribute. 
Your configuration should be updated to set "agent-metadata-url" as follows 
agent-metadata-url: https://streams.canonical.com/juju/tools/.
Bootstrapping environment "ms-1"
Starting new instance for initial state server
Launching instance
 - 9e14407a-8096-419c-8a72-f4d61dc8205e
Building tools to upload (1.25.7.1-trusty-amd64)
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to 10.5.15.139:22
Warning: Permanently added '10.5.15.139' (ECDSA) to the list of known hosts.
Logging to /var/log/cloud-init-output.log on remote host
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Installing package: cloud-utils
Installing package: cloud-image-utils
Installing package: tmux
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Bootstrap agent installed
ms-1 -> ms-1
Waiting for API to become available
Bootstrap complete
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ ls -al
total 151892
drwxrwxr-x 2 ubuntu ubuntu     4096 Jul 29 14:02 .
drwxrwxr-x 3 ubuntu ubuntu     4096 Jul 29 14:32 ..
-rwxrwxr-x 1 ubuntu ubuntu 76571504 Jul 29 14:02 juju
-rwxrwxr-x 1 ubuntu ubuntu 78950648 Jul 29 14:02 jujud
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ md5sum jujud 
d68d13eb41b64abbec661347645e8286  jujud
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ juju ssh 0
Warning: Permanently added '10.5.15.139' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.5.15.139' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-92-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Fri Jul 29 14:36:47 UTC 2016

  System load:  0.54              Processes:           75
  Usage of /:   22.4% of 9.81GB   Users logged in:     0
  Memory usage: 14%               IP address for eth0: 10.5.15.139
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud


ubuntu@juju-ms-1-machine-0:~$ suod -s
No command 'suod' found, did you mean:
 Command 'sudo' from package 'sudo' (main)
 Command 'sudo' from package 'sudo-ldap' (universe)
suod: command not found
ubuntu@juju-ms-1-machine-0:~$ sudo -s
root@juju-ms-1-machine-0:~# cd /var/lib/juju/agents/machine-0/
root@juju-ms-1-machine-0:/var/lib/juju/agents/machine-0# ls -al
total 16
drwxr-xr-x 2 root root 4096 Jul 29 14:36 .
drwxr-xr-x 3 root root 4096 Jul 29 14:35 ..
-rw------- 1 root root 7169 Jul 29 14:36 agent.conf
root@juju-ms-1-machine-0:/var/lib/juju/agents/machine-0# cd ..
root@juju-ms-1-machine-0:/var/lib/juju/agents# cd ..
root@juju-ms-1-machine-0:/var/lib/juju# cd tools/
root@juju-ms-1-machine-0:/var/lib/juju/tools# ls -al
total 12
drwxr-xr-x 3 root root 4096 Jul 29 14:36 .
drwxr-xr-x 6 root root 4096 Jul 29 14:36 ..
drwxr-xr-x 2 root root 4096 Jul 29 14:36 1.25.7.1-trusty-amd64
lrwxrwxrwx 1 root root   21 Jul 29 14:36 machine-0 -> 1.25.7.1-trusty-amd64
root@juju-ms-1-machine-0:/var/lib/juju/tools# cd machine-0
root@juju-ms-1-machine-0:/var/lib/juju/tools/machine-0# ls -al
total 77120
drwxr-xr-x 2 root   root       4096 Jul 29 14:36 .
drwxr-xr-x 3 root   root       4096 Jul 29 14:36 ..
-rw-r--r-- 1 root   root        213 Jul 29 14:35 downloaded-tools.txt
-rw-r--r-- 1 ubuntu ubuntu        8 Jul 29 14:34 FORCE-VERSION
-rwxr-xr-x 1 ubuntu ubuntu 78950648 Jul 29 14:34 jujud
root@juju-ms-1-machine-0:/var/lib/juju/tools/machine-0# md5sum jujud 
d68d13eb41b64abbec661347645e8286  jujud
root@juju-ms-1-machine-0:/var/lib/juju/tools/machine-0# ls -al
total 77120
drwxr-xr-x 2 root   root       4096 Jul 29 14:36 .
drwxr-xr-x 3 root   root       4096 Jul 29 14:36 ..
-rw-r--r-- 1 root   root        213 Jul 29 14:35 downloaded-tools.txt
-rw-r--r-- 1 ubuntu ubuntu        8 Jul 29 14:34 FORCE-VERSION
-rwxr-xr-x 1 ubuntu ubuntu 78950648 Jul 29 14:34 jujud
root@juju-ms-1-machine-0:/var/lib/juju/tools/machine-0# cd /var/log/juju
root@juju-ms-1-machine-0:/var/log/juju# ls a-l
ls: cannot access a-l: No such file or directory
root@juju-ms-1-machine-0:/var/log/juju# ls -al
total 64
drwxr-xr-x 2 syslog adm     4096 Jul 29 14:36 .
drwxrwxr-x 9 root   syslog  4096 Jul 29 14:35 ..
-rw------- 1 syslog adm    26664 Jul 29 14:36 all-machines.log
-rw------- 1 syslog syslog 24717 Jul 29 14:36 machine-0.log
root@juju-ms-1-machine-0:/var/log/juju# dd if=/dev/zero of=biggus bs=1024 count=512000
512000+0 records in
512000+0 records out
524288000 bytes (524 MB) copied, 1.49898 s, 350 MB/s
root@juju-ms-1-machine-0:/var/log/juju# cat biggus  >> all-machines.log 
root@juju-ms-1-machine-0:/var/log/juju# cat biggus  >> all-machines.log 
root@juju-ms-1-machine-0:/var/log/juju# cat biggus  >> all-machines.log 
root@juju-ms-1-machine-0:/var/log/juju# ls -alh
total 2.0G
drwxr-xr-x 2 syslog adm    4.0K Jul 29 14:45 .
drwxrwxr-x 9 root   syslog 4.0K Jul 29 14:35 ..
-rw------- 1 syslog adm    1.5G Jul 29 14:45 all-machines.log
-rw-r--r-- 1 root   root   500M Jul 29 14:45 biggus
-rw------- 1 syslog syslog  25K Jul 29 14:36 machine-0.log
root@juju-ms-1-machine-0:/var/log/juju# exit
ubuntu@juju-ms-1-machine-0:~$ logout
Connection to 10.5.15.139 closed.
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ ./juju backups --debug create
2016-07-29 14:45:27 INFO juju.cmd supercommand.go:37 running juju [1.25.7-trusty-amd64 gc]
2016-07-29 14:45:27 DEBUG juju.api api.go:154 trying cached API connection settings - endpoints [10.5.15.139:17070]
2016-07-29 14:45:27 INFO juju.api api.go:266 connecting to API addresses: [10.5.15.139:17070]
2016-07-29 14:45:27 INFO juju.api apiclient.go:262 dialing "wss://10.5.15.139:17070/environment/00a23464-8cb9-4f2b-8d66-12c1a62374be/api"
2016-07-29 14:45:27 INFO juju.api apiclient.go:194 connection established to "wss://10.5.15.139:17070/environment/00a23464-8cb9-4f2b-8d66-12c1a62374be/api"
2016-07-29 14:45:27 DEBUG juju.api api.go:476 API hostnames unchanged - not resolving
2016-07-29 14:45:27 DEBUG juju.api api.go:506 cacheChangedAPIInfo: serverUUID="00a23464-8cb9-4f2b-8d66-12c1a62374be"
backup ID:       "20160729-144528.00a23464-8cb9-4f2b-8d66-12c1a62374be"
checksum:        "M/OlNmO/09OC+bxtNLjQNPI3M6Y="
checksum format: "SHA-1, base64 encoded"
size (B):        34852102
stored:          2016-07-29 14:46:35 +0000 UTC
started:         2016-07-29 14:45:28.307384073 +0000 UTC
finished:        2016-07-29 14:46:29.423307721 +0000 UTC
notes:           ""
environment ID:  "00a23464-8cb9-4f2b-8d66-12c1a62374be"
machine ID:      "0"
created on host: "juju-ms-1-machine-0"
juju version:    1.25.7.1
20160729-144528.00a23464-8cb9-4f2b-8d66-12c1a62374be
downloading to juju-backup-20160729-144528.tar.gz
2016-07-29 14:46:35 DEBUG juju.api api.go:154 trying cached API connection settings - endpoints [10.5.15.139:17070]
2016-07-29 14:46:35 INFO juju.api api.go:266 connecting to API addresses: [10.5.15.139:17070]
2016-07-29 14:46:35 INFO juju.api apiclient.go:262 dialing "wss://10.5.15.139:17070/environment/00a23464-8cb9-4f2b-8d66-12c1a62374be/api"
2016-07-29 14:46:35 INFO juju.api apiclient.go:194 connection established to "wss://10.5.15.139:17070/environment/00a23464-8cb9-4f2b-8d66-12c1a62374be/api"
2016-07-29 14:46:35 DEBUG juju.api api.go:476 API hostnames unchanged - not resolving
2016-07-29 14:46:35 DEBUG juju.api api.go:506 cacheChangedAPIInfo: serverUUID="00a23464-8cb9-4f2b-8d66-12c1a62374be"
2016-07-29 14:46:36 INFO juju.cmd supercommand.go:435 command finished
2016-07-29 14:46:36 INFO juju.cmd supercommand.go:435 command finished
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ la -L
juju  juju-backup-20160729-144528.tar.gz  jujud
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ ls -al
total 185928
drwxrwxr-x 2 ubuntu ubuntu     4096 Jul 29 14:46 .
drwxrwxr-x 3 ubuntu ubuntu     4096 Jul 29 14:32 ..
-rwxrwxr-x 1 ubuntu ubuntu 76571504 Jul 29 14:02 juju
-rw-rw-r-- 1 ubuntu ubuntu 34852102 Jul 29 14:46 juju-backup-20160729-144528.tar.gz
-rwxrwxr-x 1 ubuntu ubuntu 78950648 Jul 29 14:02 jujud
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ tar xf juju-backup-20160729-144528.tar.gz 
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ tar tvf juju-backup/root.tar 
drwxr-xr-x 0/0               0 2016-07-29 14:36 var/lib/juju/tools
drwxr-xr-x 0/0               0 2016-07-29 14:36 var/lib/juju/tools/1.25.7.1-trusty-amd64
-rw-r--r-- 0/0             213 2016-07-29 14:35 var/lib/juju/tools/1.25.7.1-trusty-amd64/downloaded-tools.txt
-rw-r--r-- 1000/1000         8 2016-07-29 14:34 var/lib/juju/tools/1.25.7.1-trusty-amd64/FORCE-VERSION
-rwxr-xr-x 1000/1000  78950648 2016-07-29 14:34 var/lib/juju/tools/1.25.7.1-trusty-amd64/jujud
lrwxrwxrwx 0/0               0 2016-07-29 14:36 var/lib/juju/tools/machine-0 -> /var/lib/juju/tools/1.25.7.1-trusty-amd64
-rw------- 0/0            1679 2016-07-29 14:36 var/lib/juju/system-identity
-rw------- 0/0            1787 2016-07-29 14:36 var/lib/juju/server.pem
-rw------- 0/0            1024 2016-07-29 14:36 var/lib/juju/shared-secret
drwxr-xr-x 0/0               0 2016-07-29 14:36 var/lib/juju/agents/machine-0
-rw------- 0/0            7169 2016-07-29 14:36 var/lib/juju/agents/machine-0/agent.conf
-rw-r--r-- 0/0            2164 2016-07-29 14:36 etc/rsyslog.d/25-juju.conf
-rw------- 101/4    1572890664 2016-07-29 14:45 var/log/juju/all-machines.log
-rw------- 101/104       24817 2016-07-29 14:45 var/log/juju/machine-0.log
-rw-r--r-- 0/0              21 2016-07-29 14:35 var/lib/juju/nonce.txt
-rw------- 1000/1000      1219 2016-07-29 14:36 home/ubuntu/.ssh/authorized_keys
ms-1:ubuntu@mariosplivalo-bastion:~/juju-backup-debug/juju-1.25-gztardebug$ 
Download as text