Open AdamBrousseau opened 5 years ago
All external machines are win2012r2. All internal are win2016. Created a win2012r2 internally and reran a grinder on it and it passed.
Jason and I did a bit of digging and that line41 is the correct line that is failing. So this issue is a Perl (test) problem not a Java problem. Running java -cp runtimemxbeanTests.jar GetPid works.
Seems to be a permissions issue as that wmic
command works with the Admin user. Digging through Microsoft docs to try and figure out what needs to be changed.
This works on our Fyre machines but not our vSphere machines. Struggling to find the right setting to change or what is different about the 2 sets of machines.
Pretty sure this issue and #7716 are same root cause. Permissions issues when running via cygwin-ssh. Haven't been able to find the cause yet but getting closer. Both issues are resolved by rdp-ing into the machine and running the command by hand using the same jenkins user.
I'll copy this entire comment into #7716
Root cause:
Newer version of OpenSSH (7.9->8.0 see changelog [1], Portability section), which is installed during machine & Cygwin setup, has changes to the setup which further restrict the configuration and resulting default permissions. Specifically, the process now runs as SYSTEM
user instead of an added cyg_server
user (see now outdated setup instructions in [2]). Which has the effect of cascading less permissions down to the jenkins
user when logged in via cygwin/ssh. Jenkins no longer has (by default) access to run WMI/WMIC or query the system for swap space (memory info). The "fix" is to give more permissions to the jenkins user.
To resolve #7716
getTotalSwapSpaceSize() API returned -1
Performance Log Users
group.
See https://github.com/AdoptOpenJDK/openjdk-infrastructure/pull/1009To resolve this issue (#7717)
getPID() returned Access Deined
The following settings are required in order to allow jenkins remote access to WMI:
Setting DCOM Security to Allow a User to Access a Computer Remotely
Component Services
or dcomcnfg
Setting Namespace Security with the WMI Control
* sshd(8): On Cygwin, run as SYSTEM where possible, using S4U for
token creation if it supports MsV1_0 S4U Logon.
Since this wmi tool is being used by test we should probably add Doc to the requirements about this use case cc @smlambert
Test doesn't seem to run on jdk8 Last passed jdk11 Aug 8 33b1de73de60067f496ddcb9a71f837b2abdc17b Last passed jdk13 Aug 28 98547b0f469695731da1ba45d7880295e9b195af
Doesn't seem to be machine specific. 100% failure rate. Seeing as this passes externally I would guess it's a machine config difference. Will just need someone to help me figure out what to change.