Objects and models file structure inconsistency

Bug #1549655 reported by Andriy Popovych
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
Medium
Fuel Sustaining
Mitaka
Won't Fix
Medium
Fuel Python (Deprecated)
Newton
Confirmed
Medium
Fuel Sustaining

Bug Description

Objects in Fuel are wrappers for SQlAlchemy models which provide CRUD interface for them.
Currently there are many inconsistencies between this entities in file structure. For example:

1. We have NodeGroup, Node, NodeNICInterface, NodeBondInterface in models/node.py but in objects structure
they represents in objects/node_group.py, objects/node.py, objects/interface.py, objects/bond.py. In such case models in models/node.py can split in separate files.
2. NodeNICInterface and NodeBondInterface can be renamed NICInterface( or Interface) or BondInterface (or Bond). They have many-to-one relation with node and it can be shown only through foreign key not name.
3. IPAddr and IPAddrRange from models/network.py can be split due to structure in /objects dir, models/network.py renamed into network_group.py.

Changed in fuel:
status: New → Confirmed
Dmitry Pyzhov (dpyzhov)
tags: added: tech-debt
Changed in fuel:
importance: Wishlist → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.