bootstrap insists on a logfile

Bug #1050169 reported by Steve McInerney
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pyjuju
New
Undecided
Unassigned

Bug Description

Help implies that --logfile is optional; it's not, is mandatory.

steve@dogmatix:~$ juju bootstrap
usage: juju [-h] [--verbose] [--log-file LOG_FILE] ...
....
juju: error: argument --log-file/-l: invalid FileType('a') value: <open file '<stderr>', mode 'w' at 0xb75330d0>

steve@dogmatix:~$ juju -l /tmp/juju.log bootstrap
steve@dogmatix:~$

steve@dogmatix:~$ apt-cache policy juju
juju:
  Installed: 0.5.1+bzr574-0juju2~quantal1

Steve McInerney (spm)
description: updated
Revision history for this message
Steve McInerney (spm) wrote :

Presumably related:
steve@dogmatix:~$ juju status
usage: juju status [-h] [--environment ENVIRONMENT] [--output OUTPUT]
                   [--format FORMAT]
                   [scope [scope ...]]
juju status: error: argument --output: invalid FileType('w') value: <open file '<stdout>', mode 'w' at 0xb7545078>

steve@dogmatix:~$ juju status --output /tmp/juju.out
usage: juju [-h] [--verbose] [--log-file LOG_FILE] ...
....
juju: error: argument --log-file/-l: invalid FileType('a') value: <open file '<stderr>', mode 'w' at 0xb74e20d0>

steve@dogmatix:~$ juju --log-file /tmp/juju.log status --output /tmp/juju.out
^^ seems to be the magic incantation to make it work.

Revision history for this message
Steve McInerney (spm) wrote :

ftr. this also works:
juju --log-file /dev/stderr status --output /dev/stderr

or s/stderr/stdout/g works as well.

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.