======================================== Cluster / Namespace Info ======================================== --- Current context --- admin --- Logged-in user --- system:admin --- Cluster domain --- apps.743ba21d-e883-4a0c-a487-59224dd5a0a1.prod.konfluxeaas.com DEPLOYMENT_NAMESPACE: opendatahub MAAS_API_DEPLOYMENT_NAMESPACE: odh-ai-gateway-infra MAAS_SUBSCRIPTION_NAMESPACE: models-as-a-service AUTHORINO_NAMESPACE: kuadrant-system ======================================== MaaS API Deployment ======================================== --- maas-api pods --- NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES maas-api-6dbd59cc95-nnlv7 1/1 Running 0 36m 10.133.0.37 ip-10-0-128-174.ec2.internal maas-api-key-cleanup-29733120-42kmf 0/1 Completed 0 24m 10.133.0.44 ip-10-0-128-174.ec2.internal maas-api-key-cleanup-29733135-blz7g 0/1 Completed 0 9m39s 10.133.0.66 ip-10-0-128-174.ec2.internal maas-api-revoke-keys-e2e-ait-0bcce182-5gfq2 0/1 Completed 0 17m 10.132.0.36 ip-10-0-137-167.ec2.internal maas-api-revoke-keys-e2e-ait-30780878-4m89b 0/1 Completed 0 20m 10.132.0.33 ip-10-0-137-167.ec2.internal maas-api-revoke-keys-e2e-api-a-211a7b-f6bdp 0/1 Completed 0 8m38s 10.132.0.44 ip-10-0-137-167.ec2.internal maas-api-revoke-keys-e2e-api-b-1ad924-s8x9z 0/1 Completed 0 8m12s 10.133.0.71 ip-10-0-128-174.ec2.internal maas-api-revoke-keys-e2e-derive-bb015d31-6992j 0/1 Completed 0 16m 10.133.0.55 ip-10-0-128-174.ec2.internal maas-api-revoke-keys-e2e-inf-a-36055a-xw7cn 0/1 Completed 0 9m55s 10.133.0.64 ip-10-0-128-174.ec2.internal maas-api-revoke-keys-e2e-inf-b-00e043-9qz49 0/1 Completed 0 9m29s 10.133.0.67 ip-10-0-128-174.ec2.internal maas-api-revoke-keys-e2e-migrate-982b7aec-znfgg 0/1 Completed 0 19m 10.133.0.50 ip-10-0-128-174.ec2.internal maas-api-revoke-keys-e2e-mt-45127b63-prmtx 0/1 Completed 0 14m 10.132.0.38 ip-10-0-137-167.ec2.internal maas-api-revoke-keys-e2e-mt-ca846028-zxhwh 0/1 Completed 0 12m 10.133.0.60 ip-10-0-128-174.ec2.internal maas-api-revoke-keys-e2e-shared-a-7e917f-z2js8 0/1 Completed 0 66s 10.133.0.75 ip-10-0-128-174.ec2.internal maas-api-revoke-keys-e2e-shared-b-09117f-f546z 0/1 Completed 0 39s 10.133.0.76 ip-10-0-128-174.ec2.internal --- maas-api service --- NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR maas-api ClusterIP 172.31.160.101 8443/TCP 36m app.kubernetes.io/component=api,app.kubernetes.io/name=maas-api,app.kubernetes.io/part-of=models-as-a-service,maas.opendatahub.io/tenant-instance=maas-api ======================================== maas-controller ======================================== --- maas-controller pods --- NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES maas-controller-5c958c8fd5-6hcz7 1/1 Running 0 33m 10.133.0.42 ip-10-0-128-174.ec2.internal --- maas-controller namespace env --- INFRA_NAMESPACE=AUTO ======================================== Kuadrant Policies ======================================== --- AuthPolicies (all namespaces) --- NAMESPACE NAME ACCEPTED ENFORCED TARGETKIND TARGETNAME TARGETSECTION AGE openshift-ingress maas-gateway-auth True True Gateway maas-default-gateway 36m --- TokenRateLimitPolicies (all namespaces) --- NAMESPACE NAME ACCEPTED ENFORCED TARGETKIND TARGETNAME TARGETSECTION AGE llm maas-trlp-facebook-opt-125m-simulated True True HTTPRoute facebook-opt-125m-simulated-kserve-route 25m llm maas-trlp-premium-simulated-simulated-premium True True HTTPRoute premium-simulated-simulated-premium-kserve-route 35m openshift-ingress gateway-default-deny True False Gateway maas-default-gateway 36m ======================================== MaaS CRs ======================================== --- MaaSAuthPolicies --- NAME PHASE AGE AUTHPOLICIES premium-simulator-access Active 36m simulator-access Active 36m --- MaaSSubscriptions --- NAME PHASE PRIORITY AGE premium-simulator-subscription Active 20 36m simulator-subscription Active 10 25m --- MaaSSubscription status details --- premium-simulator-subscription: Active - successfully reconciled simulator-subscription: Active - successfully reconciled --- MaaSModelRefs (all namespaces) --- NAMESPACE NAME PHASE ENDPOINT HTTPROUTE GATEWAY AGE llm e2e-distinct-2-simulated Pending e2e-distinct-2-simulated-kserve-route maas-default-gateway 36m llm e2e-distinct-simulated Pending e2e-distinct-simulated-kserve-route maas-default-gateway 36m llm e2e-trlp-test-simulated Pending e2e-trlp-test-simulated-kserve-route maas-default-gateway 36m llm e2e-unconfigured-facebook-opt-125m-simulated Pending e2e-unconfigured-facebook-opt-125m-simulated-kserve-route maas-default-gateway 36m llm facebook-opt-125m-simulated Ready https://maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local/llm/facebook-opt-125m-simulated facebook-opt-125m-simulated-kserve-route maas-default-gateway 36m llm premium-simulated-simulated-premium Ready https://maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local/llm/premium-simulated-simulated-premium premium-simulated-simulated-premium-kserve-route maas-default-gateway 36m --- MaasTenantConfigs --- NAME READY REASON AGE default-tenant True Reconciled 36m --- MaasTenantConfig status details --- default-tenant: True - MaaS platform manifests applied and maas-api deployment is available ======================================== Test User Information ======================================== No test token available (not logged in via oc) ======================================== Subscription → Model Mapping ======================================== Subscription: premium-simulator-subscription Owner users: (none) Owner groups: premium-user Models: llm/premium-simulated-simulated-premium Subscription: simulator-subscription Owner users: (none) Owner groups: system:authenticated Models: llm/facebook-opt-125m-simulated ======================================== Available Models (MaaSModelRefs) ======================================== Model Reference → Model ID / Endpoint llm/e2e-distinct-2-simulated → e2e-distinct-2-simulated (Pending) llm/e2e-distinct-simulated → e2e-distinct-simulated (Pending) llm/e2e-trlp-test-simulated → e2e-trlp-test-simulated (Pending) llm/e2e-unconfigured-facebook-opt-125m-simulated → e2e-unconfigured-facebook-opt-125m-simulated (Pending) llm/facebook-opt-125m-simulated → facebook-opt-125m-simulated (Ready) Endpoint: https://maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local/llm/facebook-opt-125m-simulated llm/premium-simulated-simulated-premium → premium-simulated-simulated-premium (Ready) Endpoint: https://maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local/llm/premium-simulated-simulated-premium ======================================== Gateway / HTTPRoutes ======================================== --- Gateway --- NAME CLASS ADDRESS PROGRAMMED AGE maas-default-gateway openshift-default maas-default-gateway-openshift-default.openshift-ingress.svc.cluster.local True 37m --- HTTPRoutes (maas-api) --- NAME HOSTNAMES AGE maas-api-route 36m ======================================== Authorino ======================================== --- Authorino pods --- --- ======================================== Subscription Selector Endpoint Validation ======================================== Expected URL (from resolved maas-api deployment namespace): https://maas-api.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select (MAAS_API_DEPLOYMENT_NAMESPACE resolved to: odh-ai-gateway-infra) --- Sample AuthPolicy subscription-info configuration --- Inspecting: openshift-ingress/maas-gateway-auth Actual URL in AuthPolicy: https://maas-api.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select ✅ Request body includes requestedModel field Model reference: / Request body preview: { "groups": (has(auth.metadata) && has(auth.metadata.apiKeyValidation)) ? auth.metadata.apiKeyValidation.groups : (has(auth.identity.groups) ? auth.identity.groups : auth.identity.user.groups), "username": (has(auth.metadata) && has(auth.metadata.apiKeyValidation)) ? auth.metadata.apiKeyValidation.username : (has(auth.identity.preferred_username) ? auth.identity.preferred_username : (has(auth.identity.sub) ? auth.identity.sub : auth.identity.user.username)), "requestedSubscription": (has(auth.metadata) && has(auth.metadata.apiKeyValidation)) ? auth.metadata.apiKeyValidation.subscription : ("x-maas-subscription" in request.headers ? request.headers["x-maas-subscription"] : ""), "requestedModel": (size(request.path.split("/").filter(x, x != "")) >= 2 && request.path.split("/").filter(x, x != "")[0] != "v1" && request.path.split("/").filter(x, x != "")[0] != "maas-api" ? request.path.split("/").filter(x, x != "")[0] + "/" + request.path.split("/").filter(x, x != "")[1] : ("x-gateway-model-name" in request.headers ? request.headers["x-gateway-model-name"] : "")) --- Connectivity test (from kuadrant-system, simulates Authorino) --- curl -vsk -m 10 -X POST 'https://maas-api.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select' -H 'Content-Type: application/json' -d '{}' kubectl run failed or timed out ======================================== DNS Resolution Check ======================================== Resolving: maas-api.odh-ai-gateway-infra.svc.cluster.local nslookup failed ======================================== Configuration Summary ======================================== This summary helps compare local vs CI runs: MaaSModelRefs (all namespaces): 6 MaaSSubscriptions (models-as-a-service): 2 MaaSAuthPolicies (models-as-a-service): 2 Generated Kuadrant AuthPolicies: 1 Subscription selector URL: https://maas-api.odh-ai-gateway-infra.svc.cluster.local:8443/internal/v1/subscriptions/select Test user: system:admin