Ask Your Question
0

Can't create volume with cinder

asked 2015-12-25 19:46:12 -0500

nixman gravatar image

Hello,

I setup OpenStack Kilo with RDO package and my cinder-volume is backed with NFS and glusterfs.

[root@controller images]# cinder-manage service list
/usr/lib/python2.7/site-packages/cinder/openstack/common/service.py:38: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
  from oslo.config import cfg
No handlers could be found for logger "oslo_config.cfg"
2015-12-26 01:29:28.976 12698 DEBUG oslo_db.api [req-9a4c466e-3a0d-441b-9a66-4fad473d18b9 - - - - -] Loading backend 'sqlalchemy' from 'cinder.db.sqlalchemy.api' _load_backend /usr/lib/python2.7/site-packages/oslo_db/api.py:214
2015-12-26 01:29:29.001 12698 DEBUG oslo_db.sqlalchemy.session [req-9a4c466e-3a0d-441b-9a66-4fad473d18b9 - - - - -] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/session.py:513
Binary           Host                                 Zone             Status     State Updated At
cinder-scheduler controller                           nova             enabled    :-)   2015-12-26 01:29:25
cinder-volume    cinder@nfs                           nova             enabled    :-)   2015-12-26 01:29:26
cinder-volume    cinder@glusterfs                     nova             enabled    :-)   2015-12-26 01:29:26

NFS and GlusterFS work fine but when i create volume i can't see it on cinder node

[root@cinder] 2015-12-26 01:33:33.460 16012 DEBUG cinder.volume.drivers.remotefs [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] Loading shares from /etc/cinder/nfs_shares.
_load_shares_config /usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py:394 2015-12-26 01:33:33.460 16012 DEBUG cinder.volume.drivers.remotefs [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] shares loaded: {u'172.16.10.104:/mnt': None}
_load_shares_config /usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py:424 2015-12-26 01:33:33.460 16012 DEBUG oslo_concurrency.processutils [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] Running cmd (subprocess): mount execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199 2015-12-26 01:33:33.466 16012 DEBUG oslo_concurrency.processutils [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] CMD "mount" returned: 0 in 0.006s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225 2015-12-26 01:33:33.467 16012 INFO cinder.brick.remotefs.remotefs [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] Already mounted: /var/lib/cinder/mnt/f0d81d553f9d5daf625000cfb9e67a5b 2015-12-26 01:33:33.467 16012 DEBUG cinder.volume.drivers.remotefs [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] Available shares [u'172.16.10.104:/mnt']
_ensure_shares_mounted /usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py:216 2015-12-26 01:33:33.468 16012 DEBUG oslo_concurrency.processutils [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] Running cmd (subprocess): stat -f -c %S %b %a /var/lib/cinder/mnt/f0d81d553f9d5daf625000cfb9e67a5b execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199 2015-12-26 01:33:33.472 16012 DEBUG oslo_concurrency.processutils [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] CMD "stat -f -c %S %b %a /var/lib/cinder/mnt/f0d81d553f9d5daf625000cfb9e67a5b" returned: 0 in 0.005s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225 2015-12-26 01:33:33.473 16012 DEBUG oslo_concurrency.processutils [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] Running cmd (subprocess): du -sb --apparent-size --exclude
*snapshot* /var/lib/cinder/mnt/f0d81d553f9d5daf625000cfb9e67a5b execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199 2015-12-26 01:33:33.478 16012 DEBUG oslo_concurrency.processutils [req-ee325eb3-c592-410a-82bb-8272f67c4fc5
- - - - -] CMD "du -sb --apparent-size --exclude *snapshot* /var/lib/cinder/mnt/f0d81d553f9d5daf625000cfb9e67a5b" returned: 0 in 0.005s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225 2015-12-26 01:34:03.983 16015 DEBUG cinder.openstack.common.periodic_task [req-d663a2d7-4f83-43a8-9e53-fe5da6f9f43b
- - - - -] Running periodic task VolumeManager._publish_service_capabilities run_periodic_tasks /usr/lib ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-07-12 02:50:38 -0500

for NFS cinder stanza I would suggest this options (example stanza):

[NFS]
nfs_used_ratio=0.95 <- PUT YOUR DESIRED VALUE
nfs_oversub_ratio=1.5 <- PUT YOUR DESIRED VALUE
nfs_mount_options=nosharecache,noac <- WE HAD SOME ISSUE WITHOUT THOSE OPTIONS
nfs_shares_config=/etc/cinder/shares-nfs.conf
volume_driver=cinder.volume.drivers.nfs.NfsDriver
volume_backend_name=NFS

after that you have to create a new cinder type -> have a look at "cinder type-create", so also I would suggest you to define default_volume_type value on cinder.conf because you have multiple cinder types; without default_volume_type you could have some side effect with the cinder quotas (if you use cinder quota :) ).

p.s. I never used glusterfs under openstack so I can't help you for that.

HTH Amedeo

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-12-25 19:46:12 -0500

Seen: 621 times

Last updated: Jul 12 '16