Activity log for bug #1548402

Date Who What changed Old value New value Message
2016-02-22 17:11:27 Jeff Lane  bug added bug
2016-02-22 17:12:33 Jeff Lane  attachment added failed-deployment-1.10.tgz https://bugs.launchpad.net/maas/+bug/1548402/+attachment/4578176/+files/failed-deployment-1.10.tgz
2016-02-22 17:39:50 Andres Rodriguez maas: status New Incomplete
2016-02-22 17:57:40 Jeff Lane  attachment added 2nd-failure-1.10.tgz https://bugs.launchpad.net/maas/+bug/1548402/+attachment/4578268/+files/2nd-failure-1.10.tgz
2016-02-22 17:58:07 Jeff Lane  attachment added 2nd-failure-maas-server-logs.tgz https://bugs.launchpad.net/maas/+bug/1548402/+attachment/4578270/+files/2nd-failure-maas-server-logs.tgz
2016-02-22 17:58:12 Jeff Lane  maas: status Incomplete New
2016-02-22 18:16:52 Andres Rodriguez summary unable to deploy nodes w/ 14.04 and MAAS 1.10 on Xenial TypeError: a bytes-like object is required, not 'str' at line 2 column 3 in file /etc/maas/preseeds/curtin_userdata
2016-02-22 18:18:01 Andres Rodriguez description I have a MAAS server running Xenial and MAAS 1.10 from maas/next. The server has 14.04 images from the Release stream. On the node, there are three NICs and all three are set to AutoAssign and are assigned 10.0.0.125, 126 and 127. On boot, the installer ephemeral boots but then cloud-init tries to get data from 169.254.169.254. It does this for 120 seconds, THEN tries calling 10.0.0.1 which also fails, and then it finally just gives up. At this point, the node is up, and stuck and I had to backdoor it to get logs. The logs are attached from the node, the biggest thing I noticed was this: 2016-02-22 16:50:25,132 - util.py[WARNING]: Failed fetching metadata from url http://10.0.0.1/MAAS/metadata/curtin 2016-02-22 16:50:25,133 - util.py[DEBUG]: Failed fetching metadata from url http://10.0.0.1/MAAS/metadata/curtin Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/cloudinit/sources/DataSourceMAAS.py", line 84, in get_data paths=self.paths) File "/usr/lib/python2.7/dist-packages/cloudinit/sources/DataSourceMAAS.py", line 236, in read_maas_seed_url ssl_details=ssl_details) File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 704, in read_file_or_url exception_cb=exception_cb) File "/usr/lib/python2.7/dist-packages/cloudinit/url_helper.py", line 257, in readurl raise excps[-1] UrlError: 500 Server Error: INTERNAL SERVER ERROR However, when I try that metadata, after getting in via the backdoor, it seems to work: backdoor@ubuntu:~$ echo $url http://10.0.0.1/MAAS/metadata/curtin backdoor@ubuntu:~$ sudo python $maasds --config=$cfg get $url == http://10.0.0.1/MAAS/metadata/curtin == 2012-03-01 latest backdoor@ubuntu:~$ sudo python $maasds --config=$cfg crawl $url/latest/meta-data/ == http://10.0.0.1/MAAS/metadata/curtin/latest/meta-data/instance-id == node-9c831f44-d6b9-11e5-8cc4-eca86bfb9f66 == http://10.0.0.1/MAAS/metadata/curtin/latest/meta-data/local-hostname == x-wing.maas == http://10.0.0.1/MAAS/metadata/curtin/latest/meta-data/public-keys == ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0UpxLhAfnGngLGdgK720nezbgSKgYfV8WyNA4f2X6ATtMEt28Kx7UdO4udhBeINbHlfNrt9ddm+VrKC4MhPGeKLna71IKu07UUbZVWz0kHd8+gwpeoc7VA8p02ZSbXcXBSLhDBEWa8ly2opmuFvs6jG2UdusAUe2ooskTL+itRE68QBD2um90MgbmM5efYayGX97c++0ogxM21osSjpapiJrXap2zUDolq0IDVQA0YujyGw85BgojmuaSvLDvnynic610Ogkrd00TSAniZ8h18C5xZur8Ex1yfa/p4h87AH/Equ0fblbSxJkhP59HUnYiaUvGJ3JXb4YQcEX2UJMb bladernr@critical-maas == http://10.0.0.1/MAAS/metadata/curtin/latest/meta-data/x509 == backdoor@ubuntu:~$ sudo python $maasds --config=$cfg crawl $url/2012-03-01/meta-data/ == http://10.0.0.1/MAAS/metadata/curtin/2012-03-01/meta-data/instance-id == node-9c831f44-d6b9-11e5-8cc4-eca86bfb9f66 == http://10.0.0.1/MAAS/metadata/curtin/2012-03-01/meta-data/local-hostname == x-wing.maas == http://10.0.0.1/MAAS/metadata/curtin/2012-03-01/meta-data/public-keys == ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0UpxLhAfnGngLGdgK720nezbgSKgYfV8WyNA4f2X6ATtMEt28Kx7UdO4udhBeINbHlfNrt9ddm+VrKC4MhPGeKLna71IKu07UUbZVWz0kHd8+gwpeoc7VA8p02ZSbXcXBSLhDBEWa8ly2opmuFvs6jG2UdusAUe2ooskTL+itRE68QBD2um90MgbmM5efYayGX97c++0ogxM21osSjpapiJrXap2zUDolq0IDVQA0YujyGw85BgojmuaSvLDvnynic610Ogkrd00TSAniZ8h18C5xZur8Ex1yfa/p4h87AH/Equ0fblbSxJkhP59HUnYiaUvGJ3JXb4YQcEX2UJMb bladernr@critical-maas == http://10.0.0.1/MAAS/metadata/curtin/2012-03-01/meta-data/x509 == MAAS curtin preseed should be rendering the curtin_userdata file correctly, and not assuming that the user will use the correct encoding. From the user perspective, this should all be 'str' and not 'byte-encoded'. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 180, in view_atomic_with_post_commit_savepoint return view_atomic(*args, **kwargs) File "/usr/lib/python3.5/contextlib.py", line 30, in inner return func(*args, **kwds) File "/usr/lib/python3/dist-packages/maasserver/api/support.py", line 54, in __call__ response = upcall(request, *args, **kwargs) File "/usr/lib/python3/dist-packages/django/views/decorators/vary.py", line 21, in inner_func response = func(*args, **kwargs) File "/usr/lib/python3/dist-packages/piston3/resource.py", line 190, in __call__ result = self.error_handler(e, request, meth, em_format) File "/usr/lib/python3/dist-packages/piston3/resource.py", line 188, in __call__ result = meth(request, *args, **kwargs) File "/usr/lib/python3/dist-packages/maasserver/api/support.py", line 202, in dispatch return function(self, request, *args, **kwargs) File "/usr/lib/python3/dist-packages/metadataserver/api.py", line 681, in read user_data = get_curtin_userdata(node) File "/usr/lib/python3/dist-packages/maasserver/preseed.py", line 269, in get_curtin_userdata configs=get_curtin_yaml_config(node), File "/usr/lib/python3/dist-packages/maasserver/preseed.py", line 216, in get_curtin_yaml_config main_config = get_curtin_config(node) File "/usr/lib/python3/dist-packages/maasserver/preseed.py", line 342, in get_curtin_config return template.substitute(**context) File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 173, in substitute result, defs, inherit = self._interpret(ns) File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 184, in _interpret self._interpret_codes(self._parsed, ns, out=parts, defs=defs) File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 212, in _interpret_codes self._interpret_code(item, ns, out, defs) File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 218, in _interpret_code self._exec(code[2], ns, pos) File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 320, in _exec raise exc_info[0](e).with_traceback(exc_info[2]) File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 312, in _exec exec(code, self.default_namespace, ns) File "<string>", line 7, in <module> TypeError: a bytes-like object is required, not 'str' at line 2 column 3 in file /etc/maas/preseeds/curtin_userdata ========================================================================= I have a MAAS server running Xenial and MAAS 1.10 from maas/next. The server has 14.04 images from the Release stream. On the node, there are three NICs and all three are set to AutoAssign and are assigned 10.0.0.125, 126 and 127. On boot, the installer ephemeral boots but then cloud-init tries to get data from 169.254.169.254. It does this for 120 seconds, THEN tries calling 10.0.0.1 which also fails, and then it finally just gives up. At this point, the node is up, and stuck and I had to backdoor it to get logs. The logs are attached from the node, the biggest thing I noticed was this: 2016-02-22 16:50:25,132 - util.py[WARNING]: Failed fetching metadata from url http://10.0.0.1/MAAS/metadata/curtin 2016-02-22 16:50:25,133 - util.py[DEBUG]: Failed fetching metadata from url http://10.0.0.1/MAAS/metadata/curtin Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/cloudinit/sources/DataSourceMAAS.py", line 84, in get_data     paths=self.paths)   File "/usr/lib/python2.7/dist-packages/cloudinit/sources/DataSourceMAAS.py", line 236, in read_maas_seed_url     ssl_details=ssl_details)   File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 704, in read_file_or_url     exception_cb=exception_cb)   File "/usr/lib/python2.7/dist-packages/cloudinit/url_helper.py", line 257, in readurl     raise excps[-1] UrlError: 500 Server Error: INTERNAL SERVER ERROR However, when I try that metadata, after getting in via the backdoor, it seems to work: backdoor@ubuntu:~$ echo $url http://10.0.0.1/MAAS/metadata/curtin backdoor@ubuntu:~$ sudo python $maasds --config=$cfg get $url == http://10.0.0.1/MAAS/metadata/curtin == 2012-03-01 latest backdoor@ubuntu:~$ sudo python $maasds --config=$cfg crawl $url/latest/meta-data/ == http://10.0.0.1/MAAS/metadata/curtin/latest/meta-data/instance-id == node-9c831f44-d6b9-11e5-8cc4-eca86bfb9f66 == http://10.0.0.1/MAAS/metadata/curtin/latest/meta-data/local-hostname == x-wing.maas == http://10.0.0.1/MAAS/metadata/curtin/latest/meta-data/public-keys == ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0UpxLhAfnGngLGdgK720nezbgSKgYfV8WyNA4f2X6ATtMEt28Kx7UdO4udhBeINbHlfNrt9ddm+VrKC4MhPGeKLna71IKu07UUbZVWz0kHd8+gwpeoc7VA8p02ZSbXcXBSLhDBEWa8ly2opmuFvs6jG2UdusAUe2ooskTL+itRE68QBD2um90MgbmM5efYayGX97c++0ogxM21osSjpapiJrXap2zUDolq0IDVQA0YujyGw85BgojmuaSvLDvnynic610Ogkrd00TSAniZ8h18C5xZur8Ex1yfa/p4h87AH/Equ0fblbSxJkhP59HUnYiaUvGJ3JXb4YQcEX2UJMb bladernr@critical-maas == http://10.0.0.1/MAAS/metadata/curtin/latest/meta-data/x509 == backdoor@ubuntu:~$ sudo python $maasds --config=$cfg crawl $url/2012-03-01/meta-data/ == http://10.0.0.1/MAAS/metadata/curtin/2012-03-01/meta-data/instance-id == node-9c831f44-d6b9-11e5-8cc4-eca86bfb9f66 == http://10.0.0.1/MAAS/metadata/curtin/2012-03-01/meta-data/local-hostname == x-wing.maas == http://10.0.0.1/MAAS/metadata/curtin/2012-03-01/meta-data/public-keys == ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0UpxLhAfnGngLGdgK720nezbgSKgYfV8WyNA4f2X6ATtMEt28Kx7UdO4udhBeINbHlfNrt9ddm+VrKC4MhPGeKLna71IKu07UUbZVWz0kHd8+gwpeoc7VA8p02ZSbXcXBSLhDBEWa8ly2opmuFvs6jG2UdusAUe2ooskTL+itRE68QBD2um90MgbmM5efYayGX97c++0ogxM21osSjpapiJrXap2zUDolq0IDVQA0YujyGw85BgojmuaSvLDvnynic610Ogkrd00TSAniZ8h18C5xZur8Ex1yfa/p4h87AH/Equ0fblbSxJkhP59HUnYiaUvGJ3JXb4YQcEX2UJMb bladernr@critical-maas == http://10.0.0.1/MAAS/metadata/curtin/2012-03-01/meta-data/x509 ==
2016-02-22 18:21:38 Jeff Lane  attachment added curtin_userdata-cert https://bugs.launchpad.net/maas/+bug/1548402/+attachment/4578285/+files/curtin_userdata-cert
2016-02-22 19:24:14 Andres Rodriguez nominated for series maas/1.10
2016-02-22 19:24:14 Andres Rodriguez bug task added maas/1.10
2016-02-22 19:24:19 Andres Rodriguez maas: importance Undecided Critical
2016-02-22 19:24:20 Andres Rodriguez maas/1.10: importance Undecided Critical
2016-02-22 19:24:22 Andres Rodriguez maas: milestone 2.0.0
2016-02-22 19:24:24 Andres Rodriguez maas/1.10: milestone 1.10.0
2016-02-22 19:26:40 Andres Rodriguez summary TypeError: a bytes-like object is required, not 'str' at line 2 column 3 in file /etc/maas/preseeds/curtin_userdata MAAS should handle better errors in curtin preseeds
2016-02-24 17:52:21 Gavin Panella maas: status New Triaged
2016-02-24 17:52:30 Gavin Panella maas/1.10: status New Triaged
2016-04-06 15:16:12 Andres Rodriguez bug task deleted maas/1.10
2016-04-18 14:20:47 Andres Rodriguez summary MAAS should handle better errors in curtin preseeds [UI] MAAS should handle better errors in curtin preseeds
2016-05-02 23:41:33 Newell Jensen maas: assignee Newell Jensen (newell-jensen)
2016-06-06 17:53:33 Newell Jensen maas: importance Critical Wishlist
2016-08-22 16:54:29 Andres Rodriguez maas: milestone 2.0.0 2.1.0
2016-10-13 17:12:31 Andres Rodriguez maas: milestone 2.1.0 2.1.1
2016-11-04 14:31:53 Blake Rouse maas: milestone 2.1.1 2.1.2
2016-11-23 13:50:10 Andres Rodriguez maas: milestone 2.1.2 2.1.3
2016-11-24 02:49:56 Andres Rodriguez maas: milestone 2.1.3 2.2.0
2017-06-20 13:01:59 Andres Rodriguez maas: milestone 2.2.0 2.2.x
2017-07-08 00:27:24 Andres Rodriguez maas: milestone 2.2.x 2.3.0
2017-07-08 00:27:26 Andres Rodriguez maas: assignee Newell Jensen (newell-jensen)
2017-07-08 01:13:48 Andres Rodriguez maas: assignee Andres Rodriguez (andreserl)
2017-07-08 01:13:50 Andres Rodriguez maas: status Triaged In Progress
2017-07-08 01:16:47 Launchpad Janitor merge proposal linked https://code.launchpad.net/~andreserl/maas/+git/maas/+merge/327054
2017-07-20 04:15:47 Newell Jensen merge proposal unlinked https://code.launchpad.net/~andreserl/maas/+git/maas/+merge/327054
2017-07-20 04:23:02 Launchpad Janitor merge proposal linked https://code.launchpad.net/~newell-jensen/maas/+git/maas/+merge/327766
2017-07-20 19:14:16 MAAS Lander maas: status In Progress Fix Committed
2017-07-28 15:25:36 Andres Rodriguez maas: milestone 2.3.0 2.3.0alpha1
2017-08-02 12:09:58 Andres Rodriguez maas: status Fix Committed Fix Released