← Back to issue list

charmcraft release failed for revision that is in the charmhub

View original Github issue

Metadata

Project
charmcraft
Number
#850
Type
issue
State
closed
Author
ajkavanagh
Labels
Created
Updated
Closed

Current evaluation

Closed as out of scope. Charmhub's auto-release feature exposed missing resource specifications. Identified as a Launchpad-Charmhub integration issue, not a charmcraft bug. Author will file a separate bug with Charmhub.

Suggested action:

No scores available.

Issue body

charmcraft 2.0/stable (maybe 1.5/stable as the charm was packed/built on launchpad with 1.5/stable - note that all of the stable branches are built with 1.5/stable due to environment variable name changes and breakages in charmcraft). Launchpad shows the error as: ``` Charmhub release failed: Resource 'nvidia-vgpu-software' doesn't have a released revision for charm with id 'LwR1wVMvBw6mDJaewfDaiCftUOD4yG0k' and revision 18 ``` Manually attempting with charmcraft CLI (both 1.5/stable and 2.0/stable): ``` charmcraft --verbosity=trace release nova-compute-nvidia-vgpu --revision 18 --channel=latest/edge 2022-08-30 11:01:17.314 Starting charmcraft version 2.0.0 2022-08-30 11:01:17.314 Logging execution to '/home/alex/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220830-110117.313981.log' 2022-08-30 11:01:17.314 Raw pre-parsed sysargs: args={'help': False, 'verbose': False, 'quiet': False, 'verbosity': 'trace', 'project_dir': None} filtered=['release', 'nova-compute-nvidia-vgpu', '--revision', '18', '--channel=latest/edge'] 2022-08-30 11:01:17.314 General parsed sysargs: command='release' args=['nova-compute-nvidia-vgpu', '--revision', '18', '--channel=latest/edge'] 2022-08-30 11:01:17.314 Couldn't find config file '/home/alex/charmcraft.yaml' 2022-08-30 11:01:17.315 Command parsed sysargs: Namespace(channel=['latest/edge'], name='nova-compute-nvidia-vgpu', resource=[], revision=18) 2022-08-30 11:01:17.315 System details: OSPlatform(system='ubuntu', release='20.04', machine='x86_64'); Environment: DESKTOP_SESSION='ubuntu', XDG_CURRENT_DESKTOP='ubuntu:GNOME' 2022-08-30 11:01:17.401 Retrieving credentials for 'charmcraft' on 'api.charmhub.io' from keyring 'SecretService Keyring'. 2022-08-30 11:01:17.430 HTTP 'POST' for 'https://api.charmhub.io/v1/charm/nova-compute-nvidia-vgpu/releases' with params None and headers {'Authorization': '<macaroon>', 'User-Agent': 'charmcraft/2.0.0 ubuntu/20.04 (x86_64) python/3.8.10'} 2022-08-30 11:01:17.642 Store operation failed: - api-error: Resource 'nvidia-vgpu-software' doesn't have a released revision for charm with id 'LwR1wVMvBw6mDJaewfDaiCftUOD4yG0k' and revision 18 2022-08-30 11:01:17.643 Traceback (most recent call last): 2022-08-30 11:01:17.643 File "/snap/charmcraft/1033/lib/charmcraft/commands/store/store.py", line 140, in error_decorator 2022-08-30 11:01:17.643 return method(self, *args, **kwargs) 2022-08-30 11:01:17.643 File "/snap/charmcraft/1033/lib/charmcraft/commands/store/store.py", line 322, in release 2022-08-30 11:01:17.643 self._client.request_urlpath_json("POST", endpoint, json=items) 2022-08-30 11:01:17.643 File "/snap/charmcraft/1033/lib/charmcraft/commands/store/client.py", line 91, in request_urlpath_json 2022-08-30 11:01:17.643 response = super().request(method, self.api_base_url + urlpath, *args, **kwargs) 2022-08-30 11:01:17.643 File "/snap/charmcraft/1033/lib/craft_store/base_client.py", line 174, in request 2022-08-30 11:01:17.643 return self.http_client.request( 2022-08-30 11:01:17.643 File "/snap/charmcraft/1033/lib/craft_store/http_client.py", line 166, in request 2022-08-30 11:01:17.643 raise errors.StoreServerError(response) 2022-08-30 11:01:17.643 craft_store.errors.StoreServerError: Store operation failed: 2022-08-30 11:01:17.644 - api-error: Resource 'nvidia-vgpu-software' doesn't have a released revision for charm with id 'LwR1wVMvBw6mDJaewfDaiCftUOD4yG0k' and revision 18 2022-08-30 11:01:17.644 Full execution log: '/home/alex/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220830-110117.313981.log' ``` And revisions show: ``` charmcraft revisions nova-compute-nvidia-vgpu Revision Version Created at Status 18 18 2022-08-30T06:20:20Z approved 17 17 2022-06-17T15:53:15Z released 16 16 2022-05-16T14:34:21Z approved 15 15 2022-05-05T23:59:12Z released 14 14 2022-04-26T22:33:14Z approved 13 13 2022-04-01T13:08:22Z approved 12 12 2022-04-01T13:08:21Z approved 11 11 2022-03-23T12:18:14Z approved 10 10 2022-03-23T12:18:05Z released 9 9 2022-02-28T11:50:40Z approved 8 8 2022-02-28T11:50:39Z approved 7 7 2022-02-25T11:54:28Z approved 6 6 2022-02-25T11:54:27Z approved 5 5 2022-02-22T17:40:21Z approved 4 4 2022-02-22T17:37:25Z approved 3 3 2022-02-22T11:21:28Z approved 2 2 2022-02-22T11:20:45Z approved 1 1 2022-01-31T15:34:17Z approved ``` Bug may be on charmcraft or charmhub.io; (probably the latter), but hard to tell, so starting here.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6 Closed as out of scope. Charmhub's auto-release feature exposed missing resource specifications. Identified as a Launchpad-Charmhub integration issue, not a charmcraft bug. Author will file a separate bug with Charmhub.
qwen/qwen3.6-35b-a3b Rejected as not a charmcraft bug. Charmhub's auto-release feature exposed that the charm was never released with its required resource. Identified as a Launchpad and Charmhub integration issue regarding auto-builds.
qwen3.6-35b-a3b-mtp-q6 Release failures stemmed from Charmhub's auto-resource feature requiring explicit resource revisions absent in prior releases. Identified as a Launchpad and Charmhub integration issue, not a charmcraft bug. Closed; author will report upstream.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#320 charmcraft release doesn't pay attention to resources charmcraft closed Superseded by a Charmhub backend validation request. Resource validation for releases is deferred to the server side. A new bug was opened to track the snapstore-server fix.
74%
#328 charmcraft init produces error charm for machine charms charmcraft closed Closed without resolution. Maintainers acknowledged the core issue persists: charmcraft init still lacks a machine charm template or flag, leaving machine charm workflows unsupported despite claims that metadata changes fixed it.
71%