django-admin prints spurious messages to stdout, breaking scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Raphaël Badin | ||
python-django (Ubuntu) |
Fix Committed
|
Undecided
|
Raphaël Badin |
Bug Description
Scripts in MAAS's packaging rely on shell code like the following:
APIKEY=
maas-region-admin is a shell script that execs django-admin.
However, the new django-admin in Utopic prints lines like:
Using: Python 2.7
to _stdout_ as part of its normal operation. This breaks programs that rely on capturing stdout.
I would expect that a message of this nature should go to stderr at least. Better for us would be if it were omitted altogether, but there may be good reasons for it to stay.
We can work around this in MAAS, by bypassing django-admin.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: python-
ProcVersionSign
Uname: Linux 3.13.0-35-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.7-0ubuntu1
Architecture: amd64
Date: Wed Sep 3 20:41:20 2014
Dependencies: libjs-jquery 1.7.2+dfsg-3ubuntu2
PackageArchitec
ProcEnviron:
TERM=vt102
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: python-django
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Graham Binns (community): Approve
-
Diff: 43 lines (+20/-8)2 files modifieddebian/changelog (+4/-0)
debian/extras/maas-region-admin (+16/-8)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in maas: | |
milestone: | none → 1.7.0 |
Changed in python-django (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Raphaël Badin (rvb) |
Changed in python-django (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This bug was filed in upstream MAAS and not in Ubuntu. It was fixed as part of 1.7. This was fixed and verified to be working in all Ubuntu releases. Ubuntu 1.7 is being SRU'd. Marking this as verification-done, as it seems to be blocking SRU.