[Bug 1365130] [NEW] django-admin prints spurious messages to stdout, breaking scripts

Gavin Panella gavin.panella at canonical.com
Wed Sep 3 19:50:55 UTC 2014


Public bug reported:

Scripts in MAAS's packaging rely on shell code like the following:

  APIKEY=$(maas-region-admin apikey --username admin)

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-django-common 1.6.5-3
ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6
Uname: Linux 3.13.0-35-generic x86_64
NonfreeKernelModules: veth xt_CHECKSUM iptable_mangle ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack xt_tcpudp bridge stp llc iptable_filter ip_tables x_tables snd_ens1371 snd_ac97_codec ac97_bus gameport snd_pcm snd_page_alloc snd_seq_midi coretemp snd_seq_midi_event kvm_intel kvm snd_rawmidi crct10dif_pclmul crc32_pclmul ghash_clmulni_intel vmw_balloon aesni_intel aes_x86_64 snd_seq lrw gf128mul glue_helper ablk_helper cryptd snd_seq_device serio_raw snd_timer snd bnep rfcomm bluetooth soundcore vmwgfx ttm drm vmxnet3 vmw_vmci i2c_piix4 parport_pc shpchp ppdev lp parport mac_hid hid_generic usbhid hid mptspi psmouse ahci libahci e1000 floppy mptscsih mptbase
ApportVersion: 2.14.7-0ubuntu1
Architecture: amd64
Date: Wed Sep  3 20:41:20 2014
Dependencies: libjs-jquery 1.7.2+dfsg-3ubuntu2
PackageArchitecture: all
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)

** Affects: maas
     Importance: Critical
         Status: Triaged

** Affects: python-django (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug utopic

** Also affects: maas
   Importance: Undecided
       Status: New

** Changed in: maas
       Status: New => Triaged

** Changed in: maas
   Importance: Undecided => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-django in Ubuntu.
https://bugs.launchpad.net/bugs/1365130

Title:
  django-admin prints spurious messages to stdout, breaking scripts

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1365130/+subscriptions



More information about the Ubuntu-server-bugs mailing list