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

Question: Does APB or ABP CLI requires Ansible 2.5? #313

Open
gaurav-nelson opened this issue Jul 5, 2018 · 8 comments
Open

Question: Does APB or ABP CLI requires Ansible 2.5? #313

gaurav-nelson opened this issue Jul 5, 2018 · 8 comments

Comments

@gaurav-nelson
Copy link

There is no mention of this in the prerequisites section.

PS: openshift/openshift-docs#10436

@djzager
Copy link
Contributor

djzager commented Jul 5, 2018

The APB CLI, as I understand it, has no requirements on the version of Ansible installed. @dymurray do you have any thoughts on this?

@gaurav-nelson gaurav-nelson changed the title Question: Does APB CLI requires Ansible 2.5? Question: Does APB requires Ansible 2.5? Jul 5, 2018
@gaurav-nelson gaurav-nelson changed the title Question: Does APB requires Ansible 2.5? Question: Does APB or ABP CLI requires Ansible 2.5? Jul 5, 2018
@gaurav-nelson
Copy link
Author

@djzager Thanks for looking at this.
I have revised the question, does APB or APB CLI requires Ansible 2.5?

@djzager
Copy link
Contributor

djzager commented Jul 6, 2018

@gaurav-nelson
When you say "APB" I assume you are referring generically to an APB container image, for example postgresql-apb. All of our APB images are based off of the apb-base container image and while the apb-base-scripts RPM does not specifically require Ansible, the latest released version of Ansible is included in that image from which other APB images are built.

My understanding of the APB CLI is that there is no requirement for Ansible. However, the APB CLI is changing from python -> golang for the 3.11 release so including @dymurray seems like a good idea.

@gaurav-nelson
Copy link
Author

@akesterton Can you please provide some insights here about the issue you encountered with Ansible version?

@akesterton
Copy link

akesterton commented Jul 13, 2018 via email

@jwmatthews
Copy link
Contributor

@akesterton @gaurav-nelson

For what you described, customer wanted to run the postgresql-apb from github master branch, yes Ansible 2.5 is expected and required if they are running the playbook directly outside context of the containerized APB image. (Also note that OCP 3.9 maps to release-1.1 branch in APB examples and not master as master is for newer OCP development)

Below is some more information that may help, please let me know if anything is unclear and I'd be happy to setup a call to chat on any specifics.

The typical workflow is for an end user to interact with Service Catalog which will instruct the Automation Broker to execute the APB. The APB is a containerized environment which has the Ansible dependencies and roles/playbooks, so all versioning requirements are self-contained in the image, i.e. end user doesn't need to worry about this since the container image has the dependencies solved.

Ansible support for k8s integration has been improving, you will see that example APBs have been evolving to leverage the latest improvements to Ansible. To be clear, these Ansible version dependencies are satisfied at the container image level when discussing consuming/publishing APBs, so end customer does not need to worry about specific dependencies in normal workflows.

Yet....during development of APBs, i.e. building a new APB and wanting to test out the Ansible k8s modules/roles the developer will need to have the version of Ansible they wish to use installed along with any dependencies.

Note, this is only for the development case or for someone who wants to debug and run the playbook by hand to observe what it does, this is not for the typical workflow of deployment via Service Catalog.

When discussing the developer use case, in OCP 3.9 the example Ansible code used Ansible 2.4 with an early version of the work on k8s modules. If you are looking at the latest code in 'master' of the examples you will see most of the examples use Ansible 2.5, yet we are beginning to update examples to use Ansible 2.6 which has better k8s modules required for some of the new support with Custom Resources.

Technically the APB itself does not impose a requirement on Ansible versions, yet normally a Developer will want to leverage the Ansible k8s modules, at which point they need to ensure they have the dependencies installed for what they want to run.

Hope this helps to clear things up, happy to discuss further.

@akesterton
Copy link

akesterton commented Jul 13, 2018 via email

@akesterton
Copy link

Apologies for not replying sooner. The customer is looking at the examples we provide in the documentation and this does not mention the need for another version of Ansible. I believe that we need to provide better instructions for this section as to what is required to use the example. People read these instructions in order to work out how to create an APB of their own.

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

No branches or pull requests

4 participants