multi projects

Asked by nimda

Hi,

  I've got a single machine 'cloud', with dashboard installed - and as far as I can tell, it's working.

I've currently got one project, and wanted to add another. Here's an example of what I did for the first:-

# /usr/bin/python /usr/bin/nova-manage user admin user
# /usr/bin/python /usr/bin/nova-manage project create project-one user
# /usr/bin/python /usr/bin/nova-manage network create 10.0.0.0/24 1 255

I then created the required credentials:-

# mkdir -p /root/creds/nova/
# /usr/bin/python /usr/bin/nova-manage project zipfile project-one user /root/creds/nova/novacreds.zip
# unzip /root/creds/nova/novacreds.zip -d /root/creds/nova/
# cat /root/creds/nova/novarc >> ~/.bashrc
# source ~/.bashrc

From both the terminal and dashboard view all was looking shiny. I then wanted to add another project, so I did the following:-

# /usr/bin/python /usr/bin/nova-manage user admin user
# /usr/bin/python /usr/bin/nova-manage project create project-two user
# /usr/bin/python /usr/bin/nova-manage network create 10.0.10.0/24 1 255

I then created the required credentials:-

# mkdir -p /root/creds/nimbus/
# /usr/bin/python /usr/bin/nova-manage project zipfile project-two user /root/creds/nimbus/nimbuscreds.zip
# unzip /root/creds/nimbus/nimbuscreds.zip -d /root/creds/nimbus/
# cat /root/creds/nimbus/novarc >> ~/.bashrc
# source ~/.bashrc

From dashboard, I could see titles of both projects, but under both project titles where the same instances. My problem, therefore, is that each project is not unique. How should I properly manage projects?

Question information

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

First of all, if you create project networks separately like that, you need
to specify a different vlan for each network. The reason you can see all of
the instances is because you made both users admins. You can use nova-manage
user create instead of user admin to create regular users. You can also do
nova-manage user modify user "" "" F to turn an admin into a regular user.
On Apr 12, 2011 7:30 AM, "nimda" <email address hidden>
wrote:
> New question #152533 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/152533
>
> Hi,
>
> I've got a single machine 'cloud', with dashboard installed - and as far
as I can tell, it's working.
>
> I've currently got one project, and wanted to add another. Here's an
example of what I did for the first:-
>
> # /usr/bin/python /usr/bin/nova-manage user admin user
> # /usr/bin/python /usr/bin/nova-manage project create project-one user
> # /usr/bin/python /usr/bin/nova-manage network create 10.0.0.0/24 1 255
>
> I then created the required credentials:-
>
> # mkdir -p /root/creds/nova/
> # /usr/bin/python /usr/bin/nova-manage project zipfile project-one user
/root/creds/nova/novacreds.zip
> # unzip /root/creds/nova/novacreds.zip -d /root/creds/nova/
> # cat /root/creds/nova/novarc >> ~/.bashrc
> # source ~/.bashrc
>
>>From both the terminal and dashboard view all was looking shiny. I then
wanted to add another project, so I did the following:-
>
> # /usr/bin/python /usr/bin/nova-manage user admin user
> # /usr/bin/python /usr/bin/nova-manage project create project-two user
> # /usr/bin/python /usr/bin/nova-manage network create 10.0.10.0/24 1 255
>
> I then created the required credentials:-
>
> # mkdir -p /root/creds/nimbus/
> # /usr/bin/python /usr/bin/nova-manage project zipfile project-two user
/root/creds/nimbus/nimbuscreds.zip
> # unzip /root/creds/nimbus/nimbuscreds.zip -d /root/creds/nimbus/
> # cat /root/creds/nimbus/novarc >> ~/.bashrc
> # source ~/.bashrc
>
>>From dashboard, I could see titles of both projects, but under both
project titles where the same instances. My problem, therefore, is that each
project is not unique. How should I properly manage projects?
>
> --
> 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
nimda (jon-whiteheat) said :
#2

They don't have to be on separate networks, especially if that means I'd need to use vLAN manager.

All I'd like to do is have a network pool if IP addresses, which I can then add uses to and give them a finite number of instances to launch/play with; which I can then allow them to use dashboard.

I'm not sure how to create credentials, and implement them, for multiple users; that's my cloud computing knowledge gap at the moment.

Revision history for this message
Vish Ishaya (vishvananda) said :
#3

Below

On Apr 12, 2011, at 8:38 AM, nimda wrote:

> Question #152533 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/152533
>
> Status: Answered => Open
>
> nimda is still having a problem:
> They don't have to be on separate networks, especially if that means I'd
> need to use vLAN manager.

You can use FlatDHCPManager in that case and just use one network.
>
> All I'd like to do is have a network pool if IP addresses, which I can
> then add uses to and give them a finite number of instances to
> launch/play with; which I can then allow them to use dashboard.
>
> I'm not sure how to create credentials, and implement them, for multiple
> users; that's my cloud computing knowledge gap at the moment.

the user create will give each user a unique access and secret key.

>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Can you help with this problem?

Provide an answer of your own, or ask nimda for more information if necessary.

To post a message you must log in.