Comment 6 for bug 1742102

Revision history for this message
jichenjc (jichenjc) wrote :

I made quota of volme to 1 then try

stack@k8s:~$ nova boot --block-device source=blank,dest=volume,size=1,bootindex=1 --flavor 1 --security-group webservers --image 5ba4945d-d190-4205-b50c-3c957410061b ji1

and see ,so basically we can switch to api layer validation to avoid 'ERROR' instance stuck there

| fault | {"message": "Build of instance 3eb1baef-50e6-4618-a1b8-fd8f8a0f1458 aborted: VolumeLimitExceeded: Maximum number of volumes allowed (1) exceeded for quota 'volumes'.", "code": 500, "details": " File \"/opt/stack/nova/nova/compute/manager.py\", line 1840, in _do_build_and_run_instance |
| | filter_properties, request_spec) |
| | File \"/opt/stack/nova/nova/compute/manager.py\", line 2053, in _build_and_run_instance |
| | bdms=block_device_mapping) |
| | File \"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py\", line 220, in __exit__ |
| | self.force_reraise() |
| | File \"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py\", line 196, in force_reraise |
| | six.reraise(self.type_, self.value, self.tb) |
| | File \"/opt/stack/nova/nova/compute/manager.py\", line 2005, in _build_and_run_instance |
| | block_device_mapping) as resources: |
| | File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__