Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Zapper IOT] should not apply ssh-copy-id for all zapper iot provision method #465

Open
seankingyang opened this issue Feb 17, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@seankingyang
Copy link

seankingyang commented Feb 17, 2025

If using the zapper iot provision image (Ubuntu Core) to machine and using the console-conf to setting the profile.
We should use the ce-certification-qa email, once machine setting is done, the ssh key already in the DUT.
The agent already have the access to the DUT.

https://github.com/canonical/testflinger/blob/main/device-connectors/src/testflinger_device_connectors/devices/zapper_iot/__init__.py#L79-L82

    def _post_run_actions(self, args):
        """Run further actions after Zapper API returns successfully."""

        self._copy_ssh_id()

If using the console-conf, there is no local password in it.
If still run self._copy_ssh_id(), the sshpass -p <test_password> ssh-copy-id ce-certification-qa@<DUT IP> will be run, and the return code will be non-zero.

$ sshpass -p <test_password> ssh-copy-id ce-certification-qa@<DUT IP>
$ echo $?
> 6

Related with this PR: #446

Copy link

Thank you for reporting your feedback to us!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CERTTF-503.

This message was autogenerated

@seankingyang seankingyang added the bug Something isn't working label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant