Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1722413

Summary: [RFE] Add support for virt-who-plugin through satellite-installer
Product: Red Hat Satellite Reporter: Kunxin Huang <kuhuang>
Component: Virt-who Configure PluginAssignee: Marek Hulan <mhulan>
Status: CLOSED NOTABUG QA Contact: Kunxin Huang <kuhuang>
Severity: unspecified Docs Contact: satellite-doc-list
Priority: unspecified    
Version: 6.6.0CC: hsun, jpathan, mhulan, sghai, yuefliu
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-05 08:08:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 3 Marek Hulan 2019-06-24 13:25:41 UTC
AFAIK plugins uninstalling or disabling is generally not supported and know to be problematic (with 1 exception IIRC). What is the use case for implementing this?

Comment 5 Sachin Ghai 2019-06-27 09:09:10 UTC
Hey Mirek, The intent behind this RFE is to have a parity between UI and CLI for enabling or disabling the virt-who plugin like we have the same option for other plugins like oscap. Now I see your comment "AFAIK plugins uninstalling or disabling is generally not supported and know to be problematic", so how it is problematic ?

Comment 6 Marek Hulan 2019-07-23 15:53:31 UTC
I think there are some misunderstandings here

1) this plugin has a rake task to clean up DB, which is handy if someone uninstalls the plugin in upstream
2) plugins uninstallation is not supported in Satellite in general at least as far as I know, e.g. you can't uninstall foreman_openscap, foreman_ansible or katello. I believe satellite rpm has a hard dependency on these plugins. Today, there's no way to disable plugin.
3) satellite-installer --no-enable-$whatever does not uninstall anything, it just disables configuration of the plugin, once you install the plugin and run the installer with this option, it does not touch this part configuration
4) Given the above, this plugin is no exception and disabling/uninstallation is not possible

To give you a bit more background for what I referred to as problematic - uninstalling means removal of the code that defines classes, the data still remains in DB, also structures are already changed. When later Satellite see such data, it's missing a class definition for it, resulting in 500. Also in rare cases, the remaining code does not know how to worked with modified DB schema.

Do you need more information or can we close this as not a bug? Also not sure what you mean by UI and CLI for enabling/disabling plugin. There's no UI or CLI for this.

Comment 7 Sachin Ghai 2019-09-05 08:08:48 UTC
Thanks Marek.

I understand that the enable/disable options doesn't uninstall plugins and plugin uninstall is not supported in general. I can close this as not a bug.