Launch instance from volume failed but Create instance with volume is success

asked 2020-07-18 05:10:31 -0500

pureewatk gravatar image

I have use cinder as backend storage.

Does anyone faced this problem ?

I have check log of cinder it report that volume is create successfully

nova-api log

2020-07-18 16:38:18.480 6078 INFO nova.api.openstack.wsgi [req-35d35c62-9bae-46f7-8e60-916e8d14e37d ed6cc4cad89a4eac96e582434c89d795 624396dc175f40f39058ae1788488783 - default default] HTTP exception thrown: Block Device Mapping is Invalid: failed to get volume b915cfd8-1b88-44de-a3c7-d1e32c7aac7e.

cinder-volume log

2020-07-18 16:29:35.045 4832 INFO cinder.volume.flows.manager.create_volume [req-7754c171-ddb4-4235-a64f-16d711997ebb ed6cc4cad89a4eac96e582434c89d795 624396dc175f40f39058ae1788488783 - default default] Volume b915cfd8-1b88-44de-a3c7-d1e32c7aac7e: being created as image with specification: {'status': 'creating', 'volume_name': 'volume-b915cfd8-1b88-44de-a3c7-d1e32c7aac7e', 'volume_size': 16, 'image_id': 'cd7cefea-6728-4229-bd08-d057a1fbd8d9', 'image_location': (None, None), 'image_meta': {'name': 'amphora-x64-haproxy-new', 'disk_format': 'qcow2', 'container_format': 'bare', 'visibility': 'private', 'size': 328031232, 'virtual_size': None, 'status': 'active', 'checksum': '73a178e6ba050e9d28a1263958ba6fa6', 'protected': False, 'min_ram': 0, 'min_disk': 0, 'owner': '624396dc175f40f39058ae1788488783', 'os_hidden': False, 'os_hash_algo': 'sha512', 'os_hash_value': 'b1dea60977db4b975905cebc0340bef26325ef3689df670b2fa39b8b749ff75cc659992827709d0b26d553342aabc329b54b5777ced2f69101a0e8b2b6482e29', 'id': 'cd7cefea-6728-4229-bd08-d057a1fbd8d9', 'created_at': datetime.datetime(2020, 7, 18, 9, 27, 51, tzinfo=<iso8601.Utc>), 'updated_at': datetime.datetime(2020, 7, 18, 9, 29, 9, tzinfo=<iso8601.Utc>), 'tags': ['amphora'], 'file': '/v2/images/cd7cefea-6728-4229-bd08-d057a1fbd8d9/file', 'properties': {}}, 'image_service': <cinder.image.glance.GlanceImageService object at 0x7f515898d198>}

2020-07-18 16:29:50.576 4832 INFO cinder.volume.flows.manager.create_volume [req-7754c171-ddb4-4235-a64f-16d711997ebb ed6cc4cad89a4eac96e582434c89d795 624396dc175f40f39058ae1788488783 - default default] Volume volume-b915cfd8-1b88-44de-a3c7-d1e32c7aac7e (b915cfd8-1b88-44de-a3c7-d1e32c7aac7e): created successfully

Can anyone tell me, Where I need to check it?

edit retag flag offensive close merge delete

Comments

Cinder API log, about 16:38:18.

Can you also share the commands you use to "create instance with volume" and "launch instance from volume"? And the precise error messages? And which user/project does that?

Why are you trying to launch an Amphora instance?

Bernd Bausch gravatar imageBernd Bausch ( 2020-07-18 07:07:25 -0500 )edit

I use horizon to launch instance in these step. 1. Create Volume with volume source 2. Click Launch as instance from horizon

Error message is

HTTP Error 400 Block Device Mapping is Invalid: failed to get volume b915cfd8-1b88-44de-a3c7-d1e32c7aac7e.

User and project is admin

pureewatk gravatar imagepureewatk ( 2020-07-19 20:40:24 -0500 )edit

Why are you trying to launch an Amphora instance? It just an example image this error also found in every image

pureewatk gravatar imagepureewatk ( 2020-07-19 20:43:30 -0500 )edit

Screenshot https://ibb.co/3s2PqGB (link text)

pureewatk gravatar imagepureewatk ( 2020-07-19 20:46:33 -0500 )edit

You mean that b915cfd8-1b88-44de-a3c7-d1e32c7aac7e is a volume that you created from an image?

Nova seems to be unable to read or otherwise access the volume. As I said, check the Cinder API log around the timestamp of 16:38:18 (i.e. the timestamp of the error in the Nova API log).

Bernd Bausch gravatar imageBernd Bausch ( 2020-07-19 21:22:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-07-30 23:56:28 -0500

pureewatk gravatar image

I solve problem by fresh install nova and cinder.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-07-18 04:45:06 -0500

Seen: 36 times

Last updated: Jul 18