<div dir="ltr">Replying more to the "thread" and stream of thought than a specific message.<div><br></div><div>1) Yes, it is confusing. Rikimaru's description is more or less what I believe.</div><div>2) Because it is confusing, I continue to use NovaClient commands instead of OpenstackClient</div><div><br></div><div>I don't know what drove the creation of the OpenStack Client server commands the way that they are it might be a good deep dive of launchpad and git to find out. i.e., I can't "guess" what drove the design as it seems wrong and overly opaque and complex.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 17, 2017 at 3:38 AM, Rikimaru Honjo <span dir="ltr"><<a href="mailto:honjo.rikimaru@po.ntts.co.jp" target="_blank">honjo.rikimaru@po.ntts.co.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Marcus,<div><div class="h5"><br>
<br>
On 2017/02/17 15:05, Marcus Furlong wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 17 February 2017 at 16:47, Rikimaru Honjo<br>
<<a href="mailto:honjo.rikimaru@po.ntts.co.jp" target="_blank">honjo.rikimaru@po.ntts.co.jp</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I found and reported a unkind behavior of "openstack server migrate" command<br>
when I maintained my environment.[1]<br>
But, I'm wondering which solution is better.<br>
Do you have opinions about following my solutions by operating point of<br>
view?<br>
I will commit a patch according to your opinions if those are gotten.<br>
<br>
[1]<a href="https://bugs.launchpad.net/python-openstackclient/+bug/1662755" rel="noreferrer" target="_blank">https://bugs.launchpad.net/<wbr>python-openstackclient/+bug/16<wbr>62755</a><br>
---<br>
[Actual]<br>
If user run "openstack server migrate --block-migration <UUID>",<br>
openstack client call Cold migration API.<br>
"--block migration" option will be ignored if user don't specify "--live".<br>
<br>
But, IMO, this is unkindly.<br>
This cause unexpected operation for operator.<br>
</blockquote>
<br>
+1 This has confused/annoyed me before.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
P.S.<br>
"--shared-migration" option has same issue.<br>
</blockquote>
<br>
For the shared migration case, there is also this bug:<br>
<br>
   <a href="https://bugs.launchpad.net/nova/+bug/1459782" rel="noreferrer" target="_blank">https://bugs.launchpad.net/no<wbr>va/+bug/1459782</a><br>
<br>
which, if fixed/implemented would negate the need for<br>
--shared-migration? And would fix also "nova resize" on shared<br>
storage.<br>
</blockquote></div></div>
In my understanding, that report says about libvirt driver's behavior.<br>
In the other hand, my report says about the logic of openstack client.<br>
<br>
Current "openstack server migrate" command has following logic:<br>
<br>
* openstack server migrate<br>
   +-User don't specify "--live"<br>
   | + Call cold-migrate API.<br>
   |   Ignore "--block-migration" and "--shard-migration" option if user specify those.<br>
   |<br>
   +-User specify "--live"<br>
   | + Call live-migration API.<br>
   |<br>
   +-User specify "--live --block-migration"<br>
   | + Call block-live-migration API.<br>
   |<br>
   +-User specify "--live --shared-migration"<br>
     + Call live-migration API.[1]<br>
<br>
[1]<br>
"--shared-migration" means live-migration(not block-live-migrate) in "server migrate" command.<br>
In other words, "server migrate --live" and "server migrate --live --shared-migration"<br>
are same operation.<br>
I'm wondering why "--shared-migration" is existed...<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br>
Marcus.<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/<wbr>_/_/_/_/_/_/_/_/_/_/<br>
NTTソフトウェア株式会社<br>
クラウド&セキュリティ事業部 第一事業ユニット(CS1BU)<br>
本上力丸<br>
TEL.  :045-212-7539<br>
<a href="mailto:E-mail%3Ahonjo.rikimaru@po.ntts.co.jp" target="_blank">E-mail:honjo.rikimaru@po.ntts.<wbr>co.jp</a><br>
〒220-0012<br>
  横浜市西区みなとみらい4丁目4番5号<br>
  横浜アイマークプレイス 13階</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.open<wbr>stack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-operators</a><br>
</div></div></blockquote></div><br></div>