Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Nexus data directory already in use: /nexus-data #43

Open
alexandrst88 opened this issue Oct 12, 2018 · 7 comments
Open

Nexus data directory already in use: /nexus-data #43

alexandrst88 opened this issue Oct 12, 2018 · 7 comments
Assignees

Comments

@alexandrst88
Copy link

When upgrade chart via helm, the new pod is stuck, with RollingUpdate strategy due to

Nexus data directory already in use: /nexus-data
@pires
Copy link
Contributor

pires commented Oct 13, 2018

@jeff-knurek @TAvardit as the Helm experts in the house, can you please help?

@varditn
Copy link
Contributor

varditn commented Oct 15, 2018

@alexandrst88 - The problem is caused by having a rollingUpdate strategy with default settings (MaxSurge 25% maxUnavailable 25%) , one replica and PV. An ability to change these settings was added to chart version 1.10.0 (https://github.com/helm/charts/tree/master/stable/sonatype-nexus), so you can either upgrade your chart and edit the values or update you live deployment manifest to be set to :

maxSurge: 0
maxUnavailable: 1

@mwy-bi-web
Copy link

The chart has no option to set MaxSurge/maxUnavailable. So this is still an issue.

@mwy-bi-web
Copy link

mwy-bi-web commented Jan 17, 2019

Update: My fault, is is possible to set it.
But the documentation is very missleading. Is says the default is "rollingUpdate" which is wrong, the default is "{}" - so we can pass an object here, not a string.

The correct value is:

deploymentStrategy:
  type: RollingUpdate
  rollingUpdate:
    maxSurge: 0
    maxUnavailable: 1

Edit: maybe this should be the default to make the chart work?

@varditn
Copy link
Contributor

varditn commented Jan 17, 2019

Actually, if no strategy was specified the default strategy is rollingUpdate.
Did you experience issue deploying the chart without changing the empty object of deploymentStrategy ?

@mwy-bi-web
Copy link

Yes. The default is maxSurge: 25%, maxUnavailable: 25%. So with 1 replicas, nexus is first started and then stopped leading to this issue.

@varditn
Copy link
Contributor

varditn commented Jan 21, 2019

Yes, I didn't want to change the default deploymentStrategy but to allow users to change it based on their need.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants