Ask Your Question
0

Lazy network association without admin context

asked 2011-08-10 12:10:02 -0500

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?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2011-08-10 17:59:56 -0500

vishvananda gravatar image

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/+q...

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).

edit flag offensive delete link more
0

answered 2011-08-10 19:44:12 -0500

I missed elevating context, right. Thanks, Vish!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-08-10 12:10:02 -0500

Seen: 12 times

Last updated: Aug 10 '11