Ask Your Question
0

Error while launching instance on openstack

asked 2020-02-11 09:21:30 -0600

updated 2020-02-12 00:11:04 -0600

Hi,

When I launch instance on openstack stein, I get the following error:

Error: Failed to perform requested operation on instance "web", the instance has an error status: Please try again later [Error: Build of instance 9ea3da42-9958-4eb1-836d-bc452168a220 aborted: Volume 5d66b469-95d0-4c95-849f-9cf61f0e6740 did not finish being created even after we waited 6 seconds or 3 attempts. And its status is error.].

How can I fix it? Please provide solutions for it.

edit retag flag offensive close merge delete

Comments

See if you find anything about volume 5d66b469-... in the Cinder logs. Check if Cinder is running correctly (e.g. openstack volume service list).

As a workaround, you can also launch an instance without volume.

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-11 10:01:36 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-02-12 00:19:18 -0600

updated 2020-02-12 00:45:04 -0600

Hi Bernd,

Thank you for help.

When I checked about volume 5d66b469-... in the cinder volume logs. I found something like that:

2020-02-11 16:19:51.363 4392 ERROR cinder.volume.flows.manager.create_volume [req-8679a108-63d5-4b62-b22c-9368c00cb0ee fe13f558610b4c23a3b54603090f3f26 4cf7db9bef75434892051eb77a2c0ba9 - default default] Volume 5d66b469-95d0-4c95-849f-9cf61f0e6740: create failed
2020-02-11 16:39:08.677 4392 ERROR cinder.volume.volume_utils [req-df863b56-02af-4ed7-9e8c-cb21642b1dd7 fe13f558610b4c23a3b54603090f3f26 4cf7db9bef75434892051eb77a2c0ba9 - default default] Failed to copy image 88547948-e2a1-4798-be08-d610c72d5dcf to volume: 9aba7d18-2c06-4f62-9327-a989ca58c530: ProcessExecutionError: Unexpected error while running command.

I checked that Cinder service is running well as followings:

[root@localhost ~(keystone_admin)]# openstack volume service list
+------------------+---------------------------+------+---------+-------+----------------------------+
| Binary           | Host                      | Zone | Status  | State | Updated At                 |
+------------------+---------------------------+------+---------+-------+----------------------------+
| cinder-scheduler | localhost.localdomain     | nova | enabled | up    | 2020-02-11T22:32:04.000000 |
| cinder-backup    | localhost.localdomain     | nova | enabled | up    | 2020-02-11T22:32:05.000000 |
| cinder-volume    | localhost.localdomain@lvm | nova | enabled | up    | 2020-02-11T22:32:10.000000 |
+------------------+---------------------------+------+---------+-------+----------------------------+

When I launced an instance without volume. This time I got an error as follows:

Error: Failed to perform requested operation on instance "web", the instance has an error status: Please try again later [Error: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 2191a1bb-50c5-46fb-b0cd-64f1716ac2ba.].

I also checked volume groups and logical volumes as can be seen below:

[root@localhost ~(keystone_admin)]# pvs
  PV         VG             Fmt  Attr PSize   PFree  
  /dev/loop1 cinder-volumes lvm2 a--  <20.60g      0 
  /dev/sda2  centos         lvm2 a--  <19.00g      0 
  /dev/sdb1  cinder-volumes lvm2 a--  <30.00g <14.65g
  /dev/sdc1                 lvm2 ---  <10.00g <10.00g

[root@localhost ~(keystone_admin)]# vgs
  VG             #PV #LV #SN Attr   VSize   VFree  
  centos           1   2   0 wz--n- <19.00g      0 
  cinder-volumes   2   1   0 wz--n-  50.59g <14.65g

[root@localhost ~(keystone_admin)]# lvs
  LV                  VG             Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root                centos         -wi-ao---- <17.00g                                                    
  swap                centos         -wi-ao----   2.00g                                                    
  cinder-volumes-pool cinder-volumes twi-aotz--  30.98g             0.00   0.64

Unfortunately, I didn't find any solution. I keep looking for it on the internet and other platforms.

edit flag offensive delete link more

Comments

Regarding the volume error, it would be useful to know the command that produced the unexpected error. I believe you will find it in the log as well, a few messages prior to the error I would say.

Regarding the error with ephemeral storage, find relevant messages in the Nova logs.

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-12 03:53:29 -0600 )edit

Hi Bernd, I checked nova logs as can be seen below:

BuildAbortException: Build of instance 9ea3da42-9958-4eb1-836d-bc452168a220 aborted: Volume 5d66b469-95d0-4c95-849f-9cf61f0e6740 did not finish being created even after we waited 6 seconds or 3 attempts. And its status is error.
thenextgeneration gravatar imagethenextgeneration ( 2020-02-12 23:09:27 -0600 )edit

Could it be related to /dev/loop device? I installed packstack on VMware workstation. I didn't add any disk on in the beginning. It is automatically created loop devices in the installation.

thenextgeneration gravatar imagethenextgeneration ( 2020-02-12 23:14:22 -0600 )edit

I doubt that launching an instance without volume leads to an error message that the volume can't be created. In other words, the BUILDAbortException you found in the Nova log is not related to the instance without volume.

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-13 04:46:21 -0600 )edit

There might be a problem with the loop device, yes, but I can't see anything wrong in the pvs/vgs/lvs output. Again, find out which command failed.

What does losetup say?

Can you create Cinder volumes manually?

Can you create logical volumes in the cinder-volumes from cinder-volumes-pool?

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-13 05:03:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-02-11 09:21:30 -0600

Seen: 144 times

Last updated: Feb 12