Description
When uninstalling Ambari rpm, some warning issues:
cp: cannot stat ‘/etc/ambari-server/conf’: No such file or directory Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. If you want to list systemd services use 'systemctl list-unit-files'. To see services enabled on particular target use 'systemctl list-dependencies [target]'. Erasing : ambari-server-2.7.5.0-1.el7.noarch 1/1 warning: file /var/lib/ambari-server/resources/stacks/Bigtop/2.1: remove failed: No such file or directory warning: file /var/lib/ambari-server/resources/stacks/Bigtop: remove failed: No such file or directory warning: file /etc/ambari-server/conf/metrics.properties: remove failed: No such file or directory warning: file /etc/ambari-server/conf/krb5JAASLogin.conf: remove failed: No such file or directory warning: file /etc/ambari-server/conf: remove failed: No such file or directory
The root cause : Duplicated deleting operation in Ambari RPM spec.