<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/nova.git/nova/objects/instance_info_cache.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>Remove 'instance_info_cache_update_at_top'</title>
<updated>2019-04-29T16:55:41+00:00</updated>
<author>
<name>Stephen Finucane</name>
<email>sfinucan@redhat.com</email>
</author>
<published>2019-04-04T15:40:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=e3a8188e21b409f1720fd2a9b40a66c51571b210'/>
<id>e3a8188e21b409f1720fd2a9b40a66c51571b210</id>
<content type='text'>
This was being called within the 'InstanceInfoCache' object. Remove it
in its entirety, given that nothing should be calling it now.

An 'update_cells' argument is removed from a number of functions as
these all resulted in a call to the cells v1 RPC API, a call that is now
removed.

Part of blueprint remove-cells-v1

Change-Id: Ia8da8cd040d104d745bd7adf20438b8eec558680
Signed-off-by: Stephen Finucane &lt;sfinucan@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was being called within the 'InstanceInfoCache' object. Remove it
in its entirety, given that nothing should be calling it now.

An 'update_cells' argument is removed from a number of functions as
these all resulted in a call to the cells v1 RPC API, a call that is now
removed.

Part of blueprint remove-cells-v1

Change-Id: Ia8da8cd040d104d745bd7adf20438b8eec558680
Signed-off-by: Stephen Finucane &lt;sfinucan@redhat.com&gt;
</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>Remove translation of log messages</title>
<updated>2017-06-21T06:01:19+00:00</updated>
<author>
<name>Ngo Quoc Cuong</name>
<email>cuongnq@vn.fujitsu.com</email>
</author>
<published>2017-05-23T01:06:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=5a769f2a01d67f516c291e7900a5c257063bdfbe'/>
<id>5a769f2a01d67f516c291e7900a5c257063bdfbe</id>
<content type='text'>
The i18n team has decided not to translate the logs because it
seems like it not very useful; operators prefer to have them in
English so that they can search for those strings on the internet.

Partially fix on nova/keymgr, nova/network, nova/notifications,
nova/objects and nova/pci other paths will be fixed on next commits

Change-Id: Ie3a83fef0dc689b9d37ac43e047ce5d48f567adc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The i18n team has decided not to translate the logs because it
seems like it not very useful; operators prefer to have them in
English so that they can search for those strings on the internet.

Partially fix on nova/keymgr, nova/network, nova/notifications,
nova/objects and nova/pci other paths will be fixed on next commits

Change-Id: Ie3a83fef0dc689b9d37ac43e047ce5d48f567adc
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove DictCompat from instance_info_cache</title>
<updated>2016-06-13T18:31:45+00:00</updated>
<author>
<name>Gage Hugo</name>
<email>gagehugo@gmail.com</email>
</author>
<published>2016-05-23T19:07:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=a586083a096cdff4015852b447bbde3f678685c9'/>
<id>a586083a096cdff4015852b447bbde3f678685c9</id>
<content type='text'>
This changes over all occurrences of dictionary syntax on the
instance_info_cache object to use object syntax.

Change-Id: I87f4acf99a6fa8061e08f8a941f8f0c60e26c51f
Partially-Implements: bp rm-object-dict-compat-newton
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This changes over all occurrences of dictionary syntax on the
instance_info_cache object to use object syntax.

Change-Id: I87f4acf99a6fa8061e08f8a941f8f0c60e26c51f
Partially-Implements: bp rm-object-dict-compat-newton
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Send Instance object to cells instance_update_at_top"</title>
<updated>2015-06-12T01:33:13+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-06-12T01:33:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=bf7e5873c5386c4b270ed9543ef6a5f578e1b3d7'/>
<id>bf7e5873c5386c4b270ed9543ef6a5f578e1b3d7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Send Instance object to cells instance_update_at_top</title>
<updated>2015-06-10T21:48:57+00:00</updated>
<author>
<name>melanie witt</name>
<email>melwitt@yahoo-inc.com</email>
</author>
<published>2015-03-11T03:28:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=eaaa659333c7586a71155c065dfb0f7b7e3758fc'/>
<id>eaaa659333c7586a71155c065dfb0f7b7e3758fc</id>
<content type='text'>
Currently, a primitivized object is sent to sync to the API cell
in Instance.save because instance_update_at_top has not yet been
converted to handle objects. This change does the conversion and
makes Instance.save send an object for the sync.

This change should also address a race where deleting an instance
can result in an "undeleted" instance if an update from a child
occurs after the instance has been destroyed at the top, because
in instance_update_at_top() it uses read_deleted='yes' and
db.instance_update() will update all fields provided, unlike
objects which only update fields that have changed.

Closes-Bug: #1460350

Change-Id: I4e8c1a82a3c9c86038faa7f528b9dfb835f82ee6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, a primitivized object is sent to sync to the API cell
in Instance.save because instance_update_at_top has not yet been
converted to handle objects. This change does the conversion and
makes Instance.save send an object for the sync.

This change should also address a race where deleting an instance
can result in an "undeleted" instance if an update from a child
occurs after the instance has been destroyed at the top, because
in instance_update_at_top() it uses read_deleted='yes' and
db.instance_update() will update all fields provided, unlike
objects which only update fields that have changed.

Closes-Bug: #1460350

Change-Id: I4e8c1a82a3c9c86038faa7f528b9dfb835f82ee6
</pre>
</div>
</content>
</entry>
<entry>
<title>Begin the transition to an explicit object registry</title>
<updated>2015-06-08T14:12:34+00:00</updated>
<author>
<name>Dan Smith</name>
<email>dansmith@redhat.com</email>
</author>
<published>2015-06-02T16:54:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=31a192f2e12641c58b11dde966fe32f3696b27c2'/>
<id>31a192f2e12641c58b11dde966fe32f3696b27c2</id>
<content type='text'>
In oslo.versionedobjects, the registry is opt-in instead of implicit.
This patch sets the stage for moving to that by defining a no-op
registry with a compatible register method so that we can go ahead and
decorate the object classes and then move the registry underneath them.

Related to blueprint use-oslo-objects

Change-Id: Iddc68a2d8a9b103621bc60a7426fe495edf80aad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In oslo.versionedobjects, the registry is opt-in instead of implicit.
This patch sets the stage for moving to that by defining a no-op
registry with a compatible register method so that we can go ahead and
decorate the object classes and then move the registry underneath them.

Related to blueprint use-oslo-objects

Change-Id: Iddc68a2d8a9b103621bc60a7426fe495edf80aad
</pre>
</div>
</content>
</entry>
<entry>
<title>Update self with db result in InstanceInfoCache.save</title>
<updated>2015-04-30T06:17:42+00:00</updated>
<author>
<name>melanie witt</name>
<email>melwitt@yahoo-inc.com</email>
</author>
<published>2015-04-30T06:06:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=52c2d7467af8c95d98c57d939bf2457ab1cb7b7f'/>
<id>52c2d7467af8c95d98c57d939bf2457ab1cb7b7f</id>
<content type='text'>
The InstanceInfoCache save method calls db.instance_info_cache_update
to update the database and receives an updated sqlalchemy model as a
return value. However, the result isn't saved to the self.fields of
the InstanceInfoCache object, though it is sent to update cells,
which is inconsistent. It doesn't seem critical as we expect to
receive mostly the same data back from the database as we already
have, except for the "created_at" and "updated_at" fields.

Change-Id: I64be855a194990f898ce4e572f42975a07bf1d3c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The InstanceInfoCache save method calls db.instance_info_cache_update
to update the database and receives an updated sqlalchemy model as a
return value. However, the result isn't saved to the self.fields of
the InstanceInfoCache object, though it is sent to update cells,
which is inconsistent. It doesn't seem critical as we expect to
receive mostly the same data back from the database as we already
have, except for the "created_at" and "updated_at" fields.

Change-Id: I64be855a194990f898ce4e572f42975a07bf1d3c
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove context from remotable call signature</title>
<updated>2015-03-18T13:53:38+00:00</updated>
<author>
<name>Dan Smith</name>
<email>dansmith@redhat.com</email>
</author>
<published>2015-03-13T17:17:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=7a54543a81cbb8d20e6df29e7f4468a436dae212'/>
<id>7a54543a81cbb8d20e6df29e7f4468a436dae212</id>
<content type='text'>
This is the final step in removing the context parameter from the
signature of a remotable method.

This includes a change of most of the object hashes, without version
bumps. That's because the hashing algorithm is just looking for changes
in things like a call signature, in order to signal that a version bump is
required. Since context is in the signature, removing it triggers the
alert. However, context is not _actually_ part of the on-the-wire API,
as it is stripped out on the caller side, and re-added on the callee side
(hence why we're making this change in the first place). If the test had
been uuber-pedantic to exclude context from consideration, then the hashes
would not be changing here, but alas.

In short, the hash changes are false alarms and do not mean we need
version bumps for all the things.

Related to blueprint kilo-objects

Change-Id: I89464c0ab7e6e0d84e677b9a69a86468727b6438
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the final step in removing the context parameter from the
signature of a remotable method.

This includes a change of most of the object hashes, without version
bumps. That's because the hashing algorithm is just looking for changes
in things like a call signature, in order to signal that a version bump is
required. Since context is in the signature, removing it triggers the
alert. However, context is not _actually_ part of the on-the-wire API,
as it is stripped out on the caller side, and re-added on the callee side
(hence why we're making this change in the first place). If the test had
been uuber-pedantic to exclude context from consideration, then the hashes
would not be changing here, but alas.

In short, the hash changes are false alarms and do not mean we need
version bumps for all the things.

Related to blueprint kilo-objects

Change-Id: I89464c0ab7e6e0d84e677b9a69a86468727b6438
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove usage of remotable context parameter in instance* objects</title>
<updated>2015-03-17T19:52:56+00:00</updated>
<author>
<name>Dan Smith</name>
<email>dansmith@redhat.com</email>
</author>
<published>2015-03-13T16:41:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/nova.git/commit/?id=35e22845a8017584355b9be1a383d1321a26e0e3'/>
<id>35e22845a8017584355b9be1a383d1321a26e0e3</id>
<content type='text'>
This removes the use of the context parameter in remotable methods
in these objects. This is a precursor to actually removing the
context from the call, but we need to remove dependence on the
argument first. Remotable methods should be using the bundled object
context.

Related to blueprint kilo-objects

Change-Id: If89e6e03d1e15f8ce688166ff2faa4794280c112
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This removes the use of the context parameter in remotable methods
in these objects. This is a precursor to actually removing the
context from the call, but we need to remove dependence on the
argument first. Remotable methods should be using the bundled object
context.

Related to blueprint kilo-objects

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