Nonfuctional automatic upload of Inventory to RedHat Cloud Console

Problem:
Inventory is not automatically uploaded to RedHat Cloud Console when “Automatic invetory upload” is enabled. Manual invocation by “Restart” button works fine.
There is countdown when next run should start but in fact no report is generated during 2 weeks. In attached screenshot you can see text “Next run: in 14 hours” but it will never happen.

Expected outcome:

Foreman and Proxy versions:
katello-4.11.0-1.el8.noarch
foreman-3.9.1-1.el8.noarch

Foreman and Proxy plugin versions:

Distribution and version:
RHEL 8.8

Other relevant data:

I encountered a similar issue (maybe the same).

What I noticed is the task “Wait and Generate all reports job”.
This is how it looks on a system where inventory upload is not working:

And here I have the view of a working system:

In the first scenario we have flaky results and the job duration is much shorter (both system only have a handful of hosts attached).

The erroneous tasks show a “ArgumentError: wrong number of arguments (given 2, expected 3)” exception.

Is it similar in your case?

We identified an issue in the code and just submitted a patch https://github.com/theforeman/foreman_rh_cloud/pull/875. rh-cloud needs repackaging afterwards and the new package needs to be included in foreman_packaging.

2 Likes

Exactly same error

Task: Wait and Generate all reports job
Errors: wrong number of arguments (given 2, expected 3)

If anyone needs this fixed sooner, there’s always the option of trying the patch on your system https://github.com/theforeman/foreman_rh_cloud/pull/875.patch