1.8.0 upgrade via yum is broken

Looks like there is a dependency issue for the opendistro-anomaly-detector-1.7.0.0-1 package that prevents a seamless upgrade from happening:

# yum install opendistroforelasticsearch
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package opendistroforelasticsearch.noarch 0:1.7.0-1 will be updated
---> Package opendistroforelasticsearch.noarch 0:1.8.0-1 will be an update
--> Processing Dependency: elasticsearch-oss = 7.7.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-anomaly-detection < 1.8.1 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-sql >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-security >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-performance-analyzer >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-knn >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-job-scheduler >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-index-management >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-anomaly-detection >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-alerting >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Running transaction check
---> Package elasticsearch-oss.x86_64 0:7.6.1-1 will be updated
--> Processing Dependency: elasticsearch-oss = 7.6.1 for package: opendistro-anomaly-detector-1.7.0.0-1.noarch
---> Package elasticsearch-oss.x86_64 0:7.7.0-1 will be an update
---> Package opendistro-alerting.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-alerting.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-anomaly-detection.noarch 0:1.8.0.0-1 will be installed
---> Package opendistro-index-management.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-index-management.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-job-scheduler.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-job-scheduler.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-knn.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-knn.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-performance-analyzer.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-performance-analyzer.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-security.noarch 0:1.7.0.0-0 will be updated
---> Package opendistro-security.noarch 0:1.8.0.0-0 will be an update
---> Package opendistro-sql.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-sql.noarch 0:1.8.0.0-1 will be an update
--> Finished Dependency Resolution
Error: Package: opendistro-anomaly-detector-1.7.0.0-1.noarch (@elasticsearch-7.x)
           Requires: elasticsearch-oss = 7.6.1
           Removing: elasticsearch-oss-7.6.1-1.x86_64 (@elasticsearch-oss)
               elasticsearch-oss = 7.6.1-1
           Updated By: elasticsearch-oss-7.7.0-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.7.0-1
           Available: elasticsearch-oss-7.0.0-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.0.0-1
           Available: elasticsearch-oss-7.0.1-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.0.1-1
           Available: elasticsearch-oss-7.1.0-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.1.0-1
           Available: elasticsearch-oss-7.1.1-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.1.1-1
           Available: elasticsearch-oss-7.2.0-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.2.0-1
           Available: elasticsearch-oss-7.2.1-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.2.1-1
           Available: elasticsearch-oss-7.3.0-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.3.0-1
           Available: elasticsearch-oss-7.3.1-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.3.1-1
           Available: elasticsearch-oss-7.3.2-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.3.2-1
           Available: elasticsearch-oss-7.4.0-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.4.0-1
           Available: elasticsearch-oss-7.4.1-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.4.1-1
           Available: elasticsearch-oss-7.4.2-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.4.2-1
           Available: elasticsearch-oss-7.5.0-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.5.0-1
           Available: elasticsearch-oss-7.5.1-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.5.1-1
           Available: elasticsearch-oss-7.5.2-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.5.2-1
           Available: elasticsearch-oss-7.6.0-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.6.0-1
           Available: elasticsearch-oss-7.6.2-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.6.2-1
           Available: elasticsearch-oss-7.7.1-1.x86_64 (elasticsearch-oss)
               elasticsearch-oss = 7.7.1-1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Removing the package manually fixes it:

# rpm -e opendistro-anomaly-detector --nodeps`
# yum install opendistroforelasticsearch
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package opendistroforelasticsearch.noarch 0:1.7.0-1 will be updated
---> Package opendistroforelasticsearch.noarch 0:1.8.0-1 will be an update
--> Processing Dependency: elasticsearch-oss = 7.7.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-anomaly-detection < 1.8.1 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-sql >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-security >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-performance-analyzer >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-knn >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-job-scheduler >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-index-management >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-anomaly-detection >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Processing Dependency: opendistro-alerting >= 1.8.0 for package: opendistroforelasticsearch-1.8.0-1.noarch
--> Running transaction check
---> Package elasticsearch-oss.x86_64 0:7.6.1-1 will be updated
---> Package elasticsearch-oss.x86_64 0:7.7.0-1 will be an update
---> Package opendistro-alerting.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-alerting.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-anomaly-detection.noarch 0:1.8.0.0-1 will be installed
---> Package opendistro-index-management.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-index-management.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-job-scheduler.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-job-scheduler.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-knn.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-knn.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-performance-analyzer.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-performance-analyzer.noarch 0:1.8.0.0-1 will be an update
---> Package opendistro-security.noarch 0:1.7.0.0-0 will be updated
---> Package opendistro-security.noarch 0:1.8.0.0-0 will be an update
---> Package opendistro-sql.noarch 0:1.7.0.0-1 will be updated
---> Package opendistro-sql.noarch 0:1.8.0.0-1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================================
 Package                                                    Arch                              Version                                 Repository                                    Size
=========================================================================================================================================================================================
Updating:
 opendistroforelasticsearch                                 noarch                            1.8.0-1                                 elasticsearch-7.x                            3.6 k
Installing for dependencies:
 opendistro-anomaly-detection                               noarch                            1.8.0.0-1                               elasticsearch-7.x                            5.8 M
Updating for dependencies:
 elasticsearch-oss                                          x86_64                            7.7.0-1                                 elasticsearch-oss                            219 M
 opendistro-alerting                                        noarch                            1.8.0.0-1                               elasticsearch-7.x                            3.9 M
 opendistro-index-management                                noarch                            1.8.0.0-1                               elasticsearch-7.x                            4.3 M
 opendistro-job-scheduler                                   noarch                            1.8.0.0-1                               elasticsearch-7.x                            192 k
 opendistro-knn                                             noarch                            1.8.0.0-1                               elasticsearch-7.x                            1.9 M
 opendistro-performance-analyzer                            noarch                            1.8.0.0-1                               elasticsearch-7.x                             15 M
 opendistro-security                                        noarch                            1.8.0.0-0                               elasticsearch-7.x                             28 M
 opendistro-sql                                             noarch                            1.8.0.0-1                               elasticsearch-7.x                            7.2 M

Transaction Summary
=========================================================================================================================================================================================
Install             ( 1 Dependent package)
Upgrade  1 Package  (+8 Dependent packages)

Total download size: 285 M
Is this ok [y/d/N]: ^CExiting on user command

Hi @jasonrojas,

Thank you for letting us know. Sorry to see you’re running into issues. Can you file a bug at https://github.com/opendistro-for-elasticsearch/opendistro-build/issues so that our engineers can take a look and respond.

Thanks!

Sorry that we changed artifact name of anomaly detection plugin from “opendistro-anomaly-detector” to “opendistro-anomaly-detection” for DEB and RPM.

Add this breaking change to 1.8 release note. https://github.com/opendistro-for-elasticsearch/anomaly-detection/pull/145/