Skip to content

Testflinger support no provisioning data#80

Merged
sergiocazzolato merged 4 commits intomainfrom
testflinger-support-no-provisioning-data
Mar 12, 2026
Merged

Testflinger support no provisioning data#80
sergiocazzolato merged 4 commits intomainfrom
testflinger-support-no-provisioning-data

Conversation

@sergiocazzolato
Copy link
Contributor

@sergiocazzolato sergiocazzolato commented Mar 11, 2026

These are the changes to connect to devices which don't require provision data. This is required to connect for example to the pune device which needs to be used to test resealing (snapd bug found during 2.74.1 beta validation).

I have tested this using:

            - ubuntu-core-20-64-pune:
                  queue: pune-001
                  workers: 1
                  reserve-key: lp:sergio-j-cazzolato
                  ssh-rsa-key: '$(HOST: echo "$SPREAD_SSH_KEY")'
                  ssh-key-pass: '$(HOST: echo "$SPREAD_SSH_PASS")'
                  username: ubuntu

@sergiocazzolato
Copy link
Contributor Author

test results:

../main -debug testflinger:ubuntu-core-20-64-pune:tests/reboot
2026-03-11 18:28:03 Project content is packed for delivery (1.58KB).
2026-03-11 18:28:03 If killed, discard servers with: spread -reuse-pid=317527 -discard
2026-03-11 18:28:03 Allocating testflinger:ubuntu-core-20-64-pune...
2026-03-11 18:28:04 TestFlinger job c0db6d35-8f92-4b42-8131-859aa30c50aa created for system ubuntu-core-20-64-pune
2026-03-11 18:28:04 Waiting for TestFlinger ubuntu-core-20-64-pune to have an address...
2026-03-11 18:28:55 Reserved device with ip 10.102.164.172
2026-03-11 18:28:55 Connecting to testflinger:ubuntu-core-20-64-pune (ubuntu-core-20-64-pune)...
2026-03-11 18:28:59 Connected to testflinger:ubuntu-core-20-64-pune (ubuntu-core-20-64-pune) at 10.102.164.172.
2026-03-11 18:28:59 Sending project content to testflinger:ubuntu-core-20-64-pune (ubuntu-core-20-64-pune)...
2026-03-11 18:29:03 Executing testflinger:ubuntu-core-20-64-pune:tests/reboot (ubuntu-core-20-64-pune) (1/1)...
2026-03-11 18:29:04 Rebooting on ubuntu-core-20-64-pune (testflinger:ubuntu-core-20-64-pune:tests/reboot) as requested...
2026-03-11 18:30:09 Connected after reboot to ubuntu-core-20-64-pune (testflinger:ubuntu-core-20-64-pune:tests/reboot)
2026-03-11 18:30:11 Discarding testflinger:ubuntu-core-20-64-pune (ubuntu-core-20-64-pune)...
2026-03-11 18:30:12 Successful tasks: 1
2026-03-11 18:30:12 Aborted tasks: 0

for _, path := range endpoints {
output, err := p.dop("GET", path, nil)
if err != nil {
return "", fmt.Errorf("error requesting %s: %v", path, err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume it won't fall into this case if we do have provision data? I'm not very familiar with the endpoints and their return values

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested both, but the test we run in the ci is just that scenario, so let's see if that test pass.

Copy link
Collaborator

@maykathm maykathm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just asked a clarification question for my understanding. Looks good, thanks

@sergiocazzolato sergiocazzolato merged commit 0aaebe1 into main Mar 12, 2026
9 checks passed
@sergiocazzolato sergiocazzolato deleted the testflinger-support-no-provisioning-data branch March 12, 2026 14:19
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.

2 participants