-
-
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
aixPB: Modify order of executition to have requirements first #1695
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments as requested - hopefully once we've got this in, adding others into the top level playbook will be easier
- xlc_v13 | ||
- xlc_v16 | ||
- openssl | ||
# AIX configuration | ||
- aixfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this moved to after the XLC/X11 installations? Wouldn't moving this cause problems if the file systems weren't large enough to install XLC/X11? I think that's why it was at the start previously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is before xlc installation - it WAS after syslogs - which is a configuration change.
What I am trying to do is get AIX BOS installation first, then AIX configuration changes (that does not require any non-BOS software) and then start looking at licensed software.
As the xlc roles use, potentially, the unarchive: module - the latest update has the role: yum before the xlc role calls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, it looks like it is after, but it is not. No idea how the diff comes up with this.
Further - as to large enough - installp enlarges the filesystem if more space is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I am trying to do is get AIX BOS installation first, then AIX configuration changes (that does not require any non-BOS software) and then start looking at licensed software.
OK That reasoning is sound, but it might be worth explcitly saying that so that others modifying the file in the future adhere to the same policies
I agree, it looks like it is after, but it is not. No idea how the diff comes up with this.
Looks ok now - it's showing where it should be based on your comments
Further - as to large enough - installp enlarges the filesystem if more space is needed.
Yep that's fair, but I'd suggest adding that as a comment so it's clear to anyone modifying the playbook in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #1704 (comment)
Just to reiterate, the yum role should run before any role which involves decompressing and unzipping packages (such as x11, xlc13 and xlc16), as it installs tar and unzip. I thought this change had already gone in some time ago, but it seems im mistaken. I ran into the error while testing the linked pr, but thought the change would be more appropriate here
fatal: [p9-aix1-ojdk06.osuosl.org]: FAILED! => {"changed": false, "msg": "Failed to find handler for \"/root/.ansible/tmp/ansible-tmp-1606411573.995723-14158-56646512312999/source\". Make sure the required command to extract the file is installed. Command \"/usr/bin/tar\" detected as tar type None. GNU tar required. Command \"unzip\" not found."}
moved per 104de6a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we add in some comments to make it clear why the items have been sequenced the way we have this is good to merge. Let's aim to get it in Monday at the latest :-)
- xlc_v13 | ||
- xlc_v16 | ||
- openssl | ||
# AIX configuration | ||
- aixfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I am trying to do is get AIX BOS installation first, then AIX configuration changes (that does not require any non-BOS software) and then start looking at licensed software.
OK That reasoning is sound, but it might be worth explcitly saying that so that others modifying the file in the future adhere to the same policies
I agree, it looks like it is after, but it is not. No idea how the diff comes up with this.
Looks ok now - it's showing where it should be based on your comments
Further - as to large enough - installp enlarges the filesystem if more space is needed.
Yep that's fair, but I'd suggest adding that as a comment so it's clear to anyone modifying the playbook in the future
Ive tested these changes, and those of #1704, on ojdk06 (with the requested changes). The playbook ran clean. A build of jdk11 hotspot ran fine too. Running an openjdk sanity test resulted in one failure:
Ive been informed that the test failure is related to a common bug, and not to do with these changes. Need to investigate this more. |
@smlambert, as mentioned in the team meeting |
Background: As discussed in meeting today, you can presume its non-blocking, but it is interesting that there is a skew. Are you using nightly or releases builds(value of SDK_RESOURCE parameter) in your Grinder jobs? |
@smlambert Im running the tests directly on the machine itself, since it is not in jenkins. Im using binaries from the adopt website, https://adoptopenjdk.net/releases.html?variant=openjdk11&jvmVariant=openj9 |
@aixtools Seeing as this test failure is non blocking, this pr is ready to be merged (after the requested changes have been put in) |
* move aixfs configuration to precede yum - to ensure sufficient FS space for the yum installed packages. * move XLC installation to after yum processing to ensure Ansible unarchive module requirements are available.
I hope I saw, and resolved everyone's requests. If I missed something - my apology in advance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes - LGTM other than the linter issue with extra spaces at the end of one of the lines which should be resolved before merging
Trailing space removed. Thx for the review. |
I'll add one more change - although I feel it is wrong to add something that is likely not used - and definitely not needed. But getting Ansible to modify unarchive: to not fail if unzip and gtar are not present is probably impossible. |
…lation because it might need the Ansible unarchive: module. Also, number the role grouping to imporve recognition of 'sections'
Something like that would be my suggestion - but that can come later, i.e., the role calls can be moved when that is completed - as part of that PR perhaps. For now, my goal is to document why I have also understood |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Fixes from Markdown and Yaml linters + spelling typos * ansible: refresh macOS test machines + playbook patches (#1665) * Ansible: refresh macOS test machines + playbook patches * linter fixes * Update main.yml * Update MacOSX.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update MacOSX.yml * Update MacOSX.yml * pbTests: Fix -nh option on the VPC help screen (#1735) Signed-off-by: Stewart X Addison <[email protected]> * Set remote_tmp for Ansible (#1736) * aixPB: Remove packages already installed by yum (#1704) * aixPB: Remove packages already installed via yum: statements * aixPB: Add additional tag 'yum' to a task * aixPB: Add additional tag 'yum' to a task * aixPB: Modify order of executition to have requirements first (#1695) * aixPB: Modify order of so-called role executition to have requirements first * aixPB: GNU software needed for some of the Ansible modules used in other plays * aixPB: Remove spurious comments * aixPB: Organize (and document/motivate) six groups of roles. * move aixfs configuration to precede yum - to ensure sufficient FS space for the yum installed packages. * move XLC installation to after yum processing to ensure Ansible unarchive module requirements are available. * aixPB: Remove trailing space * aixPB: move X11 (AIX BOS) installation check to after OSS core installation because it might need the Ansible unarchive: module. Also, number the role grouping to imporve recognition of 'sections' * doc: typo corrections and header modifications (#1734) * Fixes from Markdown and Yaml linters + spelling typos * fix to URL from Stewart review Co-authored-by: George Adams <[email protected]> Co-authored-by: Stewart X Addison <[email protected]> Co-authored-by: Will Parker <[email protected]> Co-authored-by: Michael Felt <[email protected]>
Checklist