-
Notifications
You must be signed in to change notification settings - Fork 545
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
[aap_containerized] Fixes #3892 - added new AAP Containerized plugin #3893
base: main
Are you sure you want to change the base?
Conversation
9bd1603
to
e226a4d
Compare
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
e226a4d
to
f11ae74
Compare
d7d40cd
to
edb512e
Compare
edb512e
to
d169edd
Compare
Before I go through with a full review, why does this need to be a separate plugin? We typically support containerized and non-containerized within the same plugin for the same component(s), and just dynamically provide a container to run command or file collections in when needed via the We do this so that we don't duplicate efforts, when the only difference between collections is if they need to be executed on the host or in a container. If the actual functioning of a component/whatever actually changes when inside a container, then that makes sense for a separate plugin. We have several different AAP plugins today - so is there a reason we can't extend those to look for their relevant containers? It would seem awkward to me at first glance if we were to either 1) double up on the number of plugins just to account for containers or 2) had multiple plugins for host-based installs and a single "unified" plugin for containerized installs which this seems like it is trying to be. |
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.
Code LGTM aside from the one note around subprocess.
Still have the outstanding question of this single plugin vs. integrating containerized bits in the existing ones, but if we feel that a new single plugin makes the most sense then I'm fine with it.
d169edd
to
23aeefd
Compare
@TurboTurtle thank you for the review. There is a significant difference in terms of AAP containerized and RPM based architecture. That is why we have 2 different installers for the same. IMO this can't be clubbed into the existing plugin and increase its complexity in maintaining it in future, because the storage, logs and configs are totally different. Also, this Containerized setup is going to be future. So, having this plugin by itself is what I vouch for. I have now updated the changes as request, please have a look when you can. |
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, just the linting alert from flake8 on line 50.
Thanks for the details, makes sense to me to split this out going forward.
d48810c
to
dffe40f
Compare
if "awx-manage" in ps["output"] and "aap-gateway" in ps["output"]: | ||
return True | ||
return False |
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.
Can't this be simple:
return "awx-manage" in ps["output"] and "aap-gateway" in ps["output"]
?
Can't this provide false positive results when there would be a running process like, say, "grep awx-manage some.log"? Isn't running ps --noheaders axco command
command and matching whole line a better check here, or is that already over-complicated..?
But I am OK with the current code.
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.
@pmoravec Thank you for the suggestion. Changes amended as requested.
Signed-off-by: Nagoor Shaik <[email protected]>
dffe40f
to
7760bae
Compare
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!
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines