Document: project_id must be an integer with QuantumManager

Bug #917495 reported by dan wendlandt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
dan wendlandt

Bug Description

When spinning up a VM with Quantum Manager, by default the VM should get a vNIC for each global network and one for each network owned by the project. However, the look-up to find all networks associated with a specific project is broken (at least when using the nova IPAM lib).

This is because the 'allocate_for_instance' gets a project-id as an integer (e.g., '2') and passes this to 'self.ipam.get_project_and_global_net_ids', which in the case of Nova IPAM does a lookup in the nova DB networks table for projects that match '2'. However, when creating networks we've always passed in --project_id as a string (e.g., "demo"). Thus, the two project_ids don't match. I suspect we would have the same problem with melange.

So the real question is: what is the "correct" way to handle project_ids now that we have keystone? Is the string just for readability, with the integer being the canonical representation?

dan wendlandt (danwent)
Changed in quantum:
assignee: nobody → Brad Hall (bgh)
milestone: none → essex-3
importance: Undecided → High
dan wendlandt (danwent)
Changed in quantum:
status: New → In Progress
Revision history for this message
Brad Hall (bgh) wrote :

This turns out to be just an documentation issue. When you create the network you need to specify the id of the project, not the name. It used to work to specify the name but since moving to keystone it seems like this has changed.

Changed in quantum:
status: In Progress → Won't Fix
dan wendlandt (danwent)
Changed in quantum:
status: Won't Fix → In Progress
assignee: Brad Hall (bgh) → dan wendlandt (danwent)
summary: - fetching project's networks broken in QuantumManager
+ Document: project_id must be an integer with QuantumManager
dan wendlandt (danwent)
Changed in quantum:
milestone: essex-3 → essex-4
dan wendlandt (danwent)
Changed in quantum:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: essex-4 → 2012.1
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.