<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/nova.git/nova/objects/virtual_interface.py, branch 23.2.2</title>
<subtitle>opendev.org: openstack/nova.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/'/>
<entry>
<title>Populate InstanceMapping.user_id during migrations and schedules</title>
<updated>2019-03-09T00:01:25+00:00</updated>
<author>
<name>melanie witt</name>
<email>melwittt@gmail.com</email>
</author>
<published>2019-02-21T19:17:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=a7de4917a0c66a1e1f98e5c7852eeb8b060e69c1'/>
<id>a7de4917a0c66a1e1f98e5c7852eeb8b060e69c1</id>
<content type='text'>
The InstanceMapping user_id field is a new, non-nullable field
representing the user_id for the instance.

When new instance create requests come in, we create the instance
mapping. We will set user_id here before creating the record.

Some virtual interface online data migration and map_instances routine
create InstanceMapping records and since the user_id field did not
previously exist, they were not setting it. We will populate user_id in
these cases.

Finally, whenever an API does a compute_api.get(), we can
opportunistically set and save user_id on the instance mapping if it is
not set.

Part of blueprint count-quota-usage-from-placement

Change-Id: Ic4bb7b49b90a3d6d7ce6c6c62d87836f96309f06
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The InstanceMapping user_id field is a new, non-nullable field
representing the user_id for the instance.

When new instance create requests come in, we create the instance
mapping. We will set user_id here before creating the record.

Some virtual interface online data migration and map_instances routine
create InstanceMapping records and since the user_id field did not
previously exist, they were not setting it. We will populate user_id in
these cases.

Finally, whenever an API does a compute_api.get(), we can
opportunistically set and save user_id on the instance mapping if it is
not set.

Part of blueprint count-quota-usage-from-placement

Change-Id: Ic4bb7b49b90a3d6d7ce6c6c62d87836f96309f06
</pre>
</div>
</content>
</entry>
<entry>
<title>Add fill_virtual_interface_list online_data_migration script</title>
<updated>2019-01-30T10:03:19+00:00</updated>
<author>
<name>Maciej Jozefczyk</name>
<email>maciej.jozefczyk@corp.ovh.com</email>
</author>
<published>2018-10-30T09:58:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=3534471c578eda6236e79f43153788c4725a5634'/>
<id>3534471c578eda6236e79f43153788c4725a5634</id>
<content type='text'>
In change [1] we modified _heal_instance_info_cache periodic task
to use Neutron point of view while rebuilding InstanceInfoCache
objects.
The crucial point was how we know the previous order of ports, if
the cache was broken. We decided to use VirtualInterfaceList objects
as source of port order.
For instances older than Newton VirtualInterface objects doesn't
exist, so we need to introduce a way of creating it.
This script should be executed while upgrading to Stein release.

[1] https://review.openstack.org/#/c/591607

Change-Id: Ic26d4ce3d071691a621d3c925dc5cd436b2005f1
Related-Bug: 1751923
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In change [1] we modified _heal_instance_info_cache periodic task
to use Neutron point of view while rebuilding InstanceInfoCache
objects.
The crucial point was how we know the previous order of ports, if
the cache was broken. We decided to use VirtualInterfaceList objects
as source of port order.
For instances older than Newton VirtualInterface objects doesn't
exist, so we need to introduce a way of creating it.
This script should be executed while upgrading to Stein release.

[1] https://review.openstack.org/#/c/591607

Change-Id: Ic26d4ce3d071691a621d3c925dc5cd436b2005f1
Related-Bug: 1751923
</pre>
</div>
</content>
</entry>
<entry>
<title>Use nova.db.api directly</title>
<updated>2018-07-10T14:56:27+00:00</updated>
<author>
<name>Chris Dent</name>
<email>cdent@anticdent.org</email>
</author>
<published>2018-02-11T21:58:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=def4b17934a3b2cf783d0177d6a9632916dfd10f'/>
<id>def4b17934a3b2cf783d0177d6a9632916dfd10f</id>
<content type='text'>
nova/db/__init__.py was importing * from nova.db.api. This meant that
any time any code anywhere within the nova.db package was imported
then nova.db.api was too, leading to a cascade of imports that may
not have been desired. Also, in general, code in __init__.py is a pain.

Therefore, this change adjusts code that so that either:

* nova.db.api is used directly
* nova.db.api is imported as 'db'

In either case, the functionality remains the same.

