formula exec env should include DEBIAN_FRONTEND=noninteractive

Bug #812343 reported by Mark Mims
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Low
Kapil Thangavelu
juju (Ubuntu)
Fix Released
Low
Unassigned
Oneiric
Won't Fix
Low
Unassigned

Bug Description

default formula execution environment should include

    DEBIAN_FRONTEND=noninteractive

Related branches

Revision history for this message
Jamu Kakar (jkakar) wrote :

We've been using 'DEBIAN_FRONTEND=noninteractive' in some of our
deployment scripts (Fabric-based) and have had issues when
configuration files change and the package asks if you want to use the
new one, the old one, look at the diff, etc. We've been using this,
which seems to be better:

DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::='--force-confnew'

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote : Re: [Bug 812343] Re: formula exec env should include DEBIAN_FRONTEND=noninteractive

For reference, this is from Smart (used in Landscape):

            os.environ[DEBIAN_FRONTEND] = "noninteractive"
            os.environ[APT_LISTCHANGES_FRONTEND] = "none"
            baseargs.append("--force-confold")

Changed in ensemble:
milestone: none → eureka
importance: Undecided → Low
Changed in juju:
milestone: eureka → none
Changed in juju:
assignee: nobody → Kapil Thangavelu (hazmat)
milestone: none → eureka
Changed in juju:
status: New → In Progress
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

in this case juju isn't actually executing apt-get...

options that i see are.

1. rely on env changes for hook execution.
2. globally change apt config on the machine.
3. alias the cli to a version with the appros cli args.

we should definitely go ahead and do 1.

Changed in juju (Ubuntu):
milestone: none → oneiric-updates
Changed in juju:
status: In Progress → Fix Released
Changed in juju (Ubuntu):
milestone: oneiric-updates → none
status: New → Triaged
Changed in juju (Ubuntu Oneiric):
importance: Undecided → Low
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Fixed in r399, precise has r424

Changed in juju (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in juju (Ubuntu Oneiric):
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.