-
Notifications
You must be signed in to change notification settings - Fork 115
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
host should successfully reg with setup_insights=true #16606
base: master
Are you sure you want to change the base?
host should successfully reg with setup_insights=true #16606
Conversation
ce2afb1
to
4fb3060
Compare
PRT Result
|
5c8c7a7
to
95224ae
Compare
95224ae
to
886259b
Compare
@amolpati30 Why is it not cherrypicked to older versions? I think the fix is available there too. |
PRT Result
|
d31f192
to
b071ca0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, one small change I would make is in the host status, you should see a status for insights, we should assert that is active on the host after registration. That is probably the best way to mock that it did register and went up to the cloud.
PRT Result
|
b071ca0
to
4bd8a2c
Compare
PRT Result
|
4bd8a2c
to
1ecad45
Compare
1ecad45
to
9ec0925
Compare
9ec0925
to
39e3225
Compare
PRT Result
|
39e3225
to
edc26d5
Compare
trigger: test-robottelo |
PRT Result
|
status = session.host_new.get_host_statuses(rhel_contenthost.hostname) | ||
assert status['Build']['Status'] == 'Installed' | ||
assert status['Insights']['Status'] == 'Reporting' | ||
facts = session.host_new.get_host_facts(rhel_contenthost.hostname, 'insights_client') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we use some specific Airgun entity to obtain desired facts and check them afterwards?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we can retrieve the required fact using the following:
facts = session.host_new.get_host_facts(rhel_contenthost.hostname, 'insights_client')
Additionally, I don't think further filtering is necessary, as this function already provides sufficient information.
Problem Statement
The global registration method of registration started behaving oddly. The entire process completes but the Host remains in build mode
Solution
Automation
: The host has been successfully registered and is no longer in build mode. Additionally, the facts for the host have been processed