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

[WARNING]: The following parameters are not supported by your server when performing create on repositories: {'organization_id'}. They were ignored. #1055

Closed
evgeni opened this issue Nov 10, 2020 · 3 comments · Fixed by #1062

Comments

@evgeni
Copy link
Member

evgeni commented Nov 10, 2020

SUMMARY

trying to create a repo using the below playbook

ISSUE TYPE
  • Bug Report
ANSIBLE VERSION
2.10
COLLECTION VERSION
develop
KATELLO/FOREMAN VERSION
3.16
STEPS TO REPRODUCE
    - name: "Create files repository 'docker-compose-linux-x86_64' for product 'docker-compose'"
      theforeman.foreman.repository:
        username: "{{ foreman_username }}"
        password: "{{ foreman_password }}"
        server_url: "{{ foreman_url }}"
        validate_certs: "{{ foreman_validate_certs }}"
        organization: "{{ foreman_initial_organization }}"
        name: "docker-compose-linux-x86_64"
        state: present
        content_type: "file"
        product: "docker-compose"
EXPECTED RESULTS

no warning

ACTUAL RESULTS

@evgeni
Copy link
Member Author

evgeni commented Nov 16, 2020

I think that's actually a Katello "bug": repos are scoped by product which are scoped by org, but there is no reason not to accept the org id here IMHO

@evgeni
Copy link
Member Author

evgeni commented Nov 16, 2020

@mdellweg so using something like module.foreman_spec['entity']['scope'].remove('organization') yields the fact that the VCR tapes doesn't match anymore:

assertion failure :
  [('per_page', '4294967296'), ('search', 'name=\"Test Debian Repository\"')] != [('per_page', '4294967296'), ('product_id', '1'), ('search', 'name=\"Test Debian Repository\"')]

@evgeni
Copy link
Member Author

evgeni commented Nov 16, 2020

Oh, that's fine, it's using the other path now: assertion failure :\n/katello/api/products/1/repositories != /katello/api/organizations/3/repositories

@evgeni evgeni linked a pull request Nov 18, 2020 that will close this issue
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 a pull request may close this issue.

1 participant