anybox / buttervolume

BTRFS Volume plugin for Docker
Apache License 2.0
81 stars 11 forks source link

cow = opts.get : AttributeError: 'NoneType' object has no attribute 'get'" #45

Closed ccomb closed 1 year ago

ccomb commented 1 year ago

Got a exception while creating a volume through docker-compose

cow = opts.get(\"copyonwrite\", \"true\").lower()" plugin=d6ead4dd089e1fd02dfbe65eb6b68377350528d8ffd967459e222f686ae075eb
AttributeError: 'NoneType' object has no attribute 'get'" plugin=d6ead4dd089e1fd02dfbe65eb6b68377350528d8ffd967459e222f686ae075eb
ccomb commented 1 year ago

More info after raising the loglevel :

Request: /VolumeDriver.Get {'Name': 'modelyz_store'}" 
Response: {\"Err\": \"modelyz_store: no such volume\"}" 
Request: /VolumeDriver.Capabilities {}"
Response: {\"Capabilities\": {\"Scope\": \"local\"}}"
Request: /VolumeDriver.Get {'Name': 'modelyz_store'}" 
Response: {\"Err\": \"modelyz_store: no such volume\"}" 
Request: /VolumeDriver.Create {'Name': 'modelyz_store', 'Opts': None}" 
Traceback (most recent call last):
  File \"/usr/local/lib/python3.9/dist-packages/bottle-0.12.23-py3.9.egg/EGG-INFO/scripts/bottle.py\", line 876, in _handle
    return route.call(**args)
  File \"/usr/local/lib/python3.9/dist-packages/bottle-0.12.23-py3.9.egg/EGG-INFO/scripts/bottle.py\", line 1756, in wrapper
    rv = callback(*a, **ka)
  File \"/usr/local/lib/python3.9/dist-packages/buttervolume-3.9-py3.9.egg/buttervolume/plugin.py\", line 62, in new_handler
    resp = json.dumps(handler(req))
  File \"/usr/local/lib/python3.9/dist-packages/buttervolume-3.9-py3.9.egg/buttervolume/plugin.py\", line 88, in volume_create
    cow = opts.get(\"copyonwrite\", \"true\").lower()
AttributeError: 'NoneType' object has no attribute 'get'