The primary goal of this change was to make it possible to import the
model files without having to import the db api. Moving the model files
to a different place in the directory hierarchy was considered, but
given that "code in __init__.py is a pain" this mode was chosen.

This looks like a very large change, but it is essentially adjusting
package names, many in mocks.

Change-Id: Ic1fd7c87ceda05eeb96735da2a415ef37060bb1a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nova/db/__init__.py was importing * from nova.db.api. This meant that
any time any code anywhere within the nova.db package was imported
then nova.db.api was too, leading to a cascade of imports that may
not have been desired. Also, in general, code in __init__.py is a pain.

Therefore, this change adjusts code that so that either:

* nova.db.api is used directly
* nova.db.api is imported as 'db'

In either case, the functionality remains the same.

The primary goal of this change was to make it possible to import the
model files without having to import the db api. Moving the model files
to a different place in the directory hierarchy was considered, but
given that "code in __init__.py is a pain" this mode was chosen.

This looks like a very large change, but it is essentially adjusting
package names, many in mocks.

Change-Id: Ic1fd7c87ceda05eeb96735da2a415ef37060bb1a
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "trivial: comment about vif object address field"</title>
<updated>2016-07-13T19:24:58+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-07-13T19:24:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=8e035655d276917f0044fd35a0af534f94a097c7'/>
<id>8e035655d276917f0044fd35a0af534f94a097c7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add VirtualInterface.destroy()</title>
<updated>2016-07-12T21:53:48+00:00</updated>
<author>
<name>Dan Smith</name>
<email>dansmith@redhat.com</email>
</author>
<published>2016-07-12T21:39:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=ae9c58792c7a34f129794fa3f1928199bb859b70'/>
<id>ae9c58792c7a34f129794fa3f1928199bb859b70</id>
<content type='text'>
This adds a destroy() method for VirtualInterface which has not been
required before but is now.

Change-Id: Ie00f52153a816049f8efcc9aa8071371ce0b7e5a
Related-Bug: #1602357
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a destroy() method for VirtualInterface which has not been
required before but is now.

Change-Id: Ie00f52153a816049f8efcc9aa8071371ce0b7e5a
Related-Bug: #1602357
</pre>
</div>
</content>
</entry>
<entry>
<title>Make VIF.address unique with port id for neutron</title>
<updated>2016-06-30T19:06:47+00:00</updated>
<author>
<name>Dan Smith</name>
<email>dansmith@redhat.com</email>
</author>
<published>2016-06-30T14:58:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=a739ca9e36c578662814667eedc211def089a2d9'/>
<id>a739ca9e36c578662814667eedc211def089a2d9</id>
<content type='text'>
Neutron does not require global uniqueness for MAC addresses, but
nova-network did. Since VirtualInterface was designed for n-net and
is still used to enforce its requirements for such uniqueness, we can
simply use the extra space in the address field to namespace our
MAC address in neutron to avoid the constraint. We can hide this
behavior in the object so nothing else needs to know, and we have
255 characters in the field, which is enough for a uuid and a mac
address to fit.

Closes-Bug: #1597770
Change-Id: I23480d98ca339c119100e8ab7df633ed8b80b1e9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Neutron does not require global uniqueness for MAC addresses, but
nova-network did. Since VirtualInterface was designed for n-net and
is still used to enforce its requirements for such uniqueness, we can
simply use the extra space in the address field to namespace our
MAC address in neutron to avoid the constraint. We can hide this
behavior in the object so nothing else needs to know, and we have
255 characters in the field, which is enough for a uuid and a mac
address to fit.

Closes-Bug: #1597770
Change-Id: I23480d98ca339c119100e8ab7df633ed8b80b1e9
</pre>
</div>
</content>
</entry>
<entry>
<title>trivial: comment about vif object address field</title>
<updated>2016-06-29T21:57:10+00:00</updated>
<author>
<name>Matt Riedemann</name>
<email>mriedem@us.ibm.com</email>
</author>
<published>2016-06-29T21:57:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=101def2e99989cb6da5ba711ad8f07a7346560e5'/>
<id>101def2e99989cb6da5ba711ad8f07a7346560e5</id>
<content type='text'>
I always have to check if the VirtualInterface.address
field is an IP or a MAC address, so add a comment about
what it is.

Change-Id: I2fd31f2bcc00a0bba15b625c2d97f7d50e40e929
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I always have to check if the VirtualInterface.address
field is an IP or a MAC address, so add a comment about
what it is.

