-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add device connector to provision laptops with 24.04 using image-deploy.sh [OEX86-359] #304
Conversation
/canonical/self-hosted-runners/run-workflows d573c9e |
1cd08d1
to
ef133e6
Compare
hello @plars , |
Hi @Artur-at-work - thanks for bringing this to my attention. Can you give me some more information about this? I know that we have 3 oemscript device connectors already - one for each of HP, Lenovo, and Dell oem systems. Will the 24.04 oem images work with the existing device connectors? If not, then will this new script also work for provisioning oem images prior to 24.04? |
No, 24.04 oem images won't work with the old script/connectors. FYI, the ticket I saw related to device connector: https://warthogs.atlassian.net/browse/CERTTF-352 |
@Artur-at-work So just to be clear, if a system is deployed with the previous oemscript using 20.04 or 22.04 oem images, is it possible to deploy a 24.04 image with this new image-deploy.sh on the same system, and then later use the previous script to deploy a 22.04 or 20.04 image on that same system? Or do we need separate systems for deploy either ONLY 24.04, or ONLY older images? Have you been able to test whether deploying both older and newer images works on the same system? If we have a system in the lab where this is known to work, it would make a good one to test with. |
@plars, sure, feel free if any questions. "if a system is deployed with the previous oemscript using 20.04 or 22.04 oem images, is it possible to deploy a 24.04 image with this new image-deploy.sh on the same system" - Yes. "Or do we need separate systems for deploy either ONLY 24.04, or ONLY older images?" - Yes. Since 24.04 platform can only re-deploy 24.04, we'll need a separate platform to keep provisioning 22.04. Yes, I had DUT with 22.04 and ran image-deploy.sh from remote machine to install 24.04 on DUT successfully. Would you like to have access? Few more things:
|
@plars Changing this ticket to draft and will request review later. |
b08397e
to
49d96b8
Compare
@plars hi, I've updated the description and commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for working on this! A few comments below, but it would also be great if we could test it using a real machine. I'm not aware of any in the lab that are certified for 24.04 already where we could try this, are you?
device-connectors/src/testflinger_device_connectors/devices/noble_oemscript/noble_oemscript.py
Outdated
Show resolved
Hide resolved
device-connectors/src/testflinger_device_connectors/devices/noble_oemscript/noble_oemscript.py
Outdated
Show resolved
Hide resolved
2f8edee
to
8aada00
Compare
hi @plars, thank you for the feedback, the commit was updated. Could you review again please? |
6de97b2
to
6008182
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the fixes! +1
@Artur-at-work it looks like the only thing missing is that there are unsigned commits? We can't override this. If you need to go back and sign them, you can use a process like this to update them. |
@Artur-at-work one other question: could we get a modification to this (and hopefully the previous oemscript also), to allow downloading the iso directly to the DUT and extracting it there? That would help quite a bit. Right now, especially with the previous oemscript method, we have hundreds of these agents which sometimes get triggered all at once. Having all of these 4GB images downloading to the same agent host consumes a LOT of space very quickly. It has sometimes caused some of them to fail because of this. If we could have it pass the url to the script and the script downloads it on the DUT instead of having a local file that gets SCPed that would be really helpful. |
…ploy.sh with default config generation
Description
image-deploy.sh
script which is used by oem-swe-x86 team to deploy OEM images starting from 24.04 (no stock Ubuntu). It was adapted for agent environment and relies on agent to download the ISO.Resolved issues
Documentation
.github/CODEOWNERS
was updated to assign ownership of image-deploy.sh to oem-swe-x86device-connector-types.rst
added oem_autoinstall and provision_data keys for itTests
Run "shellcheck image-deploy.sh"
Test with agent:
provision_command: testflinger-device-connector oem_autoinstall provision -c /home/artur/testflinger/agent/default.yaml testflinger.json
Provisioned HP and Dell successfully:
https://testflinger.canonical.com/jobs/7ce8e9b6-ff07-4f9a-b2aa-8cad7fdcbba8
https://testflinger.canonical.com/jobs/cccb263e-7ebf-4f1f-8d3d-eb34fe0e41fa