If a share is shrank from 10G to 5G, the volume is still 10G.
This share`s size display is 5G, but the share extend newsize
must be > 10G in the old code.
#manila create NFS 10 --share-network 24b55eb4-f5cf-429b-933d-e0af04410de9 --name test-share
| d65c857c-8f03-4607-b6df-cd0f9e8162cc | test-share | 10 | NFS | available | False | london | 20.1.2.3:/shares/share-d65c857c-8f03-4607-b6df-cd0f9e8162cc | manila-server@london#london |
#manila shrink test-share 5
| d65c857c-8f03-4607-b6df-cd0f9e8162cc | test-share | 5 | NFS | available | False | london | 20.1.2.3:/shares/share-d65c857c-8f03-4607-b6df-cd0f9e8162cc | manila-server@london#london |
#manila extend test-share 8
| d65c857c-8f03-4607-b6df-cd0f9e8162cc | test-share | 5 | NFS | extending_error | False | london | 20.1.2.3:/shares/share-d65c857c-8f03-4607-b6df-cd0f9e8162cc | manila-server@london#london |
2016-11-04 17:43:34.510 20497 ERROR oslo_messaging.rpc.dispatcher [req-c7b12007-4a3a-4063-b10a-b4eef5f9d479 ] Exception during message handling: Share d65c857c-8f03-4607-b6df-cd0f9e8162cc could not be extended due to error in the driver: Invalid input received: Invalid input received: New size for extend must be greater than current size. (current: 10, extended: 8)..
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/manila/share/manager.py", line 882, in extend_share
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher reason=six.text_type(e), share_id=share_id)
2016-11-04 17:43:34.510 20497 TRACE oslo_messaging.rpc.dispatcher ShareExtendingError: Share d65c857c-8f03-4607-b6df-cd0f9e8162cc could not be extended due to error in the driver: Invalid input received: Invalid input received: New size for extend must be greater than current size. (current: 10, extended: 8)..
review link : https:/ /review. openstack. org/#/c/ 393589/