<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<div>
<p style="margin:0in"><span style="color:#0E101A">Hi Albert,<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A"><o:p> </o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Could you execute the `cinder get-pools` command to check if Unity driver report the valid pools correctly? the output should be:<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">--------------------------------------------------<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">stack@ubuntu-xenial:/opt/stack/cinder$ cinder get-pools<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">+----------+--------------------------------+<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">| Property | Value |<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">+----------+--------------------------------+<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">| name | ubuntu-xenial@unity#Flash_Pool |<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">+----------+--------------------------------+<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">+----------+---------------------------------+<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">| Property | Value |<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">+----------+---------------------------------+<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">| name | ubuntu-xenial@unity#Manila_Pool |<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">+----------+---------------------------------+<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">+----------+---------------------------------+<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">| Property | Value |<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">+----------+---------------------------------+<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">| name | ubuntu-xenial@unity#Cinder_Pool |<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">+----------+---------------------------------+<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">--------------------------------------------------<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A"><o:p> </o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">If no valid pools, one possibility is Unity driver not initialized successfully, if the driver initialized successfully, there should be a log in cinder-volume.log like:<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">--------------------------------------------------<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Apr 21 03:20:07 ubuntu-xenial cinder-volume[29607]: INFO cinder.volume.manager [None req-4b345a29-0d78-4cf7-8bae-ae541a48aaf3 None None] Driver post RPC initialization completed successfully.<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">--------------------------------------------------<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A"><o:p> </o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Did you install the storops library which Unity driver relies on? Please check the version info of storops:<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">--------------------------------------------------<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">stack@ubuntu-xenial:/opt/stack/cinder$ pip show storops<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Name: storops<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Version: 1.2.8<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Summary: Python API for VNX and Unity.<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Home-page: <a href="https://github.com/emc-openstack/storops" target="_blank"><span style="color:#4A6EE0">https://github.com/emc-openstack/storops</span></a><o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Author: Cedric Zhuang<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Author-email: <a href="mailto:cedric.zhuang@gmail.com" target="_blank"><span style="color:#4A6EE0">cedric.zhuang@gmail.com</span></a><o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">License: Apache Software License<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Location: /usr/local/lib/python2.7/dist-packages<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Requires: requests, python-dateutil, persist-queue, cachez, bitmath, enum34, six, PyYAML, retryz<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">--------------------------------------------------<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A"><o:p> </o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Thanks<o:p></o:p></span></p>
<p style="margin:0in"><span style="color:#0E101A">Yong Huang<o:p></o:p></span></p>
<p><span style="color:#CE1126">[EXTERNAL EMAIL] <o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Hi Albert,<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">On Mon, Apr 19, 2021 at 11:45 PM Albert Shih <<a href="mailto:Albert.Shih@obspm.fr" target="_blank">Albert.Shih@obspm.fr</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal">Hi everyone,<br>
<br>
I'm a total newbie with openstack, currently I'm trying to put a POC with a<br>
Unity storage element, 4 computes, and few servers (cinder, keystone,<br>
glance, neutron, nova, placement and horizon).<br>
<br>
I think my keystone, glance, placement are working (at least they past the<br>
test).<br>
<br>
Currently I'm trying to make cinder working with my Unity (480), the<br>
objectif are to use iSCSI.<br>
<br>
Here the configuration of my /etc/cinder/cinder.conf<br>
<br>
  [DEFAULT]<br>
  rootwrap_config = /etc/cinder/rootwrap.conf<br>
  api_paste_confg = /etc/cinder/api-paste.ini<br>
  iscsi_helper = tgtadm<br>
  volume_name_template = volume-%s<br>
  volume_group = cinder-volumes<br>
  verbose = True<br>
  auth_strategy = keystone<br>
  state_path = /var/lib/cinder<br>
  lock_path = /var/lock/cinder<br>
  volumes_dir = /var/lib/cinder/volumes<br>
  enabled_backends = unity<br>
  transport_url = rabbit://openstack:XXXXXX@amqp-cloud.private.FQDN/openstack<br>
  auth_strategy = keystone<br>
  debug = True<br>
  verbose = True<br>
<br>
  [database]<br>
  connection = mysql+pymysql://cinder:XXXXXXX@mariadb-cloud.private.FQDN/cinder<br>
<br>
  [keystone_authtoken]<br>
  www_authenticate_uri = <a href="https://urldefense.com/v3/__http:/keystone.private.FQDN:5000/v3__;!!LpKI!x37Ut-hhgzyfd251eExF9xxSy9m4V243W1wvIl5o39J3VnlmGQWl2I2XK_Kd1yxpcbFM$" target="_blank">
http://keystone.private.FQDN:5000/v3 [keystone.private.fqdn]</a><br>
  auth_url = <a href="https://urldefense.com/v3/__http:/keystone.private.FQDN:5000__;!!LpKI!x37Ut-hhgzyfd251eExF9xxSy9m4V243W1wvIl5o39J3VnlmGQWl2I2XK_Kd11uttafM$" target="_blank">
