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

Vagrant: Update Vagrant Host Playbook & Introduce 2 new Azure vagrant hosts for VPC / QEMU #3704

Merged
merged 19 commits into from
Sep 4, 2024

Conversation

steelhead31
Copy link
Contributor

@steelhead31 steelhead31 commented Aug 12, 2024

Commision 2 new azure based hosts for running VPC / QEMU

Checklist
  • commit message has one of the standard prefixes
  • playbook changes run through VPC or QPC (if you have access)
  • for inventory.yml changes, bastillion/nagios/jenkins updated accordingly

Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

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

Given the amount of updates here I feel this may be a PR where I decide to approve it based on the fact it's been tested rather than because I've reviewed in detail ;-)

@steelhead31
Copy link
Contributor Author

@steelhead31 steelhead31 force-pushed the Vagrant-POC branch 2 times, most recently from 1e2ba2d to 60d0e8d Compare August 19, 2024 16:35
@steelhead31 steelhead31 marked this pull request as ready for review August 21, 2024 14:54
@steelhead31
Copy link
Contributor Author

Tested extensively here... https://ci.adoptium.net/job/SFR-VPC-AZURE-POC/

@steelhead31 steelhead31 requested a review from sxa August 21, 2024 15:05
Copy link
Contributor

@Haroon-Khel Haroon-Khel left a comment

Choose a reason for hiding this comment

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

Approving based on the tests

Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

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

A couple of initial comments:

  • Can we add a description of the new python script perhaps with basic usage info as comments at the top?
  • It looks like we're installing JDK17 on the machine - assuming this is just for the jenkins agent process can we bump to 21 and install via the API to ensure we get the latest version of 21?

@steelhead31
Copy link
Contributor Author

steelhead31 commented Sep 2, 2024

A couple of initial comments:

  • Can we add a description of the new python script perhaps with basic usage info as comments at the top?
  • It looks like we're installing JDK17 on the machine - assuming this is just for the jenkins agent process can we bump to 21 and install via the API to ensure we get the latest version of 21

@sxa 

I've removed the new python script, I rewrote this to run via vagrant rm, so its quicker and it retains its visible activity output facility.

I've bumped the JDK installation from JDK17 to JDK21, installed via the API. Playbook has been run on both new hosts to install the new JDK, Jenkins has been updated accordingly.

@steelhead31 steelhead31 requested a review from sxa September 2, 2024 16:16
@steelhead31
Copy link
Contributor Author

New test running here : https://ci.adoptium.net/job/SFR-VPC-AZURE-POC/48/

gdams
gdams previously requested changes Sep 3, 2024
ansible/pbTestScripts/vagrantPlaybookCheck.sh Show resolved Hide resolved
@steelhead31
Copy link
Contributor Author

New test run in progress with changes following review comments... https://ci.adoptium.net/job/SFR-VPC-AZURE-POC/49/

Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

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

Ref:

- name: Set VirtualBox extension pack license agreement

I assume we've looked at it and there's nothing of concern in there before auto-accepting this?

echo "DEBUG - SF01"

These should be removed. I assume you already plan to do this but I just wanted to make sure it was still blocked until the change has been made, hence leaving my review as "Request changes" :-)

v.customize ["modifyvm", :id, "--cpuexecutioncap", "80"]

Bumping this from 50 to 80 makes me a little nervous as it could overwhelm machines that are running with multiple executors, potentially leading to timeouts in the runs. I'm willing to give it a shot if you think it'll be "safe" but we should keep an eye on it.

@sxa
Copy link
Member

sxa commented Sep 3, 2024

As another point - have you tested a machine set up this way with QPC as well as VPC to see if that still works?

@steelhead31
Copy link
Contributor Author

@sxa QPC runs are here: https://ci.adoptium.net/job/SFRY-QEMU-POC/, they behave similar to the real ones :)

The debug is something Im working on now ( trying to rationalise the playbook execution statement, but its being problematic)

I've reverted the CPU cap, again its been left in from my local testing.. its fine with 50 on the remote host :)

@steelhead31
Copy link
Contributor Author

@sxa I've removed the extpack license agreement, and uninstalled it. Thanks for the heads up

@steelhead31
Copy link
Contributor Author

Reverting to draft, whilst I fix up the playbook execution

@steelhead31
Copy link
Contributor Author

CPU cap at 50% isnt sufficient for the azure boxes, but 60% is, so I've bumped it to that, if needed, we can look to change this again, once the large vagrant host has been rebuilt.

@steelhead31 steelhead31 marked this pull request as ready for review September 3, 2024 15:46
@steelhead31
Copy link
Contributor Author

steelhead31 commented Sep 3, 2024

Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

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

Assuming it passes your tests I reckon I'm ok with this now :-)

@sxa sxa added this to the 2024-09 (September) milestone Sep 4, 2024
@steelhead31 steelhead31 merged commit 9fd19c9 into adoptium:master Sep 4, 2024
7 checks passed
@steelhead31 steelhead31 deleted the Vagrant-POC branch September 5, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants