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

Azure PRO image boot time quite long due to snap downloads of core and canonical-livepatch install #1502

Closed
blackboxsw opened this issue Mar 31, 2021 · 1 comment

Comments

@blackboxsw
Copy link
Collaborator

cloud-init modules:config stage waits ~74-80 seconds of download time on initial system boot on Azure Ubuntu PRO images. This blocking was is due to ua-auto-attach which spends > 1 minute of it's time downloading core and canonical-livepatch snaps. Details in the original cloud-init bug LP: #1921429

Here are some startup logs that point to the download costs for snap installs:

$ systemd-analyze blame
    1min 51.944s ua-auto-attach.service
         17.921s cloud-init.service

$ snap change 2 --abs-time | grep Download
            Spawn Time                       Completion time
Done    2021-03-31T20:27:14Z  2021-03-31T20:28:32Z  Download snap "canonical-livepatch" (95) from channel "stable"
Done    2021-03-31T20:27:15Z  2021-03-31T20:28:24Z  Download snap "core" (10908) from channel "stable"

Biggest gap in ua client logs appears to block on this "snap install of canonical-livepatch":

2021-03-31 20:27:14,328 - util.py:(509) [DEBUG]: Ran cmd: /usr/bin/snap wait system seed.loaded, rc: 0 stderr: b''
2021-03-31 20:28:37,799 - util.py:(509) [DEBUG]: Ran cmd: /usr/bin/snap install canonical-livepatch, rc: 0 stderr: b''
@blackboxsw blackboxsw added this to the v27 - ua fix and sru milestone Mar 31, 2021
@blackboxsw
Copy link
Collaborator Author

Filed related request for canonical-livepatch support of core18 vs core snaps https://github.com/CanonicalLtd/livepatch-client/issues/181

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

No branches or pull requests

2 participants