Folks, I am trying to understand if the following permissions are enough to uload a new version of a bundle and release it. CCing @roadmr as this can be a store thing.
charmcraft upload finos-legend-bundle.zip --verbose
charmcraft release finos-legend-bundle --revision=${latest_bundle_rev} --channel="2022-04/edge" --verbose
name: FINOS Foundation
username: finos-foundation
id: he[...]Mw
permissions:
- package-manage
- package-view-revisions
charms:
- name: finos-legend-engine-k8s
- name: finos-legend-sdlc-k8s
- name: finos-legend-studio-k8s
bundles:
- name: finos-legend-bundle
channels:
- edge
I am getting the following error:
Running step PRIME for part 'bundle' 2022-04-28 13:01:45.802 Starting charmcraft version 1.6.0
2022-04-28 13:01:45.802 Logging execution to '/home/runner/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220428-130145.801694.log'
2022-04-28 13:01:45.816 Storing credentials for 'charmcraft' on 'api.charmhub.io' in keyring 'auth MemoryKeyring'.
2022-04-28 13:01:45.816 Starting to push 'finos-legend-bundle.zip'
Uploading...
2022-04-28 13:01:45.817 Retrieving credentials for 'charmcraft' on 'api.charmhub.io' from keyring 'auth MemoryKeyring'.
2022-04-28 13:01:45.817 HTTP 'POST' for 'https://storage.snapcraftcontent.com/unscanned-upload/' with params None and headers {'Content-Type': 'multipart/form-data; boundary=f251ea862e0648c180a6368eae49d050', 'Accept': 'application/json', 'Authorization': '<macaroon>', 'User-Agent': 'charmcraft/1.6.0 ubuntu/20.04 (x86_64) python/3.8.10'}
Uploading... [ββββββββββββββββββ ] 8192/23281
Uploading... [ββββββββββββββββββββββββββββββββββββ ] 16384/23281
Uploading... [ββββββββββββββββββββββββββββββββββββββββββββββββββββ] 23281/23281
Uploading... [ββββββββββββββββββββββββββββββββββββββββββββββββββββ] 23281/23281
2022-04-28 13:01:46.448 Uploading bytes ended, id f84cada0-0aec-441a-a0e6-203f8bcf1011
2022-04-28 13:01:46.448 Retrieving credentials for 'charmcraft' on 'api.charmhub.io' from keyring 'auth MemoryKeyring'.
2022-04-28 13:01:46.449 HTTP 'POST' for 'https://api.charmhub.io/v1/charm/finos-legend-bundle/revisions' with params None and headers {'Authorization': '<macaroon>', 'User-Agent': 'charmcraft/1.6.0 ubuntu/20.04 (x86_64) python/3.8.10'}
2022-04-28 13:01:47.012 Store operation failed:
- permission-required: Package access not allowed
2022-04-28 13:01:47.016 Traceback (most recent call last):
2022-04-28 13:01:47.016 File "/snap/charmcraft/904/lib/charmcraft/commands/store/store.py", line 140, in error_decorator
2022-04-28 13:01:47.016 return method(self, *args, **kwargs)
2022-04-28 13:01:47.016 File "/snap/charmcraft/904/lib/charmcraft/commands/store/store.py", line 296, in upload
2022-04-28 13:01:47.016 return self._upload(endpoint, filepath)
2022-04-28 13:01:47.016 File "/snap/charmcraft/904/lib/charmcraft/commands/store/store.py", line 268, in _upload
2022-04-28 13:01:47.016 response = self._client.request_urlpath_json("POST", endpoint, json=payload)
2022-04-28 13:01:47.016 File "/snap/charmcraft/904/lib/charmcraft/commands/store/client.py", line 90, in request_urlpath_json
2022-04-28 13:01:47.016 response = super().request(method, self.api_base_url + urlpath, *args, **kwargs)
2022-04-28 13:01:47.016 File "/snap/charmcraft/904/lib/craft_store/base_client.py", line 171, in request
2022-04-28 13:01:47.016 return self.http_client.request(
2022-04-28 13:01:47.016 File "/snap/charmcraft/904/lib/craft_store/http_client.py", line 166, in request
2022-04-28 13:01:47.016 raise errors.StoreServerError(response)
2022-04-28 13:01:47.016 craft_store.errors.StoreServerError: Store operation failed:
2022-04-28 13:01:47.016 - permission-required: Package access not allowed
2022-04-28 13:01:47.016 Full execution log: '/home/runner/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220428-130145.801694.log'
Error: Process completed with exit code 1.