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

Parent Service in new dependency apply rule leads to error message #2669

Closed
mwaldmueller opened this issue Nov 28, 2022 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@mwaldmueller
Copy link

Current Behavior

When adding new dependencies any entry in "Parent Service" leads to error message: Unable to resolve related property: "parent_service_id" (IcingaDependency.php:592)

depdendency

Your Environment

  • Director version (System - About): 1.10.2
  • Icinga Web 2 version and modules (System - About): 2.11.2
  • Icinga 2 version (icinga2 --version): 2.13.6
  • Operating System and version: CentOS 7
  • Webserver, PHP versions: Apache, PHP 7.3.33
@Thomas-Gelf
Copy link
Contributor

Can be reproduced. This occurs only for a rare case: depending on a single service on a single host. Applied Service dependencies usually leave the "Host" field unfilled, that way they always match the very same Host. That's why this didn't happen in other setups.

@Thomas-Gelf Thomas-Gelf self-assigned this Dec 5, 2022
@Thomas-Gelf Thomas-Gelf added the bug label Dec 5, 2022
@Thomas-Gelf Thomas-Gelf added this to the v1.11.0 milestone Dec 5, 2022
@Thomas-Gelf
Copy link
Contributor

NB: in case one wants to reproduce this -> it also didn't happen for single services on the parent host - but for example with applied ones.

@Thomas-Gelf
Copy link
Contributor

@mwaldmueller: should now have been fixes. It would be great if you could give the fix a try in your environment, as this was tricky to reproduce - it happens only if some rare conditions match.

@mwaldmueller
Copy link
Author

mwaldmueller commented Dec 6, 2022

It works reliable for new dependencies. But I have troubles with existing dependencies:

  • Set new Parent Service: 2x clicks on "Store" needed to save
  • Change existing Parent Service: 2x clicks on "Store" needed to save
  • Delete existing Parent Service: 2x clicks on "Store" needed to save, but last entry remains (e.g. in the Preview tab or if I reload the Dependency tab)

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