Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

[BUG] Upgrade fails if new volume specifies uid without gid #1788

Closed
r0mant opened this issue Jun 24, 2020 · 0 comments
Closed

[BUG] Upgrade fails if new volume specifies uid without gid #1788

r0mant opened this issue Jun 24, 2020 · 0 comments
Labels
port/5.5 Requires port to version/5.5.x port/6.1 Requires port to version/6.1.x port/7.0 Requires port to version/7.0.x priority/1 Medium priority

Comments

@r0mant
Copy link
Contributor

r0mant commented Jun 24, 2020

Describe the bug

If there's a volume specification in the manifest like this:

  nodeProfiles:
    requirements:  
      volumes:
        - name: data
          path: /opt/data
          targetPath: /var/lib/data
          createIfMissing: true
          uid: 2020

The upgrade fails on the bootstrap phase with the following error:

User Message: failed to execute phase "/bootstrap"
        failed to run {[chown 2020: /opt/data] setting ownership of /opt/data to 2020: false}:
                exit status 1]

To Reproduce

Expected behavior

Logs

Environment (please complete the following information):

  • OS [e.g. Redhat 7.4]:
  • Gravity [e.g. 5.5.4]: 5.5+
  • Platform [e.g. Vmware, AWS]:

Additional context

@r0mant r0mant added port/5.5 Requires port to version/5.5.x port/6.1 Requires port to version/6.1.x priority/1 Medium priority port/7.0 Requires port to version/7.0.x labels Jun 24, 2020
@r0mant r0mant closed this as completed Jun 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
port/5.5 Requires port to version/5.5.x port/6.1 Requires port to version/6.1.x port/7.0 Requires port to version/7.0.x priority/1 Medium priority
Projects
None yet
Development

No branches or pull requests

1 participant