Add python ABC metaclass to the os-brick Connectors

Registered by Walt Boring

This is a fairly small change to os-brick, but it will help define a required API for each of the Connector objects.

Right now the base class InitiatorConnector defines 2 methods connect_volume and disconnect_volume. Each of the child classes need to implement those, but there is nothing that requires them to do so in code.

This BP intends to convert the InitiatorConnector to an ABC metaclass that will then define a contract for child classes that impose the requirement to implement those methods and any other common methods in the future that each Connector has to implement.

Blueprint information

Status:
Complete
Approver:
Mike Perez
Priority:
Low
Drafter:
Walt Boring
Direction:
Approved
Assignee:
Walt Boring
Definition:
Approved
Series goal:
Accepted for liberty
Implementation:
Implemented
Milestone target:
milestone icon 7.0.0
Started by
Walt Boring
Completed by
Walt Boring

Related branches

Sprints

Whiteboard

Not sure why this patch didn't automatically update the BP, but here is the review for the code.

https://review.openstack.org/#/c/199642/

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.