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 the image tag #3446

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

ndokos
Copy link
Member

@ndokos ndokos commented May 31, 2023

Fixes #3445

pbench_demo uses an image downloaded from Quay.io. It assumes that the image will contain pbench-generate-token which is available currently but it is deprecated and will not be available in the future. In particular, the specified image
quay.io/pbench/pbench-agent-all-fedora-36:main does not contain the script. We need to make use of
quay.io/pbench/pbench-agent-all-fedora-36:b0.72 instead.

PBENCH-1129

Fixes distributed-system-analysis#3445

pbench_demo uses an image downloaded from Quay.io. It assumes that the
image will contain `pbench-generate-token` which is available
currently but it is deprecated and will not be available in the
future.  In particular, the specified image
`quay.io/pbench/pbench-agent-all-fedora-36:all` does *not* contain the
script. We need to make use
`quay.io/pbench/pbench-agent-all-fedora-36:b0.72` instead.

PBENCH-1129
@ndokos ndokos added Agent Containerization Of and relating to the process of setting up and maintaining container images labels May 31, 2023
@ndokos ndokos added this to the v0.72 milestone May 31, 2023
@ndokos ndokos requested review from webbnh and riya-17 May 31, 2023 18:54
@ndokos ndokos self-assigned this May 31, 2023
Copy link
Member

@dbutenhof dbutenhof left a comment

Choose a reason for hiding this comment

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

OK so far as it goes, however I almost wonder if the b0.72 branch demo script should be oriented towards the 0.69 id_rsa-based pbench-move-results instead of using a token. We don't exactly disallow creating a b0.72 server user or authenticating against it, but the "normal" and advertised mode of interacting with b0.72 is through the 0.69-11 passthrough server and the standard legacy user.

Ah, well; it's a contrib so I'm not objecting so much as wondering why we'd care? I think we should be testing Pbench Agent 0.72 against the 0.69-11 passthrough and against the 1.0 staging server, neither of which have any use for pbench-generate-token. 😁

Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

I feel like this solution is the least of various evils. Part of the power of this approach is that the pbench script stands by itself, without requiring a Git checkout and requiring only minimal configuration (and the demo script builds on that).

  • Dave's point is excellent, but it would require getting the SSH key somehow and making it available inside the container, which is arguably somewhat more than "minimal configuration".
  • Another option would be to use the contents of jenkins/branch.name for the tag (under the assumption that it is correct 😲), but that would require a Git checkout....

In the end, the pbench_demo file is really supposed to be a "list of commands you might want to run" as opposed to an actual script, so the contents of those lines are really up to the user, and specifying the appropriate container image tag would be a personal choice. 🙃

@ndokos ndokos merged commit d021d23 into distributed-system-analysis:b0.72 Jun 1, 2023
@ndokos ndokos deleted the b0.72-pbench_demo branch June 1, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agent Containerization Of and relating to the process of setting up and maintaining container images
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants