<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=us-ascii">
<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:"Calibri Light";
panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks Gorka for your response.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have changed the version of libvirt and qemu on my host and I am able to move past the previous error mentioned in my last email.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Current versions of libvirt and qemu:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@CSSOSBE04-B09:/etc# libvirtd --version<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">libvirtd (<span style="background:aqua;mso-highlight:aqua">libvirt) 1.3.1</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@CSSOSBE04-B09:/etc# kvm --version<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;background:aqua;mso-highlight:aqua">QEMU emulator version 2.5.0</span><span style="color:#1F497D"> (Debian 1:2.5+dfsg-5ubuntu10.36), Copyright (c) 2003-2008 Fabrice Bellard<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Also, I made a change in /etc/nova/nova.conf and set virt_type=qemu. Earlier it was set to kvm.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I restarted all nova services post the changes but I can see one nova service was disabled and state was down.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@CSSOSBE04-B09:/etc# nova service-list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">+--------------------------------------+------------------+---------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason
| Forced down |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">+--------------------------------------+------------------+---------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| 1ebcd1f6-b7dc-40ce-8d7b-95d60503c0ff | nova-scheduler | CSSOSBE04-B09 | internal | enabled | up | 2019-05-10T05:48:59.000000 | -
| False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| ed82277c-d2e0-4a1a-adf6-9bcdcc50ba29 | nova-consoleauth | CSSOSBE04-B09 | internal | enabled | up | 2019-05-10T05:48:49.000000 | -
| False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| bc2b6703-7a1e-4f07-96b9-35cbb14398d5 | nova-conductor | CSSOSBE04-B09 | internal | enabled | up | 2019-05-10T05:48:59.000000 | -
| False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| 72ecbc1d-1b47-4f55-a18d-de2fbf1771e9 | nova-conductor | CSSOSBE04-B09 | internal | enabled | up | 2019-05-10T05:48:54.000000 | -
| False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| 9c700ee1-1694-479b-afc0-1fd37c1a5561 |
<span style="background:yellow;mso-highlight:yellow">nova-compute | CSSOSBE04-B09 | nova | disabled | down</span> | 2019-05-07T22:11:06.000000 |
<span style="background:yellow;mso-highlight:yellow">AUTO: Connection to libvirt lost: 1</span> | False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">+--------------------------------------+------------------+---------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">So, I manually enabled the service, but the state was still down.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@CSSOSBE04-B09:/etc# nova service-enable 9c700ee1-1694-479b-afc0-1fd37c1a5561<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">+--------------------------------------+---------------+--------------+---------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| ID | Host | Binary | Status |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">+--------------------------------------+---------------+--------------+---------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| 9c700ee1-1694-479b-afc0-1fd37c1a5561 | CSSOSBE04-B09 | nova-compute | enabled |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">+--------------------------------------+---------------+--------------+---------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@CSSOSBE04-B09:/etc# nova service-list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">+--------------------------------------+------------------+---------------+----------+---------+-------+----------------------------+-----------------+-------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
Forced down |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">+--------------------------------------+------------------+---------------+----------+---------+-------+----------------------------+-----------------+-------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| 1ebcd1f6-b7dc-40ce-8d7b-95d60503c0ff | nova-scheduler | CSSOSBE04-B09 | internal | enabled | up | 2019-05-10T05:49:19.000000 | - |
False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| ed82277c-d2e0-4a1a-adf6-9bcdcc50ba29 | nova-consoleauth | CSSOSBE04-B09 | internal | enabled | up | 2019-05-10T05:49:19.000000 | - |
False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| bc2b6703-7a1e-4f07-96b9-35cbb14398d5 | nova-conductor | CSSOSBE04-B09 | internal | enabled | up | 2019-05-10T05:49:19.000000 | - |
False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| 72ecbc1d-1b47-4f55-a18d-de2fbf1771e9 | nova-conductor | CSSOSBE04-B09 | internal | enabled | up | 2019-05-10T05:49:14.000000 | - |
False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">| 9c700ee1-1694-479b-afc0-1fd37c1a5561 |
<span style="background:yellow;mso-highlight:yellow">nova-compute | CSSOSBE04-B09 | nova | enabled | down</span> | 2019-05-10T05:49:14.000000 | - | False |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">+--------------------------------------+------------------+---------------+----------+---------+-------+----------------------------+-----------------+-------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">So, now when I try to attach a volume to nova instance, I get the below error. As one of the service is down it fails in filter validation for nova-compute and gives us “No host” error.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-scheduler[21775]: #033[00;32mDEBUG nova.filters [#033[01;36mNone req-b0ca81b3-a2b6-492e-9036-249644b94349 #033[00;36mdemo
admin#033[00;32m] #033[01;35m#033[00;32m<span style="background:yellow;mso-highlight:yellow">Filter RetryFilter returned 1 host(s)</span>#033[00m #033[00;33m{{(pid=21775) get_filtered_objects /opt/stack/nova/nova/filters.py:104}}#033[00m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-scheduler[21775]: #033[00;32mDEBUG nova.filters [#033[01;36mNone req-b0ca81b3-a2b6-492e-9036-249644b94349 #033[00;36mdemo
admin#033[00;32m] #033[01;35m#033[00;32m<span style="background:yellow;mso-highlight:yellow">Filter AvailabilityZoneFilter returned 1 host(s)#</span>033[00m #033[00;33m{{(pid=21775) get_filtered_objects /opt/stack/nova/nova/filters.py:104}}#033[00m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-scheduler[21775]: #033[00;32mDEBUG nova.scheduler.filters.compute_filter [#033[01;36mNone req-b0ca81b3-a2b6-492e-9036-249644b94349
#033[00;36mdemo admin#033[00;32m] #033[01;35m#033[00;32m(CSSOSBE04-B09, CSSOSBE04-B09) ram: 30810MB disk: 1737728MB io_ops: 0
<span style="background:yellow;mso-highlight:yellow">instances: 1 is disabled, reason: AUTO: Connection to libvirt lost: 1</span>#033[00m #033[00;33m{{(pid=21775) host_passes /opt/stack/nova/nova/scheduler/filters/compute_filter.py:42}}#033[00m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-scheduler[21775]: #033[00;36mINFO nova.filters [#033[01;36mNone req-b0ca81b3-a2b6-492e-9036-249644b94349 #033[00;36mdemo
admin#033[00;36m] #033[01;35m#033[00;36m<span style="background:yellow;mso-highlight:yellow">Filter ComputeFilter returned 0 hosts</span>#033[00m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-scheduler[21775]: #033[00;32mDEBUG nova.filters [#033[01;36mNone req-b0ca81b3-a2b6-492e-9036-249644b94349 #033[00;36mdemo
admin#033[00;32m] #033[01;35m#033[00;32mFiltering removed all hosts for the request with instance ID '1735ece5-d187-454a-aab1-12650646a2ec'.
<span style="background:yellow;mso-highlight:yellow">Filter results: [('RetryFilter', [(u'CSSOSBE04-B09', u'CSSOSBE04-B09')]), ('AvailabilityZoneFilter', [(u'CSSOSBE04-B09', u'CSSOSBE04-B09')]), ('ComputeFilter', None)]</span>#033[00m #033[00;33m{{(pid=21775)
get_filtered_objects /opt/stack/nova/nova/filters.py:129}}#033[00m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-scheduler[21775]: #033[00;36mINFO nova.filters [#033[01;36mNone req-b0ca81b3-a2b6-492e-9036-249644b94349 #033[00;36mdemo
admin#033[00;36m] #033[01;35m#033[00;36mFiltering removed all hosts for the request with instance ID '1735ece5-d187-454a-aab1-12650646a2ec'.
<span style="background:yellow;mso-highlight:yellow">Filter results: ['RetryFilter: (start: 1, end: 1)', 'AvailabilityZoneFilter: (start: 1, end: 1)', 'ComputeFilter: (start: 1, end: 0)']</span>#033[00m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-scheduler[21775]: #033[00;32mDEBUG nova.scheduler.filter_scheduler [#033[01;36mNone req-b0ca81b3-a2b6-492e-9036-249644b94349
#033[00;36mdemo admin#033[00;32m] #033[01;35m#033[00;32mFiltered []#033[00m #033[00;33m{{(pid=21775) _get_sorted_hosts /opt/stack/nova/nova/scheduler/filter_scheduler.py:404}}#033[00m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-scheduler[21775]: #033[00;32mDEBUG nova.scheduler.filter_scheduler [#033[01;36mNone req-b0ca81b3-a2b6-492e-9036-249644b94349
#033[00;36mdemo admin#033[00;32m] #033[01;35m#033[00;32mThere are 0 hosts available but 1 instances requested to build.#033[00m #033[00;33m{{(pid=21775) _ensure_sufficient_hosts /opt/stack/nova/nova/scheduler/filter_scheduler.py:279}}#033[00m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: #033[01;31mERROR nova.conductor.manager [#033[01;36mNone req-b0ca81b3-a2b6-492e-9036-249644b94349 #033[00;36mdemo
admin#033[01;31m] #033[01;35m#033[01;31mFailed to schedule instances#033[00m: <span style="background:yellow;mso-highlight:yellow">
NoValidHost_Remote: No valid host was found. There are not enough hosts available.</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 226, in inner<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: return func(*args, **kwargs)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: File "/opt/stack/nova/nova/scheduler/manager.py", line 154, in select_destinations<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: allocation_request_version, return_alternates)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 91, in select_destinations<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: allocation_request_version, return_alternates)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 244, in _schedule<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: claimed_instance_uuids)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 281, in _ensure_sufficient_hosts<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: raise exception.NoValidHost(reason=reason)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#1F497D">May 10 10:43:00 CSSOSBE04-B09 nova-conductor[21789]: NoValidHost: No valid host was found. There are not enough hosts available.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Need help in understanding on how to fix this error. For detailed logs, please refer the attached syslog.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks & Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Sneha Rai<o:p></o:p></span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<br>
From: Gorka Eguileor [mailto:geguileo@redhat.com] <br>
Sent: Friday, May 10, 2019 2:56 PM<br>
To: RAI, SNEHA <sneha.rai@hpe.com><br>
Cc: openstack-dev@lists.openstack.org<br>
Subject: Re: Help needed to Support Multi-attach feature</p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On 02/05, RAI, SNEHA wrote:<o:p></o:p></p>
<p class="MsoPlainText">> Hi Team,<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> I am currently working on multiattach feature for HPE 3PAR cinder driver.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> For this, while setting up devstack(on stable/queens) I made below
<o:p></o:p></p>
<p class="MsoPlainText">> change in the local.conf [[local|localrc]] <o:p></o:p></p>
<p class="MsoPlainText">> ENABLE_VOLUME_MULTIATTACH=True ENABLE_UBUNTU_CLOUD_ARCHIVE=False<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> /etc/cinder/cinder.conf:<o:p></o:p></p>
<p class="MsoPlainText">> [3pariscsi_1]<o:p></o:p></p>
<p class="MsoPlainText">> hpe3par_api_url = <o:p></o:p></p>
<p class="MsoPlainText">> <a href="INVALID URI REMOVED"><span style="color:windowtext;text-decoration:none">INVALID URI REMOVED</span></a><o:p></o:p></p>
<p class="MsoPlainText">> 0_api_v1&d=DwIBAg&c=C5b8zRQO1miGmBeVZ2LFWg&r=8drU3i56Z5sQ_Ltpya89LTNn3<o:p></o:p></p>
<p class="MsoPlainText">> xDSwtigjYbGrSY1lM8&m=zTRvI4nj8MoP0_z5MmxTYwKiNNW6addwP4L5VFG4wkg&s=a2D<o:p></o:p></p>
<p class="MsoPlainText">> HbzzRtbbBPz0_kfodZv5X1HxbN_hFxte5rEZabAg&e=<o:p></o:p></p>
<p class="MsoPlainText">> hpe3par_username = user<o:p></o:p></p>
<p class="MsoPlainText">> hpe3par_password = password<o:p></o:p></p>
<p class="MsoPlainText">> san_ip = 192.168.1.7<o:p></o:p></p>
<p class="MsoPlainText">> san_login = user<o:p></o:p></p>
<p class="MsoPlainText">> san_password = password<o:p></o:p></p>
<p class="MsoPlainText">> volume_backend_name = 3pariscsi_1<o:p></o:p></p>
<p class="MsoPlainText">> hpe3par_cpg = my_cpg<o:p></o:p></p>
<p class="MsoPlainText">> hpe3par_iscsi_ips = 192.168.11.2,192.168.11.3 volume_driver =
<o:p></o:p></p>
<p class="MsoPlainText">> cinder.volume.drivers.hpe.hpe_3par_iscsi.HPE3PARISCSIDriver<o:p></o:p></p>
<p class="MsoPlainText">> hpe3par_iscsi_chap_enabled = True<o:p></o:p></p>
<p class="MsoPlainText">> hpe3par_debug = True<o:p></o:p></p>
<p class="MsoPlainText">> image_volume_cache_enabled = True<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> /etc/cinder/policy.json:<o:p></o:p></p>
<p class="MsoPlainText">> 'volume:multiattach': 'rule:admin_or_owner'<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> Added <a href="https://review.opendev.org/#/c/560067/2/cinder/volume/drivers/hpe/hpe_3par_common.py"><span style="color:windowtext;text-decoration:none">https://review.opendev.org/#/c/560067/2/cinder/volume/drivers/hpe/hpe_3par_common.py</span></a>=
change in the code.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> But I am getting below error in the nova log:<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [None req-2cda6e90-fd45-4bfe-960a-7fca9ba4abab demo admin] [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] Instance failed block device setup: MultiattachNotSupportedByVirtDriver:
Volume dc25f09a-6ae1-4b06-a814-73a8afaba62f has 'multiattach' set, which is not supported for this instance.<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] Traceback (most recent call last):<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] File "/opt/stack/nova/nova/compute/manager.py", line 1615, in _prep_block_device<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] wait_func=self._await_block_device_map_created)<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] File "/opt/stack/nova/nova/virt/block_device.py", line 840, in attach_block_devices<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] _log_and_attach(device)<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] File "/opt/stack/nova/nova/virt/block_device.py", line 837, in _log_and_attach<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] bdm.attach(*attach_args, **attach_kwargs)<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] File "/opt/stack/nova/nova/virt/block_device.py", line 46, in wrapped<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] ret_val = method(obj, context, *args, **kwargs)<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] File "/opt/stack/nova/nova/virt/block_device.py", line 620, in attach<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] virt_driver, do_driver_attach)<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 274, in inner<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] return f(*args, **kwargs)<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] File "/opt/stack/nova/nova/virt/block_device.py", line 617, in _do_locked_attach<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] self._do_attach(*args, **_kwargs)<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] File "/opt/stack/nova/nova/virt/block_device.py", line 602, in _do_attach<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] do_driver_attach)<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] File "/opt/stack/nova/nova/virt/block_device.py", line 509, in _volume_attach<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] volume_id=volume_id)<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa] MultiattachNotSupportedByVirtDriver: Volume dc25f09a-6ae1-4b06-a814-73a8afaba62f has 'multiattach' set,
which is not supported for this instance.<o:p></o:p></p>
<p class="MsoPlainText">> Apr 29 04:23:04 CSSOSBE04-B09 nova-compute[31396]: ERROR
<o:p></o:p></p>
<p class="MsoPlainText">> nova.compute.manager [instance: fcaa5a47-fc48-489d-9827-6533bfd1a9fa]<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> Apr 29 05:41:20 CSSOSBE04-B09 nova-compute[20455]: DEBUG
<o:p></o:p></p>
<p class="MsoPlainText">> nova.virt.libvirt.driver [-] Volume multiattach is not supported based
<o:p></o:p></p>
<p class="MsoPlainText">> on current versions of QEMU and libvirt. QEMU must be less than 2.10
<o:p></o:p></p>
<p class="MsoPlainText">> or libvirt must be greater than or equal to 3.10. {{(pid=20455)
<o:p></o:p></p>
<p class="MsoPlainText">> _set_multiattach_support <o:p></o:p></p>
<p class="MsoPlainText">> /opt/stack/nova/nova/virt/libvirt/driver.py:619}}<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> stack@CSSOSBE04-B09:/tmp$ virsh --version<o:p></o:p></p>
<p class="MsoPlainText">> 3.6.0<o:p></o:p></p>
<p class="MsoPlainText">> stack@CSSOSBE04-B09:/tmp$ kvm --version QEMU emulator version
<o:p></o:p></p>
<p class="MsoPlainText">> 2.10.1(Debian 1:2.10+dfsg-0ubuntu3.8~cloud1) Copyright (c) 2003-2017
<o:p></o:p></p>
<p class="MsoPlainText">> Fabrice Bellard and the QEMU Project developers<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi Sneha,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I don't know much about this side of Nova, but reading the log error I would say that you either need to update your libvirt version from 3.6.0 to 3.10, or you need to downgrade your QEMU version to something prior to 2.10.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">The later is probably easier.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I don't use Ubuntu, but according to the Internet you can list available versions with "apt-cache policy qemu" and then install or downgrade to the specific version with "sudo apt-get install qemu=2.5\*" if you wanted to install version
2.5<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I hope this helps.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Cheers,<o:p></o:p></p>
<p class="MsoPlainText">Gorka.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> openstack volume show -c multiattach -c status sneha1<o:p></o:p></p>
<p class="MsoPlainText">> +-------------+-----------+<o:p></o:p></p>
<p class="MsoPlainText">> | Field | Value |<o:p></o:p></p>
<p class="MsoPlainText">> +-------------+-----------+<o:p></o:p></p>
<p class="MsoPlainText">> | multiattach | True |<o:p></o:p></p>
<p class="MsoPlainText">> | status | available |<o:p></o:p></p>
<p class="MsoPlainText">> +-------------+-----------+<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> cinder extra-specs-list<o:p></o:p></p>
<p class="MsoPlainText">> +--------------------------------------+-------------+--------------------------------------------------------------------+<o:p></o:p></p>
<p class="MsoPlainText">> | ID | Name | extra_specs |<o:p></o:p></p>
<p class="MsoPlainText">> +--------------------------------------+-------------+--------------------------------------------------------------------+<o:p></o:p></p>
<p class="MsoPlainText">> | bd077fde-51c3-4581-80d5-5855e8ab2f6b | 3pariscsi_1 | <o:p>
</o:p></p>
<p class="MsoPlainText">> | {'volume_backend_name': '3pariscsi_1', 'multiattach': '<is> True'}|<o:p></o:p></p>
<p class="MsoPlainText">> +--------------------------------------+-------------+--------------------------------------------------------------------+<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> echo $OS_COMPUTE_API_VERSION<o:p></o:p></p>
<p class="MsoPlainText">> 2.60<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> pip list | grep python-novaclient<o:p></o:p></p>
<p class="MsoPlainText">> DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.<o:p></o:p></p>
<p class="MsoPlainText">> python-novaclient 13.0.0<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> How do I fix this version issue on my setup to proceed? Please help.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> Thanks & Regards,<o:p></o:p></p>
<p class="MsoPlainText">> Sneha Rai<o:p></o:p></p>
</div>
</body>
</html>