Cannot pack charms with long names
Metadata
Current evaluation
Fixed by truncating overlong instance names, stripping invalid characters, and appending a hash; Charmcraft adopted craft-providers 1.4.1 in PR #852.
Resolution: closed resolved
Reason: The fix was implemented in merged canonical/craft-providers#134 and adopted by Charmcraft in PR #852, commit 538761f1 (merge 0b0fb0b9), which updated craft-providers to 1.4.1. The maintainer marked the issue fixed on 2022-08-26.
Evaluated by: mr-cal-bot
No scores available.
Issue body
```
* Command output: b'Creating charmcraft-finos-legend-gitlab-integrator-k8s-24120086-0-0-amd64\n'
* Command standard error output: b'Error: Invalid instance name: Name must be 1-63 characters long\n'
```
If we detect it's too long, we could shorten the name, but adding a hash of the full name, to avoid collisions.
To workaround this just shorten the name of the charm manually.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by truncating overlong instance names, stripping invalid characters, and appending a hash; Charmcraft adopted craft-providers 1.4.1 in PR #852. | |
| stealth/space-bunny-alpha | — | closed resolved | Long charm names were already supported when #629 was closed; the maintainer confirmed the pack failure had been fixed. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed through craft-providers PR canonical/craft-providers#134, which shortens overlong instance names with a hash and strips invalid characters; Charmcraft adopted it via PR #852. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by truncating overlong provider instance names and appending a hash to avoid collisions, bypassing LXC's 63-character limit. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Charm packing failed for long names due to LXC's 63-character limit. The issue was fixed by truncating instance names and appending a hash suffix to prevent collisions. The maintainer confirmed the implementation and closed the issue. | |
| qwen/qwen3.6-35b-a3b | — | — | Charm packing failed for long names due to LXC's 63-character instance limit. Fixed by truncating overly long names and appending a hash to prevent collisions, ensuring compatibility across all backends. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Charm packing failed for long names due to LXC's 63-character instance limit. Fixed by implementing a truncation and hash suffix strategy to prevent collisions while respecting backend constraints. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-providers#134
(confidence 100%)
Merged upstream fix enforcing LXD-compatible 63-character instance names.
-
Likely Fixed By:
canonical/charmcraft#852
(confidence 100%)
Charmcraft adopted the fix by upgrading craft-providers to 1.4.1.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1138 Packing multiple charms (?) on CI fails with "Instance is busy" message | charmcraft | closed | Parallel charm packing’s LXD race was fixed in craft-providers PR #357 for #341; Charmcraft adopted the provider fix after #1132 proved insufficient. |