<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 2014年01月26日 20:05, Rui Chen wrote:<br>
    </div>
    <blockquote
cite="mid:CABHH=5BSuRa75p8cXi2HSCCYksMH15r4Dz=gMbR7SCRuWk-3fw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi Stackers:</div>
        <div><br>
        </div>
        <div>Some instance operations and flavor are closely connected,
          for example, resize.</div>
        <div>If I delete the flavor when resize instance, instance will
          be error. Like this:</div>
        <div><br>
        </div>
        <div>1. run instance with flavor A</div>
        <div>2. resize instance from flavor A to flavor B</div>
        <div>3. delete flavor A</div>
        <div>4. resize-revert instance</div>
        <div>5. instance state into error</div>
      </div>
    </blockquote>
    <br>
    Hi, Rui Chen, In last code, resize-revert will return status code
    400 and with message about flavor not found in this case. <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a
href="https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/servers.py#L1101">https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/servers.py#L1101</a><br>
    Which version openstack you are running?<br>
    <br>
    Thanks<br>
    <blockquote
cite="mid:CABHH=5BSuRa75p8cXi2HSCCYksMH15r4Dz=gMbR7SCRuWk-3fw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Which following ways we think is a better? or you have
          another way?</div>
        <div><br>
        </div>
        <div>1. List instance filter by flavor A, verify that no
          instance associated with flavor A, then delete flavor A</div>
        <div>
          2. Delete flavor A, if instance state into error, reset
          instance state to active</div>
        <div><br>
        </div>
        <div>General how do? </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>