#4239 Wait until automember-rebuild finishes
Closed: Fixed None Opened 10 years ago by pviktori.

The automember-rebuild command adds the 'automember rebuild membership' task to DS, but does not wait for it to complete (despite saying 'Automember rebuild membership task completed').

There are several possibile ways to solve this:

  • Have automember-rebuild wait for the task to be done
  • Change the command summary to say the task was just started, and return the task's DN so the caller can do the polling. And add the polling to tests.
  • Both of the above, selectable by a --wait or --no-wait option

Thanks to Ludwig for the initial investigation!

I would personally simply make it synchronous and have the --no-wait option handy.

This breaks some of our CI tests (+ makes the feature actually incomplete) - Adam, please look at this one.

master:

  • 8b91d9a automember rebuild nowait feature added
  • 3f61bba plugin registration refactoring for automembership

Additional test fix:

  • 22f0feb ipalib.errors: Fix TaskTimeout doctest

Sorry for confusion, I did not notice there is already an overarching RFE in this release - #3752. Thus removing RFE type.

Metadata Update from @pviktori:
- Issue assigned to amisnyov
- Issue set to the milestone: FreeIPA 4.0 Backlog

7 years ago

Login to comment on this ticket.

Metadata