[Yahoo-eng-team] [Bug 1693670] Re: Fix doc generation for Python3
** Also affects: oslo.messaging Importance: Undecided Status: New ** Changed in: oslo.messaging Assignee: (unassigned) => ZhangHongtao (zhanghongtao) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1693670 Title: Fix doc generation for Python3 Status in Aodh: In Progress Status in Barbican: Fix Released Status in Ceilometer: In Progress Status in Cue: In Progress Status in Designate: In Progress Status in OpenStack Backup/Restore and DR (Freezer): In Progress Status in Glance: In Progress Status in glance_store: In Progress Status in ldappool: In Progress Status in Meteos: In Progress Status in neutron: Fix Released Status in oslo.messaging: New Status in python-heatclient: In Progress Status in python-senlinclient: In Progress Status in Python client library for Zaqar: In Progress Status in OpenStack Object Storage (swift): In Progress Status in tacker: Fix Released Status in tempest: In Progress Status in OpenStack DBaaS (Trove): In Progress Status in zaqar: Fix Released Status in Zun: Fix Released Bug description: Fix the Sphinx html_last_updated_fmt for Python3. The html_last_updated_fmt option is interpeted as a byte string in python3, causing Sphinx build to break. This patch makes it utf-8 string. To manage notifications about this bug go to: https://bugs.launchpad.net/aodh/+bug/1693670/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1693670] Re: Fix doc generation for Python3
** Also affects: aodh Importance: Undecided Status: New ** Changed in: aodh Assignee: (unassigned) => ZhangHongtao (zhanghongtao) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1693670 Title: Fix doc generation for Python3 Status in Aodh: In Progress Status in Barbican: Fix Released Status in Ceilometer: In Progress Status in Cue: In Progress Status in Designate: In Progress Status in OpenStack Backup/Restore and DR (Freezer): In Progress Status in Glance: In Progress Status in glance_store: In Progress Status in Meteos: In Progress Status in neutron: Fix Released Status in python-heatclient: In Progress Status in python-senlinclient: In Progress Status in Python client library for Zaqar: In Progress Status in OpenStack Object Storage (swift): In Progress Status in tacker: Fix Released Status in tempest: In Progress Status in OpenStack DBaaS (Trove): In Progress Status in zaqar: Fix Released Status in Zun: Fix Released Bug description: Fix the Sphinx html_last_updated_fmt for Python3. The html_last_updated_fmt option is interpeted as a byte string in python3, causing Sphinx build to break. This patch makes it utf-8 string. To manage notifications about this bug go to: https://bugs.launchpad.net/aodh/+bug/1693670/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1693670] Re: Fix doc generation for Python3
** Also affects: tempest Importance: Undecided Status: New ** Changed in: tempest Assignee: (unassigned) => ZhangHongtao (zhanghongtao) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1693670 Title: Fix doc generation for Python3 Status in Barbican: Fix Released Status in Ceilometer: In Progress Status in Designate: In Progress Status in OpenStack Backup/Restore and DR (Freezer): In Progress Status in Glance: In Progress Status in Meteos: In Progress Status in neutron: Fix Released Status in python-heatclient: In Progress Status in Python client library for Zaqar: In Progress Status in OpenStack Object Storage (swift): In Progress Status in tacker: Fix Released Status in tempest: In Progress Status in OpenStack DBaaS (Trove): In Progress Status in zaqar: Fix Released Status in Zun: Fix Released Bug description: Fix the Sphinx html_last_updated_fmt for Python3. The html_last_updated_fmt option is interpeted as a byte string in python3, causing Sphinx build to break. This patch makes it utf-8 string. To manage notifications about this bug go to: https://bugs.launchpad.net/barbican/+bug/1693670/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1673300] [NEW] [api] In the API "GET /v3/auth/catalog", the parameter "X-Subject-Token" is unused, it is redundant.
Public bug reported: Like the title said, "X-Subject-Token" is unused, we need remove it from API reference document. The source code about API follows is below: @controller.protected() def get_auth_projects(self, request): user_id = request.auth_context.get('user_id') group_ids = request.auth_context.get('group_ids') user_refs = [] if user_id: try: user_refs = self.assignment_api.list_projects_for_user(user_id) except exception.UserNotFound: # nosec # federated users have an id but they don't link to anything pass grp_refs = [] if group_ids: grp_refs = self.assignment_api.list_projects_for_groups(group_ids) refs = self._combine_lists_uniquely(user_refs, grp_refs) return resource_controllers.ProjectV3.wrap_collection( request.context_dict, refs) "request.auth_context" is based on "X-Auth-Token", not "X-Subject-Token". ** Affects: keystone Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1673300 Title: [api] In the API "GET /v3/auth/catalog", the parameter "X-Subject- Token" is unused, it is redundant. Status in OpenStack Identity (keystone): New Bug description: Like the title said, "X-Subject-Token" is unused, we need remove it from API reference document. The source code about API follows is below: @controller.protected() def get_auth_projects(self, request): user_id = request.auth_context.get('user_id') group_ids = request.auth_context.get('group_ids') user_refs = [] if user_id: try: user_refs = self.assignment_api.list_projects_for_user(user_id) except exception.UserNotFound: # nosec # federated users have an id but they don't link to anything pass grp_refs = [] if group_ids: grp_refs = self.assignment_api.list_projects_for_groups(group_ids) refs = self._combine_lists_uniquely(user_refs, grp_refs) return resource_controllers.ProjectV3.wrap_collection( request.context_dict, refs) "request.auth_context" is based on "X-Auth-Token", not "X-Subject-Token". To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1673300/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1673301] [NEW] [api] In the API "GET /v3/auth/catalog", the parameter "X-Subject-Token" is unused, it is redundant.
Public bug reported: Like the summary said, "X-Subject-Token" is unused, we need remove it from API reference document. The source code about API follows is below: @controller.protected() def get_auth_projects(self, request): user_id = request.auth_context.get('user_id') group_ids = request.auth_context.get('group_ids') user_refs = [] if user_id: try: user_refs = self.assignment_api.list_projects_for_user(user_id) except exception.UserNotFound: # nosec # federated users have an id but they don't link to anything pass grp_refs = [] if group_ids: grp_refs = self.assignment_api.list_projects_for_groups(group_ids) refs = self._combine_lists_uniquely(user_refs, grp_refs) return resource_controllers.ProjectV3.wrap_collection( request.context_dict, refs) "request.auth_context" is based on "X-Auth-Token", not "X-Subject- Token". ** Affects: keystone Importance: Undecided Assignee: ZhangHongtao (zhanghongtao) Status: New ** Description changed: Like the summary said, "X-Subject-Token" is unused, we need remove it from API reference document. The source code about API follows is below: - @controller.protected() - def get_auth_projects(self, request): - user_id = request.auth_context.get('user_id') - group_ids = request.auth_context.get('group_ids') + @controller.protected() + def get_auth_projects(self, request): + user_id = request.auth_context.get('user_id') + group_ids = request.auth_context.get('group_ids') - user_refs = [] - if user_id: - try: - user_refs = self.assignment_api.list_projects_for_user(user_id) - except exception.UserNotFound: # nosec - # federated users have an id but they don't link to anything - pass + user_refs = [] + if user_id: + try: + user_refs = self.assignment_api.list_projects_for_user(user_id) + except exception.UserNotFound: # nosec + # federated users have an id but they don't link to anything + pass - grp_refs = [] - if group_ids: - grp_refs = self.assignment_api.list_projects_for_groups(group_ids) + grp_refs = [] + if group_ids: + grp_refs = self.assignment_api.list_projects_for_groups(group_ids) - refs = self._combine_lists_uniquely(user_refs, grp_refs) - return resource_controllers.ProjectV3.wrap_collection( - request.context_dict, refs) - - "request.auth_context" is based on "X-Auth-Token", not "X-Subject-Token". + refs = self._combine_lists_uniquely(user_refs, grp_refs) + return resource_controllers.ProjectV3.wrap_collection( + request.context_dict, refs) + + "request.auth_context" is based on "X-Auth-Token", not "X-Subject- + Token". ** Changed in: keystone Assignee: (unassigned) => ZhangHongtao (zhanghongtao) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1673301 Title: [api] In the API "GET /v3/auth/catalog", the parameter "X-Subject- Token" is unused, it is redundant. Status in OpenStack Identity (keystone): New Bug description: Like the summary said, "X-Subject-Token" is unused, we need remove it from API reference document. The source code about API follows is below: @controller.protected() def get_auth_projects(self, request): user_id = request.auth_context.get('user_id') group_ids = request.auth_context.get('group_ids') user_refs = [] if user_id: try: user_refs = self.assignment_api.list_projects_for_user(user_id) except exception.UserNotFound: # nosec # federated users have an id but they don't link to anything pass grp_refs = [] if group_ids: grp_refs = self.assignment_api.list_projects_for_groups(group_ids) refs = self._combine_lists_uniquely(user_refs, grp_refs) return resource_controllers.ProjectV3.wrap_collection( request.context_dict, refs) "request.auth_context" is based on "X-Auth-Token", not "X-Subject- Token". To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1673301/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1667194] [NEW] [api] The param "X-Subject-Token" is not needed in API "GET /v3/auth/projects"
Public bug reported: In the API guide about "GET /v3/auth/projects", request param "X-Subject-Token" is needed and the description is "The authentication token. An authentication response returns the token ID in this header rather than in the response body.". But, this API call returns the list of projects that are available to be scoped to based on the X-Auth-Token provided in the request, "X-Subject-Token" is needless.Otherwise, the description about request param "X-Auth-Token" says "A valid authentication token for an administrative user.", it is wrong, this API need not admin permission. ** Affects: keystone Importance: Undecided Status: New ** Description changed: - In the API guide about "GET /v3/auth/projects", request param "X-Subject-Token" is needed and the description is "The authentication token. An authentication response returns the token ID in this header rather than in the response body.". - But, this API call returns the list of projects that are available to be scoped to based on the X-Auth-Token provided in the request, "X-Subject-Token" is needless.Otherwise, the description about request param "X-Auth-Token" says "A valid authentication token for an administrative user.", it is wrong, this API need not admin permission. + In the API guide about "GET /v3/auth/projects", request param "X-Subject-Token" is needed and the description is "The authentication token. An authentication response returns the token ID in this header rather than in the response body.". + But, this API call returns the list of projects that are available to be scoped to based on the X-Auth-Token provided in the request, "X-Subject-Token" is needless.Otherwise, the description about request param "X-Auth-Token" says "A valid authentication token for an administrative user.", it is wrong, this API need not admin permission. -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1667194 Title: [api] The param "X-Subject-Token" is not needed in API "GET /v3/auth/projects" Status in OpenStack Identity (keystone): New Bug description: In the API guide about "GET /v3/auth/projects", request param "X-Subject-Token" is needed and the description is "The authentication token. An authentication response returns the token ID in this header rather than in the response body.". But, this API call returns the list of projects that are available to be scoped to based on the X-Auth-Token provided in the request, "X-Subject-Token" is needless.Otherwise, the description about request param "X-Auth-Token" says "A valid authentication token for an administrative user.", it is wrong, this API need not admin permission. To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1667194/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp