Sync common functions from devstack
Sync common functions from devstack

We have some functions copied from devstack/functions-common [1]
. Sync them.
This also fixes a problem introduced with commit 85914bc8c8 which is:

+ get_or_add_group_project_role member \
    5d3d88dc16e7458ab1c9fccf93831dc5 bea50a066f4e45a690b890e6080e5fb7
+ local group_role_id
++ openstack role assignment list --group \
    5d3d88dc16e7458ab1c9fccf93831dc5 --project \
    bea50a066f4e45a690b890e6080e5fb7  --column ID --format value
No recognized column names in ['ID']. Recognized columns are \
    ('Role', 'User', 'Group', 'Project', 'Domain', 'System', 'Inherited').

[1] https://github.com/openstack/devstack/blob/master/functions-common

SUSE-Cloud/openstack-quickstart