Re: [openstack-dev] [neutron][ovo] Need help to understand the exception of NeutronSyntheticFieldMultipleForeignKeys

2016-08-19 Thread Ihar Hrachyshka
taget wrote: hi Artur, Thanks for you response and suggestion, I update patch as your suggestion [1], but I am not sure if the synth_objs can be loaded correctly since it requires to use foreign_keys to get objects [2]. We may need to implement your propose patch `Add support fro multiple

Re: [openstack-dev] [neutron][ovo] Need help to understand the exception of NeutronSyntheticFieldMultipleForeignKeys

2016-08-19 Thread taget
hi Artur, Thanks for you response and suggestion, I update patch as your suggestion [1], but I am not sure if the synth_objs can be loaded correctly since it requires to use foreign_keys to get objects [2]. We may need to implement your propose patch `Add support fro multiple foreign keys in

Re: [openstack-dev] [neutron][ovo] Need help to understand the exception of NeutronSyntheticFieldMultipleForeignKeys

2016-08-18 Thread Korzeniewski, Artur
Hi, So in the first place, you do not need the multiple foreign keys in Flavor db use case. You can only declare flavor_id and service_profile_id in FlavorServiceProfileBinding object, since the relationships ('flavor' and 'service_profile') is not used anywhere, only ids. Secondly, nobody rig

[openstack-dev] [neutron][ovo] Need help to understand the exception of NeutronSyntheticFieldMultipleForeignKeys

2016-08-17 Thread taget
hi neutron ovo hacker: Recently I am working on neutron OVO blue print, and found there are some blocking (slow progress) issues when tring to add new object to Neutron. When I try to add Flavor related object on [1], I need to add 2 foreign_keys to FlavorServiceProfileBinding : flavor_id: