Open epheo opened 10 months ago
update:
The connection refused
logs from the packageserver pod are only happening during the instantiation of opm and package-server can connect correctly using grpc afterward.
Actual issue appears to concern the packageserver endpoint authentication as healthz
livez
and readyz
endpoints all returns 200 ok but the apis/packages.operators.coreos.com/v1
endpoint returns 403 Forbidden.
message: 'failing or missing response from https://10.32.0.210:5443/apis/packages.operators.coreos.com/v1:
bad status from https://10.32.0.210:5443/apis/packages.operators.coreos.com/v1:
403'
If I run another package-server with --authorization-always-allow-paths /apis/packages.operators.coreos.com/v1
the endpoint is returning the expect result.
/bin/package-server -v=4 --secure-port 5444 --global-namespace olm --debug --authorization-always-allow-paths /apis/packages.operators.coreos.com/v1
dnstools# curl -k https://10.200.0.94:5444/apis/packages.operators.coreos.com/v1
{
"kind": "APIResourceList",
"apiVersion": "v1",
"groupVersion": "packages.operators.coreos.com/v1",
"resources": [
{
"name": "packagemanifests",
"singularName": "packagemanifest",
"namespaced": true,
"kind": "PackageManifest",
"verbs": [
"get",
"list"
]
},
{
"name": "packagemanifests/icon",
"singularName": "",
"namespaced": true,
"kind": "PackageManifest",
"verbs": [
"get"
]
}
]
https://github.com/openshift/library-go/blob/7a65fdb398e28782ee1650959a5e0419121e97ae/pkg/config/serving/server.go#L63
refers to system:masters
which matches the certificate I use to create OLM ressources.
What component/configuration may I be missing in my kubernetes deployment ?
Hi, After installing OLM (either with operator-sdk or install.sh), packageserver returns
connect: connection refused
while connecting to operatorhubio-catalog while I don't see any issue using a grpc_cli debugging container.This is a very simple singlenode install of kubernetes with all pods patched on a same bridge.
The clusterserviceversions stays in
Installing
phase.From a grpci_cli debuging container I can reach and list services of the operatorhubio-catalog.olm.svc endpoint.
Within the operatorhubio-catalog pod the served configs seems ok.
All containers appears as running and livenessprobes seems to have been satisfied.
But a log from a packageserver pod returns:
I included what felt relevant from the olm-operator operatorhubio-catalog and packageserver logs.
catalog-operator.log operatorhubio-catalog.log packageserver.log olm-operator.log