Ubuntu Pastebin

Paste from José Antonio Rey Cama at Fri, 19 Feb 2016 20:44:15 +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
Started by remote host 54.86.116.234
Building remotely on charm-bundle-slave
[charm-bundle-test-lxc] $ /bin/sh -xe /tmp/hudson6689345615832305620.sh
+ /var/lib/jenkins/jenkins-charm-bundle-slave/build-cloud.sh charm-testing-lxc
+ '[' -n http://review.juju.solutions/review/2432/ctb_callback/996 ']'
+ curl http://review.juju.solutions/review/2432/ctb_callback/996 --data-urlencode status=RUNNING --data-urlencode job_id=996 --data-urlencode env=charm-testing-lxc --data-urlencode build_number=2625 --data-urlencode build_url=http://juju-ci.vapour.ws:8080/job/charm-bundle-test-lxc/2625/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   325  100   172  100   153    741    659 --:--:-- --:--:-- --:--:--   744
<html>
 <head>
  <title>404 Not Found</title>
 </head>
 <body>
  <h1>404 Not Found</h1>
  The resource could not be found.<br/><br/>
ReviewTest not found


 </body>
</html>+ export ENV=charm-testing-lxc
+ ENV=charm-testing-lxc
+ export REAL_JUJU_HOME=/var/lib/jenkins/cloud-city
+ REAL_JUJU_HOME=/var/lib/jenkins/cloud-city
+ '[' charm-testing-lxc == charm-testing-lxc ']'
+ export LOCAL_LOG=true
+ LOCAL_LOG=true
+ export DOCKER_NET=--net=host
+ DOCKER_NET=--net=host
+ '[' charm-testing-lxc == charm-testing-power8-maas ']'
+ bash
+ trap cleanup EXIT
++ mktemp -d
+ export TMP_JUJU_HOME=/tmp/tmp.1e1sRDztAM
+ TMP_JUJU_HOME=/tmp/tmp.1e1sRDztAM
+ export JUJU_HOME=/tmp/tmp.1e1sRDztAM
+ JUJU_HOME=/tmp/tmp.1e1sRDztAM
+ cp -R /var/lib/jenkins/cloud-city/arm64vm_rsa /var/lib/jenkins/cloud-city/azure.cer /var/lib/jenkins/cloud-city/azure.pem /var/lib/jenkins/cloud-city/azuretoolsrc /var/lib/jenkins/cloud-city/buildarchrc /var/lib/jenkins/cloud-city/canonistacktoolsrc /var/lib/jenkins/cloud-city/cloudgpg /var/lib/jenkins/cloud-city/cloudsigma.conf /var/lib/jenkins/cloud-city/cloudsigma.txt /var/lib/jenkins/cloud-city/clouds.yaml /var/lib/jenkins/cloud-city/configure-juju-reports /var/lib/jenkins/cloud-city/consoles.txt /var/lib/jenkins/cloud-city/credentials.yaml /var/lib/jenkins/cloud-city/current-environment /var/lib/jenkins/cloud-city/ec2cnrc /var/lib/jenkins/cloud-city/ec2rc /var/lib/jenkins/cloud-city/environments /var/lib/jenkins/cloud-city/environments.yaml /var/lib/jenkins/cloud-city/foo /var/lib/jenkins/cloud-city/gce-4f8322be6f89.json /var/lib/jenkins/cloud-city/github-credentials /var/lib/jenkins/cloud-city/github-token /var/lib/jenkins/cloud-city/gnupg /var/lib/jenkins/cloud-city/id_rsa /var/lib/jenkins/cloud-city/id_rsa.pub /var/lib/jenkins/cloud-city/jenkins_master_ssh_config /var/lib/jenkins/cloud-city/joyent-key /var/lib/jenkins/cloud-city/joyent-key.pub /var/lib/jenkins/cloud-city/joyentrc /var/lib/jenkins/cloud-city/juju-bot.txt /var/lib/jenkins/cloud-city/juju-ci4.jenv /var/lib/jenkins/cloud-city/juju-dist.s3cfg /var/lib/jenkins/cloud-city/juju-gui-bot-password /var/lib/jenkins/cloud-city/juju-qa-bot-lp-oauth.txt /var/lib/jenkins/cloud-city/juju-qa.canonistack /var/lib/jenkins/cloud-city/juju-qa.jujuci /var/lib/jenkins/cloud-city/juju-qa-public.key /var/lib/jenkins/cloud-city/juju-qa.s3cfg /var/lib/jenkins/cloud-city/jujuqa-stack-admin-novarc /var/lib/jenkins/cloud-city/jujuqa-stack-novarc /var/lib/jenkins/cloud-city/lp-juju-qa.creds /var/lib/jenkins/cloud-city/rackspacerc /var/lib/jenkins/cloud-city/s3cfg /var/lib/jenkins/cloud-city/ssh /var/lib/jenkins/cloud-city/staging-juju-rsa /var/lib/jenkins/cloud-city/staging-juju-rsa.pub /var/lib/jenkins/cloud-city/streamsrc /var/lib/jenkins/cloud-city/winrm_client_cert.key /var/lib/jenkins/cloud-city/winrm_client_cert.pem /tmp/tmp.1e1sRDztAM
+ rm -rf '/tmp/tmp.1e1sRDztAM/environments/*'
++ pwd
+ export HERE=/mnt/jenkins/workspace/charm-bundle-test-lxc
+ HERE=/mnt/jenkins/workspace/charm-bundle-test-lxc
++ mktemp -d
+ export JUJU_REPOSITORY=/tmp/tmp.llaKM7R0NN
+ JUJU_REPOSITORY=/tmp/tmp.llaKM7R0NN
++ mktemp
+ export LOG_DEST=/tmp/tmp.23NZHzDHVd
+ LOG_DEST=/tmp/tmp.23NZHzDHVd
++ mktemp -d
+ export TMP=/tmp/tmp.ObnEEOUQt5
+ TMP=/tmp/tmp.ObnEEOUQt5
+ export OUTPUT=/tmp/tmp.ObnEEOUQt5/results.json
+ OUTPUT=/tmp/tmp.ObnEEOUQt5/results.json
+ export JOB_ID=996
+ JOB_ID=996
+ export CONFIG=
+ CONFIG=
+ export BUNDLE_ARGS=
+ BUNDLE_ARGS=
+ '[' -n '' ']'
+ juju destroy-environment --yes --force charm-testing-lxc
ERROR cannot read environment info: environment "charm-testing-lxc" not found
+ true
+ '[' charm-testing-lxc == charm-testing-lxc ']'
+ juju bootstrap --show-log -e charm-testing-lxc --constraints mem=2G
2016-02-18 20:49:07 INFO juju.cmd supercommand.go:37 running juju [1.25.3-trusty-amd64 gc]
2016-02-18 20:49:08 INFO juju.provider.local environprovider.go:257 checking state port
Bootstrap failed, cleaning up the environment.
2016-02-18 20:49:08 ERROR juju.cmd supercommand.go:429 there was an issue examining the environment: cannot use 37017 as state port, already in use
+ true
+ juju set-constraints -e charm-testing-lxc mem=2G
ERROR missing namespace, config not prepared
++ juju status -e charm-testing-lxc
++ grep agent-version
++ cut -d ' ' -f 3
++ tr -s ' '
++ head -n1
ERROR Unable to connect to environment "charm-testing-lxc".
Please check your credentials or use 'juju bootstrap' to create a new environment.

Error details:
missing namespace, config not prepared

+ export JUJU_VERSION=
+ JUJU_VERSION=
++ date -u +%Y-%m-%dT%H:%M:%SZ
+ export START=2016-02-18T20:49:09Z
+ START=2016-02-18T20:49:09Z
+ mkdir -m 700 /tmp/tmp.ObnEEOUQt5/ssh
+ cp /tmp/tmp.1e1sRDztAM/staging-juju-rsa /tmp/tmp.ObnEEOUQt5/ssh/id_rsa
+ CHARMBOX=jujusolutions/charmbox:latest
+ sudo docker pull jujusolutions/charmbox:latest
latest: Pulling from jujusolutions/charmbox
Digest: sha256:a495a939743043075954a978a47efb81e565d0188a59a83d67e447def8e43a6c
Status: Image is up to date for jujusolutions/charmbox:latest
+ sudo docker run --rm --net=host -u ubuntu -e HOME=/home/ubuntu -e JUJU_HOME=/home/ubuntu/.juju -w /home/ubuntu -v /tmp/tmp.1e1sRDztAM:/home/ubuntu/.juju -v /tmp/tmp.ObnEEOUQt5/.deployer-store-cache:/home/ubuntu/.juju/.deployer-store-cache -v /tmp/tmp.llaKM7R0NN:/home/ubuntu/charm-repo -v /tmp/tmp.ObnEEOUQt5:/tmp/tmp.ObnEEOUQt5 -v /tmp/tmp.ObnEEOUQt5/ssh:/home/ubuntu/.ssh -t jujusolutions/charmbox:latest sh -c 'bzr whoami '\''Tim Van Steenburgh <tvansteenburgh@gmail.com>'\'' && sudo bundletester -F -e charm-testing-lxc -t https://code.launchpad.net/~lazypower/charms/trusty/etcd/bump-seven-again/+merge/286567 -l DEBUG -v -r json -o /tmp/tmp.ObnEEOUQt5/results.json '
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.launchpad.net
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
DEBUG:requests.packages.urllib3.connectionpool:"GET /devel/~lazypower/charms/trusty/etcd/bump-seven-again/+merge/286567 HTTP/1.1" 200 617
DEBUG:bundletester.fetchers:bzr branch --use-existing-dir lp:~charmers/charms/trusty/etcd/trunk /tmp/bundletester-rCYxjw/tmprQ3yiv: You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Branched 21 revisions.

