** Description changed: os:CentOS7 Linux allinone.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux openstack version:ocata The instance volume size is equal to glance.min_disk size always,not equal to flavor root_disk size. if glance.image.min_disk.size==3G && flavor.root_disk.size==4G: instance.volume.size=3G if glance.image.min_disk.size==null && flavor.root_disk.size==4G: instance.volume.size=1G if glance.image.min_disk.size==null || glance.image.virutal_size>glance.image.min_disk.size: instance create failed. Errorlog: - + /var/log/cinder/volume.log: 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server Traceback (most recent call last): 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 222, in dispatch 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 192, in _do_dispatch 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "<string>", line 2, in create_volume 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/objects/cleanable.py", line 207, in wrapper 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server result = f(*args, **kwargs) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 654, in create_volume 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server _run_flow() 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 646, in _run_flow 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server flow_engine.run() 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 247, in run 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server for _state in self.run_iter(timeout=timeout): 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server failure.Failure.reraise_if_any(er_failures) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 336, in reraise_if_any 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server failures[0].reraise() 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 343, in reraise 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server six.reraise(*self._exc_info) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server result = task.execute(**arguments) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 902, in execute 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server **volume_spec) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 849, in _create_from_image 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server image_service) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "<string>", line 2, in _create_from_image_cache_or_download 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/coordination.py", line 301, in _synchronized 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server return f(*a, **k) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 756, in _create_from_image_cache_or_download 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server data.virtual_size, volume.size, image_id) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 451, in check_virtual_size 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server reason=reason) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server ImageUnacceptable: Image 2882ad36-ee09-432f-a57d-6f354d3a2e20 is unacceptable: Image virtual size is 3GB and doesn't fit in a volume of size 1GB. 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server + + /var/log/nova/nova-compute.log: + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [req-b47ff706-b551-47d9-ab36-de13ae419c9b 169c2ebd2ff14e63b7cec5361fd938f1 cca0bf9ebdb84d988c66e45d87c9eda5 - - -] [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] Build of instance f1201f52-f85b-4a5b-b8cf-c042fa4acfe2 aborted: Block Device Mapping is Invalid. + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] Traceback (most recent call last): + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1780, in _do_build_and_run_instance + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] filter_properties) + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1961, in _build_and_run_instance + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] phase=fields.NotificationPhase.ERROR, exception=e) + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] self.force_reraise() + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] six.reraise(self.type_, self.value, self.tb) + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1914, in _build_and_run_instance + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] block_device_mapping) as resources: + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__ + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] return self.gen.next() + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2113, in _build_resources + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] reason=e.format_message()) + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] BuildAbortException: Build of instance f1201f52-f85b-4a5b-b8cf-c042fa4acfe2 aborted: Block Device Mapping is Invalid. + 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2]
** Also affects: cinder Importance: Undecided Status: New ** No longer affects: nova-lxd ** Also affects: nova Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1697351 Title: flavor.root_disk.size not work on version ocata Status in Cinder: New Status in OpenStack Compute (nova): New Bug description: os:CentOS7 Linux allinone.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux openstack version:ocata The instance volume size is equal to glance.min_disk size always,not equal to flavor root_disk size. if glance.image.min_disk.size==3G && flavor.root_disk.size==4G: instance.volume.size=3G if glance.image.min_disk.size==null && flavor.root_disk.size==4G: instance.volume.size=1G if glance.image.min_disk.size==null || glance.image.virutal_size>glance.image.min_disk.size: instance create failed. Errorlog: /var/log/cinder/volume.log: 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server Traceback (most recent call last): 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 222, in dispatch 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 192, in _do_dispatch 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "<string>", line 2, in create_volume 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/objects/cleanable.py", line 207, in wrapper 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server result = f(*args, **kwargs) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 654, in create_volume 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server _run_flow() 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 646, in _run_flow 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server flow_engine.run() 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 247, in run 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server for _state in self.run_iter(timeout=timeout): 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server failure.Failure.reraise_if_any(er_failures) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 336, in reraise_if_any 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server failures[0].reraise() 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 343, in reraise 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server six.reraise(*self._exc_info) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server result = task.execute(**arguments) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 902, in execute 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server **volume_spec) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 849, in _create_from_image 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server image_service) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "<string>", line 2, in _create_from_image_cache_or_download 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/coordination.py", line 301, in _synchronized 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server return f(*a, **k) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 756, in _create_from_image_cache_or_download 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server data.virtual_size, volume.size, image_id) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 451, in check_virtual_size 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server reason=reason) 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server ImageUnacceptable: Image 2882ad36-ee09-432f-a57d-6f354d3a2e20 is unacceptable: Image virtual size is 3GB and doesn't fit in a volume of size 1GB. 2017-06-12 11:30:08.326 5862 ERROR oslo_messaging.rpc.server /var/log/nova/nova-compute.log: 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [req-b47ff706-b551-47d9-ab36-de13ae419c9b 169c2ebd2ff14e63b7cec5361fd938f1 cca0bf9ebdb84d988c66e45d87c9eda5 - - -] [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] Build of instance f1201f52-f85b-4a5b-b8cf-c042fa4acfe2 aborted: Block Device Mapping is Invalid. 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] Traceback (most recent call last): 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1780, in _do_build_and_run_instance 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] filter_properties) 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1961, in _build_and_run_instance 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] phase=fields.NotificationPhase.ERROR, exception=e) 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] self.force_reraise() 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] six.reraise(self.type_, self.value, self.tb) 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1914, in _build_and_run_instance 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] block_device_mapping) as resources: 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__ 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] return self.gen.next() 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2113, in _build_resources 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] reason=e.format_message()) 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] BuildAbortException: Build of instance f1201f52-f85b-4a5b-b8cf-c042fa4acfe2 aborted: Block Device Mapping is Invalid. 2017-06-12 11:30:10.532 5429 ERROR nova.compute.manager [instance: f1201f52-f85b-4a5b-b8cf-c042fa4acfe2] To manage notifications about this bug go to: https://bugs.launchpad.net/cinder/+bug/1697351/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp