package still exists when running gppkg -r on Tanzu Greenplum
search cancel

package still exists when running gppkg -r on Tanzu Greenplum

book

Article ID: 296752

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

When use gppkg -r to remove a gpdb package, sometimes it will fail :

Uninstalling package xxxxx-x86_64.gppkg
:gpadmin-[INFO]:-Validating rpm uninstallation cmdStr='rpm --test -e xxxxxxxx  --dbpath /usr/local/greenplum-db-xxx/share/packages/database'
:gpadmin-[ERROR]:-
Traceback (most recent call last):
  File "/usr/local/greenplum-db-xxxx/lib/python/gppylib/commands/base.py", line 278, in run
    self.cmd.run()
  File "/usr/local/greenplum-db-xxxxx/lib/python/gppylib/operations/__init__.py", line 53, in run
    self.ret = self.execute()
  File "/usr/local/greenplum-db-xxxxx/lib/python/gppylib/operations/utils.py", line 57, in execute
    raise ret
IOError 


Environment

Product Version: 6.18

Resolution

Note: Replace <package-nam> and <gpdb-version> with appropriate values.

First remove the package from each host using below command:

rpm --test -e --justdb --noscripts <package-name>  --dbpath /usr/local/greenplum-db-<gpdb-version>/share/packages/database -vvv

rpm --test -e --justdb --noscripts <package-name>  --dbpath /usr/local/greenplum-db-<gpdb-version>/share/packages/database -vvv 

 

Second, remove the package from each host's archive folder:

rm /usr/local/greenplum-db-<gpdb-version>/share/packages/archive/<package-name>-rhel7-x86_64.gppkg