swm: treat snap-store resource-not-found error returns as store errors
When we have been told there is a snap under a specific name, but our
attempts to get the current disposition of that snap results in
resource-not-found we are unable to make any sensible statements about
the snap. Rather than miss-categorising it treat this as a failure to
talk to the store.
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Andy Whitcroft <email address hidden>
swm: handle invalid archives in kernel-series routing information
When we have a bad archive in kernel-series (this might be inaccurate or
just private) we will fail to look it up. This leads us to crater trying
to list the routes in debugging output. Map these to a simple NONE so we
can see they occurred.
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Andy Whitcroft <email address hidden>
shiv: retest -- add support for selecting the PPA copy and the op to request
swm will request `op=boot` testing against the PPA copy of the kernel
and `op=sru` against the proposed copy of the kernel. Via `shiv` we can
request a retest `op=sru` against proposed only. Add support for `--ppa`
to select testing against the PPA copy and `--op <op>` to allow testing
the other combinations. Default op to boot on PPA and sru on proposed.
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Andy Whitcroft <email address hidden>
info/kernel-series: f/linux-ibm: invert variants order
Invert the variants order so '-lts-20.04' comes first, which will force
the meta package generator to add the kernel-testing--*--preferred
virtual provides to it. This is to fix a virtual conflict caused by the
first linux-meta-ibm uploaded to the archive having only the
'-lts-20.04' variant on the source.
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
snap: handle resource-not-found errors as a store error
Handle resource-not-found error returns as a store error. We have no
information about the snap so we cannot determine its disposition. It
is best to fail completely than miss-categorise it.
Signed-off-by: Andy Whitcroft <email address hidden>