Skip to content

[BUG] deploy --recreate fails first run if service uses named volumes #176

@spiffytech

Description

@spiffytech

Describe the bug

If I use a compose.yaml with a named volume to deploy a service with a volume, and that volume doesn't already exist, the deploy fails with an error message that doesn't explain the problem.

How to reproduce

compose.yaml

services:
  redis:
    image: redis:7-alpine
    restart: unless-stopped
    volumes:
      - redis-data:/data

volumes:
#  patreon-rss-data:
  redis-data:
$ uc deploy --recreate
Error: plan deployment: create deployment plan for service 'redis': create plan using rolling strategy: no machines available that satisfy all constraints

Expected behavior

--recreate can create services, even if they have volumes.

Environment:

Additional context

If I remove the volumes entries, I can deploy. If I use a host path volume, I can deploy. If I do uc deploy (no --recreate), I can deploy.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions