Ask Your Question
0

cinder volume creation error.

asked 2016-02-24 04:54:09 -0500

Vishu gravatar image

updated 2016-02-24 16:00:18 -0500

 cat /var/log/cinder/scheduler.log
2016-02-24 13:26:43.035 1610 INFO cinder.openstack.common.service [req-fa684b1b-a8cd-4cb7-8f29-da1c81a9ed46 - - - - -] Caught SIGTERM, exiting
**2016-02-24 13:42:27.755 1583 WARNING oslo_db.sqlalchemy.session [req-acc9bced-2f6a-4b8e-b29f-fa9c50d102bb - - - - -] SQL connection failed. 10 attempts left.
2016-02-24 13:42:37.947 1583 WARNING cinder.scheduler.host_manager [req-acc9bced-2f6a-4b8e-b29f-fa9c50d102bb - - - - -] volume service is down. (host: dickens)**
2016-02-24 13:42:37.957 1583 INFO cinder.service [-] Starting cinder-scheduler node (version 2015.1.1)
2016-02-24 13:42:37.975 1583 INFO oslo_messaging._drivers.impl_rabbit [req-4122bd99-67e2-4bb5-8012-cb91e1c48b7a - - - - -] Connecting to AMQP server on dickens:5672
2016-02-24 13:42:37.987 1583 INFO oslo_messaging._drivers.impl_rabbit [req-4122bd99-67e2-4bb5-8012-cb91e1c48b7a - - - - -] Connected to AMQP server on dickens:5672
2016-02-24 13:42:38.001 1583 INFO oslo_messaging._drivers.impl_rabbit [req-8f3c371d-04fd-4f82-9063-28a554d58173 - - - - -] Connecting to AMQP server on dickens:5672
2016-02-24 13:42:38.012 1583 INFO oslo_messaging._drivers.impl_rabbit [req-8f3c371d-04fd-4f82-9063-28a554d58173 - - - - -] Connected to AMQP server on dickens:5672

[root@dickens ~]# cat /var/log/cinder/volume.log
2016-02-24 14:16:12.858 1579 INFO cinder.openstack.common.service [req-0349c689-a534-487f-aee4-c973d2cf7e16 - - - - -] Caught SIGTERM, stopping children
2016-02-24 14:16:12.860 1579 INFO cinder.openstack.common.service [req-0349c689-a534-487f-aee4-c973d2cf7e16 - - - - -] Waiting on 1 children to exit
2016-02-24 14:16:12.861 1579 INFO cinder.openstack.common.service [req-0349c689-a534-487f-aee4-c973d2cf7e16 - - - - -] Child 4061 killed by signal 15
2016-02-24 14:16:13.910 8654 INFO cinder.volume.manager [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] Determined volume DB was not empty at startup.
2016-02-24 14:16:13.919 8654 WARNING cinder.volume.targets.lio [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] The lio_initiator_iqns option has been deprecated and no longer has any effect.
2016-02-24 14:16:14.018 8654 WARNING cinder.volume.drivers.lvm [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] LVMISCSIDriver is deprecated, you should now just use LVMVolumeDriver and specify target_helper for the target driver you wish to use.
2016-02-24 14:16:14.020 8654 INFO cinder.openstack.common.service [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] Starting 1 workers
2016-02-24 14:16:14.024 8654 INFO cinder.openstack.common.service [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] Started child 8670
2016-02-24 14:16:14.025 8670 INFO cinder.service [-] Starting cinder-volume node (version 2015.1.1)
**2016-02-24 14:16:14.026 8670 INFO cinder.volume.manager [req-803411c2-f708-40b9-ba41-24eb7dd102b1 - - - - -] Starting volume driver LVMISCSIDriver (3.0.0)
2016-02-24 14:16:14.127 8670 ERROR cinder.volume.manager [req-803411c2-f708-40b9-ba41-24eb7dd102b1 - - - - -] Error encountered during initialization of driver: LVMISCSIDriver
2016-02-24 14:16:14.128 8670 ERROR cinder.volume.manager [req-803411c2-f708-40b9-ba41-24eb7dd102b1 - - - - -] Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --noheadings -o name cinder-volumes
Exit code: 5
Stdout: u''
Stderr: u'File descriptor 7 (/dev/urandom) leaked on vgs invocation. Parent PID 8672: /usr/bin/python2\n  Volume group "cinder-volumes" not found\n  Cannot process volume group cinder-volumes\n'**
2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager Traceback (most recent call last):
2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 302, in init_host
2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager     self.driver.check_for_setup_error()
2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in ...
(more)
edit retag flag offensive close merge delete

Comments

Is volume group (VG) created in storage nodes? Per this message it seems that does not exists:

Volume group "cinder-volumes" not found\n  Cannot process volume group cinder-volumes
Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-02-24 16:01:31 -0500 )edit

please provide the output of commands :- 1. pvdisplay 2. vgdisplay

ritesh.singh.aricent@gmail.com gravatar imageritesh.singh.aricent@gmail.com ( 2016-02-24 23:30:11 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-20 05:55:22 -0500

Dilshath gravatar image

updated 2016-10-20 05:57:51 -0500

    manually change the details in the below file 

    cat /etc/sudoers.d/cinder
    Defaults:cinder !requiretty
    #cinder ALL = (root) NOPASSWD: /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf *
    cinder ALL = (root) NOPASSWD: ALL

    [Reason : some of the permission problem]
    please check your disk, Is there have any available space. by using below comment

    ----> df -sh
    after that create pv and vg

    Example :
    pvcreate /dev/sdb1
    vgcreate cinder-volumes /dev/sdb1
    then restart the required services.
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: 2016-02-24 04:54:09 -0500

Seen: 947 times

Last updated: Oct 20 '16