-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Modified scale awareness from exception to warning #1466
Conversation
6d5ff62
to
2538283
Compare
I think this is a good idea. I'll defer to others about the text of the warning. |
raise CannotBeScaledError() | ||
log.warn('Service %s only specifies a port on the host. If multiple ' | ||
'containers for this service are created on a single host, ' | ||
'the port will clash.' % self.name) |
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.
Pretty clear warning, but I don't think we need "only".
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.
Oh, you're right, makes more sense without the "only"
Signed-off-by: André Martins <martins@noironetworks.com>
2538283
to
ae63d35
Compare
LGTM |
1 similar comment
LGTM |
Modified scale awareness from exception to warning
ping @bfirsh - reckon we could consider this a "bug fix" and include it in 1.3? |
👍 |
Nice. Let's do another RC with this fix then (after a few days, just in case any more issues crop up). |
Thank you!
|
…arning Modified scale awareness from exception to warning (cherry picked from commit 7d2a894) Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
…arning Modified scale awareness from exception to warning (cherry picked from commit 7d2a894) Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
It should be possible to use scale and |
It starts not making sense only use docker-compose on a single host environment. I'm proposing removing the scale awareness of port collision from exception to a warning.
Fixes: #1378
Signed-off-by: André Martins martins@noironetworks.com