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

Single container #210

Merged
merged 2 commits into from Apr 28, 2020
Merged

Single container #210

merged 2 commits into from Apr 28, 2020

Conversation

mdellweg
Copy link
Member

No description provided.

AWS_S3_ENDPOINT_URL = "http://minio:9000"
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
AWS_DEFAULT_ACL = "@none None"
{% endif %}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include the pulp_settings from the template config.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't as trivial as previously thought.
I added an ansible filter around pythons repr to make it work.

@mikedep333
Copy link
Member

@mdellweg Per the meeting, give me a little more time to finish my review.

@pep8speaks
Copy link

pep8speaks commented Apr 22, 2020

Hello @mdellweg! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-04-28 12:36:37 UTC

templates/travis/.travis/Containerfile.ci_base Outdated Show resolved Hide resolved
Comment on lines +67 to +69
plugins:
- name: pulpcore
source: pulpcore{{ pulpcore_pip_version_specifier | default(omit, true) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: Later on, we're going to need special logic for pulpcore. I suppose we could always change this later:
https://pulp.plan.io/issues/5864

Comment on lines +67 to +74
plugins:
- name: pulpcore
source: pulpcore{{ pulpcore_pip_version_specifier | default(omit, true) }}
- name: {{ plugin_name }}
source: ./{{ plugin_name }}
{%- for item in additional_plugins %}
- name: {{ item.name }}
source: {{ item.name }}{{ item.pip_version_specifier | default(omit, true) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we currently have 3 different data structures for our list of plugins to install across our installers. The addition of the 2nd & 3rd are my fault, but we should still try to consolidate them, even if certain args are ignored in different installers.

  1. pulp_installer pulp_install_plugins
  2. pulpcore.git/containers plugins
  3. template_config.yml additional_plugins

That said, I do approve of your design though, because it is based on additional_plugins.

Comment on lines +24 to +30
{%- for repository in ["pulpcore", "pulp-smash", "pulp-openapi-generator"] + additional_plugins | map(attribute="name") | list %}
export {{ repository | upper | replace("-", "_") }}_PR_NUMBER=$(echo $COMMIT_MSG | grep -oP 'Required\ PR:\ https\:\/\/github\.com\/pulp\/{{ repository }}\/pull\/(\d+)' | awk -F'/' '{print $7}')
{%- endfor %}
else
export PULP_PR_NUMBER=
export PULP_SMASH_PR_NUMBER=
export PULP_ROLES_PR_NUMBER=
export PULP_BINDINGS_PR_NUMBER=
export PULP_OPERATOR_PR_NUMBER=
{%- for repository in ["pulpcore", "pulp-smash", "pulp-openapi-generator"] + additional_plugins | map(attribute="name") | list %}
export {{ repository | upper | replace("-", "_") }}_PR_NUMBER=
{%- endfor %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I was just brainstorming ways to make this more generic for https://pulp.plan.io/issues/6557

Comment on lines 110 to 119
# Install ansible with the boto3 tags to dict fix
pip install git+https://github.com/mdellweg/ansible.git@fix_boto3_tags_dict
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a PR against ansible?

I looked for one.

It also looks like ec2.py is no longer in the repo as of 2.10 devel (moved to a partner collection?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, i did not find that file either in master. My guess is the humongous community-collection.
But actually i am unsure, whether the root problem here is with ansible, or minio.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you mean.

I found the repo for Ansible 2.10 (git log -- ./deleted/file/path), the line is not fixed:
https://github.com/ansible-collections/amazon.aws/blob/master/plugins/module_utils/ec2.py#L458

It is published on Galaxy here, per Ansible's plan to separate partner modules from ansible core:

Could you please try reporting it to 1 or the other?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do. Thank you for finding it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Please do 1 of the following so we don't end up with this forever:

  1. Put a comment above it with a link to the PR.
  2. Create a task in Pulp's redmine to make sure the PR gets accepted there (or in minio if they refuse.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment in place. I mentioned the move of the code to the collection, because this might be interesting anyway, when using the next version of ansible.

templates/travis/.travis/before_script.sh.j2 Show resolved Hide resolved
@mdellweg mdellweg force-pushed the single_container branch 4 times, most recently from b86eec4 to 9dd39a6 Compare April 27, 2020 11:37
Copy link
Member

@mikedep333 mikedep333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@mdellweg mdellweg merged commit 40f158d into pulp:master Apr 28, 2020
@mdellweg mdellweg deleted the single_container branch April 28, 2020 15:34
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

Successfully merging this pull request may close these issues.

None yet

4 participants