Skip to content

Added Type into ServiceClient to Distinguish Different Services#341

Closed
pospispa wants to merge 1 commit intogophercloud:masterfrom
pospispa:microversion-header-fix
Closed

Added Type into ServiceClient to Distinguish Different Services#341
pospispa wants to merge 1 commit intogophercloud:masterfrom
pospispa:microversion-header-fix

Conversation

@pospispa
Copy link
Copy Markdown
Contributor

All ServiceClient methods insert the OpenStack Nova HTTP Microversion header ("X-OpenStack-Nova-API-Version") into HTTP requests even though the request may be to a different service than Nova. This is incorrect.

That's why a mapping of serviceType to HTTPMicroversionHeader is added. Default value (empty string) is mapped to OpenStack Nova HTTP Microversion header because of backward compatibility.

The serviceType constants will be made public as soon as it will be needed.

Prior to a PR being reviewed, there needs to be a Github issue that the PR
addresses. Replace the brackets and text below with that issue number.

For #53

Links to the line numbers/files in the OpenStack source code that support the
code in this PR: N/A

All ServiceClient methods insert the OpenStack Nova HTTP Microversion header ("X-OpenStack-Nova-API-Version") into HTTP requests even though the request may be to a different service than Nova. This is incorrect.

That's why a mapping of serviceType to HTTPMicroversionHeader is added. Default value (empty string) is mapped to OpenStack Nova HTTP Microversion header because of backward compatibility.

The serviceType constants will be made public as soon as it will be needed.
@pospispa pospispa mentioned this pull request May 16, 2017
@coveralls
Copy link
Copy Markdown

coveralls commented May 16, 2017

Coverage Status

Coverage remained the same at 69.883% when pulling 04febbb on pospispa:microversion-header-fix into c5dfe1b on gophercloud:master.

@pospispa
Copy link
Copy Markdown
Contributor Author

@jtopjian @jrperritt please review

@jrperritt
Copy link
Copy Markdown
Contributor

I'm not sure this is the best way to implement this. I'll want to read more about it before we merge anything.

@pospispa
Copy link
Copy Markdown
Contributor Author

@jrperritt OK, will wait and looking forward to your comments.

@jrperritt
Copy link
Copy Markdown
Contributor

See #355 for my take on how to handle this.

@pospispa
Copy link
Copy Markdown
Contributor Author

pospispa commented Jun 5, 2017

Solution in #355 was chosen that's why this PR is closed without merge.

@pospispa pospispa closed this Jun 5, 2017
msheikh-wind pushed a commit to msheikh-wind/gophercloud that referenced this pull request May 19, 2025
This commit enables multi-netting configuration for VLAN and Bond
network types as well. Previously, only the Ethernet type was
checking the configuration.

Test Plan
[Day 1]
- Add admin multi-netting configuration: no changes should be applied.
[Day 2]
- Add admin multi-netting configuration for the 3 types (Ethernet,
  VLAN, Bond). The configuration should be applied w/o lock/unlock.

Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
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.

3 participants