Existence of /var/pgdata.tmp directory prevents in place upgrade

Description

If for some reason /var/pgdata.tmp already exists, probably because it wasn't cleaned from previous versions, Manager install fails on:

Install should either delete the existing file or use it but not fail on it.

Steps to Reproduce

Environment:
OS (CLI), HA cluster, cloud provider
------------------------------------

Steps to reproduce:
------------------
1. touch /var/pgdata.tmp on the leader of the cluster (simulate a failed failover from an earlier installation)
2. cfy cluster set-active manager2
3. cfy cluster nodes list

Expected result:
---------------
Waiting for manager2 to become the active node...
manager2 set as the new active node

  • All nodes are either in leader or replica state

Actual result:
-------------

  • Manager with /var/pgdata.tmp is in a failed state

Why Propose Close?

None

Assignee

Ohad Baruch

Reporter

Jonathan Abramsohn

Severity

Medium

Target Version

4.5

Premium Only

no

Found In Version

4.3

QA Owner

Uri Wygodny

Bug Type

legacy bug

Customer Encountered

Yes

Customer Name

c954

Release Notes

yes

Priority

None

Sprint

None

Priority

Unprioritized
Configure