Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token renewal fix #147

Merged
merged 2 commits into from Jun 29, 2016
Merged

Token renewal fix #147

merged 2 commits into from Jun 29, 2016

Conversation

Carthaca
Copy link
Collaborator

@Carthaca Carthaca commented Jun 24, 2016

If the initial authentication happened with a token, there is no chance of renewing the token - so we should properly fail.

Following #146, where the fix is exercised on one service I take the chance to refactor the request method into the core module.

Please note the following details:

  • module common was the role-model
  • I moved the path changes out into the set_api_path (newly introduced for metering service)
  • and the NotFound error class into self.not_found_class (fallback to compute. baremetal, orchestration and planning should introduce their own in the future I propose)
  • storage service had the additional request option parse_json, that needs to be removed later, in favor of the request param :raw_body I propose

@coveralls
Copy link

coveralls commented Jun 24, 2016

Coverage Status

Changes Unknown when pulling fc1241e on sapcc:token_renewal into * on fog:master*.

fix token renewal not possible with token auth
@coveralls
Copy link

coveralls commented Jun 24, 2016

Coverage Status

Changes Unknown when pulling 245d565 on sapcc:token_renewal into * on fog:master*.

@dhague
Copy link
Contributor

dhague commented Jun 24, 2016

LGTM - nice work.

@dhague dhague merged commit a74d122 into fog:master Jun 29, 2016
@Carthaca Carthaca deleted the token_renewal branch June 29, 2016 11:34
Ladas added a commit to Ladas/fog-openstack that referenced this pull request Jul 19, 2016
Fix stck create action, getting not found on template, when
stack has not been created yet. Brought by:
fog#147
@Ladas Ladas mentioned this pull request Jul 19, 2016
tzumainn pushed a commit to tzumainn/fog-openstack that referenced this pull request Aug 10, 2016
Fix stck create action, getting not found on template, when
stack has not been created yet. Brought by:
fog#147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants