compute_api.get doesn't return a network which has project_id field set

Bug #938364 reported by Tomoe Sugihara
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
High
adapaka bhavaniprasad

Bug Description

compute_api.get() calls get_network() in network manager, which ends up calling self.db.network_get_all_by_uuids(context, network_uuids). That's doesn't return records with project_id set because that method has optional parameter project_id with default None. https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L2061

I think network manager should call network_get_by_uuid() instead.

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → High
status: New → Confirmed
Renuka Apte (renukaapte)
Changed in nova:
assignee: nobody → Renuka Apte (renukaapte)
Renuka Apte (renukaapte)
Changed in nova:
assignee: Renuka Apte (renukaapte) → nobody
Revision history for this message
Tomoe Sugihara (tomoe) wrote :

Is anyone working on it?

Changed in nova:
assignee: nobody → adapaka bhavaniprasad (adapaka-prasad)
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
adapaka bhavaniprasad (adapaka-prasad) wrote :

i made changes what u said i.e. network_get_all_by_uuids() method i replaced with network_get_by_uuid() method. still it is not produced any error.

Changed in nova:
status: In Progress → Invalid
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.