O3L 2.0: Fail to Create LVM Driven Cinder Volume

(Doc ID 2095662.1)

Last updated on NOVEMBER 23, 2017

Applies to:

Oracle OpenStack for Oracle Linux - Version OpenStack 2.0.1 and later
Linux x86-64

Symptoms

From horizon, create a Volume failed.

Check cinder-volume log on storage node:

# docker logs cinder_volume
(snip)
2015-12-29 23:51:52.689 32 INFO cinder.volume.manager [req-7d48af54-9749-4682-958b-96e7fc934d00 - - - - -] Starting volume driver LVMVolumeDriver (3.0.0)
2015-12-29 23:51:52.905 32 ERROR cinder.volume.manager [req-7d48af54-9749-4682-958b-96e7fc934d00 - - - - -] Error encountered during initialization of driver: LVMVolumeDriver
2015-12-29 23:51:52.905 32 ERROR cinder.volume.manager [req-7d48af54-9749-4682-958b-96e7fc934d00 - - - - -] Unexpected error while running command.
Command: env LC_ALL=C vgs --noheadings -o name cinder-volumes
Exit code: 5
Stdout: u''
Stderr: u' /run/lvm/lvmetad.socket: connect failed: No such file or directory\n WARNING: Failed to connect to lvmetad. Falling back to internal scanning.\n Volume group "cinder-volumes" not found\n Cannot process volume group cinder-volumes\n'
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager Traceback (most recent call last):
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 302, in init_host
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager self.driver.check_for_setup_error()
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager return f(*args, **kwargs)
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 263, in check_for_setup_error
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager lvm_conf=lvm_conf_file)
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 86, in __init__
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager if self._vg_exists() is False:
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 123, in _vg_exists
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager run_as_root=True)
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 143, in execute
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager return processutils.execute(*cmd, **kwargs)
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 266, in execute
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager cmd=sanitized_cmd)
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager ProcessExecutionError: Unexpected error while running command.
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager Command: env LC_ALL=C vgs --noheadings -o name cinder-volumes
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager Exit code: 5
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager Stdout: u''
2015-12-29 23:51:52.905 32 TRACE cinder.volume.manager Stderr: u' /run/lvm/lvmetad.socket: connect failed: No such file or directory\n WARNING: Failed to connect to lvmetad. Falling back to internal scanning.\n

Volume group "cinder-volumes" not found\n Cannot process volume group cinder-volumes\n'
(snip)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms