Ask Your Question

mirza's profile - activity

2018-01-16 05:13:48 -0600 commented answer CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

I was able to perform pvresize, the output of pvs -

$ pvs
  PV         VG             Fmt  Attr PSize    PFree  
  /dev/loop1 cinder-volumes lvm2 a--   <60.00g <40.00g
  /dev/sda10 centos         lvm2 a--  <198.10g      0

But instance creation fails with same error as before.

2018-01-15 12:10:17 -0600 commented answer CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

Now

[mirza@localhost ~]$ sudo resize2fs /var/lib/cinder/cinder-volumes
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /var/lib/cinder/cinder-volumes
Couldn't find valid filesystem superblock.
2018-01-15 12:09:42 -0600 commented answer CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

I succeded in increasing file size, but resize2fs is not working

[mirza@localhost ~]$ sudo fallocate -l 60G /var/lib/cinder/cinder-volumes
[sudo] password for mirza:
2018-01-15 11:25:37 -0600 commented answer CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

I get the following error while increasing size -

[mirza@localhost ~]$ sudo dd bs=1M seek=60G of=/var/lib/cinder/cinder-volumes </dev/null
[sudo] password for mirza: 
dd: failed to truncate to 67553994410557440 bytes in output file ‘/var/lib/cinder/cinder-volumes’: File too large
2018-01-14 09:27:54 -0600 commented answer CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

Here is output of losetup

[root@localhost ~]# losetup -a
/dev/loop0: [64768]:3022221 (/srv/loopback-device/swiftloopback)
/dev/loop1: [64768]:7997693 (/var/lib/cinder/cinder-volumes)
2018-01-14 09:27:44 -0600 commented answer CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

Sorry but can't seem to find how do i extend the 20GB file. I am using one disk with three partitions for my whole setup, one for each of /, /swap, /boot.efi. If you kindly provide me details or provide a link to any article that would be great.

2018-01-14 09:04:17 -0600 received badge  Scholar (source)
2018-01-08 03:32:21 -0600 received badge  Supporter (source)
2018-01-08 03:32:13 -0600 commented answer CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

How do i increase size of cinder volume? if i get error by following

[mirza@localhost ~]$ sudo openstack volume list
[sudo] password for mirza: 
Missing value auth-url required for auth plugin password
2018-01-06 22:39:23 -0600 received badge  Famous Question (source)
2018-01-05 05:56:18 -0600 received badge  Editor (source)
2018-01-05 05:52:06 -0600 commented question CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

I do not see any option to reset the flag in horizon instance creation dialog.

2018-01-05 05:32:12 -0600 commented question CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

Sorry for late reply. I was travelling to another country. There is not enough space here in comment to add output of df, pvs and vgs. I am adding them to the question. One thins is that if i do not create a new volume for a instance it finishes building and i can run it.

2018-01-05 05:27:59 -0600 received badge  Notable Question (source)
2017-12-17 04:56:16 -0600 received badge  Popular Question (source)
2017-12-12 18:46:21 -0600 asked a question CentOS 7 packstack - Instance fails, Error: Volume did not finish being created

Hello there, I installed packstack -allinone on CentOS 7 of openstack ocata. I created a single instance with my manually created image of Lubuntu 16.04. But now i can not create any more instance. Instance creation fails with error -

Build of instance e485ce56-c91c-4a5f-b02a-7a8937264f63 aborted: Volume dbacff49-3263-4728-952d-f4563f70589e did not finish being created even after we waited 3 seconds or 2 attempts. And its status is error.

I have tried with cirros still same problem. But can still start and use the instance of Lubuntu i created with 20GB disk. I have uploaded logs of cinder and nova here - https://www.dropbox.com/s/kokxhq04v6jydzo/logs.tar.gz?dl=0 (https://www.dropbox.com/s/kokxhq04v6j...) . Keep in mind i am a beginner user. Kindly help.

Edit: I can launch instances if i set create new volume to "No". Output of df, pvs and vgs -

[root@localhost mirza]# df
Filesystem              1K-blocks     Used Available Use% Mounted on
/dev/mapper/centos-root 171305296 37026124 125554284  23% /
devtmpfs                  8053972        0   8053972   0% /dev
tmpfs                     8070296    24372   8045924   1% /dev/shm
tmpfs                     8070296     9488   8060808   1% /run
tmpfs                     8070296        0   8070296   0% /sys/fs/cgroup
/dev/sda9                 1038336   235972    802364  23% /boot
/dev/sda8                 1046516     9960   1036556   1% /boot/efi
/dev/loop0                1900368     6148   1772980   1% /srv/node/swiftloopback
tmpfs                     1614060        4   1614056   1% /run/user/42
tmpfs                     1614060       32   1614028   1% /run/user/1000
tmpfs                     1614060        0   1614060   0% /run/user/0
tmpfs                     1614060        0   1614060   0% /run/user/163
[root@localhost mirza]# pvs
  PV         VG             Fmt  Attr PSize    PFree  
  /dev/loop1 cinder-volumes lvm2 a--   <20.60g 612.00m
  /dev/sda10 centos         lvm2 a--  <198.10g      0 
[root@localhost mirza]# vgs
  VG             #PV #LV #SN Attr   VSize    VFree  
  centos           1   2   0 wz--n- <198.10g      0 
  cinder-volumes   1   1   0 wz--n-  <20.60g 612.00m