[Bug 269800] net-mgmt/icingaweb2-module-director : CURL ERROR: Could not resolve proxy

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 24 Feb 2023 12:02:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269800

            Bug ID: 269800
           Summary: net-mgmt/icingaweb2-module-director : CURL ERROR:
                    Could not resolve proxy
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum@FreeBSD.org
          Reporter: ohartmann@walstatt.org
             Flags: maintainer-feedback?(joneum@FreeBSD.org)
          Assignee: joneum@FreeBSD.org

After upgrading a Icingaweb2 installation with icingaweb2-module-director
installed, running on a 13.1-STABLE-p7 host, to php81-based packages, I'm
unable to run net-mgmt/icingaweb2-module-director  in a proper way anymore.
Checking the proxy resolving (via local_unbound, forward.conf) on FreeBSD
itself seems all right, http_proxy (uppe case, lower case, https_proxy as well
as ftp_proxy) are set via /etc/login.conf (cap_mkdb applied, of course).

The icingaweb2 host is a vnet jail. Updating source trees, pkg repos via the
above mentioned proxy setup through a company proxy works well. The proxy
itself is behind a load balancer and resolving the proxy's name (i.e.
proxy.host.net) results in a couple of IPv4 addresses.

All hosts regarding icinga and the objects to test are INSIDE the proxy, the
proxy configuration is setup for FreeBSD's maintenance and not needed for
icinga (except the gadget "moule-map").

OS: FreeBSD 13.1-RELEASE-p7 releng/13.1-n250182-00935d2e533c HOST amd64
Modules installed:
icingaweb2-module-businessprocess-php81-2.4.0_1
net-mgmt/icingaweb2-module-businessprocess
icingaweb2-module-cube-php81-1.2.2 net-mgmt/icingaweb2-module-cube
icingaweb2-module-director-php81-1.10.2_1 net-mgmt/icingaweb2-module-director
icingaweb2-module-elasticsearch-php81-0.9.0_4
net-mgmt/icingaweb2-module-elasticsearch
icingaweb2-module-fileshipper-php81-1.2.0_1
net-mgmt/icingaweb2-module-fileshipper
icingaweb2-module-grafana-php81-1.4.2_1 net-mgmt/icingaweb2-module-grafana
icingaweb2-module-idoreports-php81-0.10.0_1
net-mgmt/icingaweb2-module-idoreports
icingaweb2-module-incubator-php81-0.20.0 net-mgmt/icingaweb2-module-incubator
icingaweb2-module-map-php81-1.1.0_4 net-mgmt/icingaweb2-module-map
icingaweb2-module-pdfexport-php81-0.10.2 net-mgmt/icingaweb2-module-pdfexport
icingaweb2-module-reactbundle-php81-0.9.0_1
net-mgmt/icingaweb2-module-reactbundle
icingaweb2-module-reporting-php81-0.10.0_1 net-mgmt/icingaweb2-module-reporting
icingaweb2-module-vsphere-php81-1.1.1_1 net-mgmt/icingaweb2-module-vsphere
icingaweb2-php81-2.11.4_1      net-mgmt/icingaweb2



Error shown in icinga2 using director at action "trying to deply a zone".

Director in common isn't very well with handling PROXY configurations.

Error:
[...]

CURL ERROR: Could not resolve proxy: proxy.net.hier.intern

#0
/usr/local/www/icingaweb2/modules/director/library/Director/Core/RestApiClient.php(82):
Icinga\Module\Director\Core\RestApiClient->curlRequest()
#1
/usr/local/www/icingaweb2/modules/director/library/Director/Core/RestApiClient.php(185):
Icinga\Module\Director\Core\RestApiClient->request()
#2
/usr/local/www/icingaweb2/modules/director/library/Director/Core/CoreApi.php(426):
Icinga\Module\Director\Core\RestApiClient->get()
#3
/usr/local/www/icingaweb2/modules/director/library/Director/Web/Widget/InspectPackages.php(99):
Icinga\Module\Director\Core\CoreApi->getPackages()
#4
/usr/local/www/icingaweb2/modules/director/library/Director/Web/Widget/InspectPackages.php(33):
Icinga\Module\Director\Web\Widget\InspectPackages->getPackages()
#5
/usr/local/www/icingaweb2/modules/director/application/controllers/InspectController.php(181):
Icinga\Module\Director\Web\Widget\InspectPackages->getContent()
#6 /usr/local/www/icingaweb2/library/vendor/Zend/Controller/Action.php(507):
Icinga\Module\Director\Controllers\InspectController->packagesAction()
#7 /usr/local/www/icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76):
Zend_Controller_Action->dispatch()
#8 /usr/local/www/icingaweb2/library/vendor/Zend/Controller/Front.php(937):
Icinga\Web\Controller\Dispatcher->dispatch()
#9 /usr/local/www/icingaweb2/library/Icinga/Application/Web.php(290):
Zend_Controller_Front->dispatch()
#10 /usr/local/www/icingaweb2/library/Icinga/Application/webrouter.php(105):
Icinga\Application\Web->dispatch()
#11 /usr/local/www/icingaweb2/public/index.php(4): require_once(String)
#12 {main}

-- 
You are receiving this mail because:
You are the assignee for the bug.