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

drop fallback to Host API when Reports API fails #1808

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Dec 5, 2024

The results the Host API returns are different from the Reports API, so
when the user asks for Reports API (via use_reports_api), they should
get exactly that, as otherwise their Playbooks/Roles might miss-behave
given different data is fed into them.

The results the Host API returns are different from the Reports API, so
when the user asks for Reports API (via `use_reports_api`), they should
get exactly that, as otherwise their Playbooks/Roles might miss-behave
given different data is fed into them.
@@ -0,0 +1,2 @@
bugfixes:
Copy link
Member Author

Choose a reason for hiding this comment

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

I wasn't sure about this. Conceptually it's a bugfix (you really do not want wrong data when running stuff), but it's also technically a breaking change 🙈

Realistically, this is only a breaking change for users who

  • do not have foreman_ansible installed
  • have use_reports_api: true
  • have ignored the "Failed to use Reports API, falling back to Hosts API" warning ever since
    🤷‍♀️

Copy link
Member

Choose a reason for hiding this comment

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

And additionally if that thing ever triggered, there inventory ran into the wrong data (format) and presumably failed anyway down the line? IMHO It definitely is a bugfix. It breaks bug to bug compatibility, right?

@evgeni evgeni merged commit 90bd311 into develop Dec 5, 2024
53 checks passed
@evgeni evgeni deleted the drop-fallback-hostapi branch December 5, 2024 11:00
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.

2 participants