DEBUG:bundletester.fetchers:bzr merge lp:~lazypower/charms/trusty/etcd/bump-seven-again: You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
http://bazaar.launchpad.net/~lazypower/charms/trusty/etcd/bump-seven-again is permanently redirected to http://bazaar.launchpad.net/~lazypower/charms/trusty/etcd/bump-seven-again/changes
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
 M  hooks/client-relation-changed
 M  hooks/client-relation-joined
All changes applied successfully.

DEBUG:bundletester.fetchers:bzr commit --unchanged -m "Merge commit": Committing to: /tmp/bundletester-rCYxjw/tmprQ3yiv/
modified hooks/client-relation-changed
modified hooks/client-relation-joined
Committed revision 22.

DEBUG:bundletester.utils:Updating JUJU_ENV: "" -> "charm-testing-lxc"
DEBUG:root:Bootstrap environment: charm-testing-lxc
INFO:root:Bootstrapping Juju Environment...
INFO:deployer.env:bootstrapping, this might take a while...
ERROR:deployer.env:Failed to bootstrap
ERROR:deployer.env:Command (juju bootstrap -e charm-testing-lxc) Output:

 Bootstrap failed, cleaning up the environment.
ERROR there was an issue examining the environment: cannot use 37017 as state port, already in use

DEBUG:bundletester.utils:Updating JUJU_ENV: "charm-testing-lxc" -> ""
Traceback (most recent call last):
  File "/usr/local/bin/bundletester", line 9, in <module>
    load_entry_point('bundletester==0.5.10', 'console_scripts', 'bundletester')()
  File "/usr/local/lib/python2.7/dist-packages/bundletester/tester.py", line 128, in entrypoint
    status = main()
  File "/usr/local/lib/python2.7/dist-packages/bundletester/tester.py", line 120, in main
    [report.emit(result) for result in run()]
  File "/usr/local/lib/python2.7/dist-packages/bundletester/runner.py", line 133, in __call__
    bootstrapped = self.builder.bootstrap()
  File "/usr/local/lib/python2.7/dist-packages/bundletester/builder.py", line 36, in bootstrap
    self.environment.bootstrap()
  File "/usr/local/lib/python2.7/dist-packages/deployer/env/base.py", line 74, in bootstrap
    params, self.log, "Failed to bootstrap")
  File "/usr/local/lib/python2.7/dist-packages/deployer/env/base.py", line 21, in _check_call
    return _check_call(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/deployer/utils.py", line 272, in _check_call
    raise ErrorExit(e)
deployer.utils.ErrorExit
+ EXIT_STATUS=1
++ date -u +%Y-%m-%dT%H:%M:%SZ
+ export STOP=2016-02-18T20:49:39Z
+ STOP=2016-02-18T20:49:39Z
+ sudo chmod 777 /tmp/tmp.ObnEEOUQt5/results.json
+ artifacts=($(python <<EOF
import json
import sys

result = json.load(open('$OUTPUT'))
out = {
    "tests": result['tests'],
    "revision": result['revision'],
    "url": "$url",
    "build_number": "$BUILD_NUMBER",
    "parent_build_number": "${parent_build}",
    "substrate": "$ENV",
    "started": "$START",
    "finished": "$STOP",
    "juju_version": "$JUJU_VERSION",
    "bundle": "${bundle}",
}
if "$CONFIG":
    out['config'] = "$CONFIG"

with open('$OUTPUT', 'w') as f:
    json.dump(out, f, indent=2)

sys.stdout.write(result['testdir'] + '\t')
sys.stdout.write(result.get('bundle', '') + '\t')
sys.stdout.write('\n')

EOF
))
++ python
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
  File "/usr/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
+ testdir=
+ bundlefile=
+ s3cmd -c /tmp/tmp.1e1sRDztAM/juju-qa.s3cfg put /tmp/tmp.ObnEEOUQt5/results.json s3://juju-qa-data/charm-test/charm-bundle-test-lxc-2625-results.json
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
File '/tmp/tmp.ObnEEOUQt5/results.json' stored as 's3://juju-qa-data/charm-test/charm-bundle-test-lxc-2625-results.json' (0 bytes in 0.2 seconds, -1.00 B/s) [1 of 1]
+ [[ -n true ]]
+ LOG_SRC=/tmp/tmp.1e1sRDztAM/charm-testing-lxc/log/all-machines.log
++ mktemp
+ LOG_DEST=/tmp/tmp.Qm4D4f44pg
+ sudo chmod go+r /tmp/tmp.1e1sRDztAM/charm-testing-lxc/log/all-machines.log
chmod: cannot access ‘/tmp/tmp.1e1sRDztAM/charm-testing-lxc/log/all-machines.log’: No such file or directory
+ cp /tmp/tmp.1e1sRDztAM/charm-testing-lxc/log/all-machines.log /tmp/tmp.Qm4D4f44pg
cp: cannot stat ‘/tmp/tmp.1e1sRDztAM/charm-testing-lxc/log/all-machines.log’: No such file or directory
+ '[' -s /tmp/tmp.Qm4D4f44pg ']'
+ '[' -n '' ']'
+ cp /tmp/tmp.ObnEEOUQt5/results.json /mnt/jenkins/workspace/charm-bundle-test-lxc
+ exit 1
+ cleanup
+ juju destroy-environment --yes --force charm-testing-lxc
ERROR cannot read environment info: environment "charm-testing-lxc" not found
+ true
+ rm -rf /tmp/tmp.llaKM7R0NN
+ rm -rf
+ rm -f /tmp/tmp.Qm4D4f44pg
+ sudo rm -rf /tmp/tmp.1e1sRDztAM
+ sudo rm -rf /tmp/tmp.ObnEEOUQt5
+ EXIT_STATUS=1
+ set -eux
+ '[' 1 == 0 ']'
+ status=FAIL
+ '[' -n http://review.juju.solutions/review/2432/ctb_callback/996 ']'
+ curl http://review.juju.solutions/review/2432/ctb_callback/996 --data-urlencode status=FAIL --data-urlencode job_id=996 --data-urlencode env=charm-testing-lxc --data-urlencode build_number=2625 --data-urlencode build_url=http://juju-ci.vapour.ws:8080/job/charm-bundle-test-lxc/2625/ --data-urlencode result_url=http://juju-ci.vapour.ws:8080/job/charm-bundle-test-lxc/2625/artifact/results.json
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   837  100   575  100   262    776    353 --:--:-- --:--:-- --:--:--   775
{"status": "FAIL", "created": "2016-02-18T20:49:02.063636+00:00", "url": "http://juju-ci.vapour.ws:8080/job/charm-bundle-test-lxc/2625/", "review": {"updated": "2016-02-18T20:30:34.381328+00:00", "created": "2016-02-18T20:30:34.381328+00:00", "url": "https://code.launchpad.net/~lazypower/charms/trusty/etcd/bump-seven-again/+merge/286567", "title": "lp:~lazypower/charms/trusty/etcd/bump-seven-again", "state": "PENDING", "owner": {"id": 6, "name": "Charles Butler", "charmer": true}, "type": "UPDATE", "id": 2432}, "finished": "2016-02-18T20:49:40.506194+00:00", "id": 996}++ mktemp
+ console_output=/tmp/tmp.Q9k9rqRr6Y
+ curl -s --output /tmp/tmp.Q9k9rqRr6Y http://juju-ci.vapour.ws:8080/job/charm-bundle-test-lxc/2625/consoleText
+ s3cmd -c /var/lib/jenkins/cloud-city/juju-qa.s3cfg put /tmp/tmp.Q9k9rqRr6Y s3://juju-qa-data/charm-test/charm-bundle-test-lxc-2625-consoleText
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
File '/tmp/tmp.Q9k9rqRr6Y' stored as 's3://juju-qa-data/charm-test/charm-bundle-test-lxc-2625-consoleText' (14960 bytes in 0.3 seconds, 43.86 kB/s) [1 of 1]
+ rm -rf /tmp/tmp.Q9k9rqRr6Y
+ exit 1
Build step 'Execute shell' marked build as failure
Archiving artifacts
[BFA] Scanning build for known causes...

[BFA] Done. 0s
Notifying upstream projects of job completion
Finished: FAILURE
Download as text