Ask Your Question
0

openstack installation error

asked 2015-04-03 17:04:23 -0500

Scott Zhang gravatar image

updated 2015-04-04 09:52:11 -0500

dbaxps gravatar image

Hello,

I encountered the following error while installing openstack (./stack.sh). Could anyone take a look at the following error and give me some suggestions?

2015-04-03 22:00:02.750 | + is_service_enabled c-vol
2015-04-03 22:00:02.754 | + return 0
2015-04-03 22:00:02.754 | + create_cinder_volume_group
2015-04-03 22:00:02.754 | + sudo vgs stack-volumes
2015-04-03 22:00:02.765 |   Volume group "stack-volumes" not found
2015-04-03 22:00:02.766 | + '[' -z '' ']'
2015-04-03 22:00:02.766 | + [[ -f /opt/stack/data/stack-volumes-backing-file ]]
2015-04-03 22:00:02.766 | ++ sudo losetup -f --show /opt/stack/data/stack-volumes-backing-file
2015-04-03 22:00:02.772 | + DEV=/dev/loop4
2015-04-03 22:00:02.772 | + sudo vgs stack-volumes
2015-04-03 22:00:02.799 |   Volume group "stack-volumes" not found
2015-04-03 22:00:02.804 | + sudo vgcreate stack-volumes /dev/loop4
2015-04-03 22:00:02.826 |   Device /dev/loop4 not found (or ignored by filtering).
2015-04-03 22:00:02.826 |   Unable to add physical volume '/dev/loop4' to volume group 'stack-volumes'.
2015-04-03 22:00:02.827 | + exit_trap
2015-04-03 22:00:02.827 | + local r=5
2015-04-03 22:00:02.828 | ++ jobs -p
2015-04-03 22:00:02.828 | + jobs=
2015-04-03 22:00:02.830 | + [[ -n '' ]]
2015-04-03 22:00:02.830 | + exit 5
su@ubuntu:~/devstack$
edit retag flag offensive close merge delete

Comments

what is your local.conf file ?

Neetz gravatar imageNeetz ( 2015-04-05 04:08:31 -0500 )edit

local.conf file is found in devstack dir and try to run ./rejoin-stack.sh for exact errors.

