<!doctype html>
<html lang="en">
<head>
<title>nova-xena-ptg</title>
<meta name="generator" content="Etherpad">
<meta name="author" content="Etherpad">
<meta name="changedby" content="Etherpad">
<meta charset="utf-8">
<style>
* {
  font-family: arial, sans-serif;
  font-size: 13px;
  line-height: 17px;
}
ul.indent {
  list-style-type: none;
}
ol {
  list-style-type: none;
  padding-left: 0;
}
body > ol {
  counter-reset: first second third fourth fifth sixth seventh eighth ninth tenth eleventh twelfth thirteenth fourteenth fifteenth sixteenth;
}
ol > li:before {
  content: counter(first) ". ";
  counter-increment: first;
}
ol > ol > li:before {
  content: counter(first) "." counter(second) ". ";
  counter-increment: second;
}
ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) ". ";
  counter-increment: third;
}
ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) ". ";
  counter-increment: fourth;
}
ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) ". ";
  counter-increment: fifth;
}
ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) ". ";
  counter-increment: sixth;
}
ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) ". ";
  counter-increment: seventh;
}
ol > ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eighth) ". ";
  counter-increment: eighth;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eighth) "." counter(ninth) ". ";
  counter-increment: ninth;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eighth) "." counter(ninth) "." counter(tenth) ". ";
  counter-increment: tenth;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eighth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) ". ";
  counter-increment: eleventh;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eighth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelfth) ". ";
  counter-increment: twelfth;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eighth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelfth) "." counter(thirteenth) ". ";
  counter-increment: thirteenth;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eighth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelfth) "." counter(thirteenth) "." counter(fourteenth) ". ";
  counter-increment: fourteenth;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eighth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelfth) "." counter(thirteenth) "." counter(fourteenth) "." counter(fifteenth) ". ";
  counter-increment: fifteenth;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
  content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eighth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelfth) "." counter(thirteenth) "." counter(fourteenth) "." counter(fifteenth) "." counter(sixteenth) ". ";
  counter-increment: sixteenth;
}
ol {
  text-indent: 0px;
}
ol > ol {
  text-indent: 10px;
}
ol > ol > ol {
  text-indent: 20px;
}
ol > ol > ol > ol {
  text-indent: 30px;
}
ol > ol > ol > ol > ol {
  text-indent: 40px;
}
ol > ol > ol > ol > ol > ol {
  text-indent: 50px;
}
ol > ol > ol > ol > ol > ol > ol {
  text-indent: 60px;
}
ol > ol > ol > ol > ol > ol > ol > ol {
  text-indent: 70px;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol {
  text-indent: 80px;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
  text-indent: 90px;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
  text-indent: 100px;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
  text-indent: 110px;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
  text-indent: 120px;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
  text-indent: 130px;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
  text-indent: 140px;
}
ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
  text-indent: 150px;
}

