<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hi Albert,<br></div><div dir="ltr"><div dir="ltr"><div><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">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:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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="http://keystone.private.FQDN:5000/v3" rel="noreferrer" target="_blank">http://keystone.private.FQDN:5000/v3</a><br>
auth_url = <a href="http://keystone.private.FQDN:5000" rel="noreferrer" target="_blank">http://keystone.private.FQDN:5000</a><br>
identity_uri = <a href="http://keystone.private.FQDN:5000" rel="noreferrer" target="_blank">http://keystone.private.FQDN:5000</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<br></blockquote><div><br></div><div>This might be something to look at with the wrong spelling causing mismatch.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
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)<br></blockquote><div><br></div><div>This log mentions that no host is valid to pass the 3 filters in the scheduler.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
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....<br>
<br></blockquote><div><br></div><div>The cinder-volume service is responsible for communicating with the backend and this create request fails on scheduler only, hence no sign of it.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Any help ?<br>
<br>
Regards<br>
<br></blockquote><div><br></div><div>Looking at the scheduler logs, there are a few things you can check:</div><div><br></div><div>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.</div><div>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)</div><div><br></div><div>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.</div><div><br></div><div>Thanks and regards</div><div>Rajat Dhasmana</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
--<br>
Albert SHIH<br>
Observatoire de Paris<br>
Heure local/Local time:<br>
Mon Apr 19 08:01:37 PM CEST 2021<br>
<br>
</blockquote></div></div>
</div></div>