SGPJ gravatar imageSGPJ ( 2015-04-06 04:40:34 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-04-06 01:41:03 -0500

dbaxps gravatar image

updated 2015-04-07 13:29:03 -0500

UPDATE as of 04/07/2015
I was forced to add to /etc/rc.local

losetup /dev/loop0 /opt/stack/data/stack-volumes-default-backing-file ;
losetup /dev/loop1 /opt/stack/data/stack-volumes-lvmdriver-1-backing-file ;

and start cinder-scheduler in separate screen manually to make ./rejoin-stack.sh working
END UPDATE

Having devstack install successfully finished ( based on master as of 03/05/2015 ), when running ./rejoin-stack.sh I am getting stack trace related with c-vol.log and afterwards :-

2015-04-06 02:23:29.639 WARNING cinder.volume.manager [req-ef16d84f-0263-4ae7-933a-e1e2438180d1 None None] Unable to update stats, LVMVolumeDriver -3.0.0 (config name lvmdriver-1) driver is uninitialized.

However, nova and neutron behave normal after setup and I can launch instances with ephemeral storage.

I rerun stack.sh this time everything went fine :-

ubuntu@ubuntu-system:~/devstack$ cinder service-list
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+
|      Binary      |            Host           | Zone |  Status | State |         Updated_at         | Disabled Reason |
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler |       ubuntu-system       | nova | enabled |   up  | 2015-04-06T11:29:26.000000 |       None      |
|  cinder-volume   | ubuntu-system@lvmdriver-1 | nova | enabled |   up  | 2015-04-06T11:29:30.000000 |       None      |
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+
ubuntu@ubuntu-system:~/devstack$ sudo vgs
  WARNING: Ignoring duplicate config node: global_filter (seeking global_filter)
  WARNING: Ignoring duplicate config node: global_filter (seeking global_filter)
  VG                        #PV #LV #SN Attr   VSize   VFree 
  centos                      1   3   0 wz--n- 154.38g     0 
  centos01                    1   3   0 wz--n- 252.03g     0 
  fedora                      1   2   0 wz--n- 203.20g     0 
  fedora00                    1   2   0 wz--n- 157.88g  4.00m
  stack-volumes-default       1   0   0 wz--n-  10.01g 10.01g
  stack-volumes-lvmdriver-1   1   0   0 wz--n-  10.01g 10.01g

Next

ubuntu@ubuntu-system:~/Downloads$ sudo losetup -a
/dev/loop0: [0816]:3805570 (/opt/stack/data/stack-volumes-default-backing-file)
/dev/loop1: [0816]:3805571 (/opt/stack/data/stack-volumes-lvmdriver-1-backing-file)

ubuntu@ubuntu-system:~/devstack$ . openrc demo

ubuntu@ubuntu-system:~/devstack$ cinder create --display_name testvol01 1
+---------------------------------------+--------------------------------------+
|                Property               |                Value                 |
+---------------------------------------+--------------------------------------+
|              attachments              |                  []                  |
|           availability_zone           |                 nova                 |
|                bootable               |                false                 |
|          consistencygroup_id          |                 None                 |
|               created_at              |      2015-04-06T11:36:40.000000      |
|              description              |                 None                 |
|               encrypted               |                False                 |
|                   id                  | e25446d9-ba95-4af3-ba65-8fe6c66dd7e2 |
|                metadata               |                  {}                  |
|              multiattach              |                False                 |
|                  name                 |              testvol01               |
|      os-vol-tenant-attr:tenant_id     |   fd9b9070ae214c399088d9f6d0c6d598   |
|   os-volume-replication:driver_data   |                 None                 |
| os-volume-replication:extended_status |                 None                 |
|           replication_status          |               disabled               |
|                  size                 |                  1                   |
|              snapshot_id              |                 None                 |
|              source_volid             |                 None                 |
|                 status                |               creating               |
|                user_id                |   93f65c7ed3bf42208193139901ba2cc7   |
|              volume_type              |             lvmdriver-1              |
+---------------------------------------+--------------------------------------+

ubuntu@ubuntu-system:~/devstack$ cinder list


 +--------------------------------------+-----------+-----------+------+-------------+----------+-------------+
    |                  ID                  |   Status  |    Name   | Size | Volume Type | Bootable | Attached to |
    +--------------------------------------+-----------+-----------+------+-------------+----------+-------------+
    | e25446d9-ba95-4af3-ba65-8fe6c66dd7e2 | available | testvol01 |  1   | lvmdriver-1 |  false   |             |
    +--------------------------------------+-----------+-----------+------+-------------+-------
Yes Cinder works:-
ubuntu@ubuntu-svc:~/devstack$ nova list
+--------------------------------------+--------------+--------+------------+-------------+------------------------------------+
| ID                                   | Name         | Status | Task State | Power State | Networks                           |
+--------------------------------------+--------------+--------+------------+-------------+------------------------------------+
| 56840d0f-3084-452c-b798-0b4fdf714df8 | VF21Devstack | ACTIVE | -          | Running     | private=10.254.1.3, 192.168.12.151 |
+--------------------------------------+--------------+--------+------------+-------------+------------------------------------+
ubuntu@ubuntu-svc:~/devstack$ nova show 56840d0f-3084-452c-b798-0b4fdf714df8
+--------------------------------------+----------------------------------------------------------+
| Property                             | Value                                                    |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                    | AUTO                                                     |
| OS-EXT-AZ:availability_zone          | nova                                                     |
| OS-EXT-STS:power_state               | 1                                                        |
| OS-EXT-STS:task_state                | -                                                        |
| OS-EXT-STS:vm_state                  | active                                                   |
| OS-SRV-USG:launched_at               | 2015-04-06T14:27:26.000000                               |
| OS-SRV-USG:terminated_at             | -                                                        |
| accessIPv4                           |                                                          |
| accessIPv6                           |                                                          |
| config_drive                         | True                                                     |
| created                              | 2015-04-06T14:27:14Z                                     |
| flavor                               | m1.small (2)                                             |
| hostId                               | f67330fd6484a8374de17a9cdb753b1071945fc3b783314b97839989 |
| id                                   | 56840d0f-3084-452c-b798-0b4fdf714df8                     |
| image                                | Attempt to boot from volume - no image supplied          |
| key_name                             | oskey50                                                  |
| metadata                             | {}                                                       |
| name                                 | VF21Devstack                                             |
| os-extended-volumes:volumes_attached | [{"id": "4878ee91-718d-4fd5-8e98-f388ccc99a51"}]         |
| private network                      | 10.254.1.3, 192.168.12.151                               |
| progress                             | 0                                                        |
| security_groups                      | default                                                  |
| status                               | ACTIVE                                                   |
| tenant_id                            | 0fff5e30a0a04bec9e85ee8f88ecc146                         |
| updated                              | 2015-04-06T14:46:50Z                                     |
| user_id                              | fee9d04795a24a95873231358f12c3c5                         |
+--------------------------------------+----------------------------------------------------

As of now I see two BUGs , which are pretty new :-

"n-cauth" has to be added to service list
"c-sch"  has to be added to service list
edit flag offensive delete link more

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: 2015-04-03 17:04:23 -0500

Seen: 3,996 times

Last updated: Apr 07 '15