Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Fix quota update bug "index out of range" #606

Merged
merged 2 commits into from
Apr 17, 2018

Conversation

cdosborn
Copy link
Contributor

@cdosborn cdosborn commented Apr 17, 2018

Description

Fix quota update causing index out of range

Problem

Updating a users quota, would trigger an index out of range error

Solution

Use a different api for fetching the users tenant id

In the act of changing quota, we require a tenant id for the user. The original api which fetched this id, did so through a side effect of establishing a connection to the nova compute api. This side effect changed when marana was upgraded to use the 2.1 compute api rather than the 2 version. It changed as a result of a new url returned from the service catalog discovery.

We are no longer using this method in rtwo _get_tenant_id.
I tested against marana, workshop, iu, and tacc.

Checklist before merging Pull Requests

  • Add an entry in the changelog
  • Reviewed and approved by at least one other contributor.

@cdosborn cdosborn self-assigned this Apr 17, 2018
Problem:
Updating a users quota, would trigger an index out of range error

Solution:
Use a different api for fetching the users tenant id

In the act of changing quota, we require a tenant id for the user. The original api
which fetched this id, did so through a side effect of establishing a
connection to the nova compute api. This side effect changed when marana was
upgraded to use the 2.1 compute api.

We are no longer using this method in rtwo `_get_tenant_id`.
@coveralls
Copy link

coveralls commented Apr 17, 2018

Coverage Status

Coverage decreased (-0.4%) to 36.303% when pulling 19676a7 on cdosborn:fix-broken-quota-update into ffde8ef on cyverse:v32.

Copy link
Contributor

@julianpistorius julianpistorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Thanks @cdosborn. I thought I was going crazy.

@cdosborn cdosborn merged commit 5d6e303 into cyverse:v32 Apr 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants