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

Compute v2: Fix EOF errors in compute secgroups #815

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

jtopjian
Copy link
Contributor

@jtopjian jtopjian commented Mar 9, 2018

For #206

This commit modifies the AddServer and RemoveServer actions so a response body is not parsed.

I'll admit I haven't done an exhaustive review of the code, but from what I can tell, the lack of a return statement here:

https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/security_groups.py#L441-L456

Is probably good enough.

Note how other functions are returning some object, such as here:

https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/security_groups.py#L340

Also note that the explicit EOF check in the acceptance test was added by me (which I'm removing in this PR). This is because I swear I was seeing intermittent EOFs and not steady ones. But it's been so long since I was working on that, I can't be sure if my testing was correct.

/cc @dklyle

@coveralls
Copy link

coveralls commented Mar 9, 2018

Coverage Status

Coverage remained the same at 73.802% when pulling 4a1a047 on jtopjian:computev2-secgroup-eof-fix into d2fe5bf on gophercloud:master.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 9, 2018

Build succeeded.

@colin-nolan
Copy link
Contributor

I've confirmed that, with our OpenStack system, this fix solves the EOF problem we were encountering.

Copy link
Contributor

@dklyle dklyle left a comment

Choose a reason for hiding this comment

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

This looks sane to me and fixes the problem. Thanks.

@jrperritt jrperritt merged commit 35000af into gophercloud:master Mar 15, 2018
@jtopjian jtopjian deleted the computev2-secgroup-eof-fix branch April 24, 2018 03:17
cardoe pushed a commit to cardoe/gophercloud that referenced this pull request Aug 27, 2020
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

5 participants