juju-backup is not a valid plugin

Bug #1389326 reported by Aaron Bentley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Marco Ceppi

Bug Description

juju plugins must support --description and --help, so that juju "help plugins" and "juju help $PLUGIN" can present them.

juju-backup does not:
$ PATH=./usr/lib/juju-1.21-alpha3/bin:$PATH juju help plugins
...
ERROR 'juju-backup --description': exit status 255
Juju Plugins

Plugins are implemented as stand-alone executable files somewhere in the user's PATH.
The executable command must be of the format juju-<plugin name>.

backup error occurred running 'juju-backup --description'
...
$ PATH=./usr/lib/juju-1.21-alpha3/bin:$PATH juju help backup
Connecting to machine 0
Permission denied (publickey,password).
ERROR subprocess encountered error code 255
ERROR subprocess encountered error code 255

Aaron Bentley (abentley)
tags: added: backup-restore
Revision history for this message
Aaron Bentley (abentley) wrote :

Bug #1391276 shows that juju-backup is dangerous, therefore running it when you only want to list plugins or get help is a serious issue.

Changed in juju-core:
importance: Medium → High
milestone: none → 1.22
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.22 → 1.23
Marco Ceppi (marcoceppi)
Changed in juju-core:
assignee: nobody → Marco Ceppi (marcoceppi)
Marco Ceppi (marcoceppi)
Changed in juju-core:
status: Triaged → In Progress
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.23 → 1.23-beta1
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.