<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi all,<br>
        Thanks for all the feedback. Please see below.<br>
    <br>
    2018-05-17 1:24 GMT+08:00 Jay Pipes <span dir="ltr"><<a
        href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span>:<br>
    <blockquote class="gmail_quote" style="margin:0px 0px 0px
      0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Placement
      already stores usage information for all allocations of resources.
      There is already even a /usages API endpoint that you can specify
      a project and/or user:<br>
      <br>
      <a
        href="https://developer.openstack.org/api-ref/placement/#list-usages"
        rel="noreferrer" target="_blank">https://developer.openstack.or<wbr>g/api-ref/placement/#list-usag<wbr>es</a><br>
      <br>
      I see no reason not to use it.<br>
    </blockquote>
    <div dir="ltr"> This does not seem to be per-project (per-tenant).
      Given a tenant ID and a resource class, we want to get usages of
      that RC by that tenant. Please LMK if I misunderstood something.<br>
      <br>
      As Matt mentioned, Nova does not handle accelerators and
      presumably would not handle quotas for them either.  <br>
      <br>
      On 5/16/2018 11:34 PM, Alex Xu wrote:<br>
      <div class="gmail_extra">
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_extra">
                <div class="gmail_quote"><span class="gmail-">2018-05-17
                    1:24 GMT+08:00 Jay Pipes <span dir="ltr"><<a
                        href="mailto:jaypipes@gmail.com" target="_blank"
                        moz-do-not-send="true">jaypipes@gmail.com</a>></span>:<br>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">[....]<br>
                      <br>
                      There is already actually a spec to use placement
                      for quota usage checks in Nova here:<br>
                      <br>
                      <a href="https://review.openstack.org/#/c/509042/"
                        rel="noreferrer" target="_blank"
                        moz-do-not-send="true">https://review.openstack.org/#<wbr>/c/509042/</a></blockquote>
                    <div><br>
                    </div>
                  </span>
                  <div>FYI, I'm working on a spec which append to that
                    spec. It's about counting quota for the resource
                    class(GPU, custom RC, etc) other than nova built-in
                    resources(cores, ram). It should be able to count
                    the resource classes which are used by cyborg. But
                    yes, we probably should answer Matt's question
                    first, whether we should let Nova count quota
                    instead of Cyborg.</div>
                </div>
              </div>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>here is the line <a
              href="https://review.openstack.org/#/c/569011/"
              moz-do-not-send="true">https://review.openstack.org/#/c/569011/</a></div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_extra">
                <div class="gmail_quote"><span class="gmail-">
                    <div><br>
                    </div>
                  </span></div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </div>
    <blockquote type="cite"
cite="mid:CAH7mGat8BoTX+jh-44+V_svDEOZU9+ndWv01Fq74mub0KSfDkw@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </blockquote>
    Alex, is this expected to be implemented by Rocky?<br>
    <blockquote type="cite"
cite="mid:CAH7mGat8BoTX+jh-44+V_svDEOZU9+ndWv01Fq74mub0KSfDkw@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_extra">
                  <div class="gmail_quote"><span class="gmail-">
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex">
                        <br>
                        Probably best to have a look at that and see if
                        it will end up meeting your needs.<br>
                        <br>
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
                          0.8ex;border-left:1px solid
                          rgb(204,204,204);padding-left:1ex">
                            * Cyborg provides a filter for the Nova
                          scheduler, which checks<span><br>
                                whether the project making the request
                            has exceeded its own quota.<br>
                          </span></blockquote>
                        <br>
                        Quota checks happen before Nova's scheduler gets
                        involved, so having a scheduler filter handle
                        quota usage checking is pretty much a
                        non-starter.<br>
                      </blockquote>
                    </span></div>
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    This applies only to the resources that Nova handles, IIUC, which
    does not handle accelerators. The generic method that Alex talks
    about is obviously preferable but, if that is not available in
    Rocky, is the filter an option?<br>
    <blockquote type="cite"
cite="mid:CAH7mGat8BoTX+jh-44+V_svDEOZU9+ndWv01Fq74mub0KSfDkw@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_extra">
                  <div class="gmail_quote"><span class="gmail-">
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex">
                        <br>
                        I'll have a look at the patches you've proposed
                        and comment there.<br>
                      </blockquote>
                    </span></div>
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    Thanks!<br>
    <blockquote type="cite"
cite="mid:CAH7mGat8BoTX+jh-44+V_svDEOZU9+ndWv01Fq74mub0KSfDkw@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_extra">
                  <div class="gmail_quote"><span class="gmail-">
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex">
                        <br>
                        Best,<br>
                        -jay</blockquote>
                    </span></div>
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Regards,<br>
    Sundar<br>
  </body>
</html>