-
Notifications
You must be signed in to change notification settings - Fork 156
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Command attempted
scw init secret-key=${scw-secret-key} send-telemetry=false install-autocomplete=false with-ssh-key=false -c "/root/.config/scw/config.yaml"
scw instance ip create -c "/root/.config/scw/config.yaml" project-id=${project-id} server=${server-id} zone=${scw-zone}Expected Behavior
A public IP is created and attached to the server instance.
Actual Behavior
When executed manually, everything works correctly.
When executed by a script called by cloud-init, the following error is thrown by both commands: Scaleway-sdk-go: cannot read config file: read .: is a directory
When omitting the -c flag, the following error is thrown by the scw init command: Open .: is a directory; the ip create command fails with the same error reported above.
Omitting the -c flag and specifying the SCW_CONFIG_PATH env variable shows no difference.
The config file seems to get created correctly (and on the right path, when specified), while the ip create command always fails (does not create the IP).
Executing the commands either manually or via a manually-executed script (after SSHing into the instance) works correctly.
More info
scw version:
Version 2.3.1
BuildDate 2021-06-08T11:54:02
GoVersion go1.16.4
GitBranch new-release
GitCommit 07dbaebc
GoArch amd64
GoOS linux
uname:
Linux 5.10.28-scaleway #1 SMP x86_64 GNU/Linux