-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Ansible request for testing AWX to deploy to macos #1910
Comments
We dont have a separate playbook for macos. We run the UNIX playbook, which contains tasks that only run if it detects Macos. Would a seperate template be redundant? |
As long as it works probably not if the EDIT: A quick glance at the line suggests it'll be ok so I've changed the title to indicate we should test it ;-) |
@sxa
Not sure if this is relevant, but ansible connects as Administrator
But in EDIT: Ive tested it with both usernames. Still unreachable |
test-macstadium-macos1012-x64-1 is unreachable
As is test-macstadium-macos1013-x64-1 |
Unreachable: Hanged: Ran on (but had errors): |
Hmmm - I thought @gdams had them all configured via Bastillion to have the AWX key and others. It looks like the following ones should be in there (I believe macstadium generally uses
|
AWX isnt able to connect to the nine machines, test-nine-macos1015-x64-1 and test-nine-macos1015-x64-2, but I suppose that's because theyre behind a firewall? Either way, its not an unreachable error that returns, its a
|
OK Looks like they hadn't been added to any of the profiles so they didn't have anything other than the default keys. All the test ones ending in |
The condition in the Common role
Should be
since
|
@sxa |
Can you post the error you're getting for |
Same on -2. I tested both users, admin and administrator. Ive just run this now. Bare in mind im using the Deploy UNIX playbook to macos template, not the Deploy UNIX playbook template. Ill test it on the latter now, depsite both having the same ssh admin key credential |
Hmmm I put the verbosity level up to maximum on the AWX job and re-run it (I've put it back now). After being somewhat confused it looks like fails when you try to connect from a RHEL8/CentOS8/Fedora33 system (The AWX docker images are based on CentOS8, but I've tried it on a couple of other RHEL8 systems and get the same problem (Either try with one of our other ones, or |
As far as I can tell this only affects the older macos 10.10 systems - the later ones seem to not suffer in the same way (https://awx.adoptopenjdk.net/#/jobs/playbook/797?job_search=page_size:20;order_by:-finished;not__launch_type:sync is a run on |
OK the problem was that the CentOS8 ssh client by default does not allow the |
At least for now the macos11 aarch64 machines seem to be stalling - I would possibly ignore them for now as we only really want to the x64 ones |
I see that test-macincloud-macos1010-x64-1 is now no longer unreachable so ive taken it down in jenkins to run the playbook on. -2 is still unreachable. Im using the unix playbook template, so this should not disrupt the jobs that you have pending/running |
While upgrading all packages
This machine (test-macincloud-macos1010-x64-1) uses the |
My gut feel is that this is a reasonable thing to do. @gdams do you know if there's any reason why the macincloud systems are set up with an admin user that doesn't have these privileges, or any other reason why we should add it to the |
@gdams Why is e.g. |
Various errors found. Ive documented them here #2042 |
The ansible version on awx
@sxa Is it possible to get this updated to the latest version? (2.10+) It will solve issues relating to the |
I'll get started on deploying the playbook to one of these machines
I must have been mistaken when I thought it was a separate infra issue since I cannot seem to find it. I'll rerun the jdk_util tests to see if the problem persists |
@sxa We still have test-macstadium-macos1012-x64-1 and |
Hmmm we have nothing in plan at the moment, however since we only list 10.14 and later as supported on https://adoptium.net/supported_platforms.html that would definitely be an option. Is the error the same as the one you had on 10.10? If so we should definitely consider it as part of #2496 |
Also, could you download and try and run JDK11 and 17 on 10.13 and check if they work at all? (Extract tarball, run (EDIT: 17 is ok with 10.13 as https://ci.adoptopenjdk.net/job/Test_openjdk17_hs_sanity.functional_x86-64_mac/123/console ran on it, assuming the name matches the real level on that machine - sounds like it does if you're getting that error from the playbooks) |
Both JDKs work on macos10.13.
|
@sxa Any reservations on having the second machine setup to completion? |
While we have a "clean" machine I'd recommendtrying to run a build pipeline on the one you've set up (Say, JDK17 or 19) and making sure that the one that has had the playbook run on it does build properly first. That way if there is any remedial action required we can do that from scratch on the second one. |
One thing missing from the awx deployment of the playbook is the variable infrastructure/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Xcode/tasks/main.yml Line 73 in 87c0db9
In the Xcode role, other variables (which awx will likewise not be able to find) are "{{ Apple_ID_Password }}" and "{{ FASTLANE_SESSION }}" Awx is able to pull the vendor files/secrets from the secrets repo, which is where I assume these variables are. So I am not sure why it is not able to find these variables. @gdams Any ideas? |
@sxa I see that you've manually installed xcode on these machines already (which suggests that the xcode role is not idempotent?). I've kicked off a jdk17 build here https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk17u/job/jdk17u-mac-x64-hotspot/74/console |
I did not install Xcode - it had been preinstalled on the systems. I did do a license accept for it that was a prereq to it being used. |
Build seems to be failing
Fails when executing this Possibly related to the fact that the xcode role did not fully run?
Eventhough it is preinstalled. Investigating |
Did some testing in an ssh environment on test-macincloud-macos1201-x64-1 and build-macstadium-macos1014-x64-2. As the jenkins user running |
While I'm somewhat curious as to why we use a different version for 11 than all of the other releases if we determine that this is required and there's no other way to do it then we should add a suitably restricted (i.e. only allow |
Since https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk17u/job/jdk17u-mac-x64-hotspot/76/console passed, I will begin setting up the second machine 216.39.74.140. Any changes to its xcode-select config can be made after setup |
Running sanity tests on test-macincloud-macos1201-x64-1 and -2 |
Since the move to awx2, I will close this issue once we get a MacOS specific deployment job. It currently uses the Unix job |
@Haroon-Khel Presumably you an create the job yourself since you have admin access to the server? |
@Haroon-Khel Are you able to progress this? |
I've created a MacOS template on awx2 and have tested it on one of our macos machines. It runs successfully. This issue can now be closed |
Our AWX server does not currently have a template for deploying to macos systems. We should add that and ensure that it is "safe" to deploy across all machines
The text was updated successfully, but these errors were encountered: