Skip to content

fix: make sure directory of copied file exists, ensure flash and reset tools are found in path - #57

Merged
aabadie merged 2 commits into
iot-lab:masterfrom
aabadie:fix/flash-open-linux
Nov 27, 2026
Merged

aabadie merged 2 commits into
iot-lab:masterfrom
aabadie:fix/flash-open-linux

Conversation

@aabadie

@aabadie aabadie commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Since the move to asyncssh, a file is copied with an SFTP put, which does not create the directory of the remote file as scp did: flash, copy-file and run-script failed for an account whose shared/.iotlabsshcli did not exist on the frontend of a site, that is at its first use there. The copy failed, the nodes of the site were then reported as failed without the command being run. The directory is created before the put. Tested against an SFTP server run on the loopback: the mocked client took any path.
flash and reset ran /usr/bin/iotlab_flash and /usr/bin/iotlab_reset, where the Yocto images have them. The OCI open Linux images install the gateway code with pip: the commands are in /usr/local/bin, and the flash of the M3 failed on every node. The profile is already sourced before the command: it gives a PATH with both directories.
@aabadie
aabadie force-pushed the fix/flash-open-linux branch from c36b999 to 1a229a6 Compare November 27, 2026 14:24
@aabadie
aabadie merged commit 647deb4 into iot-lab:master Nov 27, 2026
5 checks passed
@aabadie
aabadie deleted the fix/flash-open-linux branch November 27, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant