[2.0b5] CI - After changing proxy, MAAS cannot install images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
After the recent change of image default mirror, I noticed that the CI started failing. After looking into it, I noticed that the images page showed:
"Error: No boot sources provide Ubuntu images."
I initially figured this was because we are in a completely offline environment, and we have no access to images.maas.io. Later, however, when MAAS now has access to the internet via the Proxy, it still shows the same thing.
What the CI is doing:
1. Change the proxy setting with an external proxy.
2. Tell MAAS to import the images (which actually never happens. Image page shows "Error: No boot sources provide Ubuntu images.").
3. Check for imported images - fails.
What I did to fix this:
1. [CI] Change the proxy setting with an external proxy.
2. [CI] Attempt to import the images.
3. [me] Go to settings page, to the Ephemeral Images and clicked "Save"
4. [me] Go to image listing page, images are now available. Start import manually.
5. [CI] Check for imported images - succeeds, and tests finish successfully.
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 1448 lines (+291/-323)26 files modifiedsrc/maasserver/api/tests/test_boot_source_selections.py (+7/-3)
src/maasserver/api/tests/test_boot_sources.py (+7/-3)
src/maasserver/bootresources.py (+25/-41)
src/maasserver/bootsources.py (+1/-1)
src/maasserver/clusterrpc/tests/test_boot_images.py (+9/-0)
src/maasserver/migrations/builtin/maasserver/0061_maas_nodegroup_worker_to_maas.py (+1/-1)
src/maasserver/migrations/builtin/maasserver/0062_fix_bootsource_daily_label.py (+27/-0)
src/maasserver/models/signals/bootsources.py (+8/-2)
src/maasserver/models/signals/tests/test_bootsources.py (+55/-0)
src/maasserver/models/testing.py (+0/-15)
src/maasserver/models/tests/test_bootresource.py (+4/-2)
src/maasserver/models/tests/test_bootsource.py (+4/-30)
src/maasserver/models/tests/test_bootsourcecache.py (+4/-2)
src/maasserver/models/tests/test_bootsourceselection.py (+4/-2)
src/maasserver/rpc/tests/test_configuration.py (+13/-0)
src/maasserver/rpc/tests/test_regionservice_calls.py (+9/-0)
src/maasserver/start_up.py (+1/-74)
src/maasserver/tests/test_bootresources.py (+31/-53)
src/maasserver/tests/test_bootsources.py (+16/-6)
src/maasserver/tests/test_compose_preseed.py (+9/-0)
src/maasserver/tests/test_forms_bootsource.py (+4/-2)
src/maasserver/tests/test_forms_bootsourceselection.py (+4/-2)
src/maasserver/tests/test_service_monitor.py (+17/-0)
src/maasserver/tests/test_start_up.py (+11/-77)
src/maasserver/views/tests/test_images.py (+7/-3)
src/maasserver/views/tests/test_settings.py (+13/-4)
summary: |
- [2.0b5] After changing proxy, MAAS cannot install images + [2.0b5] CI - After changing proxy, MAAS cannot install images |
Changed in maas: | |
milestone: | none → 2.0.0 |
importance: | Undecided → Critical |
status: | New → Confirmed |
Changed in maas: | |
status: | Confirmed → In Progress |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |