brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grkvlt <>
Subject [GitHub] incubator-brooklyn pull request: Update Tomcat's webapp.url sensor...
Date Tue, 20 Oct 2015 22:48:21 GMT
Github user grkvlt commented on a diff in the pull request:
    --- Diff: software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/
    @@ -93,11 +93,11 @@ protected String inferRootUrl() {
             if (isProtocolEnabled("https")) {
                 Integer port = getHttpsPort();
                 checkNotNull(port, "HTTPS_PORT sensors not set; is an acceptable port available?");
    -            return String.format("https://%s:%s/", getSubnetHostname(), port);
    +            return String.format("https://%s:%s/", getHostname(), port);
    --- End diff --
    @neykov @aledsage I think that `BrooklynAccessUtils` is actually the right choice to get
the host and port for the `main.uri` URL which will therefore work with Clocker. Note that
the current `getSubnetHostname()` call will return the SDN provided IP address, so with e.g.
Calico defaults in Clocker you would get as the address, and that is only accessible
from other containers, not from Brookln. And `getHostname()` will return the Docker host IP
address, so the port will then be wrong, due to forwarding. 

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message