On Mon, Jul 14, 2014 at 9:01 PM, Johnson Cheng <
johnson.ch...@qsantechnology.com> wrote:

>  Hi,
>
>
>
> Here is my complete cinder-volume.log
>
> 2014-07-15 10:55:28.849 27399 AUDIT cinder.service [-] Starting
> cinder-volume node (version 2014.1)
>
> 2014-07-15 10:55:28.862 27399 INFO cinder.volume.manager
> [req-06b5b19c-20b2-4e8d-a675-b4ef51ebe3a6 - - - - -] Starting volume driver
> LVMISCSIDriver (2.0.0)
>
> 2014-07-15 10:55:29.985 27399 ERROR cinder.volume.manager
> [req-06b5b19c-20b2-4e8d-a675-b4ef51ebe3a6 - - - - -] Error encountered
> during initialization of driver: LVMISCSIDriver
>
> 2014-07-15 10:55:29.986 27399 ERROR cinder.volume.manager
> [req-06b5b19c-20b2-4e8d-a675-b4ef51ebe3a6 - - - - -] 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: 1
>
> Stdout: ''
>
> Stderr: 'Traceback (most recent call last):\n  File
> "/usr/bin/cinder-rootwrap", line 10, in <module>\n    sys.exit(main())\n
> File "/usr/lib/python2.7/dist-packages/oslo/rootwrap/cmd.py", line 107, in
> main\n    filters = wrapper.load_filters(config.filters_path)\n  File
> "/usr/lib/python2.7/dist-packages/oslo/rootwrap/wrapper.py", line 119, in
> load_filters\n    for (name, value) in filterconfig.items("Filters"):\n
> File "/usr/lib/python2.7/ConfigParser.py", line 347, in items\n    raise
> NoSectionError(section)\nConfigParser.NoSectionError: No section:
> \'Filters\'\n'
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager Traceback (most
> recent call last):
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager   File
> "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 243, in
> init_host
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager
> self.driver.check_for_setup_error()
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager   File
> "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 83,
> in check_for_setup_error
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager
> executor=self._execute)
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager   File
> "/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 81,
> in __init__
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager     if
> self._vg_exists() is False:
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager   File
> "/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 106,
> in _vg_exists
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager
> self.vg_name, root_helper=self._root_helper, run_as_root=True)
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager   File
> "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 136, in execute
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager     return
> processutils.execute(*cmd, **kwargs)
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager   File
> "/usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py",
> line 173, in execute
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager     cmd='
> '.join(cmd))
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager
> ProcessExecutionError: Unexpected error while running command.
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager Command: sudo
> cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --noheadings -o
> name cinder-volumes
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager Exit code: 1
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager Stdout: ''
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager Stderr:
> 'Traceback (most recent call last):\n  File "/usr/bin/cinder-rootwrap",
> line 10, in <module>\n    sys.exit(main())\n  File
> "/usr/lib/python2.7/dist-packages/oslo/rootwrap/cmd.py", line 107, in
> main\n    filters = wrapper.load_filters(config.filters_path)\n  File
> "/usr/lib/python2.7/dist-packages/oslo/rootwrap/wrapper.py", line 119, in
> load_filters\n    for (name, value) in filterconfig.items("Filters"):\n
> File "/usr/lib/python2.7/ConfigParser.py", line 347, in items\n    raise
> NoSectionError(section)\nConfigParser.NoSectionError: No section:
> \'Filters\'\n'
>
> 2014-07-15 10:55:29.986 27399 TRACE cinder.volume.manager
>
> 2014-07-15 10:55:30.909 27399 INFO oslo.messaging._drivers.impl_rabbit [-]
> Connected to AMQP server on controller:5672
>
> 2014-07-15 10:55:49.942 27399 INFO cinder.volume.manager
> [req-2e368031-ee15-428d-8239-2973261f116d - - - - -] Updating volume status
>
> 2014-07-15 10:55:49.943 27399 WARNING cinder.volume.manager
> [req-2e368031-ee15-428d-8239-2973261f116d - - - - -] Unable to update
> stats, LVMISCSIDriver -2.0.0  driver is uninitialized.
>
>
>
> My cinder version is 1.0.8, and “cinder service-list” output is listed as
> below,
>
>
> +------------------+------------+------+---------+-------+----------------------------+
>
> |      Binary      |    Host    | Zone |  Status | State |
> Updated_at         |
>
>
> +------------------+------------+------+---------+-------+----------------------------+
>
> | cinder-scheduler | controller | nova | enabled |   up  |
> 2014-07-15T02:57:55.000000 |
>
> |  cinder-volume   | controller | nova | enabled |   up  |
> 2014-07-15T02:57:51.000000 |
>
>
> +------------------+------------+------+---------+-------+----------------------------+
>
>
>
>
>
> Regards,
>
> Johnson
>
>
>
>
>
> *From:* John Griffith [mailto:john.griff...@solidfire.com]
> *Sent:* Monday, July 14, 2014 10:26 PM
> *To:* OpenStack Development Mailing List (not for usage questions)
> *Subject:* Re: [openstack-dev] Can not create cinder volume
>
>
>
>
>
>
>
> On Mon, Jul 14, 2014 at 8:13 AM, Duncan Thomas <duncan.tho...@gmail.com>
> wrote:
>
> Please post up more (all) of your cinder-volume.log - something is
> stopping your driver being initialised, but you haven't provided enough
> logs to tell what the issue it.
>
>
>
> On 14 July 2014 12:22, Johnson Cheng <johnson.ch...@qsantechnology.com>
> wrote:
>
>   Dear All,
>
>
>
> When I use “cinder create –display-name myVolume 1” to create a cinder
> volume, its status will be error when I use “cinder list” to query it.
>
>
> +--------------------------------------+--------+--------------+------+-------------+----------+-------------+
>
> |                  ID                  | Status | Display Name | Size |
> Volume Type | Bootable | Attached to |
>
>
> +--------------------------------------+--------+--------------+------+-------------+----------+-------------+
>
> | 83059a3e-e66c-4fd8-829e-09ca450b4d70 | error  |   myVolume   |  1
> |     None    |  false   |             |
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> My Openstack version is Icehouse, and I install it on Ubuntu 14.04 LTS.
>
>
>
> The vgs output,
>
>   VG                #PV #LV #SN Attr   VSize   VFree
>
>   cinder-volumes      1   0   0 wz--n- 153.38g 153.38g
>
>
>
> Here is my cinder.conf
>
> [DEFAULT]
>
> rootwrap_config = /etc/cinder/rootwrap.conf
>
> api_paste_confg = /etc/cinder/api-paste.ini
>
> iscsi_helper = tgtadm
>
> volume_name_template = volume-%s
>
> volume_group = cinder-volumes
>
> verbose = True
>
> auth_strategy = keystone
>
> state_path = /var/lib/cinder
>
> lock_path = /var/lock/cinder
>
> volumes_dir = /var/lib/cinder/volumes
>
>
>
> rpc_backend = cinder.openstack.common.rpc.impl_kombu
>
> rabbit_host = controller
>
> rabbit_port = 5672
>
> rabbit_userid = guest
>
> rabbit_password = demo
>
>
>
> glance_host = controller
>
>
>
> control_exchange = cinder
>
> notification_driver = cinder.openstack.common.notifier.rpc_notifier
>
>
>
> [database]
>
> connection = mysql://cinder:demo@controller/cinder
>
>
>
> [keystone_authtoken]
>
> auth_uri = http://controller:5000
>
> auth_host = controller
>
> auth_port = 35357
>
> auth_protocol = http
>
> admin_tenant_name = service
>
> admin_user = cinder
>
> admin_password = demo
>
>
>
> Here is my cinder-schedule.log
>
> 2014-07-14 17:34:37.592 7141 INFO oslo.messaging._drivers.impl_rabbit [-]
> Connected to AMQP server on controller:5672
>
> 2014-07-14 17:34:44.769 7141 WARNING cinder.context [-] Arguments dropped
> when creating context: {'user': u'1149275f4ea84690a9da5b7f442ab48f',
> 'tenant': u'4e898758e77c4d3c8d0b0eecf5ae0957', 'user_identity':
> u'1149275f4ea84690a9da5b7f442ab48f 4e898758e77c4d3c8d0b0eecf5ae0957 - - -'}
>
> 2014-07-14 17:34:45.004 7141 ERROR
> cinder.scheduler.filters.capacity_filter
> [req-ebae9974-8741-4a6d-af44-456e506e5612 1149275f4ea84690a9da5b7f442ab48f
> 4e898758e77c4d3c8d0b0eecf5ae0957 - - -] Free capacity not set: volume node
> info collection broken.
>
> 2014-07-14 17:34:45.030 7141 ERROR cinder.scheduler.flows.create_volume
> [req-ebae9974-8741-4a6d-af44-456e506e5612 1149275f4ea84690a9da5b7f442ab48f
> 4e898758e77c4d3c8d0b0eecf5ae0957 - - -] Failed to schedule_create_volume:
> No valid host was found.
>
>
>
> Here is my cinder-volume.log
>
> 2014-07-14 19:14:15.489 7151 INFO cinder.volume.manager [-] Updating
> volume status
>
> 2014-07-14 19:14:15.490 7151 WARNING cinder.volume.manager [-] Unable to
> update stats, LVMISCSIDriver -2.0.0  driver is uninitialized.
>
>
>
>
>
> Your response will be appreciated.
>
> Let me know if you need more information.
>
>
>
>
>
> Regards,
>
> Johnson
>
>
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
>
> --
> Duncan Thomas
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> ​Make sure "controller" resolves on your cinder-volume node.  It appears
> that either your volume-node isn't able to communicate with the controller
> (you can check this by trying a 'cinder service-list').  Another
> possibility is something's not quite right with your message queue
> settings.  Main thing here would again be name resolution and that your
> message queue is actually matched up here (ie settings on the controller
> match those on your volume-node).
>
>
>
>
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> ​Oh, sorry I didn't realize that you had the Controller and Volume Service
on the same host.  The log indicates that rootwrap failed, although I
haven't seen this sort of thing before.  Is it possible you edited
/et​c/cinder/rootwrap.d/volume.filters?  Or maybe it's missing or malformed
somehow?

You can compare it to the reference version here:
https://github.com/openstack/cinder/blob/master/etc/cinder/rootwrap.d/volume.filters
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to