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
Fixes #18972 - clean hosts with nil sub uuid #6691
Conversation
@jlsherrill, thanks for your PR! By analyzing the history of the files in this pull request, we identified @parthaa and @chris1984 to be potential reviewers. |
To test, simply register a host and run: Host.find(id).subscription_facet.update_attributes(:uuid => nil) |
BTW, this didn't fix my issue. While it found the systems that needed unregistering/deleting they still could not be deleted. The task that got spawned died with a 404 error:
|
as discussed offline, that issue is no longer present in the current katello |
I am seeing this when I run the
The SubscriptionFacet still exists, but it looks like it was unregistered. (not sure if that is the expected outcome) I still see the Content Host in the UI, but there is an error when I navigate to it here is the traceback |
@johnpmitsch this may be candlepin 2.0 related. Do you have the traceback from teh rake task? |
actually i can reproduce |
I was going to test this morning, but it looks like an updated commit is coming. I will test with the new one. |
Note, i fixed the cp 2.0 error in #6695. These two prs should be tested together. |
#6695 is merged, this is ready to be retested. |
[root@centos7-katello-nightly ~]# foreman-rake katello:clean_backend_objects Works here after the #6695 merge |
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.
Approved.
No description provided.