-
Notifications
You must be signed in to change notification settings - Fork 456
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
Adjust generated dhcp to match libvirt limitation of max 65535 addresses #753
Conversation
@johscheuer thx for PR. CI is failing on this PR. We will need to have look |
7624886
to
2b0f909
Compare
I believe that the failing CI is not really related to the changes, since the failing tests are located in --- FAIL: TestRemoteImageDetermineType (0.00s)
volume_image_test.go:85: listen tcp :23032: bind: cannot assign requested address
=== RUN TestRemoteImageDownloadRetry
2020/07/05 15:31:56 [DEBUG]: url resp status code 503 Service Unavailable (retry #0)
2020/07/05 15:31:58 [DEBUG]: url resp status code 503 Service Unavailable (retry #1)
2020/07/05 15:32:00 [DEBUG]: url resp status code 200 OK (retry #2)
2020/07/05 15:32:00 [DEBUG]: url resp status code 503 Service Unavailable (retry #0)
2020/07/05 15:32:02 [DEBUG]: url resp status code 404 Not Found (retry #1)
--- PASS: TestRemoteImageDownloadRetry (6.01s)
volume_image_test.go:119: Server serving retry 0
volume_image_test.go:119: Server serving retry 1
volume_image_test.go:123: Server: success (after 2 errors)
volume_image_test.go:119: Server serving retry 0
volume_image_test.go:119: Server serving retry 1
=== RUN TestRemoteImageDownload
--- FAIL: TestRemoteImageDownload (0.00s)
volume_image_test.go:170: listen tcp :55130: bind: cannot assign requested address
FAIL |
@@ -96,7 +117,7 @@ func (fws *fileWebServer) Start() error { | |||
|
|||
handler := http.NewServeMux() | |||
handler.Handle("/", http.FileServer(http.Dir(dir))) | |||
fws.server = &http.Server{Addr: fmt.Sprintf(":%d", fws.Port), Handler: handler} | |||
fws.server = &http.Server{Addr: fmt.Sprintf("127.0.0.1:%d", fws.Port), Handler: handler} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that somehow this bug was related travis-ci/travis-ci#8711? Are there any downsides to hardcode 127.0.0.1
(except that IPv6 doesn't work 😞)
Friendly ping @MalloZup |
@johscheuer ok thx I will add it on my backlog. sorry for delay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really good work @johscheuer I liked your PR
This PR fixes the issue with IPv6 and DHCP mentioned in #752 and ensures that only 2^16 addresses are used for the DHCP range (which is somehow a limitation of libvirt).