</style>
</head>
<body>
*Nova Xena virtual PTG<br>*DO NOT USE TRANSLATION TOOLS IN THIS ETHERPAD!!!!   (ノ ゜Д゜)ノ c┻━┻<br>*不要在这个ETHERPAD中使用翻译工具!<br><strong>To translate this etherpad, please follow these easy instructions:</strong><br>1. Look in the above toolbar and click the &#x27;<&#x2F;>&#x27; ("Share this pad") button<br>2. Click the "Read only" checkbox at the top of the dialog box<br>3. Copy the URL that appears in the "Link" box<br>4. Open that URL in a new browser tab or window<br>5. Use your translation tools of choice in the new window<br>Thank you!<br><br><strong>要翻译此etherpad,请按照以下简单说明进行操作:</strong><br>1.查看上面的工具栏,然后单击“ <&#x2F;>”(“共享此记事本”)按钮<br>2.单击对话框顶部的“只读”复选框<br>3.复制出现在“链接”框中的URL<br>4.在新的浏览器标签或窗口中打开该URL<br>5.在新窗口中使用您选择的翻译工具<br>谢谢!<br><br>ERROR(sean-k-mooney): presshing ctrl-shift-c appently is the shortcut for clear all colours... sorry <br>people&#x2F;colours:<br>       sean-k-mooney<br><ul class="indent"><li>gibi</li><li>gmann</li><li>stephenfin</li><li>lyarwood</li><li>brinzhang</li><li>kashyap</li><li>johnthetubaguy</li><li>bauzas</li><li>belmoreira</li><li>lassimus</li><li>dmitriis</ul><br>*Schedule<br>April 19-23, 2021<br><a href="https&#x3a;&#x2F;&#x2F;www&#x2e;openstack&#x2e;org&#x2F;ptg&#x2F;&#x23;tab&#x5f;schedule" rel="noreferrer noopener">https:&#x2F;&#x2F;www.openstack.org&#x2F;ptg&#x2F;#tab_schedule</a><br>ethercalc for the schedule: <a href="https&#x3a;&#x2F;&#x2F;ethercalc&#x2e;net&#x2F;oz7q0gds9zfi" rel="noreferrer noopener">https:&#x2F;&#x2F;ethercalc.net&#x2F;oz7q0gds9zfi</a><br><br>PTG Registration: <a href="https&#x3a;&#x2F;&#x2F;www&#x2e;eventbrite&#x2e;com&#x2F;e&#x2F;project&#x2d;teams&#x2d;gathering&#x2d;april&#x2d;2021&#x2d;tickets&#x2d;143360351671" rel="noreferrer noopener">https:&#x2F;&#x2F;www.eventbrite.com&#x2F;e&#x2F;project-teams-gathering-april-2021-tickets-143360351671</a><br><br>*<s>Please vote in the doodle when to have our sessions </s><a href="https&#x3a;&#x2F;&#x2F;doodle&#x2e;com&#x2F;poll&#x2F;ib2eu3c4346iqii3" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;doodle.com&#x2F;poll&#x2F;ib2eu3c4346iqii3</s></a><s> </s><br><br><ul class="bullet"><li><strong>Monday - Tuesday</strong>: project support team discussions, e.g. SIGs, QA, Infra, Release mgmt, Oslo</li><li><strong>Wednesday 14:00 UTC - 17:00 UTC</strong>: Nova (Placement) sessions<ul class="bullet"><li>14:00 - 14:30 UTC  Interop discussion with Arkady</li><li>15:00  - 16:00 UTC  Cinder cross project</ul><li><strong>Thursday 14:00 UTC - 17:00 UTC</strong> - Nova(Placement) sessions<ul class="bullet"><li>15:00 UTC - 16:00 UTC  Keystone-Nova cross project session </ul><li><strong>Friday 14:00 UTC - 17:00 UTC</strong> - Nova(Placement) sessions<ul class="bullet"><li>15:00 UTC - 15:30 UTC Neutron - Nova cross project mini session</ul></li></ul><br>Practicalities:<br><ul class="bullet"><li>14:00 UTC is pretty early in the US west coast so we will start the day slowly and or talk about simple topics at the start.</li><li>While officially the EU timeslot ends at 17:00 UTC I expect that 17:00 - 18:00 is a better time to continue, if needed, than jumping to 21:00 UTC.</ul><br>Use the zoom links from the schedule by clicking to a timeslot  to join <a href="http&#x3a;&#x2F;&#x2F;ptg&#x2e;openstack&#x2e;org&#x2F;ptg&#x2e;html" rel="noreferrer noopener">http:&#x2F;&#x2F;ptg.openstack.org&#x2F;ptg.html</a><br><br>*<strong>Join at </strong><a href="https&#x3a;&#x2F;&#x2F;www&#x2e;openstack&#x2e;org&#x2F;ptg&#x2F;rooms&#x2F;newton" rel="noreferrer noopener"><strong>https:&#x2F;&#x2F;www.openstack.org&#x2F;ptg&#x2F;rooms&#x2F;newton</strong></a><br><br><br>*PTG Topics<br><br>*<s>Interop discussion</s><br>Wednesday 14:00 - 14:30 UTC<br><br>(gibi) How can we help the Interop <s>SIG </s>WG?<br><ul class="bullet"><li>Nova have not bumped the minimum supported microversion yet. It still supports  2.1</li><li>The microversion history is visible in <a href="https&#x3a;&#x2F;&#x2F;docs&#x2e;openstack&#x2e;org&#x2F;nova&#x2F;latest&#x2F;reference&#x2F;api&#x2d;microversion&#x2d;history&#x2e;html&#x23;maximum&#x2d;in&#x2d;ussuri&#x2d;and&#x2d;victoria" rel="noreferrer noopener">https:&#x2F;&#x2F;docs.openstack.org&#x2F;nova&#x2F;latest&#x2F;reference&#x2F;api-microversion-history.html#maximum-in-ussuri-and-victoria</a></li><li>Interop only looks at operations from the user perspective not from the admin perspective</li><li><strong>AGREED: Interop WG will come up with a plan for the next version of the guideline and if it needs additional tempest microversion API tests then Nova team will help providing them.</strong></ul><br><br>*Nova-Keystone cross project<br>Thursday 15:00 -16:00 UTC<br><br>*System scope usage and workflow (below both topics are related to this)<br><ul class="indent"><li>(stephenfin) Changes to &#x27;GET &#x2F;os-hypervisors&#x27; policy</ul><ul class="bullet"><li><ul class="bullet"><li>We had planned a policy change as part of the cleanup of the &#x27;os-hypervisors&#x27; API, but some questions came up at the last minute and we deferred it<ul class="bullet"><li>Review: <a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;765798" rel="noreferrer noopener">https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;765798</a></li><li>Discussion of issues: <a href="http&#x3a;&#x2F;&#x2F;eavesdrop&#x2e;openstack&#x2e;org&#x2F;irclogs&#x2F;&#x25;23openstack&#x2d;nova&#x2F;&#x25;23openstack&#x2d;nova&#x2e;2021&#x2d;03&#x2d;10&#x2e;log&#x2e;html&#x23;t2021&#x2d;03&#x2d;10T14&#x3a;28&#x3a;34" rel="noreferrer noopener">http:&#x2F;&#x2F;eavesdrop.openstack.org&#x2F;irclogs&#x2F;%23openstack-nova&#x2F;%23openstack-nova.2021-03-10.log.html#t2021-03-10T14:28:34</a></ul><li>Project admin&#x27;s can currently create a server on a specific hypervisor (via hostname). This is necessary because we need project information when creating a server and we don&#x27;t currently have a way to provide this in the body of the &#x27;POST &#x2F;servers&#x27; request. This leaves us caught in the middle, where only project admins can create a server on a specific hypervisor while only system admins or system readers can list hypervisors.</li><li>There are two potential solutions:</ul></li></ul><ul class="indent"><li><ul class="indent"><li><ul class="indent"><li>A) Allow system admins to specify a project ID in the &#x27;POST &#x2F;servers&#x27; request body, thus creating a server in a specific project. This requires a microversion</li><li>B) Allow project admins to list hypervisors. This in theory does not require a microversion</ul></li></ul></li></ul><ul class="bullet"><li><ul class="bullet"><li>We went with option B) but it&#x27;s not perfect. To avoid giving too much information about the deployment, we decided to restrict project admins to listing hosts in tenants assigned to them. This requires a tenant-isolated cloud and meant looking up aggregates to find the host assigned to this project. However, if we do that, shouldn&#x27;t we also prevent project admins from specifying a host that they are not isolated in? If we don&#x27;t, we have different behavior in two APIs</li><li>What do we want to do?<ul class="bullet"><li>What about having the context library populate the project_id as the sentinel UUID value for system-scoped context objects<ul class="bullet"><li>Would there ever be a risk of overwriting a project ID with the sentinel?<ul class="bullet"><li>Not if we make sure that system-scoped token can&#x27;t be used to create project-specific resources</ul><li>A lot easier to spot and it&#x27;s consistent</ul><li>Configure &#x27;admin&#x27; project ID that get populated in system-scoped tokens<ul class="bullet"><li>Creates overhead for deployment tools to make sure this is consistent across services</ul><li>Wrap project-specific operations<ul class="bullet"><li>$ openstack role add --user alice --project foo member</li><li>$ openstack server delete bar</li><li>$ openstack role remove --user alice --project foo member</ul><li>Update keystone to support trading a system-scoped token for a project-scoped token<ul class="bullet"><li>$ openstack token issue --os-cloud system-admin --project foo --role bar</li><li>$ openstack server delete --os-cloud system-admin --project foo:member</ul><li>Transactional</li><li>Project admin<ul class="bullet"><li>boot instance to a specific host</li><li>open up the hypervisors API so you can see the host an instance is on</li><li></ul></li></ul><li><strong>AGREED</strong>:<ul class="bullet"><li>We&#x27;re need to <ul class="bullet"><li>Add a sentinel project ID for system-scoped tokens (work in oslo.context maybe, or just have the services use the sentinel where absolutely necessary)</li><li>Something in keystone or deployment tools to make sure the admin user has the admin role on the default domain (and all other domains)</li><li>Now we can start doing client-side work to glue all of these interactions together that would allow<ul class="bullet"><li>$ openstack --os-cloud system-admin server reboot --project foo (this will work because the client requests a token for project foo and the assignment is inherited)</li><li>$ openstack --os-cloud system-admin server list --all-projects (logging will use a sentinel ID)</ul></li></ul><li>Write a spec for the hypervisor list case</ul><li>How do we maintain the ability for system users to operate on project-specific resources without refactoring the world?<ul class="bullet"><li>Use the client to figure out the owning project of a resource, grant the system user a role on that project, do the operation on the project-owned resource, clean up the resource</li><li>Create an inherited role assignment on all domains for system users, the client fetches a project-scoped token, does the operation on the project-owner resource (leave the domain role assignment)</li><li>Implement project ID header pass-through for system users in keystonemiddleware (spec coming)<ul class="bullet"><li>We could allow system users to specify the project ID so that $ openstack --os-cloud system-admin server reboot --project foo bar<ul class="bullet"><li>Client makes the request with a system-scoped token using the system-admin cloud profile</li><li>Client finds project foo&#x27;s ID and sets it to HTTP_X_PROJECT_ID in the request</li><li>Keystonemiddleware validates the token, ensures the user is a system user, and keeps the project ID from the client</li><li>oslo.context creates a context object with context.system_scope = &#x27;all&#x27; and context.project_id with the project ID from HTTP_X_PROJECT_ID<ul class="bullet"><li>The roles in the context object come from the token, which are the roles the user has on the system (they don&#x27;t technically exist on the project)</li><li>A system reader would be able to set HTTP_X_PROJECT_ID for any project, but they would maintain reader permissions, they wouldn&#x27;t be able to make writable changes within the project, even though they are a system user</li><li>A system admin can give themselves authorization on any project using HTTP_X_PROJECT_ID, without an explict role assignment (chatty) or an inherited role assignment (assumed to exist)</ul><li></ul></li></ul></li></ul></li></ul></li></ul><ul class="indent"><li></li><li>(sean-k-mooney dansmith lbragstad gmann) Usage of System token for Project&#x27;s resource operations like system to operate project X&#x27;s servers (The above topic "(stephenfin) Changes to &#x27;GET &#x2F;os-hypervisors&#x27; policy" is also related to this which was solving this issue for "POST &#x2F;servers on specific host")</ul><ul class="bullet"><li><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;bugs&#x2e;launchpad&#x2e;net&#x2F;nova&#x2F;&#x2b;bug&#x2F;1918945" rel="noreferrer noopener">https:&#x2F;&#x2F;bugs.launchpad.net&#x2F;nova&#x2F;+bug&#x2F;1918945</a></li><li>Today it is not possible for System admin to create&#x2F;operate any project&#x27;s server like start&#x2F;stop project X&#x27;s server. Because:</ul></li></ul><ul class="indent"><li><ul class="indent"><li><ul class="indent"><li>1. There is no way to pass the project_id in request body of nova APIs (except special case like keypairs) AND</li><li>2. system token does not have project id in their context which is being used in many place (one example: <a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;ab07507e5cfce6232fef373d07ff92ea704541da&#x2F;nova&#x2F;objects&#x2F;instance&#x5f;action&#x2e;py&#x23;L60&#x29;" rel="noreferrer noopener">https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;ab07507e5cfce6232fef373d07ff92ea704541da&#x2F;nova&#x2F;objects&#x2F;instance_action.py#L60)</a></ul></li></ul></li></ul><ul class="bullet"><li><ul class="bullet"><li>IRC discussion (for 03-12): <a href="http&#x3a;&#x2F;&#x2F;eavesdrop&#x2e;openstack&#x2e;org&#x2F;irclogs&#x2F;&#x25;23openstack&#x2d;nova&#x2F;&#x25;23openstack&#x2d;nova&#x2e;2021&#x2d;03&#x2d;12&#x2e;log&#x2e;html&#x23;t2021&#x2d;03&#x2d;12T15&#x3a;33&#x3a;36" rel="noreferrer noopener">http:&#x2F;&#x2F;eavesdrop.openstack.org&#x2F;irclogs&#x2F;%23openstack-nova&#x2F;%23openstack-nova.2021-03-12.log.html#t2021-03-12T15:33:36</a></li><li>Details: <a href="https&#x3a;&#x2F;&#x2F;etherpad&#x2e;opendev&#x2e;org&#x2F;p&#x2F;consuming&#x2d;system&#x2d;scope" rel="noreferrer noopener">https:&#x2F;&#x2F;etherpad.opendev.org&#x2F;p&#x2F;consuming-system-scope</a></li><li><a href="http&#x3a;&#x2F;&#x2F;lists&#x2e;openstack&#x2e;org&#x2F;pipermail&#x2F;openstack&#x2d;discuss&#x2F;2021&#x2d;March&#x2F;021131&#x2e;html" rel="noreferrer noopener">http:&#x2F;&#x2F;lists.openstack.org&#x2F;pipermail&#x2F;openstack-discuss&#x2F;2021-March&#x2F;021131.html</a></li><li>This is going to affect multiple projects (glance, cinder, neutron, etc.), how can we approach this consistently without forcing a *tonne* of work?<ul class="bullet"><li>I think the main case we want to avoid is where an operator has to be a system-admin to do things with project-level resources in one service and a project-admin on *that* project to interact with those resources in another service<ul class="bullet"><li>This is going to keep &#x27;admin&#x27; isolated to only operators, and we won&#x27;t be able to re-use it effectively at the project-level</ul></li></ul><li><strong>AGREED:</strong><ul class="bullet"><li>see above, at the previous topic</ul></li></ul></li></ul><br>*<s>Nova-Cinder cross project</s><br>Wednesday 15:00  - 16:00 UTC<br><br><a href="https&#x3a;&#x2F;&#x2F;etherpad&#x2e;opendev&#x2e;org&#x2F;p&#x2F;nova&#x2d;cinder&#x2d;xena&#x2d;ptg" rel="noreferrer noopener"><strong>https:&#x2F;&#x2F;etherpad.opendev.org&#x2F;p&#x2F;nova-cinder-xena-ptg</strong></a><br>Let&#x27;s use the nova zoom room: <a href="https&#x3a;&#x2F;&#x2F;www&#x2e;openstack&#x2e;org&#x2F;ptg&#x2F;rooms&#x2F;newton" rel="noreferrer noopener">https:&#x2F;&#x2F;www.openstack.org&#x2F;ptg&#x2F;rooms&#x2F;newton</a> <br><br>*Neutron - Nova cross project<br>Friday 15:00 - 15:30 UTC<br><br>(gibi) support guaranteed minimum packet rate QoS policy<br><ul class="bullet"><li>Nova and Neutron specs: <a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;q&#x2F;topic&#x3a;bp&#x2F;qos&#x2d;minimum&#x2d;guaranteed&#x2d;packet&#x2d;rate" rel="noreferrer noopener">https:&#x2F;&#x2F;review.opendev.org&#x2F;q&#x2F;topic:bp&#x2F;qos-minimum-guaranteed-packet-rate</a></li><li>Similar to the minimum bandwidth support feature I worked on in the last couple of cycles. </li><li>Neutron has the bigger impact:<ul class="bullet"><li>New QoS API extension</li><li>New port resource_request structure</li><li>OVS agent changes</li><li>Resource reporting changes</ul><li>The Nova side of the solution reuses the existing code infrastructure to support additional resources.</li><li>The assumption that a single port only requests a single placement resource group needs the be relaxed</li><li>Goal of the discussion:<ul class="bullet"><li>Agree on that the new port resource_request structure,  how we handle same_subtree, and how we indicate that the Neturon API is changed</li><li>Agree on that the changes in the allocation key of the binding:profile is OK</li><li>Discuss upgrade: Do we need to support mixed version of Neutron and Nova controllers? I.e. Does Nova needs to support the old resource_request format in Xena along with the new one or we can assume the new one?</ul><li><strong>AGREED</strong>:<ul class="bullet"><li>Document that garanteeing min pps on the data plane can be done by creating min_pps == max_pps rules in the same policy. </li><li>Qos policy rule should be direction aware, the resource is direction less in case of OVS, and direction aware in case of hw accelerated OVS (or SRIOV later). If vnic_type = normal then neutron will request a direction less resource, if vnic_type = direct (or other than normal?!) neutron will request direction aware resource. </li><li>Add the alternative to the spec to have the pps resource on the OVS bridge instead of on the OVS agent RP.</li><li>same_subtree: neturon should request it as later IP resource will be on a shared RP</li><li>value of the allocation key should be a dict </li><li>Upgrade: Both version mix needs to be supported (older-nova + new-neutron, new-nova+old-neutron)<ul class="bullet"><li>enable the new resource_request format via config OR</li><li>duplicate the resource_request field (have a new resource_request_extended for the new format)</li><li>Nova needs to be able to accept both the old and the new format in Xena</ul><li></ul></li></ul><br><ul class="bullet"><li>(jlibosva) live-migration with MTU change<ul class="bullet"><li>there is a tool to migrate from OVS based Neutron backend to OVN. because nowadays OVN doesn&#x27;t support vxlan with Neutron (may be changed soon), and Geneve header protocol is bigger than VXLAN, we need to change MTU of the network during the migration. This breaks live-migration because the "old" MTU of running instance is e.g. 1450 (vxlan) and the new one is on Geneve already on (Geneve) 1442 </li><li>(artom) semi-related downstream Bugzilla: <a href="https&#x3a;&#x2F;&#x2F;bugzilla&#x2e;redhat&#x2e;com&#x2F;show&#x5f;bug&#x2e;cgi&#x3f;id&#x3d;1943613" rel="noreferrer noopener">https:&#x2F;&#x2F;bugzilla.redhat.com&#x2F;show_bug.cgi?id=1943613</a></li><li>(sean-k-mooney): yep we cant actully change the mtu on a live migration. the root cause is that they chagne the MTU on the neturon network and did not hard reboot the vm before trying to live migrate which is required.<ul class="bullet"><li>workarounds include<ul class="bullet"><li>attach&#x2F;detach interfece</li><li>remove mtu form xml again (not sure if that willl afffect jumbo frames or not)</li><li>detact its as an error if the xml mtu is diffrent form the current port mtu in pre live migrate and raise an error telling the admin to hard reboot</li><li>(artom - I&#x27;m pink now!) This could be part of that mythical "recreate" API - we can also fetch the latest info from the ports<ul class="bullet"><li>actully cold migrate just works so that also an option the issue is its not valid to change the mtu in the xml as part of a live migrate.</li><li>So "AGREED: for the OVS -> OVN migration cold migrate all the things"? :)</li><li>well we can hot detach and attach the intefcase like we do for sriov too automatically if the mtu needed to change.</ul></li></ul></li></ul><li><strong>AGREED</strong>:<ul class="bullet"><li>error out the live migration if the MTU is not matching</li><li>... cold migrate would work</ul></li></ul></li></ul><br><br>*Nova PTG topics<br><br><s>(lyarwood): Drop lower-constraints.txt on master?</s><br><ul class="bullet"><li><s>(gibi): My current thinking is that as soon as it becomes unmaintainable then we will drop it. We saw that it can be hard to maintain (see the os-brick bump in W).</s></li><li><s>(gibi): I&#x27;m also thinking about spending some time with the pip resolver. Removing the indirect deps from the lower-constraints can make the pip resolve runtime to increase to unacceptable levels. If there would be a way to see what unconstraint indirect deps contribute the most to this runtime then we might create a lower-constraints.txt that mosty constraints direct deps and couple of constrained indirect deps to manage the pip resolve runtime.</s></li><li><s>the old behavior of the resolve was that if you provide multiple constirats the first one was ment to be used so to avoid un constriated deps we could maybe include LC first then UC after to have constraits.</s></li><li><s>untimatly the new resolvere has fundementally changed what LC was tracking. it was ment to be the set of minium deps that fullfiled out api usage of that dep. e.g. if we use a new api or function that was not in LC version of the lib in nova we were ment to bump it but we were not ment to have to bump it for our indirect deps. e.g. if nova can support oslo.log 2 but our dep nees oslo.log 3 then that was ment to be ok for us to have 2 listed as that is our actull min version. if the indreict dep was opeitonal and not installed we would not need oslo.log 3 for nova to work so it should not be considerd a min dep of nova. the new resolver forces use to threat all requirement fo our deps including optional ones as requiremetns fo nova. where we share depencies we also cannot break that depency by removing it. i like having lower-constratis but if we cannot find a way to list only novs direcet lower bound i thikn we are forced to remove it because of the new resolver behavior.</s></li><li><s>(gmann) As discussed in TC meeting and ML, lower bound testing is all optional and up to project to test it or remove. </s><ul class="bullet"><li><a href="http&#x3a;&#x2F;&#x2F;lists&#x2e;openstack&#x2e;org&#x2F;pipermail&#x2F;openstack&#x2d;discuss&#x2F;2021&#x2d;March&#x2F;021204&#x2e;html" rel="noreferrer noopener"><s>http:&#x2F;&#x2F;lists.openstack.org&#x2F;pipermail&#x2F;openstack-discuss&#x2F;2021-March&#x2F;021204.html</s></a></li><li><s>Clarifying it in project-team-guide too </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;project&#x2d;team&#x2d;guide&#x2F;&#x2b;&#x2F;781900" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;project-team-guide&#x2F;+&#x2F;781900</s></a></ul><li><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;778177" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;778177</s></a><s> -  requirements.txt: Bump os-brick to 4.2.0</s></li><li><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;783822" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;783822</s></a><s> - Bumping min os-brick ver to 4.3.1</s></li><li><strong>AGREED: both on master and on stable:</strong><ul class="bullet"><li>Keep it until it works. If it breaks then raise it on the nova weekly meeting. If it is not fixed by the next meeting then delete the job, delete the lower_constraints.txt from the tree</li><li>We also should remove lower bounds from the requirements.txt when we drop lower-constraints</ul></li></ul><br><s>(lyarwood): Block layer(s) refactor&#x2F;cleanup</s><br><ul class="bullet"><li><s>(lyarwood) </s><a href="https&#x3a;&#x2F;&#x2F;docs&#x2e;openstack&#x2e;org&#x2F;nova&#x2F;latest&#x2F;reference&#x2F;block&#x2d;device&#x2d;structs&#x2e;html" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;docs.openstack.org&#x2F;nova&#x2F;latest&#x2F;reference&#x2F;block-device-structs.html</s></a><s> - Sets out the current layout of data structers used within various layers of Nova that define the block layout of an instance.</s></li><li><s>(lyarwood) <strong>Short term proposal</strong> (during Xena): </s><ul class="bullet"><li><s>Continue to document the current data structers in the above reference.</s></li><li><s>Extend block_device_info to include image based disks.</s><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;docs&#x2e;openstack&#x2e;org&#x2F;nova&#x2F;latest&#x2F;reference&#x2F;block&#x2d;device&#x2d;structs&#x2e;html&#x23;block&#x2d;device&#x2d;info" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;docs.openstack.org&#x2F;nova&#x2F;latest&#x2F;reference&#x2F;block-device-structs.html#block-device-info</s></a><ul class="bullet"><li><s>This currently looks like: </s><ul class="bullet"><li><strong><s>root_device_name</s></strong><ul class="bullet"><li><s>Hypervisor’s notion of the root device’s name</s></ul><li><strong><s>Ephemerals</s></strong><ul class="bullet"><li><s>A list of all ephemeral disks</s></ul><li><strong><s>block_device_mapping</s></strong><ul class="bullet"><li><s>A list of all cinder volumes</s></ul><li><strong><s>swap</s></strong><ul class="bullet"><li><s>A swap disk, or None if there is no swap disk</s></ul></li></ul></li></ul></li></ul><li><s>Use mypy throughout the device layers to ensure the correct types are used.</s><ul class="bullet"><li><s>This isn&#x27;t currently the case as certain codepaths are called both with BlockDeviceMapping objects and DriverBlockDevice dicts.</s></li><li><s>(stephenfin) +100 I think this would be a huge benefit. Docstrings too (for non-private functions) would be a lovely addition</s></ul></li></ul><li><s>(lyarwood) <strong>Longer term proposal</strong> (post Xena): Work towards a future where only BlockDeviceMapping, BlockDeviceMappingList and subclassed driver specific BlockDeviceMappingList classes are used throughout the codebase.</s><ul class="bullet"><li><s>Remove the nova.virt.block_device layer entirely and move the generic logic into BlockDeviceMapping where possible.</s></li><li><s>Provide subclassed BlockDeviceMappingList classes to calculate mappings in the virt drivers</s><ul class="bullet"><li><s>For exampe, BlockDeviceMappingListLibvirt that in turn replaces logic and data structres like nova.virt.libvirt.block_info disk_info etc.</s></ul></li></ul><li><s>(gibi): +1 for both the sort and long plans. Sign me up to review doc and mypy patches during Xena</s></li><li><strong>AGREED:</strong><ul class="bullet"><li>Agreed on both the short and mid term plan</ul></li></ul><br><s>(gibi): Wallaby retrospective</s><br><ul class="bullet"><li><s>What went well?</s><ul class="bullet"><li><s>(gibi) good amount of blueprints got finished (we closed 14 bps, ~70%) (and more blueprints got approved compared to previous cycle)</s><ul class="bullet"><li><s>Also worth noting that the ones that weren&#x27;t finished were not finished for solid technical reasons, not simply cos people forgot or whatever</s></ul><li><s>(gibi) both the FF and RC deadline was pretty calm from Nova perspective</s></li><li><s>(gibi) we kept the size of the untriaged bugs backlog pretty steady. Thank you!</s></li><li><s>(gibi) Nova is a cleaner place than before!</s><ul class="bullet"><li><s>RPC 6.0! yay \o&#x2F;</s></li><li><s>compaction of the DB migrations! yay \o&#x2F;</s></li><li><s>improved the possibility to reproduce bugs in the functional test</s></ul><li><s>stable is pretty stable +1</s></ul><li><s>What to change?</s><ul class="bullet"><li><s>(gibi) runway process wasn&#x27;t really followed. I was lazy to enforce the strict runway process. I looked at the open blueprints weekly (around our meeting time) and tried to mention the progressing bp on the meeting. </s><ul class="bullet"><li><s>How do you feel about it? Would like to see the runway process followed?</s><ul class="bullet"><li><s>(lyarwood) I&#x27;ve not had to push that hard for reviews so it&#x27;s hard to say either way this cycle. It has helped in the past however.</s></ul></li></ul><li><s>(gibi) Placement is our responsiblilty again. I ignored this fact most of the time during the cycle. Do we want to make placement more alive?</s></ul><li><s>Any other feedback?</s><ul class="bullet"><li><s>(gibi) I miss the face to face PTG+1000+1+9001+42</s><ul class="bullet"><li><s>^ is that 9001 some kind compliance joke? Well it&#x27;s over 9000...</s></ul></li></ul><li><strong>Action Points</strong><ul class="bullet"><li>gibi to ask for e-r +2 rights to get e-r queries merged<ul class="bullet"><li>ask also if we can have e-r queries in our own tree as an alternative</ul><li>gibi to try out review priority flag in gerrit instead of runway for all the repo under nova governance<ul class="bullet"><li>example <a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;project&#x2d;config&#x2F;blob&#x2F;97aa00414e5e96926327e68fbc09da701b95054a&#x2F;gerrit&#x2F;acls&#x2F;openstack&#x2F;designate&#x2d;dashboard&#x2e;config&#x23;L6" rel="noreferrer noopener">https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;project-config&#x2F;blob&#x2F;97aa00414e5e96926327e68fbc09da701b95054a&#x2F;gerrit&#x2F;acls&#x2F;openstack&#x2F;designate-dashboard.config#L6</a></ul><li>add periodic test for placement to catch os-traits &#x2F; os-resource-classes updates<ul class="bullet"><li>(sean-k-mooney) ill try to do this ^ just a weekly execution of unit and func test.</li><li>gibi to add a topic for the weekly meeting to look at the result of this periodic</ul></li></ul></li></ul><br><s>(stephenfin) Drop support for legacy CPU architectures</s><br><ul class="bullet"><li><s>(gibi): ping lassiums and belmoreira</s></li><li><s>The libvirt driver and tests contains references to a number of legacy architectures, none of which are likely to have been tested in a long-time. Can we hard fail on these <strong>host architectures</strong> and drop the tests for same?</s><ul class="bullet"><li><s>ARMv7 -> no modern server-class hardware available still using the ISA as AArch64 is the future. Even RPi uses AArch64 now (from RPi 3)</s></li><li><s>i686 -> 32 bit x86, Intel&#x27;s last non-embedded 32bit CPUs were early Atom chips</s></li><li><s>MIPS -> not viable for years and now discontinued in favour of RISC-V</s></li><li><s>PPC -> POWER8 and POWER9 CPU families appear to be all based on the PPC64LE ISA</s></li><li><s>SPARC -> EOL</s></ul><li><s>We should still warn for non-x86-64 hosts since testing </s></li><li><s>is light here</s><ul class="bullet"><li><s>(kashyap) Agree</s></ul><li><s>Only conflict is if we ever wanted to support non-host guests using these architectures but that seems to be a non-goal of nova?(maybe we shoudl rephsase this as dropping supprot for 32bit hosts) that might be a valid cross project goal.</s></li><li><s>(lassimus) emulation support is invaluable in use cases surrounding modernization of embedded systems&#x2F;workflows. e.g.:</s><ul class="bullet"><li><s>Security assessments: fuzzing&#x2F;bug hunting on embedded firmware samples.</s></li><li><s>CI based functional testing: many embedded products&#x2F;teams still rely heavily on manual testing. Even poor-performance functional tests are a game changer.</s></li><li><s>Modernization&#x2F;iot-ifying: given a legacy system (often without source code) and a goal of modernization, the bests often virtualizing&#x2F;emulating the existing system.</s></li><li><s>Training&#x2F;education: hardware can be expensive and limiting. Emulating embedd</s></ul><li><s>(gibi): Stephen are we talking about supporting these architecture on the host or in the guest? I agree to drop support such hosts, but I think both belmoreira and lassimus expressed need for the guest support.</s></li><li><s>(sean-k-mooney) does this cost us much. e.g. is it a signifcat burden in our current code. i know we do have do have to do some conditional in the xml generation to set good default.</s><ul class="bullet"><li><s>(kashyap) Even if it doesn&#x27;t "cost" much, if we see that deploying OpenStack  is not realistically viable in the next 5 years on these arches, we should nuke them.  It also reduces a lot of clutter in the code</s></ul><li><s>if we could remove some or most of that as a result it might eb worth it. because we dont have many users of the other types we also dont have many costs.</s></li><li><s>nova itslef becaue of one of our depencies now need to run on x86_64 x86 does not work because  i think one of the libs we uses needs 64bit. i know this came up before because some peopel had 32bit devstack envioment but that has been broken for a couple of releases now. nova itesef can run on 32bit but some of our deps cant anymore so dropin i686 or 32bit x86 proably makes sense.</s></li><li><s>(belmoreira) My use case is to support aarch64 on top of x86_64.</s><ul class="bullet"><li><s>(johnthetubaguy) +1 enabling explicit ability to emulate, as new separately tested feature</s></li><li><s>... but note that would need some extra testing (no need for hardware emulation, etc)</s></li><li><s>(used to work, note we "broke it" at some point)</s></ul><li><s>(gibi) Also it seems that there is testing, with devstack and tempest, on Arm64 host env: </s><a href="http&#x3a;&#x2F;&#x2F;lists&#x2e;openstack&#x2e;org&#x2F;pipermail&#x2F;openstack&#x2d;discuss&#x2F;2021&#x2d;April&#x2F;021600&#x2e;html" rel="noreferrer noopener"><s>http:&#x2F;&#x2F;lists.openstack.org&#x2F;pipermail&#x2F;openstack-discuss&#x2F;2021-April&#x2F;021600.html</s></a><ul class="bullet"><li><s>(belmoreira) This was discussed in the multi-arch SIG PTG session: </s><a href="https&#x3a;&#x2F;&#x2F;etherpad&#x2e;opendev&#x2e;org&#x2F;p&#x2F;xena&#x2d;ptg&#x2d;multi&#x2d;arch&#x2d;sig" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;etherpad.opendev.org&#x2F;p&#x2F;xena-ptg-multi-arch-sig</s></a></ul><li><strong>AGREED</strong>:<ul class="bullet"><li>Keep supporting x86_64, aarch64, ppc64 on the host</li><li>Document what we test and what works</li><li>Fix guest architecture checks to actually check guest architecture (instead of host)<ul class="bullet"><li>(belmoreira) <a href="https&#x3a;&#x2F;&#x2F;bugs&#x2e;launchpad&#x2e;net&#x2F;nova&#x2F;&#x2b;bug&#x2F;1902203" rel="noreferrer noopener">https:&#x2F;&#x2F;bugs.launchpad.net&#x2F;nova&#x2F;+bug&#x2F;1902203</a></li><li>(belmoreira) <a href="https&#x3a;&#x2F;&#x2F;bugs&#x2e;launchpad&#x2e;net&#x2F;nova&#x2F;&#x2b;bug&#x2F;1902205" rel="noreferrer noopener">https:&#x2F;&#x2F;bugs.launchpad.net&#x2F;nova&#x2F;+bug&#x2F;1902205</a></ul><li>Fix SEV and SECURE_BOOT trait reporting and scheduler support <ul class="bullet"><li>with kvm virt_type only report the host arch specific feature traits</ul><li>We need developers adding CI for specific emulated guest archs<ul class="bullet"><li>This need only take the form of smoke tests to conserve resources</li><li>lassimus needs some guidance setting up the gate<ul class="bullet"><li>stephenfin can help here with reviews&#x2F;pointers</ul></li></ul><li>Reno to document what is already gone</li><li>(kashyap) Just had a chat with upstream QEMU folks, and some <strong>important points</strong> to bear in mind on supporting "emulated guests":<ul class="bullet"><li>QEMU explicitly does *not* consider emulation to be a secure production scenario — "Users with non-virtualization use cases must not rely on QEMU to provide guest isolation or any security guarantees."<ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;qemu&#x2d;project&#x2e;gitlab&#x2e;io&#x2F;qemu&#x2F;system&#x2F;security&#x2e;html&#x23;non&#x2d;virtualization&#x2d;use&#x2d;case" rel="noreferrer noopener">https:&#x2F;&#x2F;qemu-project.gitlab.io&#x2F;qemu&#x2F;system&#x2F;security.html#non-virtualization-use-case</a></ul><li>This means, you <strong>don&#x27;t ever want an OpenStack public cloud  to enable emulated guests; but it could be valid for private cloud setup, if the admin trusts their tenants</strong><ul class="bullet"><li>(belmoreira) Emulated aarch64 is very slow... It would never be used for production workloads. But in a private cloud it&#x27;s useful for users to have an easy and cheap way to test&#x2F;validate things. Most of the times this is required before buying real&#x2F;expensive hardware.<ul class="bullet"><li>Okay; good to know that it&#x27;s for private cloud-only users</ul></li></ul></li></ul></li></ul></li></ul><br><s>(sean-k-mooney): should we unplug vifs in power off</s><br><ul class="bullet"><li><s>(gibi): ping ralonsoh</s></li><li><s>currently in the libvirt diver power_on is implmente by calling hard_reboot</s></li><li><s>power_off undefines the libvirt domain but does not call unplug_vifs</s></li><li><s>hard reboot will both destory the domain and clean up network interfaces.</s></li><li><s>the current power_off behavior results in ports being left configured on ovs while the vm is off and then deletitng and recreating them on power on.</s></li><li><s>nova has done this since before neutron was a project so its expected but should we tear down the backend networking config when we power off.</s></li><li><s>also should we do the same for host mounted cinder volumes? i assume they are unmounted but the attachments are not unbound.</s></li><li><s>i dont belive new calls to neutron or cinder to unbinidng the port binding or volume attachments woudl be correct but we might want to remove the configurtion form the host.</s></li><li><s>context for this is </s><a href="https&#x3a;&#x2F;&#x2F;bugzilla&#x2e;redhat&#x2e;com&#x2F;show&#x5f;bug&#x2e;cgi&#x3f;id&#x3d;1932187" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;bugzilla.redhat.com&#x2F;show_bug.cgi?id=1932187</s></a><s> tobiko is a tempest alternitive that should not be asserting this behavior in test since is not part of the api contract</s></li><li><s>and changes based on both the neutron ml2 driver and nova virt dirver so its not  generic. but it raises the question should we keep the logic we always had or should we unplug in power off.</s></li><li><strong>AGREED</strong>:<ul class="bullet"><li>(sean-k-mooney): Not a bug&#x2F;wont fix</ul></li></ul><br><s>(sean-k-mooney): pci device tracking in placmnet?</s><br><ul class="bullet"><li><s>(gibi): ping ralonsoh</s></li><li><s>(dmitriis): ping dmitriis</s></li><li><s>part of the work was already done 3 years ago but never merged because we did not have nested RP in plamcent yet.</s></li><li><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;q&#x2F;topic&#x3a;&#x25;2522bp&#x2F;enable&#x2d;sriov&#x2d;nic&#x2d;features&#x25;2522&#x2b;" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;q&#x2F;topic:%2522bp&#x2F;enable-sriov-nic-features%2522+</s></a></li><li><s>the main deltas for the old spec would be instead of using the pro profile to have trait request which is admin only, we should have a neutron extention to</s></li><li><s>allow triat request on the port and then leverage the port resouce request to pass the info to nova if we wanted to support that.</s></li><li><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2d;specs&#x2F;&#x2b;&#x2F;504895&#x2F;7&#x2F;specs&#x2F;queens&#x2F;approved&#x2F;enable&#x2d;sriov&#x2d;nic&#x2d;features&#x2e;rst" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova-specs&#x2F;+&#x2F;504895&#x2F;7&#x2F;specs&#x2F;queens&#x2F;approved&#x2F;enable-sriov-nic-features.rst</s></a></li><li><s>from a placment point of view each PF would be an reosuce provider as a direct child of the compute node.</s></li><li><s>its name where it is a nic could be the interface netdev name otherwise i would suggest using the pci address to allow neutron or other services to identify it if needed.</s></li><li><s>each inventory would have all pci passthough whitelist tags added as custom triats.</s></li><li><s>standard nic feature flags would alos be added as standard traits where they exist.</s><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;466051" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;466051</s></a></ul><li><s>open questions:</s><ul class="bullet"><li><s>should we extend pci whitelist to allow a resouce class to be specificed for the device.</s><ul class="bullet"><li><s>(gibi): Why would the deployer want to do that? What is the goal here?</s></li><li><s>am i was thiniking that in the flavor based  pci passthough alias case(not nuetorn sriov ports) it might be nice to have a resouce clase per pci alias.</s></ul><li><s> if we do ^ should we allow the alis to just containt the custom resouce class instead&#x2F;in addtion to of vendor id&#x2F;product id</s><ul class="bullet"><li><s>yep that was the idea.</s></ul><li><s>shoudl we use provider.yaml for this instead and deprecate both the alias and whitelist?</s><ul class="bullet"><li><s>(gibi): in the whitelist you don&#x27;t have to manually list every device that matches the filter, you can have a pretty generic filter matching a lot of devices, while in case of provider.yaml you need to list each RP one-by-one. So this change has a usability impact</s></li><li><s>(gibi): I vaugely remember that with the whitelist you can defince groups of similar devices. Is this gouping a real thing or I just imagined it?</s></li><li><s>(sean) the whitelist can in several ways. the address filed is optional and wehn specifid support both bash glob syntax 08:* and python regex format.</s></li><li><s>(sean) the other way is to just not use the adress and whitelist using only the vendor an product id. that is how i normally recommend listing VF for example assume all of them are for use by nova and are not used on the host.</s></ul></li></ul><li><s>(gibi): In case of PCI passthrough (not SRIOV) we need a placement model where a PCI device is a resource to be consumed</s></li><li><s>(gibi): In case of SRIOV we need a model where the whole PF can be consumed (vnic_type=direct-physical) as well as VFs consumed (vnic_type=direct) as resources. </s><ul class="bullet"><li><s>yep in this case we would need to set reserved=total for the pf and have one RP per pf with PF and VF resouce class inventories.</s><ul class="bullet"><li><s>(gibi) hm, I think you cannot have RP(PF=1,VF=4) model as then a singel boot request asking for two ports one direct_physical and one direct might find this RP acceptable, but in really it is not acceptable.</s></ul></li></ul><li><s>(gibi): Some of the SRIOV PFs already modelled in placement to provider bandwidth resource. Today the connection between the bandwidth provider and the PCI device consumed by the PCI tracker in nova are enforced by the nova code. If the PCI tracker&#x27;s logic is moved to placement we need a model that enforces this connection in placement. E.g. if there will be bandwidth provider and a PCI provider representing the same PF in placement then they need to be connected with aggregate or with parent-child relationship.</s><ul class="bullet"><li><s>(sean) long term yes but short term i think this is like numa something we should continue to enfore in nova. so what i was thinking of initally is having the PF moddeled twice once as an RP under the compute node withthe name set to the pci address of the pf and seperatly under the sriov agent for bandwith. nova would have to then assert that the bandwith and PF allcoation come form the same deivce.</s><ul class="bullet"><li><s>(stephenfin) Yes, to reinforce this we can&#x27;t drop (all) of the PCI manger code since we need to maintain NUMA and NUMA in placement is 😊🔫</s></ul><li><s>eventually we shoudl figure out how to have a singel RP for the device and have both invetories on it.</s></li><li><s>the other thing is i think it only makes sense to have bandiwth invetores if the PF is not used.</s></ul><li><s>(sean) my list of usecase in piroity order are</s><ul class="bullet"><li><s>model pci devices  used for alias based passthough in placment.</s></li><li><s>model vf in plamcnet</s></li><li><s>model pf in plamcnet</s></li><li><s>make bandwith base scudling and PFs have just one RP or otherwise have plament enforce the relationship.</s></ul><li><s>the reason for the above order is i would like to have placment deal with the quantivie part first since that get rid fo the race condtion we have today for 2 indepented build racinging for the same device on the compute node.</s></li><li><s>and as with numa we can do the qulaitive aspect as we do today intially in nova, eventulaly we can make it pretty and have only one RP.</s><ul class="bullet"><li><s>note we could start by only reporting devices that done have physical_network set in the whitelist, i.e. the devies that are not use by neutron and are use with flaovr aliases.</s></li><li><s>so we can do this incremenatlly</s></ul><li><s>Open questions to be addressed in the spec</s><ul class="bullet"><li><s>How we do translation from alias to resource classes</s></li><li><s>What we do to VFs when we consume the PF</s></li><li><s>rolling upgrade</s></ul><li>AGREED:<ul class="bullet"><li>Need a detailed spec, we will iron out the hard pieces</ul></li></ul><br><s>(sean-k-mooney): pci device attach&#x2F;detach api?</s><br><ul class="bullet"><li><s>should we add a new api to allow attaching&#x2F;detaching pci devices by alias and or cyborg device profile.</s><ul class="bullet"><li><s>(brinzhang) We also have this idea, that we can attach&#x2F;detach pci devices by cyborg (as arq), and we proposed the drafted bp before,  </s></li><li><a href="https&#x3a;&#x2F;&#x2F;blueprints&#x2e;launchpad&#x2e;net&#x2F;nova&#x2F;&#x2b;spec&#x2F;support&#x2d;binding&#x2d;accelerator&#x2d;by&#x2d;cyborg" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;blueprints.launchpad.net&#x2F;nova&#x2F;+spec&#x2F;support-binding-accelerator-by-cyborg</s></a><s>, </s><a href="https&#x3a;&#x2F;&#x2F;blueprints&#x2e;launchpad&#x2e;net&#x2F;nova&#x2F;&#x2b;spec&#x2F;support&#x2d;unbinding&#x2d;accelerator&#x2d;by&#x2d;cyborg" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;blueprints.launchpad.net&#x2F;nova&#x2F;+spec&#x2F;support-unbinding-accelerator-by-cyborg</s></a></li><li><s>(sean-k-mooney) yep it was alway planned to eventually be support with flavors as the inital step. this is more a question of are we ready to do this yet?</s></li><li><s>(brinzhang) yeah, in </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2d;specs&#x2F;&#x2b;&#x2F;663563" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova-specs&#x2F;+&#x2F;663563</s></a><s> proposed in Ussuri, we talked about how to improve the ease of use of Flavor, but we dont have an AGGREMENT until today.</s></ul><li><s>this would need to be a new toplevel api like volumn atache&#x2F;detach and device would likely need some kind of quota</s></li><li><s>maybe if we track the pci device in placment we can use unified limits for quota in the future.</s></li><li><s>for now we could restrict this to admins by plolicy untill unified limits is a thing altohg we dont have a limit on indivigual flavor today so ist not really any differnet then what we do today.</s></li><li><strong>AGREED:</strong><ul class="bullet"><li>We need to know more about the use case</li><li>Do the full detach &#x2F; attach through cyborg. Transfer the PCI device handling from Nova to a generic Cyborg driver</ul></li></ul><br><s>(sean-k-mooney): should we support generic mdevs in nova?</s><br><ul class="bullet"><li><s>i think we coudl support generic mdev passthough similar to vgpu by just allowing a config option to map mdev types to resouce classes</s></li><li><s>we would then need to extend the libvirt dirver to report the addtion mdev types to placment and be able to assign them. to the vm</s></li><li><s>most of the code for this is aready there and cyborg is going to be reusing some of it for vGPUs too.</s></li><li><s>(brinzhang) yep, we can consider using cyborg to manage the generic mdev, and we have the plan to do this, of course welcome to join us to do this together.</s></li><li><s>well we want to be able to do this without cyborg too</s><ul class="bullet"><li><s>(gibi): I&#x27;m wonding why we want to implement this twice. </s></li><li><s>simple answer is i dont have a path to deliver cyborg to customer at present and also for stateless device cyborg does not actully add any value.</s></li><li><s>there is nothing to program or manage its just like a VF so cyborg is a really hard cell.</s></ul><li><strong>AGREED</strong>:<ul class="bullet"><li>sylvain write a spec with use case</ul></li></ul><br><s>(sean-k-mooney): VDPA part 2</s><br><ul class="bullet"><li><s>(gibi): ping ralonsoh</s></li><li><s>if VDPA is not merged in Wallaby then this starts by finshing that work -> merged \o&#x2F;</s></li><li><s>If it is then this might involve adding support for think like jumbo frames or move operation like live migration depending on kernel&#x2F;qemu support</s><ul class="bullet"><li><s>(gibi): do we have any plans from kernel&#x2F;qemu devs when the live migration support will be available?</s></li><li><s>my understanding is that redhats kerenl and vert team are activly working on this now. last time i asked about this they were hopping later this</s></li><li><s>year but i dont know ir fi twill happen before the end of xena i was tentitivly thinking Y but we should be able to add support for almost all the other lifyclel ops that are blocked today.</s></li><li><s>if i can find anything public ill adde it all i have right now is a private jira link </s><a href="https&#x3a;&#x2F;&#x2F;issues&#x2e;redhat&#x2e;com&#x2F;browse&#x2F;RHELPLAN&#x2d;30292" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;issues.redhat.com&#x2F;browse&#x2F;RHELPLAN-30292</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;bugzilla&#x2e;redhat&#x2e;com&#x2F;show&#x5f;bug&#x2e;cgi&#x3f;id&#x3d;1885922" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;bugzilla.redhat.com&#x2F;show_bug.cgi?id=1885922</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;bugzilla&#x2e;redhat&#x2e;com&#x2F;show&#x5f;bug&#x2e;cgi&#x3f;id&#x3d;1885987" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;bugzilla.redhat.com&#x2F;show_bug.cgi?id=1885987</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;bugzilla&#x2e;redhat&#x2e;com&#x2F;show&#x5f;bug&#x2e;cgi&#x3f;id&#x3d;1885991" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;bugzilla.redhat.com&#x2F;show_bug.cgi?id=1885991</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;bugzilla&#x2e;redhat&#x2e;com&#x2F;show&#x5f;bug&#x2e;cgi&#x3f;id&#x3d;1885945" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;bugzilla.redhat.com&#x2F;show_bug.cgi?id=1885945</s></a></li><li><s>some of those are privete other are public the basic poc is targeting the rhel 8.5 time frame that likely will mean late this year or early next year for it to land in an upstream release.</s></ul><li><s>this is basicaly a placeholder but there may be other uses for vdpa beyond nic liek vdpa for virtio-blk, virtio-fs ...</s></li><li><strong>AGREED</strong>:<ul class="bullet"><li>do the life cycle operations except suspend and live migrate</ul></li></ul><br><s>(sean-k-mooney): fixing all the bugs related to move operations with pci devices esspcially neutorn vnic_type=direct-physical </s><br><ul class="bullet"><li><s>while move operation with passthough device appears to work in some cases there are many broken endgecase.</s></li><li><s>i would like to spend some time paying down the tech debt and finsihing half completed features</s></li><li><s>currently all move operation with vnic_type=direct-physical  are broken in some way.</s><ul class="bullet"><li><s>cold migration&#x2F;resize does not update the neutron port mac to match teh PF mac on the destination.</s></li><li><s>live migration also has the same problem and until very recently device detach did not work( thanks gibi for fixing:) )</s></li><li><s>unshleve will somethime? always? use the wrong pci address since the neutron port profile is out of date.</s></li><li><s>evac probaly has the same issue as cold migration</s></li><li><s>in all cases the pci track has the correct pci claim as far as i am aware but the neutron port is not updated properly.</s></ul><li><s>i belive that the same unshleve issue can affect all other neutron sriov port types too. e.g. standard vfs, hardware offloaded ovs ectra.</s><ul class="bullet"><li><s>one way to fix part of the issue is to break the reliance on the neutron port profile by storing a mapiping between the pci request id and the port in the nova VIF object which is persited in the network info cache.</s><ul class="bullet"><li><s>(gibi) we have the relationship persisted already in some cases. The InstancePCIRequest.requester_id points to the port_uuid if the PCI request created from a port. </s><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;08ef1a4985d5ed6cdc1ce4132e6c4df30414e16d&#x2F;nova&#x2F;network&#x2F;neutron&#x2e;py&#x23;L2112" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;08ef1a4985d5ed6cdc1ce4132e6c4df30414e16d&#x2F;nova&#x2F;network&#x2F;neutron.py#L2112</s></a><s> </s></li><li><s>yep we do artom started fixing this one alreay because customer really want it fixed. </s></li><li><a href="https&#x3a;&#x2F;&#x2F;bugzilla&#x2e;redhat&#x2e;com&#x2F;show&#x5f;bug&#x2e;cgi&#x3f;id&#x3d;1767797" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;bugzilla.redhat.com&#x2F;show_bug.cgi?id=1767797</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;783084&#x2F;" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;783084&#x2F;</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;784168&#x2F;" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;784168&#x2F;</s></a></li><li><s>the last patch make it so we always set  InstancePCIRequest.requester_id , an openquetion is should we also add a nova manage command or somethign to populate that for exsiting instnace or something like that.</s></ul><li><s>a better way to do this might be to update the extra_info colume in the pci tracker with the neutorn port uuid or add an optional "consumer uuid" which would be used to store the neutron port uuid to the pci_deivce tables. currently we only have the instance uuid.</s></ul><li><s>open questions:</s><ul class="bullet"><li><s>should we block all move operations with vnic_type=driect-physical until they are fixed? the spec that added support for it never covered move operaiton and they were not explictly enabled or tested so this just "worked" because it was never blocked. given it broken most of the time its posible that blocking it ourght like we did with numa live migration would be the best thing to do with a workaround config option for those that really need it and are prepared to fix things when it does not work properly.</s></li><li><s>(gibi): I did some test with direct-physical migration when I implemented the qos stuff and the level I asserted the behavior the migration worked. So I agree on your statement from the first bullet point that it "appears to work in some cases". If only edge cases are broken then I would not block the operations. If every cases is broken, or the currently working  cases cause inconsistencies later then I agree to block the operations. </s></li><li><s>well it alwasy has the incorrect mac in the neutron port after the migration. that can cause other failures if a vm tries to boot on the souce host using the pf it will fail when we try to update its neutron port to the same mac if both vms were form the same tenant which is likely since PF really only work with flat networks.</s></li><li><s>(gibi): OK that might be simply missing asserts in existing test. I&#x27;m not sure I asserted MAC assignment.</s></ul><li><strong>AGREED</strong>:<ul class="bullet"><li>Fix is not backportable due to online datamigration.</li><li>Create a patch that block that doesn&#x27;t work (add a workaround flag that still allows the operation if set)</li><li>Backport the patch ^^</li><li>Implement the fix on master</ul></li></ul><br><s>(gmann): Consistent return code for "Feature not implemented&#x27;</s><br><ul class="bullet"><li><s>There is in consistency on what return code we should return for  "Feature not implemented&#x27;. Currently we return 400, 409, and 403.</s><ul class="bullet"><li><s>400 case: Example: Multiattach Swap Volume Not Supported:</s><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0c64f4c3eae8e2654ec11f60682c0fa5eda30c1a&#x2F;nova&#x2F;exception&#x2e;py&#x23;L295" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0c64f4c3eae8e2654ec11f60682c0fa5eda30c1a&#x2F;nova&#x2F;exception.py#L295</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;788035add9b32fa841389d906a0e307c231456ba&#x2F;nova&#x2F;api&#x2F;openstack&#x2F;compute&#x2F;volumes&#x2e;py&#x23;L429" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;788035add9b32fa841389d906a0e307c231456ba&#x2F;nova&#x2F;api&#x2F;openstack&#x2F;compute&#x2F;volumes.py#L429</s></a></ul><li><s>403 case: Cyborg integration.</s><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0c64f4c3eae8e2654ec11f60682c0fa5eda30c1a&#x2F;nova&#x2F;exception&#x2e;py&#x23;L158" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0c64f4c3eae8e2654ec11f60682c0fa5eda30c1a&#x2F;nova&#x2F;exception.py#L158</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0e7cd9d1a95a30455e3c91916ece590454235e0e&#x2F;nova&#x2F;api&#x2F;openstack&#x2F;compute&#x2F;suspend&#x5f;server&#x2e;py&#x23;L47" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0e7cd9d1a95a30455e3c91916ece590454235e0e&#x2F;nova&#x2F;api&#x2F;openstack&#x2F;compute&#x2F;suspend_server.py#L47</s></a></ul><li><s>409 case: Example: Operation Not Supported For SEV , Operation Not Supported For VTPM</s><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0c64f4c3eae8e2654ec11f60682c0fa5eda30c1a&#x2F;nova&#x2F;exception&#x2e;py&#x23;L528&#x2d;L537" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0c64f4c3eae8e2654ec11f60682c0fa5eda30c1a&#x2F;nova&#x2F;exception.py#L528-L537</s></a></ul></li></ul><li><s>Discussion started in </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;780333&#x2F;5&#x2F;&#x2F;COMMIT&#x5f;MSG&#x23;11" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;780333&#x2F;5&#x2F;&#x2F;COMMIT_MSG#11</s></a></li><li><s>API SIG guidlines suggest to use 400 : </s><a href="https&#x3a;&#x2F;&#x2F;specs&#x2e;openstack&#x2e;org&#x2F;openstack&#x2F;api&#x2d;wg&#x2F;guidelines&#x2F;http&#x2F;response&#x2d;codes&#x2e;html&#x23;use&#x2d;of&#x2d;501&#x2d;not&#x2d;implemented" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;specs.openstack.org&#x2F;openstack&#x2F;api-wg&#x2F;guidelines&#x2F;http&#x2F;response-codes.html#use-of-501-not-implemented</s></a></li><li><s>If we modify the existing return code of  "Feature not implemented&#x27; to 400 then we do not need microversion bump as 400 is existing return code for any API. </s><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;docs&#x2e;openstack&#x2e;org&#x2F;nova&#x2F;latest&#x2F;contributor&#x2F;microversions&#x2e;html&#x23;id3" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;docs.openstack.org&#x2F;nova&#x2F;latest&#x2F;contributor&#x2F;microversions.html#id3</s></a></ul><li><s>(sean-k-mooney)i was ok with 403 as a client is not allowed to automaticaly retry the same request unmodified if they recive a 403. the same would be true of a 400, a 409 allows the request to be retired.</s></li><li><s>for that an other reasons since the user cant "fix" the request to make it succeed i don&#x27;t like useing 409 for this but i would be ok with a 400 in all existing cases</s></li><li><s>HTTP 501? </s><a href="https&#x3a;&#x2F;&#x2F;developer&#x2e;mozilla&#x2e;org&#x2F;en&#x2d;US&#x2F;docs&#x2F;Web&#x2F;HTTP&#x2F;Status&#x2F;501" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;HTTP&#x2F;Status&#x2F;501</s></a><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;specs&#x2e;openstack&#x2e;org&#x2F;openstack&#x2F;api&#x2d;wg&#x2F;guidelines&#x2F;http&#x2F;response&#x2d;codes&#x2e;html&#x23;use&#x2d;of&#x2d;501&#x2d;not&#x2d;implemented" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;specs.openstack.org&#x2F;openstack&#x2F;api-wg&#x2F;guidelines&#x2F;http&#x2F;response-codes.html#use-of-501-not-implemented</s></a><ul class="bullet"><li><s>Ah, it&#x27;s the HTTP *method* that&#x27;s not implemented</s></li><li><s>400 = "your bad request", 500 = "my bad, server has screwed up"+1</s><ul class="bullet"><li><s>some operators have sla where 5XX errors are considerd a breakage of the sla and is billable</s></ul><li><s>damn, ninja&#x27;d it&#x27;s the literally obvious choice :P</s><ul class="bullet"><li><s>its explictly against the recommend useage of 501</s></ul></li></ul><li><s>they are not  server failure and that refers to http methods not logical operation </s></ul><li><strong>AGREED</strong>:<ul class="bullet"><li>use 400, no need microversion to update the APIs to it</li><li>backport it</ul></li></ul><br><s>(stephenfin) Switch to alembic</s><br><ul class="bullet"><li><a href="http&#x3a;&#x2F;&#x2F;lists&#x2e;openstack&#x2e;org&#x2F;pipermail&#x2F;openstack&#x2d;discuss&#x2F;2021&#x2d;February&#x2F;020638&#x2e;html" rel="noreferrer noopener"><s>http:&#x2F;&#x2F;lists.openstack.org&#x2F;pipermail&#x2F;openstack-discuss&#x2F;2021-February&#x2F;020638.html</s></a></li><li><s>Background:</s><ul class="bullet"><li><s>sqlalchemy-migrate is end-of-life and needs to be retired. alembic is supported by the sqlalchemy community (so I can bug zzzeek) and is well and truly proven now</s></li><li><s>We squashed all main and API DB migrations up to Train in Wallaby and all that remains for both is placeholders</s></ul><li><s>Proposal</s><ul class="bullet"><li><s>Defined at </s><a href="http&#x3a;&#x2F;&#x2F;lists&#x2e;openstack&#x2e;org&#x2F;pipermail&#x2F;openstack&#x2d;discuss&#x2F;2021&#x2d;February&#x2F;020672&#x2e;html" rel="noreferrer noopener"><s>http:&#x2F;&#x2F;lists.openstack.org&#x2F;pipermail&#x2F;openstack-discuss&#x2F;2021-February&#x2F;020672.html</s></a><ul class="bullet"><li><s>is database already initialized&#x2F;versioned with sqlalchemy-migrate?</s><ul class="bullet"><li><s>yes</s><ul class="bullet"><li><s>is latest version applied?</s><ul class="bullet"><li><s>yes</s><ul class="bullet"><li><s>dummy apply alembic initial migration unless already applied</s></ul><li><s>no</s><ul class="bullet"><li><s>tell user to upgrade</s></ul></li></ul></li></ul><li><s>no</s><ul class="bullet"><li><s>apply alembic initial migration unless already applied</s></ul></li></ul></li></ul></li></ul><li><s>Questions</s><ul class="bullet"><li><s>Can we simply ensure the user has applied up to Train?</s><ul class="bullet"><li><s>This lets us remove sqlalchemy-migrate entirely faster since we don&#x27;t need to keep it around for the FFU folks (they can go straight from Train to Y, otherwise they&#x27;d have to go to X before Y+)</s></li><li><s>Very low risk. We have a limited history of backporting schema changes, and no recent history of it</s></li><li><s>When do we remove the old &#x27;migrate_version&#x27; table?</s></ul></li></ul><li><a href="https&#x3a;&#x2F;&#x2F;docs&#x2e;openstack&#x2e;org&#x2F;neutron&#x2F;latest&#x2F;contributor&#x2F;alembic&#x5f;migrations&#x2e;html&#x23;script&#x2d;auto&#x2d;generation" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;docs.openstack.org&#x2F;neutron&#x2F;latest&#x2F;contributor&#x2F;alembic_migrations.html#script-auto-generation</s></a><s> </s></li><li><a href="https&#x3a;&#x2F;&#x2F;docs&#x2e;openstack&#x2e;org&#x2F;neutron&#x2F;latest&#x2F;contributor&#x2F;alembic&#x5f;migrations&#x2e;html&#x23;offline&#x2d;online&#x2d;migrations" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;docs.openstack.org&#x2F;neutron&#x2F;latest&#x2F;contributor&#x2F;alembic_migrations.html#offline-online-migrations</s></a></li><li><strong>AGREED</strong>:<ul class="bullet"><li>create a contributor doc showing how a migration will look like after the change. Document how to backport a migration to stable.</li><li>figure out if alembic collapsing migrations can this cause timeouts for big migrations</ul></li></ul><br><br><strong><em><---- Continue from here Friday 14:00 UTC  -----------></em></strong><br><br><br><s>(stephenfin) Drop eventlet</s><br><ul class="bullet"><li><s>I have no idea how much work this is, but I think dropping support for the eventlet-deployed API services (vs. WSGI) would be a good start</s><ul class="bullet"><li><s>(dansmith) I don&#x27;t really have a problem with this, but what pain are we specifically seeing from having it as an option? I&#x27;m trying to think of what beyond cmd&#x2F;api.py really has much eventletness in it.</s></li><li><s>(melwitt) we have eventlet for scatter_gather_cells in nova-api. I actually proposed a patch [1] in the past that would allow us to swap eventlet out for native threading that I can restore *but* keeping in mind there is no way to "cancel" a native thread that has not finished within a particular timeout. That&#x27;s the only tangible advantage to using eventlet in nova-api, green threads can be canceled&#x2F;killed if they don&#x27;t reply within the time we specify. If we move to native threading, there will be no more "canceling" of a thread that&#x27;s not returned a result by $timeout and we&#x27;d just move on and leave the thread doing whatever. I&#x27;m OK with that as I spent a lot of time researching and did not find a way around it.</s></ul></li></ul><ul class="indent"><li><ul class="indent"><li><s>[1] </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;650172" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;650172</s></a></li><li><s>(dansmith) Yeah, canceling real theads is hard. Canceling stuck eventlet threads is actually pretty much the same, AFAIK, in that we just don&#x27;t collect the results but we&#x27;re still burning a slot in the thread pool until whatever is blocking it times out. If it&#x27;s purely a network connection (as would be the case in the scatter&#x2F;gather) the impact should be pretty low. I&#x27;ll have to go back and look at the s&#x2F;g code, but I guess I&#x27;m not sure we&#x27;re *really* using eventlet threads there if we&#x27;re running in uWSGI, but I&#x27;ll have to reload my context.</s></li><li><s>(melwitt) Hm, yeah, I don&#x27;t know the interactions when we&#x27;re running in uWSGI ... I was referring to the fact that eventlet threads have a kill() method that we&#x27;re using alongside our own timeout [2], so AFAIK we are getting client side timeout + cancel functionality with eventlet threads. If that&#x27;s not the case with uWSGI, I was not aware of that.</s></li><li><s>[2] </s><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;f55f5daed88a9c3b11d29834481b6f7e4fef763c&#x2F;nova&#x2F;context&#x2e;py&#x23;L437&#x2d;L450" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;f55f5daed88a9c3b11d29834481b6f7e4fef763c&#x2F;nova&#x2F;context.py#L437-L450</s></a></li><li><s>basicaly we should not try to cancel real treads if we need canilation we need to use a differnet concorancy constuct liek a proccess on the heavy side or tasks(often implemeted a coroutiens or green treads but with explcit support for cancelation)</s></li><li><s>clis like nova manage  and nova status however proably dont need eventlets. they get monkypatched  implcitly </s><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;master&#x2F;nova&#x2F;cmd&#x2F;&#x5f;&#x5f;init&#x5f;&#x5f;&#x2e;py" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;master&#x2F;nova&#x2F;cmd&#x2F;__init__.py</s></a><s> but i dont think they use it much. the tend to do just one thing at a time.</s></ul></li></ul><ul class="bullet"><li><s>(sean)droping the evenetlet version fo the nova-api would be trivial and was planned at one point we just never did it. some deployment tools would have to be altered to take this into account so this would likely need deprecation for one cycle and removal in Y</s><ul class="bullet"><li><s>(melwitt) The rationale for not doing is stated in the last comment on </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;650172" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;650172</s></a><s>:</s></ul></li></ul><ul class="indent"><li><ul class="indent"><li><s>"Upon further investigation, we found that the application model of uWSGI and mod_wsgi is intended to pause when idle, which will naturally pause rabbitmq heartbeats as well. Changing over to native threads simply circumvents that application model, so we concluded this patch isn&#x27;t a good way to approach the situation.</s></li><li><s>The uWSGI and mod_wsgi app will properly resume and rabbitmq reconnects via oslo.messaging and heartbeats resume, without any disruption to the behavior of nova-api, provided that uWSGI or mod_wsgi is configured as the default threads=1 per process."</s></li><li><s>I would be OK with going ahead and restoring this and doing it, just mentioning that there was reasoning for abandoning the effort last time ^.</s></ul></li></ul><ul class="bullet"><li><s>(sean)droping eventlet form nova-compute or the conductor on the other hand would not be simple.</s><ul class="bullet"><li><s>(dansmith) agree dropping eventlet from the standalone services would be a big deal, not sure what it would really gain us</s></li><li><s>(sean) there have been times when i have wanted to be a little more explcit about our concourancy model but the way we use eventlet and the implict concurancy it gives use would be hard to unwind.</s></li><li><s>the main thing i think it would give us is less risk with monkeypatching issue when moving to new python versions and comparitablie with some of our deps. that said it comes at both a cost of doing the work for the converation and the cost of developing in a new concurancy model.</s></ul><li><s>(melwitt) Related to dropping eventlet:</s><ul class="bullet"><li><s>Recently I&#x27;ve learned of a seemingly unsolvable problem having to do with a failure mode in PyMySQL (and mysqlconnector?) when a process has been eventlet monkey patched:</s></li><li><s>Quoting zzzeek:</s></ul></li></ul><ul class="indent"><li><ul class="indent"><li><s>"I would theorize that if eventlet monkeypatching has occurred at all within the process, thus replacing Python&#x27;s normal socket API with that of eventlet, that alone would be what precipitates this being possible.</s></li><li><s>Searching for this issue, here&#x27;s three issues, two against pymysql and one against sqlalchemy using pymysql, that show this error message.  All of them have used gevent monkey patching (which is what eventlet is forked from):</s></li><li><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;PyMySQL&#x2F;PyMySQL&#x2F;issues&#x2F;234" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;PyMySQL&#x2F;PyMySQL&#x2F;issues&#x2F;234</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;sqlalchemy&#x2F;sqlalchemy&#x2F;issues&#x2F;3258" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;sqlalchemy&#x2F;sqlalchemy&#x2F;issues&#x2F;3258</s></a></li><li><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;PyMySQL&#x2F;PyMySQL&#x2F;issues&#x2F;260" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;PyMySQL&#x2F;PyMySQL&#x2F;issues&#x2F;260</s></a><s> - on this one there are also some "me, too" comments, also using gevent</s></li><li><s>I&#x27;m not able to find descriptions of this issue that don&#x27;t have gevent&#x2F;eventlet involved, basically.   </s></li><li><s>I would theorize that gevent&#x2F;eventlet monkeypatching simply adds this new kind of failure mode to the socket, however we dont know here what the trigger for the event is."</s></ul></li></ul><ul class="bullet"><li><ul class="bullet"><li><s>The error that gets raised from PyMySQL is "RuntimeError: reentrant call inside" and it has been raised during retrieval of quota limits from the API database (which does nothing with eventlet spawning), this seems to prove that the monkey patching alone causes problems with PyMySQL. As far as we can tell, the only way to solve this problem is to stop eventlet monkey patching any service that accesses the database.</s></li><li><s>Places where eventlet spawn is used aside from nova-compute (doesn&#x27;t directly access database, so should be OK IIUC) and would need to be replaced with native thread usage:</s><ul class="bullet"><li><s>nova-api: multi-cell scatter&#x2F;gather</s></li><li><s>nova-conductor: cache_images for glance</s></li><li><s>all: oslo.service timer for service up heartbeats using the DB driver (there is a traceback where "RuntimeError: reentrant call inside" was raised during a service update&#x2F;heartbeat)</s></ul></li></ul><li><strong>AGREED</strong>:<ul class="bullet"><li>Start with the scatter&#x2F;gather in the nova-api, transform it to async</li><li>Deprecate the eventlet entry point from the nova-api (remove it in Y)<ul class="bullet"><li>-> remove the monkey patching from nova-api in Y</ul><li>specless bp is OK</ul></li></ul><br><s>(kashyapc) A few random items</s><br><ul class="bullet"><li><s>Cleanups and bug fixes in the libvirt driver</s><ul class="bullet"><li><s>Remove floppy drive support -- </s><a href="https&#x3a;&#x2F;&#x2F;blueprints&#x2e;launchpad&#x2e;net&#x2F;nova&#x2F;&#x2b;spec&#x2F;remove&#x2d;support&#x2d;for&#x2d;floppy&#x2d;disks" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;blueprints.launchpad.net&#x2F;nova&#x2F;+spec&#x2F;remove-support-for-floppy-disks</s></a></li><li>AGREED:<ul class="bullet"><li>need a way to update update existing instance using floppy disk (similar to machine_type nova-manage command)</li><li>needs a spec to talk about <ul class="bullet"><li>upgrade check </li><li>blocking the usage of deprecated libvirt &#x2F; qemu features</ul></li></ul><li><s>Remove support for tunnelled live migration (we deprecated it in Wallaby) in favour of QEMU-native TLS</s></li><li>AGREED:<ul class="bullet"><li>=> remove the deprecated config options</ul><li><s>"Don&#x27;t use VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE for  virDomainSnapshotCreateXML when filesystems are already frozen by virDomainFSFreeze"</s><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;bugzilla&#x2e;redhat&#x2e;com&#x2F;show&#x5f;bug&#x2e;cgi&#x3f;id&#x3d;1928838&#x23;c1" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;bugzilla.redhat.com&#x2F;show_bug.cgi?id=1928838#c1</s></a></li><li><s>TODO: Make an upstream bug for this</s></li><li>=> Fix it :) ++</ul></li></ul><li><s>Bring CPU modelling APIs rework in the libvirt driver to completion</s><ul class="bullet"><li><s>WIP: </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;762330&#x2F;" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;762330&#x2F;</s></a><s> </s></li><li>AGREED:<ul class="bullet"><li>continue working on it</li><li>try to add information, like a DEBUG log, about why the CPU comparision failed</ul></li></ul><li><s>UEFI (secure) boot: Replace Nova&#x27;s custom parsing of "firmware descriptor files" with libvirt&#x27;s firmware auto-selection feature</s><ul class="bullet"><li><s>See this TODO item from &#x27;stephenfin&#x27; here -- </s><a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0c64f4c3eae&#x2F;nova&#x2F;virt&#x2F;libvirt&#x2F;host&#x2e;py&#x23;L1608&#x2c;&#x23;L1609" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;github.com&#x2F;openstack&#x2F;nova&#x2F;blob&#x2F;0c64f4c3eae&#x2F;nova&#x2F;virt&#x2F;libvirt&#x2F;host.py#L1608,#L1609</s></a><ul class="bullet"><li><s>[libvirt] </s><a href="https&#x3a;&#x2F;&#x2F;bugzilla&#x2e;redhat&#x2e;com&#x2F;show&#x5f;bug&#x2e;cgi&#x3f;id&#x3d;1906500" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;bugzilla.redhat.com&#x2F;show_bug.cgi?id=1906500</s></a><s> -- UEFI: Provide a way how to configure different combinations of secure boot enabled&#x2F;disabled and keys enrolled&#x2F;not enrolled</s><ul class="bullet"><li><s>Upstream libvirt has implemented it here on 19Mar: </s><a href="https&#x3a;&#x2F;&#x2F;listman&#x2e;redhat&#x2e;com&#x2F;archives&#x2F;libvir&#x2d;list&#x2F;2021&#x2d;March&#x2F;msg00922&#x2e;html" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;listman.redhat.com&#x2F;archives&#x2F;libvir-list&#x2F;2021-March&#x2F;msg00922.html</s></a></li><li><s>It will be <em>available since libvirt  7.2.0 (April 2021)</em></s></li><li><s>(stephenfin) Personally, I would add a TODO and wait until our minimum matches this. This is simple enough that having one way to do things (and one group of potential bugs) beats two separate ways IMO</s></ul></li></ul><li>AGREED:<ul class="bullet"><li>Keep the TODO until we bump the lower version of libvit (not until Y then as next will be 7.0.0 in Xena)</ul></li></ul></li></ul><br><s>(brinzhang) Nova supports password encrypted VNC </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;622336" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;622336</s></a><br><ul class="bullet"><li><s>This aims at providing a safer remote console with password authentication to promote the security of opening server&#x27;s console, but there are some issue when we implement it</s><ul class="bullet"><li><s>In summary, if we want to support reseting password for vnc</s></li><li><s>(a)with get_vnc_console API, it must be hard reboot,</s></li><li><s>(b)with server create API, it&#x27;s too intrusive to the VM system;,</s></li><li><s>(c)with config-driven API behavior, looks better than before options, but it&#x27;s also not have a good UX for users, the same as give the warning with exceptions.</s></li><li><s>(gibi): Do I understand correctly from the discussion in review that "vencrypt" auth type we support today is overal better than the proposed password auth? What do we loose if we only support "vencrypt"? </s><ul class="bullet"><li><s>see melwitt&#x27;s comment in </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;622336&#x2F;37&#x23;message&#x2d;0decdf04e81e999a1458b5b6129ef667f4ffe15a" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;622336&#x2F;37#message-0decdf04e81e999a1458b5b6129ef667f4ffe15a</s></a></li><li><s>(melwitt): Given the lack of clean solution option for providing the password auth option, I would like to understand more what is the use case driving this feature request and how&#x2F;why does the vencrypt auth scheme not fulfill it? My thinking is we would need a strong reason to add such a feature with poor user experience characteristics, IMHO.</s></ul></li></ul><li><s>a seperate issue is should we be using barbican for password storage.</s></li><li><strong>AGREED:</strong><ul class="bullet"><li>might be a solution to move the session key from the query string to the header and then the existing ssl support hides the key<ul class="bullet"><li>Query string is already encrypted in SSL (host isn&#x27;t for SNI, but query string is), no need to change anything.</ul><li>If the spec is reproposed then we will request new investigations about alternative solutions. (Stephen has ideas)</ul></li></ul><br><s>(stephenfin) Should we deprecate AggregateImagePropertiesIsolation, AggregateInstanceExtraSpecsFilter</s><br><ul class="bullet"><li><s>These match on image metadata and flavor extra specs respectively. However, they&#x27;re not necessary since Rocky, when we added &#x27;[scheduler] enable_isolated_aggregate_filtering&#x27;</s></li><li><s>The image property version also has bugs that make it almost useless </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;783396" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;783396</s></a></li><li><s>We probably _shouldn&#x27;t_ remove for a long time, if ever, since doing so would break move operations? It&#x27;s a good signal to avoid the filter though</s></li><li><strong>AGREED</strong>:<ul class="bullet"><li>Deprecate in X</li><li>Don&#x27;t remove the filter. </li><li>Remove the config options.</ul></li></ul><br><s>(stephenfin) Should we deprecate ImagePropertiesFilter</s><br><ul class="bullet"><li><s>This checks three attributes: hw_architecture, img_hv_type, hw_vm_mode (only hw_architecture really makes much sense nowadays, and even then...)</s></li><li><s>This has effectively been replaced by our reporting of compute capabilities as traits and removals of certain features</s></li><li><strong>AGREED:</strong><ul class="bullet"><li>Deprecate it in X.</li><li>Sean ports this to placement prefilter, as part of a generic effort to move filters to prefilters. There will be a generic spec.</li><li>Upgrading from the embeded image property case to the trait<ul class="bullet"><li>generic nova-manage CLI to update the embeded flavor </ul></li></ul></li></ul><br><s>(brinzhang) Re-propose Cyborg suspend&#x2F;resume support in Xena release</s><br><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;blueprints&#x2e;launchpad&#x2e;net&#x2F;nova&#x2F;&#x2b;spec&#x2F;cyborg&#x2d;suspend&#x2d;and&#x2d;resume" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;blueprints.launchpad.net&#x2F;nova&#x2F;+spec&#x2F;cyborg-suspend-and-resume</s></a></li><li>Clean repropose. It is OK to continue.</ul><br><s>(gibi) Allow re-parenting and un-parenting resource providers via the Placement API</s><br><ul class="bullet"><li><s>Story: </s><a href="https&#x3a;&#x2F;&#x2F;storyboard&#x2e;openstack&#x2e;org&#x2F;&#x23;" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;storyboard.openstack.org&#x2F;#</s></a><s>!&#x2F;story&#x2F;2008764 </s></li><li><s>Impl: </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;q&#x2F;topic&#x3a;support&#x2d;re&#x2d;parenting&#x2d;providers" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;q&#x2F;topic:support-re-parenting-providers</s></a></li><li><s>User of this new feature </s><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;neutron&#x2d;lib&#x2F;&#x2b;&#x2F;785337" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;neutron-lib&#x2F;+&#x2F;785337</s></a></li><li><s>when used with careful fortought i think this is a very useful feature  that avoid a much more compliated operation to achive the same effect.</s><ul class="bullet"><li><s>creating a second rp in teh correct location with a different name and uuid and doing reshapes of the allocations (gibi): agree that this is a) overkill  b) cannot be done in a single transaction</s></ul><li><strong>AGREED</strong>:<ul class="bullet"><li>spec it up, in the nova repo</li><li>propose a PUT query parameter like allow_reparenting</li><li>look at it if we can do this with a PATCH </ul></li></ul><br><br><s>(lyarwood): [libvirt] Deprecating support for the pc machine type and defaulting to the q35 machine type</s><br><ul class="bullet"><li><s>We landed coverage of q35 in W within the nova-next job</s></li><li><s>We also landed tooling to allow operators of existing envs to move from pc to q35 in W</s></li><li><s>Lets go ahead and change the in-code defaults over to q35 during the Xena cycle</s><ul class="bullet"><li><s>i would like to do this in xena but Y might be more realistic, perhaps we should convert most of our ci jobs to be Q35 based and if that looks good then ya move it in code too</s></li><li><s>(kashyap) I think we can wait a cycle more?  I&#x27;m not sure we&#x27;ve given enough heads-up to the Operators</s></ul><li><s>We should also land tooling to help operators move existing instances from pc to q35, this includes:</s><ul class="bullet"><li><s>Switching any IDE disks over to SATA</s><ul class="bullet"><li><s>$ nova-manage libvirt update-disk-bus $disk $bus ?</s></li><li><s>$ nova-manage image-meta update hw_disk_bus sata</s></ul><li><s>we proably would want to look at changing other default like cirros video model to vga or virtio its not required for the q35 change but advised.</s></li><li><s>virtio-blk vs virtio-scsi as a default.(proably wont cahnge this since each has its advanatge but just listing it for completenetss)</s><ul class="bullet"><li><s>(kashyap) I don&#x27;t think we should touch this, as both are valid in different scenarios</s><ul class="bullet"><li><em><s>&#x27;virtio-blk&#x27;&#x27;</s></em><s> for  performance-sensitive workloads; while <em>&#x27;virtio-scsi&#x27; </em>for multiple disks (>20) and other use-cases</s></ul></li></ul><li><s>???</s></ul><li><s>(belmoreira) Changing the default is fine if the old "pc" continues to be supported for several cycles</s><ul class="bullet"><li><s>Currently we are introducing q35 and UEFI with new OS versions (centos 8 stream). Meaning that if the user creates a new instance with a recent OS he will get the new "chipset".</s></li><li><s>However, we don&#x27;t plan to change it for running instances or change the behaviour of existing images. Users expect predictability.</s><ul class="bullet"><li><s>(lyarwood): Yup agreed and understood, there is however a growing push by QEMU to eventually drop the pc machine type entirely . While it&#x27;s available in the MIN_QEMU_VERSION the libvirt driver within Nova will continue to support it.</s><ul class="bullet"><li><s>(kashyap) Note, though: *upstream* QEMU itself will keep the &#x27;pc&#x27; — there is no real consensus that it will be removed.  There were several discussions over the last three years, but no clear conlusions</s></ul></li></ul></li></ul><li><strong>AGREED:</strong><ul class="bullet"><li>warning operatos using "pc" in Xena (maybe an upgrade check too)</li><li>switch the default machine_type to q35 in Y</li><li>persist all guest details requested implicitly or explicitly in the DB<ul class="bullet"><li>this is a requirement if we want to allow users to change existing pet VMs in the future, so yes - need to evaluate what these are<ul class="bullet"><li>disk buses</li><li>vNIC types</li><li>graphics device</li><li>(basically any hw_{prop} image metadata property</ul></li></ul></li></ul></li></ul><br><ul class="bullet"><li><s>(lyarwood): [libvirt] Attaching manilla shares to instances via VirtIOFS</s><ul class="bullet"><li><s>Discussed below:</s><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;etherpad&#x2e;opendev&#x2e;org&#x2F;p&#x2F;nova&#x2d;manila&#x2d;virtio&#x2d;fs&#x2d;support&#x2d;xptg&#x2d;april&#x2d;2021" rel="noreferrer noopener"><s>https:&#x2F;&#x2F;etherpad.opendev.org&#x2F;p&#x2F;nova-manila-virtio-fs-support-xptg-april-2021</s></a></li><li><s>Current plan is to have a WIP spec and PoC written during Xena using NFS as a backend for both boot with an attached share and later live attach and detach a share.</s></li><li><s>Will include a new attach share Nova API, ShareMapping objects and os-share lib used to mount the underlying share on the compute (will also replace some basic logic carried on Nova for RemoteFs based volume</s>s).</ul><li><strong>AGREED</strong>:<ul class="bullet"><li>Lee to draft a spec. It is not expected to be fully implemented it in X.</ul></li></ul></li></ul><br><s>(artom) Optimizing how we place guest CPU cores on host CPU cores - spiritual continuation of the `socket` pci_numa_affinity_policy</s><br><ul class="bullet"><li><strong>AGREED:</strong><ul class="bullet"><li>do it</li><li>document the algorithm but do not make it contractual</ul></li></ul><br><s>(suzhengwei): Support vm evacuation while server status is suspended, paused,  or shelved.</s><br><ul class="bullet"><li><s>When nova-compute down, It only supports vm evacuation while server status is active&#x2F;stopped&#x2F;error. Why not support suspended, paused,  or shelved status?</s></li><li><s>shelved im not sure makes sense, perhspas shelve specifcally shelve_offloaded does not benifit form evaucate.</s></li><li><s>nova evacuate --target-state=stopped&#x2F;shelved-offloaded? requires a new micorverion if this is added</s><ul class="bullet"><li><s>yes i was thinking it was a set of valid targets so stoppted, active shelve offloaded is slightly different in that its not on a host at the end.</s></ul><li><s>Note: massacari instanance HA expects running instance to be made running again</s></li><li><strong>AGREED</strong>:<ul class="bullet"><li>Spec it up.<ul class="bullet"><li>Agree what will be the state of the instance on the dest node. E.g today it would be ACTIVE (due to rebuild on the dest), but for a shelved instance that sounds a bad status transition (due to billing).<ul class="bullet"><li>Shelved -> Shelved or Shelved_offloaded ?</li><li>Paused -> Stopped</li><li>Suspended -> Stopped</ul><li>needs a microversion</ul></li></ul></li></ul><br>(dmitriis): Transport Node bp&#x2F;spec RFC<br><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2d;specs&#x2F;&#x2b;&#x2F;787458" rel="noreferrer noopener">https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova-specs&#x2F;+&#x2F;787458</a></li><li><a href="https&#x3a;&#x2F;&#x2F;blueprints&#x2e;launchpad&#x2e;net&#x2F;nova&#x2F;&#x2b;spec&#x2F;introduce&#x2d;transport&#x2d;nodes" rel="noreferrer noopener">https:&#x2F;&#x2F;blueprints.launchpad.net&#x2F;nova&#x2F;+spec&#x2F;introduce-transport-nodes</a></li><li>aims to address hostname mismatches introduced by off-path SmartNIC&#x2F;DPUs while reusing the code-paths used for the hardware offload functionality (<a href="https&#x3a;&#x2F;&#x2F;docs&#x2e;openstack&#x2e;org&#x2F;neutron&#x2F;latest&#x2F;admin&#x2F;config&#x2d;ovs&#x2d;offload&#x2e;html&#x29;" rel="noreferrer noopener">https:&#x2F;&#x2F;docs.openstack.org&#x2F;neutron&#x2F;latest&#x2F;admin&#x2F;config-ovs-offload.html)</a>;</li><li>need some coordination around the plans above to move pci device tracking into to the Placement service.</li><li>(sean-k-mooney): we spoke about this at some lenthgh on the nova irc channel today.<ul class="bullet"><li><a href="http&#x3a;&#x2F;&#x2F;eavesdrop&#x2e;openstack&#x2e;org&#x2F;irclogs&#x2F;&#x25;23openstack&#x2d;nova&#x2F;latest&#x2e;log&#x2e;html&#x23;t2021&#x2d;04&#x2d;22T11&#x3a;40&#x3a;10" rel="noreferrer noopener">http:&#x2F;&#x2F;eavesdrop.openstack.org&#x2F;irclogs&#x2F;%23openstack-nova&#x2F;latest.log.html#t2021-04-22T11:40:10</a></li><li>there is a lot to digest but my summary of the topic is as follows.<ul class="bullet"><li>vendors would like to move the contol plane for hardware offloaded ovs backend form the host to the smartnic to save cpu cycle and create a security boundary between a hypervisor and a NIC</li><li>these smart nics will run linux, ovs and the contol plane software (<s>ovn southd</s> ovn-controller or neutron agents)</li><li>since the contol plane is runing on a smartnic under linux the hostname of the server where the vm is and the hostname seen by the ovs contoler porcesses will be differnt</li><li>as the smartnic will be manage by 2 differnet operating systems (host and smartnic) and since the VFs may or may not existss on both and may have differnt adress if they do we need some way to corralate the VF selected by nova with the identifyer used in ovn&#x2F;neutron to manage it in ovs. (more specifically, there needs to be a way for Neutron & OVN to pick a representor port corresponding to a VF selected by Nova at the hypervisor host)</ul><li>the spec makes a number of propalse for how to do this, i have not really read it fully to sumerise the spec but it invovled adding db tabels to nova to track the device corralation info and modifcation to placmenet to model the device in a way that could be used for both scudleing and sotring the info we need.</li><li>i have a counter propasl which is also not fully tought out but at a high level it is this.<ul class="bullet"><li>no db schem change</li><li>add the extra identifies required to do the corralation to the extra_info column fo the pci_devices table<ul class="bullet"><li>logical vf number</li><li>logical switch id (if available, an eswitch is not exposed to hypervisor host PFs)<ul class="bullet"><li>note(dmitriis): Checked that it is not possible to get a switch id from the hypervisor side as the eswitch is not exposed to PFs seen by the hypervisor <a href="http&#x3a;&#x2F;&#x2F;paste&#x2e;openstack&#x2e;org&#x2F;show&#x2F;804745&#x2F;" rel="noreferrer noopener">http:&#x2F;&#x2F;paste.openstack.org&#x2F;show&#x2F;804745&#x2F;</a>. This is also apparent from <a href="https&#x3a;&#x2F;&#x2F;www&#x2e;kernel&#x2e;org&#x2F;doc&#x2F;html&#x2F;latest&#x2F;networking&#x2F;devlink&#x2F;devlink&#x2d;port&#x2e;html&#x23;pci&#x2d;controllers" rel="noreferrer noopener">https:&#x2F;&#x2F;www.kernel.org&#x2F;doc&#x2F;html&#x2F;latest&#x2F;networking&#x2F;devlink&#x2F;devlink-port.html#pci-controllers</a></ul><li>pci vpd serial number</ul><li>add this addtional info to the binding profile so that the neutron backend can consume it</li><li>extend the ovn ml2 driver to lookup the chasis that manages the device unsing the new info</li><li>extend the ovn ml2 driver to pass the tcp connection info to the ovs db for that chassis in the port binding details.</li><li>extend os-vif object to store that connection string and extend the ovs plugin to use it instead of the nova config value when present.<ul class="bullet"><li>note(dmitriis): Relying on Nova&#x27;s use of os-vif to also do representor plugging is problematic because it does not have visibility of things seen at the SmartNIC host (see this portion of code that expects representors and VFs to be visible via sysfs on the same host <a href="https&#x3a;&#x2F;&#x2F;opendev&#x2e;org&#x2F;openstack&#x2F;os&#x2d;vif&#x2F;src&#x2F;tag&#x2F;2&#x2e;4&#x2e;0&#x2F;vif&#x5f;plug&#x5f;ovs&#x2F;linux&#x5f;net&#x2e;py&#x23;L236&#x2d;L296&#x29;" rel="noreferrer noopener">https:&#x2F;&#x2F;opendev.org&#x2F;openstack&#x2F;os-vif&#x2F;src&#x2F;tag&#x2F;2.4.0&#x2F;vif_plug_ovs&#x2F;linux_net.py#L236-L296)</a>. I would instead let Nova do plugging of a VF into an instance and let OVN handle representor plugging (besides with flow programming). WIP work to add that to OVN: <a href="https&#x3a;&#x2F;&#x2F;github&#x2e;com&#x2F;fnordahl&#x2F;ovn&#x2F;commit&#x2F;569709dcec423b7685b7fb42b1fcba3ab2402873" rel="noreferrer noopener">https:&#x2F;&#x2F;github.com&#x2F;fnordahl&#x2F;ovn&#x2F;commit&#x2F;569709dcec423b7685b7fb42b1fcba3ab2402873</a></li><li>note(dmitriis): Another problem is that by storing a connection string we imply that the hypervisor host needs to be able to have IP connectivity to the SmartNIC host and have credentials to access the remote OVS. This goes against keeping a security boundary between the hypervisor and the SmartNIC.</ul><li>extend nova to populate the os-vif object with the info form the port binding details.</ul><li>(sean-k-mooney)i thinks the above would work but there may be gaps</li><li>seperatly form this we can also track pci device in placment without needing to consider what network backend is in use and if the netwrok contol plane is on the same host as nova-compute on a smart nic.</ul><li><strong>AGREED</strong>:<ul class="bullet"><li>continues the spec review </ul></li></ul><br>(sean-k-mooney): performance impact of security groups in server detail responce.<br><ul class="bullet"><li><a href="https&#x3a;&#x2F;&#x2F;bugs&#x2e;launchpad&#x2e;net&#x2F;nova&#x2F;&#x2b;bug&#x2F;1923560" rel="noreferrer noopener">https:&#x2F;&#x2F;bugs.launchpad.net&#x2F;nova&#x2F;+bug&#x2F;1923560</a></li><li>today we include the list of security groups  in the server detail responce.</li><li>this made sense when nova had its own security groups for nova networks.</li><li>i think we shoudl reavalueate the existings fo security groups in all nova api and remove them.</li><li>if people want the security groups they can look them up from neutron driectly instead of using nova as a proxy api.</li><li>alternitivly we could cache them in the network info cache but that is changing the responceof the server deatil to be a cached responce and not the current state.</li><li>proposal:<ul class="bullet"><li>deprecate add and remvoe secuirty group apis.</li><li>remove security group from server detail responce in a new microverions.</li><li>remove os-security-groups api (it was deprecated in 2.36 now that nova-net is gone i think we should remove it)</li><li>remove os-security-group-rules api (also deprecated in 2.36)</ul><li>alternitive approch<ul class="bullet"><li>cache then securtiy group info in network info cache</li><li><a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;&#x2b;&#x2F;786348&#x2F;1" rel="noreferrer noopener">https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova&#x2F;+&#x2F;786348&#x2F;1</a></li><li></ul><li>open questions<ul class="bullet"><li>shoudl we keep security_groups in server create<ul class="bullet"><li>it is ment to set the security group used for all port created by nova when we pass a network.</li><li>im not sure if it actully does i rembere there was some confustion on that fact and if it only ever worked that way for nova-net.</li><li>we know that this does not apply to pre created ports that are passed on the command line which is also a source of confution to some.</li><li>(stephenfin) I looked at doing this in the past but amotoki told me it still works, apparently</ul></li></ul><li><strong>AGREED</strong>:<ul class="bullet"><li>remove the security group from the GET servers&#x2F;details (PUT, Rebuild API response also) in a new microversion</li><li>use the network info cache to speed up the query on old microversion</li><li>note in the reno that now it is a cached data now</li><li>double check for any other proxy we do during server details +1</ul></li></ul><br><br>(sean-k-mooney): deprecate flavor based qos and add qos api?<br><ul class="bullet"><li>Note proably wont do this in xena but want to start the converstation around deprecating the network tunings.</li><li>Nova currently support a number of qos style flavor extra specs for turning cpu,disk,ram and network parmaters (<a href="https&#x3a;&#x2F;&#x2F;docs&#x2e;openstack&#x2e;org&#x2F;nova&#x2F;latest&#x2F;user&#x2F;flavors&#x2e;html&#x23;extra&#x2d;specs&#x29;" rel="noreferrer noopener">https:&#x2F;&#x2F;docs.openstack.org&#x2F;nova&#x2F;latest&#x2F;user&#x2F;flavors.html#extra-specs)</a><ul class="bullet"><li>see cpu limits, memory limits, disk tuning and bandwith io sections.</ul><li>some of these have been superceeded by QOS in other project in some or all cases (network qos should be done with neutron,  disk qos can be done for cinder volumnes in cinder).</li><li>other parmaters  cannot be specified in any other way then then the flavor( disk qos for local block devices, memory and cpu tuning). <ul class="bullet"><li>should we deprecate and remove the network qos entirely now that nova net is gone?<ul class="bullet"><li>note these were implemente by libvirt directly using TC rules in the kerenel</li><li>this obviouly only works if the neutron network backend use standard kernel interfaces (e.g. does not work for dpdk or sriov VFs)</li><li>it also onely works if the tap device is not directly added to ovs. ovs with iptables firewall works fien  but ovn, odl and ovs with ovs firewall or noop firewall wont work.</li><li>that means this only works with linux bridge ro ovs with iptables firewall.</ul><li>shoudl we deprecate and remove disk tuning in faovr of cinder qos? this creates a gap for local disks.</li><li>for others should we deprecate and remove the memory and cpu limits since thye are not widely supported outside of the vmware dirver?</ul><li>if we modeled QOS policies as a top level resouce in the nova api they could still be defiend by admins and selected by tenants.</li><li>we could support seting a default QOS policy in the flavor which could be overriden by the user.  e.g. qos:default_policy=<silver></li><li>we could also support a required QOS policy that cannot be overriden e.g. qos:required_policy</li><li>openquestions:<ul class="bullet"><li>can we remove the networking QOS parmater without provideing any repecement? Maybe?</li><li>can we do the same for disk? maybe not since it would be a feature regressions.</li><li>do w care to provide QOS apis if they are rarely used or if the exsitng flavor version works?</li><li>if we did this should qos policies be imutable once created or mutable.<ul class="bullet"><li>imutable: <ul class="bullet"><li>policies on exsiting vms would be altered only be selecting another policy</li><li>this could hard reboot or live update the vm to have it apply imendiatly.</ul><li>mutable:<ul class="bullet"><li>we could create an embeded copy of the policy like we do with flavors and images so that policy updates are only applied on an api action</li><li>we could not create a copy so that policy updates take effect on the next hard reboot.</ul></li></ul></li></ul><li>(brinzhang)This seems to be similar to our idea of integrating flavor_extra_specs in the Ussuri version, <a href="https&#x3a;&#x2F;&#x2F;review&#x2e;opendev&#x2e;org&#x2F;c&#x2F;openstack&#x2F;nova&#x2d;specs&#x2F;&#x2b;&#x2F;663563&#x2F;14&#x2F;specs&#x2F;ussuri&#x2F;approved&#x2F;composable&#x2d;flavor&#x2d;properties&#x2e;rst" rel="noreferrer noopener">https:&#x2F;&#x2F;review.opendev.org&#x2F;c&#x2F;openstack&#x2F;nova-specs&#x2F;+&#x2F;663563&#x2F;14&#x2F;specs&#x2F;ussuri&#x2F;approved&#x2F;composable-flavor-properties.rst</a></li><li>not really its not ment to enable composablity of arbitary extra specs. most other service that have qos treat it as a spereate top level api. </li><li><strong>AGREED</strong>:<ul class="bullet"><li>keep it for vmware driver</li><li>deprecated in the docs for libvirt driver</ul></li></ul><br><add your topics here> <br><br>
</body>
</html>