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

Replace win2008 machines with win2012 #1239

Closed
6 tasks done
gdams opened this issue Mar 31, 2020 · 15 comments · Fixed by #1256
Closed
6 tasks done

Replace win2008 machines with win2012 #1239

gdams opened this issue Mar 31, 2020 · 15 comments · Fixed by #1256
Assignees
Milestone

Comments

@gdams
Copy link
Member

gdams commented Mar 31, 2020

Once adoptium/temurin-build#1638 lands we will no longer need win2008R2 build machines.

My proposal is that we replace them with two new 2012 machines so that we have a larger pool of 2012.

Steps:

@gdams
Copy link
Member Author

gdams commented Mar 31, 2020

We do also have a JCK windows machine that we should re-purpose at the same time (https://github.com/AdoptOpenJDK/openjdk-infrastructure/blob/master/ansible/inventory.yml#L190)

@Willsparker
Copy link
Contributor

I'm happy to run the playbooks on them and confirm builds run on them 👍

@gdams
Copy link
Member Author

gdams commented Mar 31, 2020

@tellison has confirmed that the JCK machine still exists so I've requested that he re-provision it as a fresh image

@tellison
Copy link
Contributor

Have we checked with the OpenJ9 folks about their build requirements on Windows?

@gdams
Copy link
Member Author

gdams commented Mar 31, 2020

@tellison all of the OpenJ9 builds are running on win2012 the only thing that was still using 2008 is JDK8u Hotspot

@gdams
Copy link
Member Author

gdams commented Mar 31, 2020

two Azure 2012R2 machines have been handed to @Willsparker

@gdams
Copy link
Member Author

gdams commented Mar 31, 2020

@tellison
Copy link
Contributor

The old Softlayer JCK machine has been decommissioned, and a shiny new test machine provisioned in its place. Name is test-win2012-2.adoptopenjdk.net and details sent privately to @gdams in the first instance to share with infra team.

@Willsparker
Copy link
Contributor

The 2 new build-azure-2012r2-x64 machines have had the playbook ran on them, and are connected to Jenkins

@gdams
Copy link
Member Author

gdams commented Apr 2, 2020

Installer jobs failing with:

Expand-Archive : The term 'Expand-Archive' is not recognized as the name of a 
cmdlet, function, script file, or operable program. Check the spelling of the 
name, or if a path was included, verify that the path is correct and try again.

this is because the machines had PowerShell 4.0 rather than 5.

To fix I installed WMF 5.1 on both machines (https://docs.microsoft.com/en-gb/powershell/scripting/wmf/setup/install-configure?view=powershell-7)

@gdams
Copy link
Member Author

gdams commented Apr 2, 2020

Shortnames were not enabled on drive C:

fix:

fsutil 8dot3name set C: 0
fsutil file setshortname "C:\Program Files (x86)\WiX Toolset v3.14" WIXTOO~1.14

fsutil file setshortname "C:\Program Files (x86)\Microsoft Visual Studio" MIB055~1
fsutil file setshortname "C:\Program Files (x86)\Microsoft Visual Studio 10.0" MICROS~3.0
fsutil file setshortname "C:\Program Files (x86)\Microsoft Visual Studio 11.0" MICROS~4.0
fsutil file setshortname "C:\Program Files (x86)\Microsoft Visual Studio 12.0" MICROS~1.0
fsutil file setshortname "C:\Program Files (x86)\Microsoft Visual Studio 14.0" MI0E91~1.0
fsutil file setshortname "C:\Program Files (x86)\Microsoft Visual Studio 9.0" MICROS~2.0

fsutil file setshortname "C:\Program Files (x86)\Windows Kits" WINDOW~4

shortnames can be verified with cmd /c for %A in ("C:\Program Files") do @echo %~sA

@gdams
Copy link
Member Author

gdams commented Apr 2, 2020

missing the codesign cert. @Willsparker is creating a new role for this

@gdams
Copy link
Member Author

gdams commented Apr 2, 2020

builds all passing, there is some work to automate the steps above.

@gdams
Copy link
Member Author

gdams commented Apr 6, 2020

All manual steps listed above have now been automated, big thank you to @Willsparker for all the hard work!

@gdams
Copy link
Member Author

gdams commented Apr 6, 2020

2008R2 machines have been destroyed, I left a disk image that we can use to bring back up if we need to

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

Successfully merging a pull request may close this issue.

4 participants