[2.7.0] function tools error out with "bad request: unknown command: function-set:
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 exec --unit apache-httpd/0 'type function-set'
function-set is /var/lib/
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/
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/
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 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
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> ...]
# ...