Comment 7 for bug 1923727

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: [Bug 1923727] Re: latest git-ubuntu tries to create a new wallet

> According to the keyring documentation, "The library will attempt to
> automatically choose the most suitable backend for the current
> environment". In Christian's case, is this because he happens to have
> kwallet installed?

ii kwalletmanager 4:19.12.3-0ubuntu1
...

I have no explicit use for it, maybe by recommends from some kde tools
I still use (krdc, konversation).
I removed all I could and all that is left is now

ii libkwalletbackend5-5:amd64 5.68.0-0ubuntu2

But with just that installed the behavior still is the same.

> Maybe keyring is running through the backends to see
> what is available in some priority order?

> The version of keyring being
> used by git-ubuntu has probably changed - it is now using the version
> that ships with Focal (python3-keyring). Christian - does "lp-shell" do
> the same thing for you now, or different?

Different - It doesn't ask for anything

$ lp-shell
E: ipython not available. Using normal python shell.
Connected to LP service "production" with API version "devel":
Note: LP can be accessed through the "lp" object.
>>>

It feels like normal programs can resolve to maybe an existing instance.
While the snap program misses that and tries to create a new one.

> There is an option to explicitly set the keyring backend to use by API.
...
> What do you think git-ubuntu should do?

Yeah, I don't think we should override it in the API :-/

But I feel there is something left to resolve ...
You know the report and what happens when I run it snapped, but when I
run the very same git ubuntu command from current git head but WITHOUT
the snap it works just fine.

$ /home/paelzer/work/usd-importer/usd-importer/bin/git-ubuntu submit
--reviewer canonical-server-packageset-reviewers --target-branch
ubuntu/hirsute-devel
04/15/2021 07:40:07 - ERROR:Unable to create merge proposal: HTTP
Error 400: Bad Request
...
b'There is already a branch merge proposal registered for branch
~paelzer/ubuntu/+source/open-iscsi:lp-1922976-finalrd-logout-HIRSUTE
to land on ubuntu/+source/open-iscsi:ubuntu/hirsute-devel that is
still active.'
---

I have indeed submitted this MP already, so the follow on error is fine.
But there was no popup about kwallet or any other authentication.
So for your question "what should git-ubuntu do" my answer is "work as
smoothly as if I run it without the snap"