[2.7.0] function tools error out with "bad request: unknown command: function-set:

Bug #1859174 reported by Dmitrii Shcherbakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

juju exec --unit apache-httpd/0 'printenv JUJU_VERSION'
2.7.0

juju exec --unit apache-httpd/0 'type action-set'
action-set is /var/lib/juju/tools/unit-apache-httpd-0/action-set

juju exec --unit apache-httpd/0 'type function-set'
function-set is /var/lib/juju/tools/unit-apache-httpd-0/function-set

So the aliases are there, however running them results in errors:

juju exec --unit apache-httpd/0 'function-set -h'
ERROR bad request: unknown command: function-set

juju exec --unit apache-httpd/0 '/var/lib/juju/tools/unit-apache-httpd-0/function-set -h'
ERROR bad request: unknown command: function-set

juju exec --unit apache-httpd/0 'action-set -h'
Usage: action-set <key>=<value> [<key>=<value> ...]

Summary:
set action results
# ...

Just in case, the symlinks are there:

juju exec --unit apache-httpd/0 'stat `which function-set`'
  File: /var/lib/juju/tools/unit-apache-httpd-0/function-set -> /var/lib/juju/tools/2.7.0-bionic-amd64/jujud
  Size: 44 Blocks: 8 IO Block: 4096 symbolic link
Device: 81h/129d Inode: 36869 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-01-10 13:47:12.716375380 +0000
Modify: 2020-01-10 13:44:35.688486354 +0000
Change: 2020-01-10 13:44:35.688486354 +0000
 Birth: -

description: updated
description: updated
description: updated
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Looks like this will be fixed in 2.7.1 based on testing of the 2.7.1 candidate build:

juju run --unit apache-httpd/0 'printenv JUJU_VERSION && function-set -h'
2.7.1
Usage: function-set <key>=<value> [<key>=<value> ...]
# ...

Revision history for this message
Ian Booth (wallyworld) wrote :

Yes, we fixed this just after 2.7.0 was released

Changed in juju:
milestone: none → 2.7.1
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Ian Booth (wallyworld)
Changed in juju:
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.