18790: Use WebDAV.InternalURLs instead of WebDAVDownload.
authorTom Clegg <tom@curii.com>
Wed, 5 Apr 2023 18:29:18 +0000 (14:29 -0400)
committerTom Clegg <tom@curii.com>
Wed, 5 Apr 2023 18:29:18 +0000 (14:29 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

doc/admin/config-urls.html.textile.liquid
lib/controller/localdb/container_gateway.go

index 2d46a4ca446ea7c02e13623b5844c9fb0e496013..6152b0251321ea7d82dbc01d384c8edfd34868d3 100644 (file)
@@ -46,7 +46,7 @@ table(table table-bordered table-condensed).
 ^2^ If the reverse proxy (e.g. Nginx) does not run on the same host as the Arvados service it fronts, the @InternalURLs@ will need to be reachable from the host that runs the reverse proxy.
 ^3^ If the Prometheus metrics are not collected from the same machine that runs the service, the @InternalURLs@ will need to be reachable from the host that collects the metrics.
 ^4^ If dispatching containers to HPC (Slurm/LSF) and there are multiple @Controller@ services, they must be able to connect to one another using their InternalURLs, otherwise the "tunnel connections":{{site.baseurl}}/architecture/hpc.html enabling "container shell access":{{site.baseurl}}/install/container-shell-access.html will not work.
-^5^ All URLs in @Services.WebDAVDownload.InternalURLs@ must be reachable by all Controller services. Alternatively, each entry in @Services.Controller.InternalURLs@ must have a corresponding entry in @Services.WebDAVDownload.InternalURLs@ with the same hostname.
+^5^ All URLs in @Services.WebDAV.InternalURLs@ must be reachable by all Controller services. Alternatively, each entry in @Services.Controller.InternalURLs@ must have a corresponding entry in @Services.WebDAV.InternalURLs@ with the same hostname.
 
 When @InternalURLs@ do not need to be reachable from other nodes, it is most secure to use loopback addresses as @InternalURLs@, e.g. @http://127.0.0.1:9005@.
 
index c584509228740fe66f5cc4935f52126dc5c35476..74c00da8b1251fbd8d612d0e46ae6a7144e908dd 100644 (file)
@@ -176,7 +176,7 @@ func (conn *Conn) serveContainerLogViaKeepWeb(opts arvados.ContainerLogOptions,
        myHostname := u.Hostname()
        var webdavBase arvados.URL
        var ok bool
-       for webdavBase = range conn.cluster.Services.WebDAVDownload.InternalURLs {
+       for webdavBase = range conn.cluster.Services.WebDAV.InternalURLs {
                ok = true
                u := url.URL(webdavBase)
                if h := u.Hostname(); h == "127.0.0.1" || h == "0.0.0.0" || h == "::1" || h == myHostname {
@@ -187,7 +187,7 @@ func (conn *Conn) serveContainerLogViaKeepWeb(opts arvados.ContainerLogOptions,
                }
        }
        if !ok {
-               httpserver.Error(w, "no internalURLs configured for WebDAVDownload service", http.StatusInternalServerError)
+               httpserver.Error(w, "no internalURLs configured for WebDAV service", http.StatusInternalServerError)
                return
        }
        proxy := &httputil.ReverseProxy{