Cannot create a bug on Staging Launchpad if qabro was previously used to file a bug to Production Launchpad
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bugit |
New
|
Low
|
Unassigned |
Bug Description
Summary
=======
In some cases, trying to create an issue on Staging Launchpad (`APPORT_
This is not the right error (it's the one currently implemented when trying to retrieve the project on Launchpad[1]). The actual exception raised is the following (and that should probably be added to either the qabro.log file, either to the UI screen):
----------
HTTP Error 401: Unauthorized
Response headers:
---
content-length: 55
content-type: text/plain;
date: Thu, 16 Dec 2021 09:05:17 GMT
server: gunicorn/19.8.1
status: 401
x-lazr-oopsid: OOPS-d28904b1b4a104810f4b151193167512
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-request-id: bb7be462-
x-vcs-revision: 81e0895a3316280
---
Response body:
---
b'Unknown consumer (System-wide: Ubuntu Core (coltrane)).'
---
----------
Root cause
==========
Launchpad engineers said:
“Your tool passes credentials_file to Launchpad.
So if you've used this tool previously with production, then you're probably sending production credentials to staging, which it doesn't recognize.
You should probably make the credentials file path instance-sensitive in some way.”
Workaround
==========
$ snap run --shell qabro
(inside the snap) $ rm ~/.launchpadlib
(inside the snap) $ exit
Then you should be able to file a bug in any instance.
tags: | added: easy |
Changed in qabro: | |
importance: | Undecided → Low |
description: | updated |