-
Notifications
You must be signed in to change notification settings - Fork 11
no action function or plugin with name found #44
Description
What happened:
Running sow in concourse CI will produce an error.
What you expected to happen:
sow deploy -A i can haz gardener
How to reproduce it (as minimally and precisely as possible):
Make a docker container.
Run sow deploy -A from within concourse CI.
Anything else we need to know:
Bug is in https://github.com/gardener/sow/blame/master/lib/utils#L923
Can be reproduced locally with test -x in docker and in concourse CI by using fly intercept and also running test -x.
The test -x in the concourse CI will fail because even though the file is rwx the test -x will error out.
However, executing the plugin file works.
Which makes this a bug in the ==> detection <== of your executability of a plugin.
Full stacktrace:
++ lookupFileIn -x plugins/git/plugin /opt/ske/ske-landscape/crop /opt/ske/ske-landscape/crop/components/dns-controller /opt/ske/ske-landscape /opt/ske/ske-landscape/sow
++ local all
++ local opt=-f
++ '[' 6 -gt 0 ']'
++ case "$1" in
++ opt=-x
++ shift
++ '[' 5 -gt 0 ']'
++ case "$1" in
++ break
++ local file=plugins/git/plugin
++ shift
++ [[ plugins/git/plugin = /* ]]
++ for d in "$@"
++ '[' -x /opt/ske/ske-landscape/crop/plugins/git/plugin ']'
++ for d in "$@"
++ '[' -x /opt/ske/ske-landscape/crop/components/dns-controller/plugins/git/plugin ']'
++ for d in "$@"
++ '[' -x /opt/ske/ske-landscape/plugins/git/plugin ']'
++ for d in "$@"
++ '[' -x /opt/ske/ske-landscape/sow/plugins/git/plugin ']'
==> this one works on docker run but not in concourse CI.
- plugin=
- '[' -n '' ']'
- fail 'no action function or plugin with name '''git''' found'
- INTENDED_EXIT=X
- error 'Error: no action function or plugin with name '''git''' found'
- color_error 'Error: no action function or plugin with name '''git''' found'
- color_red 'Error: no action function or plugin with name '''git''' found'
- _echo '�[0;91m' 'Error: no action function or plugin with name '''git''' found'
- local 'c=�[0;91m'
- local o
- shift
- '[' 'Error: no action function or plugin with name '''git''' found' = -n ']'
- '[' x -a '(' -t 1 -o x = X ')' ']'
- echo '�[0;91m�[1mError: no action function or plugin with name '''git''' found�[0m'
�[0;91m�[1mError: no action function or plugin with name 'git' found�[0m - exit 1
++ handle_error
Environment:
Concourse CI