centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
574 stars 241 forks source link

Dependencies are not removed completely (move svc to another host) #6924

Open Iralein opened 5 years ago

Iralein commented 5 years ago

BUG REPORT INFORMATION

Centreon Web version: 2.8.25

Centreon Engine version: 1.8.1 Centreon Broker version: 3.0.14 OS: CES Additional environment details (AWS, VirtualBox, physical, etc.): physical

Steps to reproduce the issue:

  1. Define a service dependency, where service on host A is a dependent_service. (NOT parent)
  2. Move service on host A to host B by replacing host A with host B in the service configuration.
  3. Export dependencies via command line api ( centreon -u cccc -p ccc -e --select='DEP')

Describe the results you received: The dependency commands exported in step 3 still contains the service on host A.

Describe the results you expected: The dependency commands should not contain any dependent_service.

Additional information you think important (e.g. issue happens only occasionally): centreon-clib-1.4.2

Reason: The database still contains the entry for the wrong service-host-relation AND the new one. Configuration export AND Web-UI is ok, it's only the commandline api.

Iralein commented 5 years ago

Not really priority minor, as you can NOT work with the commandline api anymore

Iralein commented 5 years ago

With Centreon 18-10 (18.10.2) the problem still exists!