Skip to content
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

[dev.icinga.com #14021] Error editing services inherited from host template #722

Closed
icinga-migration opened this issue Jan 16, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/14021

Created by greatexpectations on 2017-01-16 09:36:11 +00:00

Assignee: tgelf
Status: Assigned
Target Version: 1.3.0
Last Update: 2017-01-16 09:50:14 +00:00 (in Redmine)


Hi,

with today's Git checkout of Director, I get an error when trying to edit properties of services inherited from host templates. Editing "individual" services works fine.

There is no such import: "Host-IBM Power i"


#0 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaTemplateResolver.php(314): Icinga\Module\Director\Objects\IcingaTemplateResolver->getIdForName('Host-IBM Power ...')
#1 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaTemplateResolver.php(110): Icinga\Module\Director\Objects\IcingaTemplateResolver->getIdsForNames(Array)
#2 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaTemplateResolver.php(95): Icinga\Module\Director\Objects\IcingaTemplateResolver->listUnstoredParentIds()
#3 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaTemplateResolver.php(202): Icinga\Module\Director\Objects\IcingaTemplateResolver->listParentIds(NULL)
#4 /usr/share/icingaweb2/modules/director/library/Director/Objects/IcingaTemplateResolver.php(223): Icinga\Module\Director\Objects\IcingaTemplateResolver->listFullInheritancePathIds(NULL)
#5 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/IcingaObjectFieldLoader.php(433): Icinga\Module\Director\Objects\IcingaTemplateResolver->listInheritancePathIds()
#6 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/IcingaObjectFieldLoader.php(501): Icinga\Module\Director\Web\Form\IcingaObjectFieldLoader->fetchFieldDetailsForObject(Object(Icinga\Module\Director\Objects\IcingaService))
#7 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/IcingaObjectFieldLoader.php(398): Icinga\Module\Director\Web\Form\IcingaObjectFieldLoader->loadDataFieldsForObject(Object(Icinga\Module\Director\Objects\IcingaService))
#8 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/IcingaObjectFieldLoader.php(360): Icinga\Module\Director\Web\Form\IcingaObjectFieldLoader->loadResolvedFieldsForObject(Object(Icinga\Module\Director\Objects\IcingaService))
#9 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/IcingaObjectFieldLoader.php(150): Icinga\Module\Director\Web\Form\IcingaObjectFieldLoader->prepareObjectFields(Object(Icinga\Module\Director\Objects\IcingaService))
#10 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/IcingaObjectFieldLoader.php(317): Icinga\Module\Director\Web\Form\IcingaObjectFieldLoader->getFields()
#11 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/IcingaObjectFieldLoader.php(166): Icinga\Module\Director\Web\Form\IcingaObjectFieldLoader->createElements(Object(Icinga\Module\Director\Forms\IcingaServiceForm))
#12 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/IcingaObjectFieldLoader.php(183): Icinga\Module\Director\Web\Form\IcingaObjectFieldLoader->getElements(Object(Icinga\Module\Director\Forms\IcingaServiceForm))
#13 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/DirectorObjectForm.php(318): Icinga\Module\Director\Web\Form\IcingaObjectFieldLoader->prepareElements(Object(Icinga\Module\Director\Forms\IcingaServiceForm))
#14 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/DirectorObjectForm.php(628): Icinga\Module\Director\Web\Form\DirectorObjectForm->prepareFields(Object(Icinga\Module\Director\Objects\IcingaService))
#15 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/QuickForm.php(451): Icinga\Module\Director\Web\Form\DirectorObjectForm->onRequest()
#16 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/QuickForm.php(463): Icinga\Module\Director\Web\Form\QuickForm->setRequest(Object(Icinga\Web\Request))
#17 /usr/share/icingaweb2/modules/director/library/Director/Web/Form/QuickForm.php(322): Icinga\Module\Director\Web\Form\QuickForm->getRequest()
#18 /usr/share/icingaweb2/modules/director/application/controllers/HostController.php(298): Icinga\Module\Director\Web\Form\QuickForm->handleRequest()
#19 /usr/share/icingaweb2/modules/director/application/controllers/HostController.php(249): Icinga\Module\Director\Controllers\HostController->commonForServices()
#20 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Director\Controllers\HostController->inheritedserviceAction()
#21 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('inheritedservic...')
#22 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#23 /usr/share/php/Icinga/Application/Web.php(389): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#24 /usr/share/php/Icinga/Application/webrouter.php(109): Icinga\Application\Web->dispatch()
#25 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#26 {main}
The host template in question is defined, though:
zones.d/director-global/host_templates.conf

template Host "Host-IBM Power i" {
    check_command = "hostalive"
    max_check_attempts = "3"
    check_interval = 1m
    retry_interval = 30s
    vars.checkccd_host = "localhost"
    vars.checkccd_port = 1337
    vars.operating_system = "IBM i"
    vars.otrs_customer = xxx
    vars.otrs_customer_id = xxx
    vars.otrs_enabled = true
    vars.otrs_queue = xxx
    vars.otrs_sla = xxx
    vars.system_type = "IBM Power Systems"
}

Kind regards

@icinga-migration
Copy link
Author

Updated by tgelf on 2017-01-16 09:50:14 +00:00

  • Status changed from New to Assigned
  • Assigned to set to tgelf
  • Target Version set to 1.3.0

Thanks for reporting this, will be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants