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

How to use focal images? #1417

Closed
xnox opened this issue Mar 9, 2020 · 10 comments · Fixed by #1520
Closed

How to use focal images? #1417

xnox opened this issue Mar 9, 2020 · 10 comments · Fixed by #1520
Labels
Milestone

Comments

@xnox
Copy link

xnox commented Mar 9, 2020

focal images already exist in daily streams, but not yet in release streams.

It seems to me, that once they do land in the release stream "multipass will not just work" because of the hardcoded mappings at https://github.com/canonical/multipass/blob/master/src/daemon/custom_image_host.cpp#L56

Could you please update those mappings for core20 / 20.04 / focal pointing at the non-existent release streams? Such that when they will be published there, "multipass just starts working" with them?

It would be also nice to have ability to point multipass at the daily streams, but imho that is a separate request which i have filed at #1416

@Saviq
Copy link
Collaborator

Saviq commented Mar 10, 2020

@xnox focal images are already available with daily:focal, is that not what you're after? If you mean core20 images, then similar to #1416 we "bless" those images once they becomes stable. There are no streams for Core images that I know of?

@xnox
Copy link
Author

xnox commented Mar 18, 2020

I'm talking about snapcraft VMs that are used as snap build-environments. Those are classic VMs use buildd variant. Currently there is only a daily stream for buildds. From https://cloud-images.ubuntu.com/buildd/daily/streams/v1/com.ubuntu.cloud:daily:download.json I think.

It would be nice if you didn't hardcode blessings. For example, you can be sensitive to the "supported: true|false" key in the stream. Currently focal has it set to false, whilst others are set to true. And I would want to have a way to "launch" unblessed images, or self bless them myself. Or launch the one that is unsupported.

Also, why are we having mappings in the multipass code, do you want more aliases on the images? Cause for example, in the buildd streams we can add alias "core20" on the focal image, and "core18" on the bionic one, etc.

@Saviq
Copy link
Collaborator

Saviq commented Mar 18, 2020

@xnox there are no other images than focal in the buildd stream (yet, that I know of) that Multipass can consume (there are no VM images, only LXD ones). We'll definitely get on that bandwagon when they're up.

As for those mappings, snapcraft basically calls multipass launch snapcraft:$base, as long as there are only core* bases, we could just point at, a suitably populated, buildd stream. But we're going to have bases that won't live in that stream - so there has to be a mapping somewhere. It may be more natural to go into snapcraft, like it did for the LXD backend.

@xnox
Copy link
Author

xnox commented Mar 18, 2020

/me goes to see where/what/why buildd VM images are not up for focal.

@xnox
Copy link
Author

xnox commented Mar 18, 2020

Ergh, they are there....

      "disk1.img": {
       "ftype": "disk1.img", 
       "path": "focal/20200313/focal-server-cloudimg-amd64-disk.img", 

https://cloud-images.ubuntu.com/buildd/daily/focal/current/

has https://cloud-images.ubuntu.com/buildd/daily/focal/current/focal-server-cloudimg-amd64-disk.img

Is that not what multipass/snapcraft/core20 VMs need ?

@xnox
Copy link
Author

xnox commented Mar 18, 2020

Maybe i should just wait, cause it seems like they are not there for other series yet.

@Saviq
Copy link
Collaborator

Saviq commented Mar 18, 2020

@xnox yes, they're there for focal, and you can use Multipass from #1213 (snap refresh multipass --channel edge/pr1213) to get at that.

@Saviq
Copy link
Collaborator

Saviq commented Mar 18, 2020

(edited above to have the right PR number)

@xnox
Copy link
Author

xnox commented May 1, 2020

@Saviq when will that land? It looks like multipass is the last one that doesn't support core20 yet.

git clone -b 20 https://git.launchpad.net/~canonical-foundations/snap-pc/+git/github-mirror-amd64
snapcraft

Fails. With that PR it starts up the VM.

Yet, creating a /+newsnap for it in launchpad works with stock/default settings, no tricks, no hacks. https://launchpad.net/~xnox/+snap/test-gadget-base-core20

And running snapcraft --use-lxd locally also works.

Ubuntu 20.04 LTS is now out, and all the buildd images and core20 are now stable, and have security support.

@Saviq Saviq added bug and removed question labels May 2, 2020
@Saviq Saviq linked a pull request May 2, 2020 that will close this issue
@Saviq
Copy link
Collaborator

Saviq commented May 2, 2020

Hi @xnox, the buildd VM images are not considered stable, because there's no CI for them (to test what they're meant to be doing), so there's no way to automatically promote from daily to release. We'll be working on that very soon.

AFAICT, core20 isn't stable either?

I've now proposed #1520 to add the minimal 20.04 image as core20 builder - the same that we use for core16 and core20.

bors bot added a commit that referenced this issue May 7, 2020
1520: [custom] add snapcraft:core20 minimal image (Fixes #1417) r=townsend2010 a=Saviq

While we're working on the buildd images, `core20` can now be supported using the `minimal` images.

Co-authored-by: Michał Sawicz <michal@sawicz.net>
@Saviq Saviq added this to the v1.3.0 milestone May 7, 2020
bors bot added a commit that referenced this issue May 7, 2020
1520: [custom] add snapcraft:core20 minimal image (Fixes #1417) r=townsend2010 a=Saviq

While we're working on the buildd images, `core20` can now be supported using the `minimal` images.

Co-authored-by: Michał Sawicz <michal@sawicz.net>
@bors bors bot closed this as completed in bb033e3 May 7, 2020
@bors bors bot closed this as completed in #1520 May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants