2018-02-19 10:58:14 |
Lujin Luo |
bug |
|
|
added bug |
2018-02-19 10:58:20 |
Lujin Luo |
neutron: assignee |
|
Lujin Luo (luo-lujin) |
|
2018-02-19 11:02:14 |
Lujin Luo |
description |
While revising [1], I discovered an issue of _get_changed_synthetic_fields(): it does not guarantee returned fields to be updatable.
How to reproduce:
Set a breakpoint in [2] and then run neutron.tests.unit.objects.test_ports.DistributedPortBindingIfaceObjTestCase.test_update_updates_from_db_object, the returned fields are
-> return fields
(Pdb) fields
{'host': u'c2753a12ec', 'port_id': 'ae5700cd-f872-4694-bf36-92b919b0d3bf'}
where port_id is not updatable. |
While revising [1], I discovered an issue of _get_changed_synthetic_fields(): it does not guarantee returned fields to be updatable.
How to reproduce:
Set a breakpoint in [2] and then run neutron.tests.unit.objects.test_ports.DistributedPortBindingIfaceObjTestCase.test_update_updates_from_db_object, the returned fields are
-> return fields
(Pdb) fields
{'host': u'c2753a12ec', 'port_id': 'ae5700cd-f872-4694-bf36-92b919b0d3bf'}
where 'host' and 'port_id' are not updatable.
[1] https://review.openstack.org/#/c/544206/ |
|
2018-02-19 11:03:33 |
Lujin Luo |
description |
While revising [1], I discovered an issue of _get_changed_synthetic_fields(): it does not guarantee returned fields to be updatable.
How to reproduce:
Set a breakpoint in [2] and then run neutron.tests.unit.objects.test_ports.DistributedPortBindingIfaceObjTestCase.test_update_updates_from_db_object, the returned fields are
-> return fields
(Pdb) fields
{'host': u'c2753a12ec', 'port_id': 'ae5700cd-f872-4694-bf36-92b919b0d3bf'}
where 'host' and 'port_id' are not updatable.
[1] https://review.openstack.org/#/c/544206/ |
While revising [1], I discovered an issue of _get_changed_synthetic_fields(): it does not guarantee returned fields to be updatable.
How to reproduce:
Set a breakpoint in [2] and then run neutron.tests.unit.objects.test_ports.DistributedPortBindingIfaceObjTestCase.test_update_updates_from_db_object, the returned fields are
-> return fields
(Pdb) fields
{'host': u'c2753a12ec', 'port_id': 'ae5700cd-f872-4694-bf36-92b919b0d3bf'}
where 'host' and 'port_id' are not updatable.
[1] https://review.openstack.org/#/c/544206/
[2] https://github.com/openstack/neutron/blob/master/neutron/objects/base.py#L696 |
|
2018-02-19 11:09:38 |
OpenStack Infra |
neutron: status |
New |
In Progress |
|
2018-03-12 07:59:46 |
OpenStack Infra |
neutron: status |
In Progress |
Fix Released |
|
2018-05-31 10:04:53 |
Bernard Cafarelli |
tags |
|
neutron-proactive-backport-potential |
|
2018-05-31 10:05:41 |
Bernard Cafarelli |
tags |
neutron-proactive-backport-potential |
neutron-easy-proactive-backport-potential neutron-proactive-backport-potential |
|
2018-06-18 23:45:27 |
OpenStack Infra |
tags |
neutron-easy-proactive-backport-potential neutron-proactive-backport-potential |
in-stable-ocata neutron-easy-proactive-backport-potential neutron-proactive-backport-potential |
|
2018-06-19 01:01:40 |
OpenStack Infra |
tags |
in-stable-ocata neutron-easy-proactive-backport-potential neutron-proactive-backport-potential |
in-stable-ocata in-stable-queens neutron-easy-proactive-backport-potential neutron-proactive-backport-potential |
|
2018-06-25 20:57:06 |
Boden R |
neutron: status |
Fix Released |
In Progress |
|
2018-06-26 15:53:05 |
Slawek Kaplonski |
tags |
in-stable-ocata in-stable-queens neutron-easy-proactive-backport-potential neutron-proactive-backport-potential |
|
|
2023-01-23 21:56:54 |
Brian Haley |
neutron: status |
In Progress |
Fix Released |
|