config/sysinv/sysinv/sysinv/sysinv/objects
Thomas Gao 6f162c3422 Fixed address interface foreign key inconsistency
Foreign key in sysinv.object.address.Address is `interface_uuid`,
which is inconsistent with the foreign key `interface_id` defined
in the database schema. This fix corrected that.

Added a unit test to verify that addresses associated with an interface
could be deleted.

Additionally wrote a set of TODO unit tests blocked by
the bug: tested delete address for orphaned-routes case, unlocked
host state, and the case where address is allocated from pool.

Modified interface querying mechanism to look up all interfaces.
This modification is necessary because the current implementation of
add_interface_filter only looks up those of type ethernet, ae and
vlan. Attempting to get an virtual-type interface will raise an
exception, causing Jenkins installation to fail.

After a visual inspection of interface_uuid occurrences, fixed a few
other occurrences of bad address.interface_uuid that are not caught
by the unit test. Added new unit test suites in place to cover the
code paths.

Closes-Bug: 1861131

Change-Id: I6f2449bbbb69d6f2353e521bfcd138d880ce878f
Signed-off-by: Thomas Gao <Thomas.Gao@windriver.com>
2020-03-03 16:50:12 -05:00
..
__init__.py Introduce VF interface type 2019-12-03 15:19:38 -06:00
address.py Fixed address interface foreign key inconsistency 2020-03-03 16:50:12 -05:00
address_mode.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
address_pool.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
base.py Deprecate sysinv.openstack.common.log 2019-11-05 15:29:20 -06:00
ceph_mon.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
certificate.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
cluster.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
community.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
controller_fs.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
cpu.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
datanetwork.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
disk.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
dns.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
drbdconfig.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
helm_overrides.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
host.py Support for NTP/PTP coexistence 2019-09-17 14:45:18 -04:00
host_fs.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
host_upgrade.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
interface.py Allow configuration of PTP master/slave interfaces 2019-12-09 15:05:16 -05:00
interface_ae.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
interface_base.py Change VLAN interface naming scheme 2019-10-16 15:11:50 -04:00
interface_datanetwork.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
interface_ethernet.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
interface_network.py Multiple networks to interface association 2018-09-13 13:28:24 -04:00
interface_vf.py Introduce VF interface type 2019-12-03 15:19:38 -06:00
interface_virtual.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
interface_vlan.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
journal.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
kube_app.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
kube_app_releases.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
kube_host_upgrade.py Provide infrastructure for kubernetes upgrades 2019-11-22 15:13:52 -06:00
kube_upgrade.py Provide infrastructure for kubernetes upgrades 2019-11-22 15:13:52 -06:00
kube_version.py Adding support for displaying kubernetes versions 2019-10-23 14:10:10 -05:00
label.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
lldp_agent.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
lldp_neighbour.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
lldp_tlv.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
load.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
lvg.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
memory.py Hugepage percent allocation. 2019-12-16 15:16:56 -05:00
network.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
network_oam.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
node.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
ntp.py Support for NTP/PTP coexistence 2019-09-17 14:45:18 -04:00
partition.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
pci_device.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
peer.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
port.py Align with latest SR-IOV CNI and device plugin images 2019-10-10 13:30:29 -05:00
port_ethernet.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
profile.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
ptp.py Support for NTP/PTP coexistence 2019-09-17 14:45:18 -04:00
pv.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
remote_logging.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
route.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
sdn_controller.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
sensor.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
sensor_analog.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
sensor_discrete.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
sensorgroup.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
sensorgroup_analog.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
sensorgroup_discrete.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
service.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
service_parameter.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
software_upgrade.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
storage_backend.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
storage_ceph.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage_ceph_external.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage_external.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage_file.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage_lvm.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
storage_tier.py Eliminate unnecessary import modules in the objects directory 2019-09-24 15:23:30 +08:00
system.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
tpmconfig.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
tpmdevice.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
trapdest.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
user.py Fix calls in sysinv to non-existent methods and constants 2019-08-30 14:54:58 -05:00
utils.py Deprecate the sysinv.openstack.common utils files 2019-12-04 10:58:39 -06:00