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

Add logging and update upgrade_message for successful registration #17340

Merged

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Apr 24, 2018

It seems hard to tell whether the entire process of registering, attaching
products and enabling repos has finished.

https://bugzilla.redhat.com/show_bug.cgi?id=1566562

cc @lcouzens

It seems hard to tell whether the entire process of registering, attaching
products and enabling repos has finished.

https://bugzilla.redhat.com/show_bug.cgi?id=1566562
@miq-bot
Copy link
Member

miq-bot commented Apr 24, 2018

Checked commit bdunne@39828bc with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@@ -63,6 +63,8 @@ def attempt_registration
configure_yum_proxy
# HACK: #enable_repos is not always successful immediately after #attach_products, retry to ensure they are enabled.
5.times { repos_enabled? ? break : enable_repos }
update_attributes(:upgrade_message => "Registration process completed successfully")
Copy link
Member

Choose a reason for hiding this comment

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

Should this just be "registration successful" like here? Or are these conditions different?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. I wanted to differentiate the completion of "subscription-manager register" and the completion of the entire process of registering (register, attach, enable repos).

@carbonin carbonin self-assigned this Apr 24, 2018
@carbonin carbonin merged commit 381abb3 into ManageIQ:master Apr 24, 2018
@carbonin carbonin added this to the Sprint 85 Ending May 7, 2018 milestone Apr 24, 2018
@bdunne bdunne deleted the add_registration_successful_notifications branch April 24, 2018 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants