Invalid property "assign_filter" when running a sync rule

I am trying to import LDAP groups and sync them to Icinga UserGroups.
When I run the sync rule which is supposed to create the object I get a weird error:

Exception while syncing Icinga\Module\Director\Objects\IcingaUserGroup IT-TEAM: Trying to get invalid property "assign_filter" (Sync.php:931)

#0 /data/extra-modules/icingaweb2-module-director/application/forms/SyncRunForm.php(56): Icinga\Module\Director\Import\Sync->apply()
#1 /usr/share/icinga-php/ipl/vendor/ipl/html/src/Form.php(224): Icinga\Module\Director\Forms\SyncRunForm->onSuccess()
#2 /data/extra-modules/icingaweb2-module-director/application/controllers/SyncruleController.php(69): ipl\Html\Form->handleRequest()
#3 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Director\Controllers\SyncruleController->indexAction()
#4 /usr/share/icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#6 /usr/share/icingaweb2/library/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch()
#7 /usr/share/icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#8 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/icin...')
#9 {main}

The import is aborted, although the Preview looks good:

object UserGroup "IT-TEAM" { 
	   display_name = "IT-TEAM" 
	} 

I wouldn’t want any filters, where should I debug this further?

I am running on an extended Icinga Docker-playground.

  • Director version: master (8896e54d69d6f8e8ad01a4663de64aa02172b74d)
  • Icinga Web 2 version: 2.11.4
  • Icinga 2 version: 2.14

Alex

I hope you know what you are doing checking out the master branch.
Can you switch to the latest release (1.10.2)?

Can you provide screenshots of your import source and sync rule?

Thanks for the quick response!

We’re using the latest IFW REST-API features and Director 1.11 or master was a requirement.
I also read Discussion: Use the master branch or a tagged release? :slightly_smiling_face:

But of course you were right - I should have tested this in a released version.
Indeed it works in 1.10.2 :smile: I am going to open a Github issue then.

Edit: someone was quicker than me Cant't create usergroup because of invalide property assign_filter · Issue #2784 · Icinga/icingaweb2-module-director · GitHub

Sorry for all this noise!

works with director 1.10.2, but you need to import the new plugins basket and run the kickstart wizard to get the ifw-api command:
https://github.com/Icinga/icinga-powershell-plugins/blob/master/config/director/Plugins_Bundle.json

1 Like