-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: First path segment in URL cannot contain colon #2281
Comments
Can you post your full if redirectURL := env.Get(config.EnvBrowserRedirectURL, ""); redirectURL != "" {
u, err := xnet.ParseHTTPURL(redirectURL)
if err != nil {
logger.Fatal(err, "Invalid MINIO_BROWSER_REDIRECT_URL value in environment variable")
} However that should return another error message. |
Here's the output of apiVersion: minio.min.io/v2
kind: Tenant
metadata:
annotations:
meta.helm.sh/release-name: minio-tenant
meta.helm.sh/release-namespace: minio-tenant
prometheus.io/path: /minio/v2/metrics/cluster
prometheus.io/port: "9000"
prometheus.io/scheme: http
prometheus.io/scrape: "true"
creationTimestamp: "2024-04-24T12:54:58Z"
generation: 7
labels:
app: minio
app.kubernetes.io/managed-by: Helm
name: minio-tenant
namespace: minio-tenant
resourceVersion: "307585345"
uid: 4f454e99-8a8e-4297-9d31-3ad00004ca02
spec:
buckets:
- name: lab2-backup
configuration:
name: minio-tenant-config
features:
bucketDNS: true
enableSFTP: false
image: repo.lab2.int.company.com:50443/quay.io/minio/minio:RELEASE.2024-08-17T01-24-54Z
imagePullPolicy: IfNotPresent
logging:
anonymous: false
json: true
quiet: true
mountPath: /export
podManagementPolicy: Parallel
pools:
- containerSecurityContext:
runAsGroup: 1000
runAsNonRoot: true
runAsUser: 1000
name: pool-0
securityContext:
fsGroup: 1000
fsGroupChangePolicy: OnRootMismatch
runAsGroup: 1000
runAsNonRoot: true
runAsUser: 1000
servers: 1
volumeClaimTemplate:
metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Gi
storageClassName: rook-cephfs
volumesPerServer: 1
prometheusOperator: false
requestAutoCert: false
subPath: /data
status:
availableReplicas: 0
certificates:
autoCertEnabled: false
customCertificates: {}
currentState: Provisioning default buckets
drivesOnline: 1
healthStatus: green
pools:
- legacySecurityContext: false
ssName: minio-tenant-pool-0
state: PoolInitialized
provisionedBuckets: true
revision: 0
syncVersion: v6.0.0
usage:
capacity: 531862913024
rawCapacity: 536870912000
rawUsage: 5007998976
usage: 5007998976
writeQuorum: 1 And here's the content of the config secret ( export MINIO_ROOT_USER=minio
export MINIO_ROOT_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export MINIO_BROWSER_REDIRECT_URL='https://s3-console.lab2.int.company.com/'
export MINIO_DOMAIN='s3.lab2.int.company.com'
export TZ='Europe/Berlin' MinIO version is Please let me know if you need more details. |
Thanks, I can reproduce it when moving
It looks like it has extra quotes that you put into the secret. I guess we should be able to deal with that. For now, you could remove the quotes from the three variables. Moving the variables to |
We should fix parsing the configuration secret, so it can deal with quotes properly. User's expect that this file is parsed, like |
The comments in the Helm values file mention the explicit use of the # The values should be a series of export statements to set environment variables for the Tenant. and a few lines below: # For example:
#
# .. code-block:: shell
#
# stringData:
# config.env: |-
# export MINIO_ROOT_USER=ROOTUSERNAME
# export MINIO_ROOT_PASSWORD=ROOTUSERPASSWORD However, why did it work with v5? |
Works! Thanks for your support here. |
Operator and sidecar have changed significantly in v6. It's aimed to cause fewer restarts of the pod (that introduces down-time), Previously most environment variables where bound to the container. This is how it would look like in v5: Now the variables are written to Previously Kubernetes did all the hard work for parsing. Now we need to do it. That's also explains why #2279 worked in v5, but fails in v6. |
Expected Behavior
After upgrading the Operator from v5.x to v6.0.2, the Tenant yields an error on startup:
Changing
MINIO_BROWSER_REDIRECT_URL
fromhttps://s3-console.lab2.company.com/
tos3-console.lab2.company.com/
does not help:Current Behavior
See above.
Possible Solution
Fix URL parsing.
Steps to Reproduce (for bugs)
Not sure but possibly it is enough to set
MINIO_BROWSER_REDIRECT_URL
to a full URL.Context
Upgrading from v5.x to v6.0.2.
Regression
Not sure.
Your Environment
minio-operator
): v6.0.2uname -a
):Linux n0251 6.9.7+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.7-1~bpo12+1 (2024-07-03) x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: