Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-compose volume label test fails with plugin error #4540

Open
rajanashok opened this issue Apr 3, 2017 · 6 comments
Open

Docker-compose volume label test fails with plugin error #4540

rajanashok opened this issue Apr 3, 2017 · 6 comments
Labels
impact/test/integration/enable The test is associated with a disabled integration test kind/defect Behavior that is inconsistent with what's intended priority/p2

Comments

@rajanashok
Copy link
Contributor

rajanashok commented Apr 3, 2017

⇒ docker-compose -H 10.160.36.169:2375 up -d
Creating volume "vic_volume_with_label" with default driver
ERROR: error looking up volume plugin : plugin not found

YML file:


services:
  web:
    image: busybox
    command: top
    volumes:
      - volume_with_label:/data

volumes:
  volume_with_label:
    labels:
      - "label_key=label_val"
@chengwang86 chengwang86 added the impact/doc/note Requires creation of or changes to an official release note label Apr 3, 2017
@chengwang86
Copy link
Contributor

Apr  6 2017 17:04:10.931Z ERROR Handler for GET /v1.24/volumes/compose_volume_with_label returned error: No such volume: compose_volume_with_label
Apr  6 2017 17:04:10.984Z DEBUG [BEGIN] [github.com/vmware/vic/lib/apiservers/engine/backends.(*Volume).VolumeCreate:257] Volume.VolumeCreate
Apr  6 2017 17:04:10.984Z DEBUG [BEGIN] [github.com/vmware/vic/lib/apiservers/engine/backends.(*Volume).volumeCreate:227]
Apr  6 2017 17:04:10.984Z DEBUG [ END ] [github.com/vmware/vic/lib/apiservers/engine/backends.(*Volume).volumeCreate:227] [7.34µs] 
Apr  6 2017 17:04:10.984Z DEBUG [ END ] [github.com/vmware/vic/lib/apiservers/engine/backends.(*Volume).VolumeCreate:257] [40.526µs] Volume.VolumeCreate
Apr  6 2017 17:04:10.984Z ERROR Handler for POST /v1.24/volumes/create returned error: error looking up volume plugin : plugin not found

@mhagen-vmware mhagen-vmware added component/test Tests not covered by a more specific component label kind/defect Behavior that is inconsistent with what's intended and removed component/test Tests not covered by a more specific component label labels Apr 13, 2017
@stuclem
Copy link
Contributor

stuclem commented Apr 17, 2017

Proposed release note:


  • Using volume labels with docker-compose causes a plugin error. #4540
    Setting a label in a volume in the Docker compose YML file results in error looking up volume plugin : plugin not found.

@rajanashok and @chengwang86 please feel free to add more information in this issue.

@matthewavery
Copy link
Contributor

@stuclem looks like that will be needed for now. Turns out that this will not be a super difficult issue to fix.(or should not be) but the soonest it can be pulled in is next sprint( sprint 9) and that is pending @mdubya66 and @mhagen-vmware 's approval.

@chengwang86
Copy link
Contributor

chengwang86 commented Apr 20, 2017

@stuclem I discussed with @matthewavery about this. According to compose documentation here https://docs.docker.com/compose/compose-file/#volume-configuration-reference

An entry under the top-level volumes key can be empty, in which case it will use the default driver configured by the Engine (in most cases, this is the local driver). 

If the volume driver is empty, docker will use local as the default one. However, on vic
https://github.com/vmware/vic/blob/master/lib/apiservers/engine/backends/volume.go#L355
we will print the above error msg if the drivername is empty.

As a workaround, we can ask the customer to set the volume driver explicitly as local or vsphere in the compose file. E.g.,

volumes:
  volume_with_label:
    driver: local

@stuclem
Copy link
Contributor

stuclem commented Apr 25, 2017

@chengwang86 done! Thanks

@stuclem stuclem removed the impact/doc/note Requires creation of or changes to an official release note label Apr 25, 2017
@corrieb
Copy link
Contributor

corrieb commented Jul 19, 2017

Given that VIC only has one volume driver, we should default to using "vsphere" as the driver if none other is specified. This is a compatibility and UX issue. I've tripped over this as the error message isn't very informative.

@mdubya66 mdubya66 added the impact/test/integration/enable The test is associated with a disabled integration test label Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/test/integration/enable The test is associated with a disabled integration test kind/defect Behavior that is inconsistent with what's intended priority/p2
Projects
None yet
Development

No branches or pull requests

7 participants