Bug 1201933 - RFE: Make plugins programmatically environmentally aware.
Summary: RFE: Make plugins programmatically environmentally aware.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libblockdev
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vratislav Podzimek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-13 21:20 UTC by mulhern
Modified: 2015-05-08 07:33 UTC (History)
1 user (show)

Fixed In Version: libblockdev-0.12-1.fc21
Clone Of:
Environment:
Last Closed: 2015-05-08 07:33:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description mulhern 2015-03-13 21:20:47 UTC
Description of problem:

Plugins don't communicate whether they can actually be used to client code.

Version-Release number of selected component (if applicable):

1.fc21

How reproducible:

Quite.

Steps to Reproduce:

N/A

Actual results:

N/A

Expected results:

N/A

Additional info:

The plugin should have some interface such that client code can invoke
a function, "available", that returns true if the facilities
on which the plugin tool is dependent are available, otherwise false.
They should also have a method "implemented", which distinguishes between
a fully implemented plugin and a dummy plugin, with stub methods. Names "available" and "implemented" have been chosen to match the existing names
in the tasks framework.

libblockdev has facilities for loading modules. There should be some attention
paid to whether the underlying facilities are available when loading a module.
One possibility is that an exception should be raised when the module is being
loaded if its facilities are unavailable. This is probably the most general and best since the client code can then determine the appropriate action, e.g., unload, warn user, etc.

Comment 1 Vratislav Podzimek 2015-04-08 16:31:17 UTC
This is being tracked in https://github.com/rhinstaller/libblockdev/pull/8

Comment 2 Fedora Update System 2015-04-20 10:49:08 UTC
libblockdev-0.11-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/libblockdev-0.11-1.fc21

Comment 3 Fedora Update System 2015-04-21 18:59:14 UTC
Package libblockdev-0.11-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libblockdev-0.11-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6485/libblockdev-0.11-1.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-04-26 12:45:38 UTC
Package libblockdev-0.12-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libblockdev-0.12-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6485/libblockdev-0.12-1.fc21
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-05-08 07:33:59 UTC
libblockdev-0.12-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.