Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 203 forks source link

Member of Service Group not displayed if service in Service Set #2295

Open lucafwp opened 3 years ago

lucafwp commented 3 years ago

Expected Behavior

Clicking on a member of a servicegroup shoul show its details.

Current Behavior

If a service, member of a servicegroup, is only available in a Service Set an error is displayed:

Failed to load icinga_service for host_id IS NULL AND service_set_id IS NULL AND object_name = 'Test_test_test_try' AND object_type = 'template'

#0 /usr/share/icingaweb2/modules/director/library/Director/Data/Db/DbObject.php(1173): Icinga\Module\Director\Data\Db\DbObject->loadFromDb()
#1 /usr/share/icingaweb2/modules/director/application/controllers/ServiceController.php(237): Icinga\Module\Director\Data\Db\DbObject::load(Array, Object(Icinga\Module\Director\Db))
#2 /usr/share/icingaweb2/modules/director/library/Director/Web/Controller/ObjectController.php(441): Icinga\Module\Director\Controllers\ServiceController->loadObject()
#3 /usr/share/icingaweb2/modules/director/library/Director/Web/Controller/ObjectController.php(75): Icinga\Module\Director\Web\Controller\ObjectController->eventuallyLoadObject()
#4 /usr/share/icingaweb2/modules/director/application/controllers/ServiceController.php(45): Icinga\Module\Director\Web\Controller\ObjectController->init()
#5 /usr/share/php/Icinga/Web/Controller/ActionController.php(155): Icinga\Module\Director\Controllers\ServiceController->init()
#6 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(59): Icinga\Web\Controller\ActionController->__construct(Object(Icinga\Web\Request), Object(Icinga\Web\Response), Array)
#7 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#8 /usr/share/php/Icinga/Application/Web.php(300): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#9 /usr/share/php/Icinga/Application/webrouter.php(99): Icinga\Application\Web->dispatch()
#10 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#11 {main} 

image

Steps to Reproduce (for bugs)

  1. Create a new service named "test1"
  2. Create a a new Service Set
  3. Add a new service to Service Set which imports "test1" and rename it "test1_try"
  4. Create a new service group with following rule: service.name = *_try
  5. Show members of service group and click on "test1_try"

Your Environment

lucafwp commented 3 years ago

Hi, are there any update on this issue?