Comment 2 for bug 1531536

Revision history for this message
NidhiMittalHada (nidhimittal19) wrote : Re: Extend share does not work for microversions >= 2.7

Its easily reproduced ..
Traceback (most recent call last):
  File "/opt/stack/python-manilaclient/manilaclient/shell.py", line 641, in main
    map(encodeutils.safe_decode, sys.argv[1:]))
  File "/opt/stack/python-manilaclient/manilaclient/shell.py", line 516, in main
    args.func(self.cs, args)
  File "/opt/stack/python-manilaclient/manilaclient/v2/shell.py", line 2416, in do_extend
    cs.shares.extend(share, args.new_size)
  File "/opt/stack/python-manilaclient/manilaclient/api_versions.py", line 384, in substitution
    return method.func(obj, *args, **kwargs)
  File "/opt/stack/python-manilaclient/manilaclient/v2/shares.py", line 548, in extend
    return self._do_extend(share, new_size, "extend")
  File "/opt/stack/python-manilaclient/manilaclient/v2/shares.py", line 540, in _do_extend
    return self._action(action_name, share, {"new_size": new_size})
  File "/opt/stack/python-manilaclient/manilaclient/v2/shares.py", line 516, in _action
    return self.api.client.post(url, body=body)
  File "/opt/stack/python-manilaclient/manilaclient/common/httpclient.py", line 170, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/opt/stack/python-manilaclient/manilaclient/common/httpclient.py", line 129, in _cs_request
    **kwargs)
  File "/opt/stack/python-manilaclient/manilaclient/common/httpclient.py", line 143, in _cs_request_with_retries
    resp, body = self.request(url, method, **kwargs)
  File "/opt/stack/python-manilaclient/manilaclient/common/httpclient.py", line 121, in request
    raise exceptions.from_response(resp, method, url)
BadRequest: New share size must be specified as an integer. (HTTP 400) (Request-ID: req-624e3210-d951-4cff-9e68-c7accab13d84)
ERROR: New share size must be specified as an integer.

working on it....