Skip to content
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

Fix default download URL path #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucendio
Copy link

What's new in this PR?

Issues

The download URL path for older versions seems to have changed. So, the download of artifacts results in a 404 for cases where a specific release version is being defined (see tasks 'Compose ... download url').

Causes (Optional)

Apparently, things have been moved around on the download server.

Solutions

Update the default download URL path to reflect the current reality.

Dependencies (Optional)

None

Needs releases with:

None

Testing

By successfully applying the changed role to a cluster.

Notes (Optional)

Note that if a release version is not defined explicitly, the proposed change still works, because the latest versions are placed in the archive folder, too.

Attachments (Optional)

None

The download URL path for older versions seems to have changed. So, the
download of artifacts results in a 404 for cases where a specific
release version is being defined (see tasks 'Compose ... download url)'.
The proposed adjustments aims to fix this issue.

Note that if a release version is not defined explicitly, the proposed
change still works, because the latest versions are placed in the archive
folder, too.
Copy link
Member

@jschaul jschaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some artifacts are inside https://dl.minio.io/server/minio/release/linux-amd64/ and some are inside the subfolder archive/. I suppose this will keep changing.

I'm not sure defaulting to the archive folder is a good idea, as that would break when trying to install the latest versions of minio.

Could you change this PR?

Suggestion: you can move these variables from vars/main.yml to defaults/main.yml then they become user-overrideable.

@lucendio
Copy link
Author

@jschaul moving these vars is IMHO not necessary, because with *_artifact_url and *_artifact_checksum (defaults/main.yml) it's already possible to do exactly that. The variables addressed in this PR are merely for convenience, in a sense that fixing the URLs just makes it possible again to use the minio_*_release variables.
Furthermore, as far as I can see, the contents of ./ is a subset of ./archive.

@CLAassistant
Copy link

CLAassistant commented May 10, 2023

CLA assistant check
All committers have signed the CLA.

Copy link

sonarcloud bot commented May 15, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants