## What changes were proposed in this pull request? LZO packages may be pre-installed in sysprepped environments, but Ambari still manages the repo and checks for existence of the packages, which takes time. The goal of this change is to allow users who pre-install packages to skip package manager operations for LZO packages, too.
https://issues.apache.org/jira/browse/AMBARI-24622 ## How was this patch tested? Deployed cluster via blueprint with pre-installed LZO packages (`hadooplzo*` and `liblzo2-2`). Prior to this change: ``` checked_call[['apt-get', 'update', '-qq', '-o', u'Dir::Etc::sourcelist=sources.list.d/ambari-hdp-1.list', '-o', 'Dir::Etc::sourceparts=-', '-o', 'APT::Get::List-Cleanup=0']] {'sudo': True, 'quiet': False} ... Package['liblzo2-2'] {'retry_on_repo_unavailability': False, 'retry_count': 5} Installing package liblzo2-2 ('/usr/bin/apt-get -q -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install liblzo2-2') Package['hadooplzo'] {'retry_on_repo_unavailability': False, 'retry_count': 5} Skipping installation of existing package hadooplzo Package['hadooplzo-native'] {'retry_on_repo_unavailability': False, 'retry_count': 5} Skipping installation of existing package hadooplzo-native ``` (Note that although `liblzo2-2` is already installed it is not "skipped" by Ambari due to a [bug in package existence check](https://issues.apache.org/jira/browse/AMBARI-24632).) Confirmed that with this change `apt-get` calls are skipped: ``` Skipping LZO package installation as host is sys prepped ``` [ Full content available at: https://github.com/apache/ambari/pull/2303 ] This message was relayed via gitbox.apache.org for [email protected]
