exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 41 when parsing systemd status output

Bug #1472116 reported by Evgeny Eralev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Won't Fix
Critical
Unassigned

Bug Description

Juju 1.24 failed bootstrap MAAS 1.8 both on upgraded and newly installed Ubuntu 15.04

Tags: 1.8 juju
Revision history for this message
Evgeny Eralev (eralev) wrote :
tags: removed: 1.24
Revision history for this message
Evgeny Eralev (eralev) wrote :
Revision history for this message
Evgeny Eralev (eralev) wrote :
Download full text (7.4 KiB)

eradmin@era-maas:~$ juju bootstrap -e maas --debug
2015-07-07 06:56:32 INFO juju.cmd supercommand.go:37 running juju [1.24.0-vivid-amd64 gc]
2015-07-07 06:56:33 DEBUG juju.provider.maas environprovider.go:28 opening environment "maas".
2015-07-07 06:56:33 DEBUG juju.environs.configstore disk.go:308 writing jenv file
2015-07-07 06:56:33 DEBUG juju.environs.configstore disk.go:432 writing jenv file to /home/eradmin/.juju/environments/maas.jenv
2015-07-07 06:56:33 INFO juju.network network.go:194 setting prefer-ipv6 to false
2015-07-07 06:56:33 INFO juju.cmd cmd.go:113 Bootstrapping environment "maas"
2015-07-07 06:56:33 DEBUG juju.environs.bootstrap bootstrap.go:98 environment "maas" supports service/machine networks: true
2015-07-07 06:56:33 DEBUG juju.environs.bootstrap bootstrap.go:100 network management by juju enabled: true
2015-07-07 06:56:33 DEBUG juju.environs.bootstrap tools.go:73 looking for bootstrap tools: version=<nil>
2015-07-07 06:56:33 INFO juju.environs.tools tools.go:86 reading tools with major.minor version 1.24
2015-07-07 06:56:33 DEBUG juju.environs.tools urls.go:108 trying datasource "keystone catalog"
2015-07-07 06:56:34 DEBUG juju.environs.simplestreams simplestreams.go:659 using default candidate for content id "com.ubuntu.juju:released:tools" are {20150701 mirrors:1.0 content-download streams/v1/cpc-mirrors.sjson []}
2015-07-07 06:56:34 DEBUG juju.environs.simplestreams simplestreams.go:429 read metadata index at "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson"
2015-07-07 06:56:36 DEBUG juju.environs.simplestreams simplestreams.go:968 metadata: &{map[com.ubuntu.juju:win8:amd64:{ 1.21.1 amd64 map[20150623:0xc208005ec0]} com.ubuntu.juju:14.04:ppc64:{ 1.17.2 ppc64 map[20150623:0xc2082c2d80]} com.ubuntu.juju:14.10:i386:{ 1.18.2 i386 map[20150623:0xc2082c3b60]} com.ubuntu.juju:15.04:i386:{ 1.20.12 i386 map[20150623:0xc208004a80]} com.ubuntu.juju:win2012:amd64:{ 1.21.1 amd64 map[20150623:0xc208005320]} com.ubuntu.juju:win2012r2:amd64:{ 1.21.1 amd64 map[20150623:0xc208005a40]} com.ubuntu.juju:win7:amd64:{ 1.21.1 amd64 map[20150623:0xc208005bc0]} com.ubuntu.juju:12.04:armhf:{ 1.16.2 armhf map[20150623:0xc208134600]} com.ubuntu.juju:13.10:armhf:{ 1.16.2 armhf map[20150623:0xc208135620]} com.ubuntu.juju:14.04:ppc64el:{ 1.17.2 ppc64el map[20150623:0xc2082c2fc0]} com.ubuntu.juju:14.04:arm64:{ 1.17.2 arm64 map[20150623:0xc208135e60]} com.ubuntu.juju:win2012hv:amd64:{ 1.21.1 amd64 map[20150623:0xc208005740]} com.ubuntu.juju:win2012hvr2:amd64:{ 1.21.1 amd64 map[20150623:0xc2080058c0]} com.ubuntu.juju:15.04:ppc64el:{ 1.20.12 ppc64el map[20150623:0xc208004f00]} com.ubuntu.juju:12.10:amd64:{ 1.15.0 amd64 map[20150623:0xc208134ae0]} com.ubuntu.juju:13.04:amd64:{ 1.15.0 amd64 map[20150623:0xc208134fc0]} com.ubuntu.juju:14.10:ppc64el:{ 1.18.4 ppc64el map[20150623:0xc2082c3f80]} com.ubuntu.juju:13.10:i386:{ 1.15.0 i386 map[20150623:0xc208135800]} com.ubuntu.juju:14.10:ppc64:{ 1.18.4 ppc64 map[20150623:0xc2082c3da0]} com.ubuntu.juju:15.04:ppc64:{ 1.20.12 ppc64 map[20150623:0xc208004d20]} com.ubuntu.juju:12.04:amd64:{ 1.15.0 amd64 map[20150623:0xc208134240]} com.ubuntu.juju:12.04:i38...

Read more...

Revision history for this message
Evgeny Eralev (eralev) wrote :

eradmin@era-maas:~$ dpkg -l '*maas*'|cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-=============================-============-======================================
ii maas 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS server all-in-one metapackage
ii maas-cli 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS command line API tool
ii maas-cluster-controller 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS server cluster controller
ii maas-common 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS server common files
ii maas-dhcp 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS DHCP server
ii maas-dns 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS DNS server
ii maas-proxy 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS Caching Proxy
ii maas-region-controller 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS server complete region controller
ii maas-region-controller-min 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS Server minimum region controller
ii python-django-maas 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS server Django web framework
ii python-maas-client 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS python API client
ii python-maas-provisioningserver 1.8.0+bzr4001-0ubuntu2~vivid1 all MAAS server provisioning libraries

description: updated
Revision history for this message
Evgeny Eralev (eralev) wrote :
Revision history for this message
Raphaël Badin (rvb) wrote :

Thanks for the detailed bug report. It seems your config (your locale in particular) causes MAAS to crash when parsing the status of the dhcp server service.

Can you please paste the output of running this on the MAAS server:
sudo su
export LANG=en_US.UTF-8
export LC_CTYPE=C
service maas-dhcpd status

summary: - Juju failed to bootstrap MAAS with 500 INTERNAL SERVER ERROR / unknown
- error
+ exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in
+ position 41 when parsing systemd status output
Revision history for this message
Raphaël Badin (rvb) wrote :

The relevant exception in your logs is http://paste.ubuntu.com/11834761/.

Changed in maas:
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Evgeny Eralev (eralev) wrote :

eradmin@era-maas:~$ sudo su
[sudo] password for eradmin:
root@era-maas:/home/eradmin# export LANG=en_US.UTF-8
root@era-maas:/home/eradmin# export LC_CTYPE=C
root@era-maas:/home/eradmin# service maas-dhcpd status
* maas-dhcpd.service - MAAS instance of ISC DHCP server for IPv4
   Loaded: loaded (/lib/systemd/system/maas-dhcpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Вт. 2015-07-07 19:01:23 YEKT; 3min 57s ago
     Docs: man:dhcpd(8)
  Process: 1657 ExecStartPre=/bin/chown root:root /var/lib/maas/dhcp (code=exited, status=0/SUCCESS)
  Process: 1642 ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp (code=exited, status=0/SUCCESS)
  Process: 1637 ExecStartPre=/bin/chown root:root /run/maas/dhcp (code=exited, status=0/SUCCESS)
  Process: 1627 ExecStartPre=/bin/mkdir -p /run/maas/dhcp (code=exited, status=0/SUCCESS)
 Main PID: 1664 (dhcpd)
   Memory: 10.2M
   CGroup: /system.slice/maas-dhcpd.service
           `-1664 dhcpd -user dhcpd -group dhcpd -f -q -4 -pf /run/maas/dhcp/dhcpd.pid -cf /etc/maas/dhcpd.conf -lf /var/l...

июля 07 19:01:22 era-maas systemd[1]: Starting MAAS instance of ISC DHCP server for IPv4...
июля 07 19:01:23 era-maas systemd[1]: Started MAAS instance of ISC DHCP server for IPv4.
июля 07 19:01:23 era-maas dhcpd[1664]: Wrote 0 class decls to leases file.
июля 07 19:01:23 era-maas dhcpd[1664]: Wrote 0 deleted host decls to leases file.
июля 07 19:01:23 era-maas dhcpd[1664]: Wrote 0 new dynamic host decls to leases file.
июля 07 19:01:23 era-maas dhcpd[1664]: Wrote 2 leases to leases file.
июля 07 19:01:23 era-maas dhcpd[1664]: Server starting service.

Revision history for this message
Evgeny Eralev (eralev) wrote :

Problem is solving by changing Language Support ->Regional Formats to English (United States) for both local account and Apply system-Wide

Changed in maas:
importance: Critical → High
Changed in maas:
importance: High → Critical
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Dear user,

This is an automated message.

We believe this bug report is no longer an issue in the latest version of MAAS. For such reason, we are making this issue as Won't Fix. If you believe this issue is still present in the latest version of MAAS, please re-open this bug report.

Changed in maas:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.