maas-import-ephemerals: use rootwrap to manage tgt

Registered by Oleg Strikov

Maas-import-ephemerals should be run as root to use 'tgt-admin' which requires root permissions.
Openstack-nova uses rootwrap (https://pypi.python.org/pypi/oslo.rootwrap) to solve absolutely the same problem.
Nova's approach is better because nothing gets executed with root permissions except tgt-admin.
Another potential benefit (which requires some additional work though) is the ability to manage tgt dynamically (e.g. export targets when maas starts and drop them when maas stops) because we don't need user to run sudo manually.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Oleg Strikov
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Adam Collard

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.