User Tools

Site Tools


services:quay.ceph.io

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:quay.ceph.io [2020/06/02 14:36] – djgallowayservices:quay.ceph.io [2026/10/02 18:58] (current) – [Superuser login] djgalloway
Line 1: Line 1:
 ====== quay.ceph.io ====== ====== quay.ceph.io ======
 ===== Summary ===== ===== Summary =====
-This is a VM in [[services:RHEV]] that was created because quay.io was having lots of issues the week of 25MAY2020 which broke the lab (https://tracker.ceph.com/issues/45343).+quay.ceph.io migrated from AWS to the lab on 2026-09-09.  It's Quay (operator-managed) in the ''quay'' namespace in OpenShift.  Blobs are in an ODF RGW bucket, postgres on a pre-created RBD PVC.  See https://github.com/ceph/sepia-openshift/tree/main/quay - ''MIGRATION.md'' there is the full history.
  
-SSH only listens on the front interface at quay.front.sepia.ceph.com.+Public path: NS1 A record -> 192.86.31.16 -> edge proxy -> the OpenShift route.  There is deliberately **no Anubis** in front of it - registry clients can't answer challenges.
  
-Due to the potentially large number of container images we'd be storing, I opted to use the [[services:longrunningcluster]].+''quay-int'' is a separate namespace and must **never** be public.  It also hosts the proxy-cache orgs (''mirror'' -> quay.io, ''mirror-docker'' -> docker.io) that CI pulls through.
  
-I just chose quay because it was the same software/tool that was already in use.  Figured it'd be easy to just ''s/quay.io/quay.ceph.io'' wherever needed.+===== Admin Tasks ===== 
 +==== Superuser login ==== 
 +''quayadmin''.  Creds are in 1Password.
  
-Passwords are in ''magna001.ceph.redhat.com:/root/secrets''.  I reused the same username (Dan's), password, and repo name so using the new registry would be plug-n-play with our CI.+==== Renewing the cert ==== 
 +The in-pod cert is manual acme.sh - see MIGRATION.md.  It does **not** auto-renew.
  
-===== Setup Commands =====+===== Troubleshooting ===== 
 +==== Pulls fail with 401/unauthorized on podman hosts ==== 
 +cephadm's stored registry login must use the **bare hostname**.  docker normalizes any URL to the hostname; podman matches path components verbatim, so a login stored as ''quay.ceph.io/ceph/prerelease'' doesn't cover ''ceph/prerelease-amd64'' and the pull goes out anonymous.
 <code> <code>
-## On reesi001 +# diagnose without touching secrets 
-ceph auth add client.containers mds 'allow rw path=/containers' mon 'allow r' osd 'allow rw pool=data' +sudo podman login --get-login --authfile /etc/ceph/podman-auth.json quay.ceph.io 
-ceph auth get client.containers +# fix: re-run registry-login with url: quay.ceph.io (hostname only) 
-# Copy the key output+ceph cephadm registry-login -i login.json 
 +</code> 
 +On the Quay side, app pod nginx logs show ''GET /v2/auth?account=<user>'' - no ''account='' means the client sent no credentials at all.
  
-## On quay.front.sepia.ceph.com +==== External pulls hang/fail on blob GETs ==== 
-# run the ansible_managed and common roles +Quay presign-redirects blob GETs to RGW.  Two requirements, both already set but worth knowing: 
-yum localinstall http://download.ceph.com/rpm-octopus/el7/noarch/ceph-release-1-1.el7.noarch.rpm +  * ''FEATURE_PROXY_STORAGE: true'' - otherwise clients get redirected to the cluster-internal RGW service, dead from outside 
-yum install ceph-common +  * The ''DISTRIBUTED_STORAGE_CONFIG'' hostname must be the full ''.svc.cluster.local'' FQDN - the storage-proxy nginx resolver ignores search domains and 404s on short ''.svc'' names
-mkdir /lrc +
-echo "172.21.2.201,172.21.2.202,172.21.2.203:/containers/mirror    /lrc/           ceph    name=containers,secretfile=/etc/ceph/secret,_netdev 0 2" >> /etc/fstab +
-echo "KEY_FROM_REESI001" > /etc/ceph/secret  +
-mount -a+
  
-# Then I just followed https://access.redhat.com/documentation/en-us/red_hat_quay/3.3/html/deploy_red_hat_quay_-_basic/preparing_for_red_hat_quay_basic+==== Anonymous CI pulls of mirror/* repos 401 ==== 
 +Proxy-cache repos are born **private**, and only authenticated pulls create cache entries.  The daily reconcile CronJob (''quay-int/proxy-cache.yaml'') flips them public - check it ran, or flip the repo public by hand. 
 + 
 +==== Config bundle changes get reverted ==== 
 +The operator force-overrides some keys when the component is managed (e.g. ''REPO_MIRROR_TLS_VERIFY: true'').  If a bundle edit doesn't stick, that's why. 
 + 
 +==== Who changed something ==== 
 +Console Logs view, **audit tenant**: 
 +<code> 
 +{log_type="audit"} |= "quay" | json | objectRef_namespace="quay"
 </code> </code>
 +See [[services:loki]].
 +
services/quay.ceph.io.1591108619.txt.gz · Last modified: by djgalloway