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

[rptest] Azure CDT bringup #20749

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft

[rptest] Azure CDT bringup #20749

wants to merge 2 commits into from

Conversation

clee
Copy link

@clee clee commented Jun 28, 2024

Bug fixes to tests and test infrastructure for running CDT on Azure. (Note: Currently includes commit from #18827, will rebase after that gets merged.)

Backports Required

  • none - not a (product) bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.1.x
  • v23.3.x
  • v23.2.x

Release Notes

  • none

Improvements

  • replaces several instances of deprecated Cloud API usage with new Public API (because the old endpoints don't return Azure resources)
  • successfully installs BYOC Azure agent
  • allow override headers on POST requests for rpcloud_client
  • workaround for /snap/bin not showing up in $PATH (making az CLI not show up as an available command)
  • Azure support for config_profile_verify test

@clee clee requested review from savex, simonlord and rpdevmp June 28, 2024 11:49
@CLAassistant
Copy link

CLAassistant commented Jun 28, 2024

CLA assistant check
All committers have signed the CLA.

rpdevmp and others added 2 commits June 28, 2024 07:50
- replaces several instances of deprecated Cloud API usage with new
  Public API (because the old endpoints don't return Azure
  resources)
- successfully installs BYOC Azure agent
- allow override headers on POST requests for rpcloud_client
- workaround for /snap/bin not showing up in $PATH (making `az` CLI
  not show up as an available command)
- Azure support for config_profile_verify test
if self._provider == 'azure':
# for azure, we manually override the path here to ensure
# that azure-cli installed as a snap gets found (workaround)
p = ['env', 'PATH=/usr/local/bin:/usr/bin:/bin:/snap/bin']
Copy link
Member

Choose a reason for hiding this comment

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

should this append PATH at the end? just to ensure that other binaries that might be implicitly invoked (if any) can be found

Copy link
Author

Choose a reason for hiding this comment

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

Short answer: no need!

Longer answer: I don't know if environment variable expansion works with the options we use, so I assumed it wouldn't and grabbed the default full $PATH (including /snap/bin) from an interactive shell, and then I removed /usr/games and /usr/local/games after confirming that both were completely empty on the agent VM's ubuntu install. So adding $PATH will only result in duplicating existing paths and adding empty directories to the search index.

@ivotron
Copy link
Member

ivotron commented Jun 28, 2024

what I was trying to mention during our sync today: to ensure that these changes don't break HTT tests on other cloud providers, given that these are not exercised at PR time, some manual jobs can be triggered (pointing to this branch) so that they are executed.

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.

None yet

4 participants