-
Notifications
You must be signed in to change notification settings - Fork 72
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
charmcraft
installs newer version in LXC container & doesn't respect pinned snap revision
#1202
Comments
From some testing, it appears that charmcraft gets the target revision from
|
…in cached LXC container Potential workaround for canonical/charmcraft#1202
…in cached LXC container Potential workaround for canonical/charmcraft#1202
…in cached LXC containers (#74) And add charmcraft snap revision to cache key Potential workaround for canonical/charmcraft#1202
Thanks for the report. Craft-providers assumes the snap is not refreshed or being installed by another entity. This assumption contributes to this problem and could be improved. Craft-providers is already disabling automatic snap refreshes here, but with the old syntax ( Your workaround uses the new syntax ( |
Yes it's likely it hasn't been noticed—normally we use the latest version of charmcraft but because of #1179 we've been pinning to 2.3.0 because we cannot build our charm with the latest version |
As part of this enhancement, we will be adding a regression test to charmcraft where we create a charm and assert the automatic refreshes are held. |
## Changelog ### 1.15.0 (2023-08-21) - Update base compatibility tag from `base-v1` to `base-v2` - Use `snap refresh --hold` inside instances - Re-level log messages - Add more info-level log messages - Update links from linuxcontainers.org to ubuntu.com - Set timezone of LXD instances to match host's timezone - Add name and install recommendations to Providers Resolves #1202 (CRAFT-1953) Signed-off-by: Callahan Kovacs <[email protected]> Co-authored-by: Alex Lowe <[email protected]>
Bug Description
Because of #1179, our team is currently using charmcraft 2.3.0 by installing the snap with
--revision=1349
However, inside the LXC container charmcraft is installed as 2.3.1 and we're running into the same issue as #1179
Expected behavior
charmcraft has the same version in the LXC container as charmcraft on the host machine
To Reproduce
Unable to reproduce so far
Examples:
https://github.com/canonical/mysql-operator/actions/runs/5745497262/job/15573643405
https://github.com/canonical/mysql-operator/actions/runs/5751410879/job/15590220679
Environment
Ubuntu 22.04 LTS
charmcraft.yaml
Relevant log output
The text was updated successfully, but these errors were encountered: