Lazy network association without admin context

Asked by Nikolay Sokolov

If I understand docs and code correctly, network association with project is lazy evulated on first instance start. But something isn't clear for me: project_get_networks requires any context, but network_associate needs admin context.

Does that mean that only admin can start new instance in project, and does that mean, that cloud user need to do that to get fully configured project?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Nikolay Sokolov
Solved:
Last query:
Last reply:
Revision history for this message
Vish Ishaya (vishvananda) said :
#1

No, the context is elevated to admin, when network is associated.

Vish

On Aug 10, 2011, at 5:11 AM, Nikolay Sokolov wrote:

> New question #167519 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/167519
>
> If I understand docs and code correctly, network association with project is lazy evulated on first instance start. But something isn't clear for me: project_get_networks requires any context, but network_associate needs admin context.
>
> Does that mean that only admin can start new instance in project, and does that mean, that cloud user need to do that to get fully configured project?
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Nikolay Sokolov (chemikadze) said :
#2

I missed elevating context, right. Thanks, Vish!