Change-Id: I2fd31f2bcc00a0bba15b625c2d97f7d50e40e929
</pre>
</div>
</content>
</entry>
<entry>
<title>objects: adding an update method to virtual_interface</title>
<updated>2016-06-23T22:17:45+00:00</updated>
<author>
<name>Vladik Romanovsky</name>
<email>vromanso@redhat.com</email>
</author>
<published>2016-04-27T14:28:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=6b989dba225997bfd5bc17d2a4175085ea810e4e'/>
<id>6b989dba225997bfd5bc17d2a4175085ea810e4e</id>
<content type='text'>
Adding a save method to the virtual_interface object
and an update method to its database model.

Partially implements blueprint virt-device-role-tagging
Co-authored-by: Artom Lifshitz &lt;alifshit@redhat.com&gt;
Change-Id: I52673fc297cb578995be5c7a075c5693b0793bf5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding a save method to the virtual_interface object
and an update method to its database model.

Partially implements blueprint virt-device-role-tagging
Co-authored-by: Artom Lifshitz &lt;alifshit@redhat.com&gt;
Change-Id: I52673fc297cb578995be5c7a075c5693b0793bf5
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tag column to vifs and bdm</title>
<updated>2016-04-01T15:46:54+00:00</updated>
<author>
<name>Artom Lifshitz</name>
<email>alifshit@redhat.com</email>
</author>
<published>2016-01-05T22:57:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=9ba07fdf9feb5881a4b050f23066573f5d8753c8'/>
<id>9ba07fdf9feb5881a4b050f23066573f5d8753c8</id>
<content type='text'>
This patch series adds the ability for a user to specify a tag to be
applied to a network interface or a disk when booting an instance.
This tag is then exposed through the metadata API. For example, a user
boots a VM with two network interfaces. One is connected to a private
network, the other to the public Internet. There is currently no
direct way to tell which interface is which. Specifying tags allows
the user to distinguish between the two interfaces.

This patch contains the database migration to add a 'tag' column to
the virtual_interfaces and block_device_mapping tables as well as the
corresponding change to the VirtualInterface and BlockDeviceMapping
objects.

Implements: blueprint virt-device-role-tagging
Co-authored-by: Vladik Romanovsky &lt;vromanso@redhat.com&gt;
Change-Id: Ic8be3de4e970116772f9b6ce01c55e26b829e6cb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch series adds the ability for a user to specify a tag to be
applied to a network interface or a disk when booting an instance.
This tag is then exposed through the metadata API. For example, a user
boots a VM with two network interfaces. One is connected to a private
network, the other to the public Internet. There is currently no
direct way to tell which interface is which. Specifying tags allows
the user to distinguish between the two interfaces.

This patch contains the database migration to add a 'tag' column to
the virtual_interfaces and block_device_mapping tables as well as the
corresponding change to the VirtualInterface and BlockDeviceMapping
objects.

Implements: blueprint virt-device-role-tagging
Co-authored-by: Vladik Romanovsky &lt;vromanso@redhat.com&gt;
Change-Id: Ic8be3de4e970116772f9b6ce01c55e26b829e6cb
</pre>
</div>
</content>
</entry>
<entry>
<title>enginefacade: 'vif' and 'task_log'</title>
<updated>2015-12-18T15:45:48+00:00</updated>
<author>
<name>Pavel Kholkin</name>
<email>pkholkin@mirantis.com</email>
</author>
<published>2015-12-18T12:48:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=1ac60f9e11a7d46e780317fe8366ca4d006c689a'/>
<id>1ac60f9e11a7d46e780317fe8366ca4d006c689a</id>
<content type='text'>
Use enginefacade in 'vif' and 'task_log' sections.

Implements: blueprint new-oslodb-enginefacade

Co-Authored-By: Sergey Nikitin &lt;snikitin@mirantis.com&gt;

Change-Id: I377e2b22eea0cc18d3727e8fb6e869d48c3608bc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use enginefacade in 'vif' and 'task_log' sections.

Implements: blueprint new-oslodb-enginefacade

Co-Authored-By: Sergey Nikitin &lt;snikitin@mirantis.com&gt;

Change-Id: I377e2b22eea0cc18d3727e8fb6e869d48c3608bc
</pre>
</div>
</content>
</entry>
</feed>
