bootstrapping juju installs 'core' but 'juju-db' depends on 'core18'

Bug #1920033 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Simon Richardson
2.9
Fix Released
High
Simon Richardson
3.0
Fix Released
High
Simon Richardson

Bug Description

I was debugging time to 'snap install juju-db' in fresh containers, and I was surprised that 'snap install juju-db' was faster than 'snap install core; snap install juju-db'.

This is because in Focal images, 'core18' is there by default, and juju-db itself doesn't depend on 'core' but only depends on 'core18'.

So we are wasting a significant amount of disk space and download time installing the 'core' snap that isn't even needed.

We should either only target 'juju-db' in which case it will pull down whatever base it needs, or update our code to install core18 rather than core.

Tags: mongodb snap
John A Meinel (jameinel)
Changed in juju:
milestone: none → 2.8.11
assignee: nobody → Simon Richardson (simonrichardson)
Revision history for this message
Simon Richardson (simonrichardson) wrote :

I'll tackle this when refactoring snap install retries and remove core from the install commands.

Revision history for this message
John A Meinel (jameinel) wrote :

Note that one thing we *do* use the 'core' snap for is for proxy settings:
2021-03-09 22:17:39 DEBUG juju.worker.proxyupdater proxyupdater.go:279 snap core settings [proxy.http=http://squid.internal:3128/ proxy.https=http://squid.internal:3128/ proxy.store=] updated, output: ""

I don't know if we should be setting those for core18, or if we have to set them for core, or if we can set them for core but not install the core snap.

Revision history for this message
John A Meinel (jameinel) wrote :

Searching led me to:
https://askubuntu.com/questions/764610/how-to-install-snap-packages-behind-web-proxy-on-ubuntu-16-04

which seems to say it isn't 'snap set core proxy.http' but:
sudo snap set system proxy.http="http://<proxy_addr>:<proxy_port>"

Which was new in snap 2.28.
It may be we need to switch to 'system' since there are now more than just 'core' and 'core18'.

Revision history for this message
Ian Booth (wallyworld) wrote :

Last time I looked, juju-db had to be installed on core18 due to the toolchain and other dependencies. Moving to core is potentially a lot of work.

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1920033] Re: bootstrapping juju installs 'core' but 'juju-db' depends on 'core18'

Sorry, this isn't "we should move to core" this is "we should not be
explicitly installing core" because we don't need it anymore.

On Thu, Mar 18, 2021 at 5:05 PM Ian Booth <email address hidden>
wrote:

> Last time I looked, juju-db had to be installed on core18 due to the
> toolchain and other dependencies. Moving to core is potentially a lot of
> work.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1920033
>
> Title:
> bootstrapping juju installs 'core' but 'juju-db' depends on 'core18'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1920033/+subscriptions
>

Changed in juju:
status: Triaged → In Progress
Revision history for this message
Simon Richardson (simonrichardson) wrote :
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.