Hello Matthias,
Can you check if the registration key works for the product you're
using? LTSS keys are specific to major/minor version and architecture.
A minimal reproducer would be:
echo 'REGCODE' | podman login -u 'regcode' --password-stdin
registry.suse.com
podman pull
registry.suse.com/suse/ltss/sle12.5/sles12sp5
Replace REGCODE here with your registration code. Leave the user
'regcode' as it is (See
https://documentation.suse.com/container/all/single-html/Container-guide/...
and the section "Use a separate SUSE Customer Center registration code"
therein).
The "requested access to the resource is denied" implies that you have a
valid registration code, but the code you're using doesn't allow access
to the requested resource.
Best,
Felix
On 1/27/25 08:56, Matthias Apitz wrote:
Hello,
I'm trying to use LTSS container from SuSE registry, this one
https://registry.suse.com/repositories/suse-ltss-sle12-5-sles12sp5
The instructions in
https://documentation.suse.com/container/all/single-html/Container-guide/...
say how to login:
$ cat /etc/zypp/credentials.d/SCCcredentials
username=SCC_xxxxxxxxx
password=85xxxxxxxxx
...
$ echo '85xxxxxxxx' | podman login -u 'SCC_xxxxxxxx' --password-stdin
registry.suse.com
Login Succeeded!
This login creates a file
$ ls -l /run/user/1000/containers/auth.json
-rw------- 1 cups root 133 27. Jan 07:41 /run/user/1000/containers/auth.json
I copied this over to:
$ cp -p /run/user/1000/containers/auth.json ~/.config/containers/auth.json
and set:
$ export REGISTRY_AUTH_FILE=/home/cups/.config/containers/auth.json
but it does not works, at least not how I would expect it:
$ podman build -t sles10-sp3-v41pl2 sles10-sp3-v41pl2
STEP 1/22: FROM
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest
Trying to pull
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest...
Error: creating build container: initializing source
docker://registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest: reading manifest latest in
registry.suse.com/suse/ltss/sle12.5/sles12sp5: requested access to the resource is
denied
also this doesn't work:
$ podman build --creds=SCC_xxxxxxxx:85xxxxxxxx -t sles10-sp3-v41pl2 sles10-sp3-v41pl2
https://registry.suse.com/repositories/suse-ltss-sle12-5-sles12sp5
gives:
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest
but inspect says:
$ podman inspect
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest
Error: no such object: "registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest"
What I'm doing wrong here?
Thanks
matthias