Ubuntu Pastebin

Paste from powersj at Thu, 14 Sep 2017 19:07:22 +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
       ======================================================================
        ERROR: install_chef_from_omnibus provides version arg to OMNIBUS_URL.
        ----------------------------------------------------------------------
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/httpretty/core.py", line 1146, in wrapper
            return test(*args, **kw)
          File "/usr/lib/python3/dist-packages/mock/mock.py", line 1305, in patched
            return func(*args, **keywargs)
          File "/tmp/tmpvyg8qan1/cloud-init-0.7.9-275-g29a9296c/tests/unittests/test_handler/test_handler_chef.py", line 76, in test_install_chef_from_omnibus_has_omnibus_version
            cc_chef.install_chef_from_omnibus(omnibus_version='2.0')
          File "/tmp/tmpvyg8qan1/cloud-init-0.7.9-275-g29a9296c/cloudinit/config/cc_chef.py", line 304, in install_chef_from_omnibus
            content = url_helper.readurl(url=url, retries=retries).contents
          File "/tmp/tmpvyg8qan1/cloud-init-0.7.9-275-g29a9296c/cloudinit/url_helper.py", line 238, in readurl
            r = sess.request(**req_args)
          File "/usr/lib/python3/dist-packages/requests/sessions.py", line 502, in request
            resp = self.send(prep, **send_kwargs)
          File "/usr/lib/python3/dist-packages/requests/sessions.py", line 612, in send
            r = adapter.send(request, **kwargs)
          File "/usr/lib/python3/dist-packages/requests/adapters.py", line 440, in send
            timeout=timeout
          File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
            chunked=chunked)
          File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 345, in _make_request
            self._validate_conn(conn)
          File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 846, in _validate_conn
            conn.connect()
          File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 326, in connect
            ssl_context=context)
          File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 325, in ssl_wrap_socket
            return context.wrap_socket(sock, server_hostname=server_hostname)
          File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 426, in wrap_socket
            cnx = OpenSSL.SSL.Connection(self._ctx, sock)
          File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1122, in __init__
            self._ssl, _asFileDescriptor(self._socket))
          File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 373, in _asFileDescriptor
            meth = getattr(obj, "fileno", None)
          File "/usr/lib/python3/dist-packages/httpretty/core.py", line 501, in __getattr__
            raise UnmockedError()
        httpretty.errors.UnmockedError: No mocking was registered, and real connections are not allowed (httpretty.allow_net_connect = False).
        -------------------- >> begin captured logging << --------------------
        cloudinit.url_helper: DEBUG: [0/6] open 'https://www.chef.io/chef/install.sh' with {'url': 'https://www.chef.io/chef/install.sh', 'allow_redirects': True, 'method': 'GET', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}} configuration
        urllib3.connectionpool: DEBUG: Starting new HTTPS connection (1): www.chef.io
        --------------------- >> end captured logging << ---------------------
        
        ======================================================================
        ERROR: install_chef_from_omnibus runs downloaded OMNIBUS_URL as script.
        ----------------------------------------------------------------------
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/httpretty/core.py", line 1146, in wrapper
            return test(*args, **kw)
          File "/tmp/tmpvyg8qan1/cloud-init-0.7.9-275-g29a9296c/tests/unittests/test_handler/test_handler_chef.py", line 36, in test_install_chef_from_omnibus_runs_chef_url_content
            cc_chef.install_chef_from_omnibus()
          File "/tmp/tmpvyg8qan1/cloud-init-0.7.9-275-g29a9296c/cloudinit/config/cc_chef.py", line 304, in install_chef_from_omnibus
            content = url_helper.readurl(url=url, retries=retries).contents
          File "/tmp/tmpvyg8qan1/cloud-init-0.7.9-275-g29a9296c/cloudinit/url_helper.py", line 238, in readurl
            r = sess.request(**req_args)
          File "/usr/lib/python3/dist-packages/requests/sessions.py", line 502, in request
            resp = self.send(prep, **send_kwargs)
          File "/usr/lib/python3/dist-packages/requests/sessions.py", line 612, in send
            r = adapter.send(request, **kwargs)
          File "/usr/lib/python3/dist-packages/requests/adapters.py", line 440, in send
            timeout=timeout
          File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
            chunked=chunked)
          File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 345, in _make_request
            self._validate_conn(conn)
          File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 846, in _validate_conn
            conn.connect()
          File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 326, in connect
            ssl_context=context)
          File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 325, in ssl_wrap_socket
            return context.wrap_socket(sock, server_hostname=server_hostname)
          File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 426, in wrap_socket
            cnx = OpenSSL.SSL.Connection(self._ctx, sock)
          File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1122, in __init__
            self._ssl, _asFileDescriptor(self._socket))
          File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 373, in _asFileDescriptor
            meth = getattr(obj, "fileno", None)
          File "/usr/lib/python3/dist-packages/httpretty/core.py", line 501, in __getattr__
            raise UnmockedError()
        httpretty.errors.UnmockedError: No mocking was registered, and real connections are not allowed (httpretty.allow_net_connect = False).
        -------------------- >> begin captured logging << --------------------
        cloudinit.url_helper: DEBUG: [0/6] open 'https://www.chef.io/chef/install.sh' with {'url': 'https://www.chef.io/chef/install.sh', 'allow_redirects': True, 'method': 'GET', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}} configuration
        urllib3.connectionpool: DEBUG: Starting new HTTPS connection (1): www.chef.io
        --------------------- >> end captured logging << ---------------------
        
        ----------------------------------------------------------------------
        Ran 1077 tests in 4.410s
        
        FAILED (SKIP=6, errors=2)
Download as text