http://keystone.private.FQDN:5000 [keystone.private.fqdn]</a><br>
  identity_uri = <a href="https://urldefense.com/v3/__http:/keystone.private.FQDN:5000__;!!LpKI!x37Ut-hhgzyfd251eExF9xxSy9m4V243W1wvIl5o39J3VnlmGQWl2I2XK_Kd11uttafM$" target="_blank">
http://keystone.private.FQDN:5000 [keystone.private.fqdn]</a><br>
  memcached_servers = memcached-cloud.private.FQDN:11211<br>
  auth_type = password<br>
  project_domain_name = default<br>
  user_domain_name = default<br>
  project_name = service<br>
  username = cinder<br>
  password = XXXXXX<br>
<br>
  [oslo_concurrency]<br>
  lock_path = /var/lib/cinder/tmp<br>
<br>
  [unity]<br>
  # Storage protocol<br>
  storage_protocol = iSCSI<br>
  # Unisphere IP<br>
  san_ip = onering-remote.FQDN<br>
  # Unisphere username and password<br>
  san_login = openstack<br>
  san_password = "XXXXX"<br>
  # Volume driver name<br>
  volume_driver = cinder.volume.drivers.dell_emc.unity.Driver<br>
  # backend's name<br>
  volume_backend_name = Unitiy_ISCSI<o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">This might be something to look at with the wrong spelling causing mismatch.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal">  unity_io_ports = *_enp1s0<br>
  unity_storage_pool_names = onering<br>
<br>
When I'm trying to create a storage through a<br>
<br>
    openstack volume create volumetest --type thick_volume_type --size 100<br>
<br>
I don't even see (with tcpdump) the cinder server trying to connect to<br>
<br>
  onering-remote.FQDN<br>
<br>
Inside my /var/log/cinder/cinder-scheduler.log I have<br>
<br>
  2021-04-19 18:06:56.805 21315 INFO cinder.scheduler.base_filter [req-4808cc9d-b9c3-44cb-8cae-7503db0b0256 f5e5c9ea20064b17851f07c276d71aee b1d58ebae6b84f7586ad63b94203d7ae - - -] Filtering removed all hosts for the request with volume ID '06e5f07d-766f-4d07-b3bf-6153a2cf6abd'.
 Filter results: AvailabilityZoneFilter: (start: 0, end: 0), CapacityFilter: (start: 0, end: 0), CapabilitiesFilter: (start: 0, end: 0)<o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">This log mentions that no host is valid to pass the 3 filters in the scheduler.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt">  2021-04-19 18:06:56.806 21315 WARNING cinder.scheduler.filter_scheduler [req-4808cc9d-b9c3-44cb-8cae-7503db0b0256 f5e5c9ea20064b17851f07c276d71aee b1d58ebae6b84f7586ad63b94203d7ae - - -] No weighed backend
 found for volume with properties: {'id': '5f16fc1f-76ff-41ee-8927-56925cf7b00f', 'name': 'thick_volume_type', 'description': None, 'is_public': True, 'projects': [], 'extra_specs': {'provisioning:type': 'thick', 'thick_provisioning_support': 'True'}, 'qos_specs_id':
 None, 'created_at': '2021-04-19T15:07:09.000000', 'updated_at': None, 'deleted_at': None, 'deleted': False}<br>
  2021-04-19 18:06:56.806 21315 INFO cinder.message.api [req-4808cc9d-b9c3-44cb-8cae-7503db0b0256 f5e5c9ea20064b17851f07c276d71aee b1d58ebae6b84f7586ad63b94203d7ae - - -] Creating message record for request_id = req-4808cc9d-b9c3-44cb-8cae-7503db0b0256<br>
  2021-04-19 18:06:56.811 21315 ERROR cinder.scheduler.flows.create_volume [req-4808cc9d-b9c3-44cb-8cae-7503db0b0256 f5e5c9ea20064b17851f07c276d71aee b1d58ebae6b84f7586ad63b94203d7ae - - -] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create:
 No valid backend was found. No weighed backends available: cinder.exception.NoValidBackend: No valid backend was found. No weighed backends available<br>
<br>
<br>
It seem (for me) cinder don't try to use unity....<o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The cinder-volume service is responsible for communicating with the backend and this create request fails on scheduler only, hence no sign of it.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt">Any help ?<br>
<br>
Regards<o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Looking at the scheduler logs, there are a few things you can check:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">1) execute ``cinder-manage service list`` command and check the status of cinder-volume service if it's active or not. If it shows an X sign then check in cinder-volume logs for any startup failure.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">2) Check the volume type properties and see if ``volume_backend_name`` is set to the right value i.e. Unitiy_ISCSI (which looks suspicious because the spelling is wrong and there might be a mismatch somewhere)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Also it's good to mention the openstack version you're using since the code changes every cycle and it's hard to track the issues with every release.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks and regards<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Rajat Dhasmana<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
--<br>
Albert SHIH<br>
Observatoire de Paris<br>
Heure local/Local time:<br>
Mon Apr 19 08:01:37 PM CEST 2021<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>