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

VolumeDriver.Create: encountered error(s) in creating the volume #519

Open
chaudhariatul opened this issue Feb 21, 2023 · 1 comment
Open

Comments

@chaudhariatul
Copy link

Summary

Docker volumes using NetApp Trident plugin fails with VolumeDriver.Create: encountered error(s) in creating the volume: [Failed to create volume ecs-wptask-9-wp_volume01-fff4ff96bbc5ffffba601 on storage pool aggr1 from backend ontapnas_10.10.20.226: error checking for existing volume: API status: failed, Reason: Invalid character '-' in volume name. It can have '_' and alphanumeric characters., Code: 13001]

Description

This issue occurs while using EC2 instances with Docker plugin for FSx NetApp Ontap. Volume names

...
    "containerDefinitions": [
        {
            "name": "wordpress01",
            "image": "wordpress:php8.1-apache",
            "cpu": 0,
            "portMappings": [
                {
                    "name": "wordpress01-80-tcp",
                    "containerPort": 80,
                    "hostPort": 0,
                    "protocol": "tcp",
                    "appProtocol": "http"
                }
            ],
            "essential": true,
            "environment": [],
            "mountPoints": [
                {
                    "sourceVolume": "wp_volume01",
                    "containerPath": "/data",
                    "readOnly": false
                }
            ],
            "volumesFrom": []
        }
    ],
    "family": "wptask",
    "networkMode": "bridge",
    "revision": 9,
    "volumes": [
        {
            "name": "wp_volume01",
            "dockerVolumeConfiguration": {
                "scope": "task",
                "driver": "netapp:latest",
                "driverOpts": {
                    "size": "10G"
                }
            }
        }
    ]
...

Expected Behavior

Docker volume as defined in "Volumes" -> "name" should be created.

Observed Behavior

New volume name is ecs-wptask-9-wp_volume01-fff4ff96bbc5ffffba601

Environment Details

  1. FSx NetApp ontap fsxadmin password updated
  2. ECS Autoscaling group EC2 launch template updated to installed Docker plugin : https://netapp-trident.readthedocs.io/en/stable-v21.07/docker/deploying.html
@chaudhariatul
Copy link
Author

Note: "scope": "shared" works fine.

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

1 participant