[2.4] Bad traceback when an image is not in the image mirror
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Medium
|
Unassigned |
Bug Description
I create a simeplestreams image mirror, but I only imported the xenial and bionic images. However, the index files of the mirror described not only the xenial/bionic images, but also, all other releases that were not imported.
Since MAAS gave me the option to select releases not in the mirror, I tried to import and:
1. MAAS didn't surface a UI error saying that the image was not available in the mirror: https:/
2. MAAS showed a nasty traceback while trying to download the image that wasn't available instead of catching the error aand showing a nice message:
2018-06-19 19:42:00 stderr: [error] Exception in thread Thread-30:
2018-06-19 19:42:00 stderr: [error] Traceback (most recent call last):
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] self.run()
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] self._target(
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] if write_chunk():
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] return func_outside_
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] return func(*args, **kwargs)
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] return func(*args, **kwds)
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] buf = reader.
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] buf = self.cs.read(size)
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] self.open()
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] self.fd = self._open()
2018-06-19 19:42:00 stderr: [error] File "/usr/lib/
2018-06-19 19:42:00 stderr: [error] raise myerr
2018-06-19 19:42:00 stderr: [error] OSError: Unable to open http://
2018-06-19 19:42:00 stderr: [error]
Changed in maas: | |
milestone: | 2.5.0 → 2.5.0rc1 |
Changed in maas: | |
milestone: | 2.5.0rc1 → 2.5.0 |
Changed in maas: | |
milestone: | 2.5.0 → 2.5.x |
This bug has not seen any activity in the last 6 months, so it is being automatically closed.
If you are still experiencing this issue, please feel free to re-open.
MAAS Team