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

redhat_subscription: use CLI when using environments #6319

Conversation

ptoscano
Copy link
Contributor

SUMMARY

It turns out that the 'environments' that the D-Bus Register*() APIs accept are the IDs of the environments, and not the user-facing names of the environments (which is what the module has been accepting so far).

Since there is no easy way to do the mapping manually, for now use again the subscription-manager CLI for registering when environments are specified.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

redhat_subscription

@ptoscano ptoscano force-pushed the redhat_subscription-no-dbus-with-environments branch from 3468afa to 19a71e5 Compare April 11, 2023 18:14
@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI needs_maintainer needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR os packaging plugins plugin (any type) labels Apr 11, 2023
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added ci_verified Push fixes to PR branch to re-run CI and removed needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI labels Apr 11, 2023
It turns out that the 'environments' that the D-Bus Register*() APIs
accept are the IDs of the environments, and not the user-facing names of
the environments (which is what the module has been accepting so far).

Since there is no easy way to do the mapping manually, for now use again
the subscription-manager CLI for registering when environments are
specified.
@ptoscano ptoscano force-pushed the redhat_subscription-no-dbus-with-environments branch from 19a71e5 to a74bd2f Compare April 11, 2023 18:21
@ansibullbot ansibullbot removed ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Apr 11, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-6 labels Apr 13, 2023
@felixfontein
Copy link
Collaborator

@ptoscano looks good to me. Do you want to wait for reviews, or should I merge?

@ptoscano
Copy link
Contributor Author

@ptoscano looks good to me. Do you want to wait for reviews, or should I merge?

Should be OK, thanks!

@felixfontein felixfontein merged commit 83994c0 into ansible-collections:main Apr 13, 2023
@patchback
Copy link

patchback bot commented Apr 13, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/83994c0a2d0002f1008ec2d68ffb8332205a4693/pr-6319

Backported as #6332

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Apr 13, 2023
@felixfontein
Copy link
Collaborator

@ptoscano thanks!

patchback bot pushed a commit that referenced this pull request Apr 13, 2023
It turns out that the 'environments' that the D-Bus Register*() APIs
accept are the IDs of the environments, and not the user-facing names of
the environments (which is what the module has been accepting so far).

Since there is no easy way to do the mapping manually, for now use again
the subscription-manager CLI for registering when environments are
specified.

(cherry picked from commit 83994c0)
@ptoscano ptoscano deleted the redhat_subscription-no-dbus-with-environments branch April 13, 2023 05:21
felixfontein pushed a commit that referenced this pull request Apr 13, 2023
…hen using environments (#6332)

redhat_subscription: use CLI when using environments (#6319)

It turns out that the 'environments' that the D-Bus Register*() APIs
accept are the IDs of the environments, and not the user-facing names of
the environments (which is what the module has been accepting so far).

Since there is no easy way to do the mapping manually, for now use again
the subscription-manager CLI for registering when environments are
specified.

(cherry picked from commit 83994c0)

Co-authored-by: Pino Toscano <ptoscano@redhat.com>
@github-actions
Copy link

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module needs_maintainer os packaging plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants