Put admin functions in _proxy_admin

Bug #1505266 reported by Everett Toews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack SDK
New
Undecided
Unassigned

Bug Description

For any service that exposes admin functions, we should put those functions in a separate file _proxy_admin and expose it in a separate dynamically loaded module. Perhaps we don't even load that module if the user doesn't have admin privileges. For example,

    conn.compute_admin.create_flavor()

The focus of this SDK is end user developers, not administrators. Mixing user functions and admin functions is at best confusing and at worst a source of bugs for users who don't realize they're attempting to do admin functions.

Most admins will not use this SDK directly as they typically aren't coding in Python but rather in bash or the like. Admins will mostly be using this SDK indirectly via OpenStack Client, Ansible, or some other higher level tool. They will get no direct benefit from having their functions mixed in with everything else.

We do need to support admin functions but let's keep them separate to minimize confusion.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.