← Back to issue list

An unnecessary warning is raised when running charmcraft pack

View original Github issue

Metadata

Project
charmcraft
Number
#2234
Type
issue
State
open
Author
jdkandersson
Labels
Created
Updated
Closed

Current evaluation

charmcraft pack emits a confusing 'Cannot get a keyring' warning even though packing needs no store auth; warning still present in current code, no maintainer response or labels.

Suggested action: needs triage

Reason: No labels, no maintainer comments, and no assignee, so this has not been triaged. The warning is still emitted in charmcraft/services/store.py setup() (line 109) whenever NoKeyringError occurs, including during pack, so the reported behavior is still reproducible and not fixed. It is a real (if minor) UX bug rather than a support question.

Impact: 30 Quick Win: 19.5 Staleness: 62 Complexity: 35 Confidence: 60 Support Request: 15

Issue body

### Bug Description When following the charmcraft Flask tutorial (or any of the 12-Factor tutorials) https://canonical-charmcraft.readthedocs-hosted.com/en/latest/tutorial/kubernetes-charm-flask/, during the `charmcraft pack`, Charmcraft raises: `WARNING: Cannot get a keyring. Every store interactions that requires authentication will require you to log in again.` This caused confusion with users because they hadn't logged in and weren't sure whether this was an issue they needed to be concerned about ### To Reproduce As above ### Environment As per tutorial ### charmcraft.yaml ```yaml As per tutorial ``` ### Relevant log output ```shell As above ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 19.5
Staleness: 62
Complexity: 35
Confidence: 60
Support Request: 15
needs triage charmcraft pack emits a confusing 'Cannot get a keyring' warning even though packing needs no store auth; warning still present in current code, no maintainer response or labels.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 20
Confidence: 80
Support Request: 20
close not a bug Charmcraft pack raises a confusing keyring warning during tutorials. Unlabelled, no maintainer response, inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 40
Support Request: 70
needs triage User reports a confusing warning during charmcraft pack when following tutorials. Issue lacks reproduction details, environment info, or logs. No maintainer interaction or labels present.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 10
Confidence: 70
Support Request: 50
close stale Report of an unnecessary warning during charmcraft pack. The issue contains no reproduction steps, logs, or configuration details, and has been inactive for over a year without maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 15
Confidence: 60
Support Request: 25
needs triage charmcraft pack raises an unnecessary keyring warning during tutorials, confusing users. Open for over 300 days with zero comments, it requires triage and a fix to suppress the warning when no store authentication is needed.

Update history

No update history recorded yet.

Related work

  • Caused By: charmcraft#1741 (confidence 70%)

    PR #1741 (commit 5fa2a47c) introduced the 'Cannot get a keyring' warning as part of the ephemeral-keyring fallback, which is the code path emitting this message.

Related issues

No related issues found above the similarity threshold.