Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-11 Thread Skible OpenStack

I'm Glad that my suggestion found its way to a much better solution.

Just one small advice, please keep it as simple as possible.
Don't fill it up with things that won't be used by everyone, make it 
generic and leave the rest for OpenStack administrators !

Le 11/10/2012 06:20, Asher Newcomer a écrit :

Hi,

This is great stuff. This is a nicely distilled version of the 
official docs for anyone looking for a quick outline, and this 
includes quantum rather than nova-net. Thanks much - just what I've 
been after.



On Wed, Oct 10, 2012 at 4:48 AM, Skible OpenStack 
skible.openst...@gmail.com mailto:skible.openst...@gmail.com wrote:


Hi,

I proudly present my OpenStack Folsom Install Guide.
It's simple, easy to use and most of all well tested.

I am counting our your feedback to enhance my work and contribute
it to the OpenStack Eco System.

Direct access to the guide: OpenStack Folsom Install Guide

https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst
Direct access to the git repository: OpenStack Folsom Install
Guide reposiroty
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide


Best regards.

___
Mailing list: https://launchpad.net/~openstack
https://launchpad.net/%7Eopenstack
Post to : openstack@lists.launchpad.net
mailto:openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
https://launchpad.net/%7Eopenstack
More help   : https://help.launchpad.net/ListHelp




___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-11 Thread John Garbutt
Awesome stuff.
I went thought this the other day, and it seemed like the most annoying part of 
setting up OpenStack.
Sure the flexibility is good, but adding a few shortcuts looks like a good idea.

For registering the services, I wonder if the following would be a good way to 
register the service with keystone, using the currently specified settings:
(nova|glance|...)-manage keystone register admin_username password

Cheers,
John

From: openstack-bounces+john.garbutt=citrix@lists.launchpad.net 
[mailto:openstack-bounces+john.garbutt=citrix@lists.launchpad.net] On 
Behalf Of Joshua Harlow
Sent: Wednesday, October 10, 2012 11:38 PM
To: Dolph Mathews
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] A simple guide to install OpenStack Folsom

I second this idea, seems like a good way forward.

From: Dolph Mathews dolph.math...@gmail.commailto:dolph.math...@gmail.com
Date: Wednesday, October 10, 2012 3:33 PM
To: Joshua Harlow harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com
Cc: Alan Pevec ape...@gmail.commailto:ape...@gmail.com, Skible OpenStack 
skible.openst...@gmail.commailto:skible.openst...@gmail.com, 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] A simple guide to install OpenStack Folsom

I played around with the idea this afternoon, and settled on something as 
simple as this in keystoneclient rather than keystone-manage:

$ keystone help bootstrap
usage: keystone bootstrap [--user-name user-name] --pass password
  [--role-name role-name]
  [--tenant-name tenant-name]

Grants a new role to a new user on a new tenant, after creating each.

Optional arguments:
  --user-name user-name
The name of the user to be created (default=admin).
  --pass password
The password for the new user.
  --role-name role-name
The name of the role to be created and granted to the 
user (default=admin).
  --tenant-name tenant-name
The name of the tenant to be created (default=admin).

Example usage:

$ keystone-manage db_sync
$ keystone-all
$ keystone --token=ADMIN --endpoint=http://localhost:35357/v2.0/bootstrap 
--pass=secrete
$ keystone --os-username=admin --os-password=secrete --os-tenant-name=admin 
--os-auth-url=http://localhost:35357/v2.0/ token-get
+---+--+
|  Property |  Value   |
+---+--+
|  expires  |   2012-10-11T22:25:02Z   |
| id| 4ae78bd2cd9049888060d07acddf88d1 |
| tenant_id | 8fbba4f7f77e4acb80d746c65f20882b |
|  user_id  | d8e31d9a341243a2bb8d575707a273ea |
+---+--+

The same shortcut idea could apply to other extremely common usage patterns 
on the CLI (e.g. registering a service *and* all of it's endpoints in a single 
CLI command), thus eliminating most of the complexity of basic setup scripts 
like sample_data.sh and it's variants.

I also put this up for review: https://review.openstack.org/#/c/14314

-Dolph

On Wed, Oct 10, 2012 at 1:15 PM, Joshua Harlow 
harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com wrote:
That sounds great to me. I can help out in converting this code into that code.

It seems like a trivial kind of thing to do, what format would that command 
take, a yaml file?

Something similar to 
https://github.com/yahoo/Openstack-Anvil/blob/master/conf/templates/keystone/init_what.yaml
 maybe, idk.

From: Dolph Mathews dolph.math...@gmail.commailto:dolph.math...@gmail.com
Date: Wednesday, October 10, 2012 11:13 AM
To: Joshua Harlow harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com
Cc: Alan Pevec ape...@gmail.commailto:ape...@gmail.com, Skible OpenStack 
skible.openst...@gmail.commailto:skible.openst...@gmail.com, 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] A simple guide to install OpenStack Folsom

I'd like to simplify the scope of sample_data.sh to the absolute bare minimum 
(service tenant, admin role, admin user, identity service/endpoints, etc), and 
integrate it into keystone-manage as a 'bootstrap' command:

$ keystone-manage bootstrap

-Dolph

On Wed, Oct 10, 2012 at 12:34 PM, Joshua Harlow 
harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com wrote:
You guys should also consider the 'anvil' way of doing this (pure python
baby, haha).

Which is improved from lorin's and has been working for yahoo! for a while
now.

https://github.com/yahoo/Openstack-Anvil/blob/master/anvil/components/helpe
rs/keystone.py#L25

Please feel free to take the code!! Its only 'real' dependency is the
keystone client + yaml parsing...

On 10/10/12 2:23 AM, Alan Pevec ape...@gmail.commailto:ape...@gmail.com 
wrote:

On Wed, Oct 10, 2012 at 11:10 AM, Skible

Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Alan Pevec
On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
skible.openst...@gmail.com wrote:
 I am counting on our your feedback to enhance my work and contribute it to
 the OpenStack Eco System.

I wonder about 
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/Scripts
which say:
# Mainly inspired by
https://github.com/openstack/keystone/blob/master/tools/sample_data.sh

Why not submit that as an improvement to Keystone?
I'd like to propose consolidation of all keystone initialization
scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
scripts like yours) and  move to Lorin's YAML config (see
https://lists.launchpad.net/openstack/msg17204.html)
I'm just not sure yet if additional dependency on YAML is worth it.

Cheers,
Alan

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Skible OpenStack

Le 10/10/2012 11:23, Alan Pevec a écrit :

On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
skible.openst...@gmail.com wrote:

I am counting on our your feedback to enhance my work and contribute it to
the OpenStack Eco System.

I wonder about 
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/Scripts
which say:
# Mainly inspired by
https://github.com/openstack/keystone/blob/master/tools/sample_data.sh

Why not submit that as an improvement to Keystone?
I'd like to propose consolidation of all keystone initialization
scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
scripts like yours) and  move to Lorin's YAML config (see
https://lists.launchpad.net/openstack/msg17204.html)
I'm just not sure yet if additional dependency on YAML is worth it.

Cheers,
Alan

Hi Alan,

That's a very good idea. I personally prefer scripting over YAML since 
it is simpler and easier to use.
devstack's script is way fat to me, it adds things i don't need so i had 
put it on  a diet to come out with a much simpler and easier script.


I will see how i can submit my work to keystone people.

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Emilien Macchi
Hi,

Great job !

I suggest some things :

- glance add command is deprecated, please use glance image-create.
- no need to modify ownership for nova.
- typo here : /etc/cinder/api-paste.init (it's a INI file)
- for Quantum, you are using the use case in which only one tenant can reach 
external network, I don't suggest this use case for many deployments. You can 
have a look to my script [1] for enabling all tenants access to external 
network.



Regards


- Mail original -

De: Skible OpenStack skible.openst...@gmail.com
À: Alan Pevec ape...@gmail.com
Cc: openstack@lists.launchpad.net
Envoyé: Mercredi 10 Octobre 2012 11:27:15
Objet: Re: [Openstack] A simple guide to install OpenStack Folsom

Le 10/10/2012 11:23, Alan Pevec a écrit :
 On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
 skible.openst...@gmail.com wrote:
 I am counting on our your feedback to enhance my work and contribute it to
 the OpenStack Eco System.
 I wonder about 
 https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/Scripts
 which say:
 # Mainly inspired by
 https://github.com/openstack/keystone/blob/master/tools/sample_data.sh

 Why not submit that as an improvement to Keystone?
 I'd like to propose consolidation of all keystone initialization
 scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
 scripts like yours) and move to Lorin's YAML config (see
 https://lists.launchpad.net/openstack/msg17204.html)
 I'm just not sure yet if additional dependency on YAML is worth it.

 Cheers,
 Alan
Hi Alan,

That's a very good idea. I personally prefer scripting over YAML since
it is simpler and easier to use.
devstack's script is way fat to me, it adds things i don't need so i had
put it on a diet to come out with a much simpler and easier script.

I will see how i can submit my work to keystone people.

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Skible OpenStack

Thanks Emilien for your suggestions, this really means a lot to me :)

So, first

1- glance image-create has another set of flags (couldn't figure them 
out yet, so i just used the old one which works very fine), I will 
update it as soon as possible !


2- i had a problem with nova ownership, so just to be safe, i edited the 
ownership


3- You are a 100% right, thanks !

4- I believe the ext-net is shared between all the tenants but i will 
surely look at your usecase  for more experience


Best regards !

Le 10/10/2012 11:36, Emilien Macchi a écrit :

Hi,

Great job !

I suggest some things :

- glance add command is deprecated, please use glance image-create.
- no need to modify ownership for nova.
- typo here : /etc/cinder/api-paste.init (it's a INI file)
- for Quantum, you are using the use case in which only one tenant can 
reach external network, I don't suggest this use case for many 
deployments. You can have a look to my script [1] for enabling all 
tenants access to external network.




Regards



*De: *Skible OpenStack skible.openst...@gmail.com
*À: *Alan Pevec ape...@gmail.com
*Cc: *openstack@lists.launchpad.net
*Envoyé: *Mercredi 10 Octobre 2012 11:27:15
*Objet: *Re: [Openstack] A simple guide to install OpenStack Folsom

Le 10/10/2012 11:23, Alan Pevec a écrit :
 On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
 skible.openst...@gmail.com wrote:
 I am counting on our your feedback to enhance my work and 
contribute it to

 the OpenStack Eco System.
 I wonder about 
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/Scripts

 which say:
 # Mainly inspired by
 https://github.com/openstack/keystone/blob/master/tools/sample_data.sh

 Why not submit that as an improvement to Keystone?
 I'd like to propose consolidation of all keystone initialization
 scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
 scripts like yours) and  move to Lorin's YAML config (see
 https://lists.launchpad.net/openstack/msg17204.html)
 I'm just not sure yet if additional dependency on YAML is worth it.

 Cheers,
 Alan
Hi Alan,

That's a very good idea. I personally prefer scripting over YAML since
it is simpler and easier to use.
devstack's script is way fat to me, it adds things i don't need so i had
put it on  a diet to come out with a much simpler and easier script.

I will see how i can submit my work to keystone people.

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Adam Young

On 10/10/2012 05:27 AM, Skible OpenStack wrote:

Le 10/10/2012 11:23, Alan Pevec a écrit :

On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
skible.openst...@gmail.com wrote:
I am counting on our your feedback to enhance my work and contribute 
it to

the OpenStack Eco System.
I wonder about 
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/Scripts

which say:
# Mainly inspired by
https://github.com/openstack/keystone/blob/master/tools/sample_data.sh

Why not submit that as an improvement to Keystone?
I'd like to propose consolidation of all keystone initialization
scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
scripts like yours) and  move to Lorin's YAML config (see
https://lists.launchpad.net/openstack/msg17204.html)
I'm just not sure yet if additional dependency on YAML is worth it.

Cheers,
Alan

Hi Alan,

That's a very good idea. I personally prefer scripting over YAML since 
it is simpler and easier to use.
devstack's script is way fat to me, it adds things i don't need so i 
had put it on  a diet to come out with a much simpler and easier script.


I will see how i can submit my work to keystone people.


As you would submite anything, of course:  Open a bug on launchpad, 
describe the problem, and then submit a patch, with


Bug id

 in the commit message.  We'll see it.


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Joshua Harlow
You guys should also consider the 'anvil' way of doing this (pure python
baby, haha).

Which is improved from lorin's and has been working for yahoo! for a while
now.

https://github.com/yahoo/Openstack-Anvil/blob/master/anvil/components/helpe
rs/keystone.py#L25

Please feel free to take the code!! Its only 'real' dependency is the
keystone client + yaml parsing...

On 10/10/12 2:23 AM, Alan Pevec ape...@gmail.com wrote:

On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
skible.openst...@gmail.com wrote:
 I am counting on our your feedback to enhance my work and contribute it
to
 the OpenStack Eco System.

I wonder about 
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/
Scripts
which say:
# Mainly inspired by
https://github.com/openstack/keystone/blob/master/tools/sample_data.sh

Why not submit that as an improvement to Keystone?
I'd like to propose consolidation of all keystone initialization
scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
scripts like yours) and  move to Lorin's YAML config (see
https://lists.launchpad.net/openstack/msg17204.html)
I'm just not sure yet if additional dependency on YAML is worth it.

Cheers,
Alan

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Dolph Mathews
I'd like to simplify the scope of sample_data.sh to the absolute bare
minimum (service tenant, admin role, admin user, identity
service/endpoints, etc), and integrate it into keystone-manage as a
'bootstrap' command:

$ keystone-manage bootstrap

-Dolph


On Wed, Oct 10, 2012 at 12:34 PM, Joshua Harlow harlo...@yahoo-inc.comwrote:

 You guys should also consider the 'anvil' way of doing this (pure python
 baby, haha).

 Which is improved from lorin's and has been working for yahoo! for a while
 now.

 https://github.com/yahoo/Openstack-Anvil/blob/master/anvil/components/helpe
 rs/keystone.py#L25

 Please feel free to take the code!! Its only 'real' dependency is the
 keystone client + yaml parsing...

 On 10/10/12 2:23 AM, Alan Pevec ape...@gmail.com wrote:

 On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
 skible.openst...@gmail.com wrote:
  I am counting on our your feedback to enhance my work and contribute it
 to
  the OpenStack Eco System.
 
 I wonder about
 
 https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/
 Scripts
 which say:
 # Mainly inspired by
 https://github.com/openstack/keystone/blob/master/tools/sample_data.sh
 
 Why not submit that as an improvement to Keystone?
 I'd like to propose consolidation of all keystone initialization
 scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
 scripts like yours) and  move to Lorin's YAML config (see
 https://lists.launchpad.net/openstack/msg17204.html)
 I'm just not sure yet if additional dependency on YAML is worth it.
 
 Cheers,
 Alan
 
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp


 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Joshua Harlow
That sounds great to me. I can help out in converting this code into that code.

It seems like a trivial kind of thing to do, what format would that command 
take, a yaml file?

Something similar to 
https://github.com/yahoo/Openstack-Anvil/blob/master/conf/templates/keystone/init_what.yaml
 maybe, idk.

From: Dolph Mathews dolph.math...@gmail.commailto:dolph.math...@gmail.com
Date: Wednesday, October 10, 2012 11:13 AM
To: Joshua Harlow harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com
Cc: Alan Pevec ape...@gmail.commailto:ape...@gmail.com, Skible OpenStack 
skible.openst...@gmail.commailto:skible.openst...@gmail.com, 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] A simple guide to install OpenStack Folsom

I'd like to simplify the scope of sample_data.sh to the absolute bare minimum 
(service tenant, admin role, admin user, identity service/endpoints, etc), and 
integrate it into keystone-manage as a 'bootstrap' command:

$ keystone-manage bootstrap

-Dolph


On Wed, Oct 10, 2012 at 12:34 PM, Joshua Harlow 
harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com wrote:
You guys should also consider the 'anvil' way of doing this (pure python
baby, haha).

Which is improved from lorin's and has been working for yahoo! for a while
now.

https://github.com/yahoo/Openstack-Anvil/blob/master/anvil/components/helpe
rs/keystone.py#L25

Please feel free to take the code!! Its only 'real' dependency is the
keystone client + yaml parsing...

On 10/10/12 2:23 AM, Alan Pevec ape...@gmail.commailto:ape...@gmail.com 
wrote:

On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
skible.openst...@gmail.commailto:skible.openst...@gmail.com wrote:
 I am counting on our your feedback to enhance my work and contribute it
to
 the OpenStack Eco System.

I wonder about
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/
Scripts
which say:
# Mainly inspired by
https://github.com/openstack/keystone/blob/master/tools/sample_data.sh

Why not submit that as an improvement to Keystone?
I'd like to propose consolidation of all keystone initialization
scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
scripts like yours) and  move to Lorin's YAML config (see
https://lists.launchpad.net/openstack/msg17204.html)
I'm just not sure yet if additional dependency on YAML is worth it.

Cheers,
Alan

___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Dolph Mathews
I played around with the idea this afternoon, and settled on something as
simple as this in keystoneclient rather than keystone-manage:

$ keystone help bootstrap
usage: keystone bootstrap [--user-name user-name] --pass password
  [--role-name role-name]
  [--tenant-name tenant-name]

Grants a new role to a new user on a new tenant, after creating each.

Optional arguments:
  --user-name user-name
The name of the user to be created
(default=admin).
  --pass password
The password for the new user.
  --role-name role-name
The name of the role to be created and granted to
the user (default=admin).
  --tenant-name tenant-name
The name of the tenant to be
created (default=admin).

Example usage:

$ keystone-manage db_sync

$ keystone-all

$ keystone --token=ADMIN --endpoint=http://localhost:35357/v2.0/ *bootstrap*
 --pass=secrete

$ keystone --os-username=admin --os-password=secrete --os-tenant-name=admin
--os-auth-url=http://localhost:35357/v2.0/ token-get

+---+--+

|  Property |  Value   |

+---+--+

|  expires  |   2012-10-11T22:25:02Z   |

| id| 4ae78bd2cd9049888060d07acddf88d1 |

| tenant_id | 8fbba4f7f77e4acb80d746c65f20882b |

|  user_id  | d8e31d9a341243a2bb8d575707a273ea |
+---+--+

The same shortcut idea could apply to other extremely common usage
patterns on the CLI (e.g. registering a service *and* all of it's endpoints
in a single CLI command), thus eliminating most of the complexity of basic
setup scripts like sample_data.sh and it's variants.

I also put this up for review: https://review.openstack.org/#/c/14314

-Dolph


On Wed, Oct 10, 2012 at 1:15 PM, Joshua Harlow harlo...@yahoo-inc.comwrote:

 That sounds great to me. I can help out in converting this code into that
 code.

 It seems like a trivial kind of thing to do, what format would that
 command take, a yaml file?

 Something similar to
 https://github.com/yahoo/Openstack-Anvil/blob/master/conf/templates/keystone/init_what.yaml
  maybe,
 idk.

 From: Dolph Mathews dolph.math...@gmail.com
 Date: Wednesday, October 10, 2012 11:13 AM
 To: Joshua Harlow harlo...@yahoo-inc.com
 Cc: Alan Pevec ape...@gmail.com, Skible OpenStack 
 skible.openst...@gmail.com, openstack@lists.launchpad.net 
 openstack@lists.launchpad.net
 Subject: Re: [Openstack] A simple guide to install OpenStack Folsom

 I'd like to simplify the scope of sample_data.sh to the absolute bare
 minimum (service tenant, admin role, admin user, identity
 service/endpoints, etc), and integrate it into keystone-manage as a
 'bootstrap' command:

 $ keystone-manage bootstrap

 -Dolph


 On Wed, Oct 10, 2012 at 12:34 PM, Joshua Harlow harlo...@yahoo-inc.comwrote:

 You guys should also consider the 'anvil' way of doing this (pure python
 baby, haha).

 Which is improved from lorin's and has been working for yahoo! for a while
 now.


 https://github.com/yahoo/Openstack-Anvil/blob/master/anvil/components/helpe
 rs/keystone.py#L25https://github.com/yahoo/Openstack-Anvil/blob/master/anvil/components/helpers/keystone.py#L25

 Please feel free to take the code!! Its only 'real' dependency is the
 keystone client + yaml parsing...

 On 10/10/12 2:23 AM, Alan Pevec ape...@gmail.com wrote:

 On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
 skible.openst...@gmail.com wrote:
  I am counting on our your feedback to enhance my work and contribute it
 to
  the OpenStack Eco System.
 
 I wonder about
 
 https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/
 Scripts
 which say:
 # Mainly inspired by
 https://github.com/openstack/keystone/blob/master/tools/sample_data.sh
 
 Why not submit that as an improvement to Keystone?
 I'd like to propose consolidation of all keystone initialization
 scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
 scripts like yours) and  move to Lorin's YAML config (see
 https://lists.launchpad.net/openstack/msg17204.html)
 I'm just not sure yet if additional dependency on YAML is worth it.
 
 Cheers,
 Alan
 
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp


 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Joshua Harlow
I second this idea, seems like a good way forward.

From: Dolph Mathews dolph.math...@gmail.commailto:dolph.math...@gmail.com
Date: Wednesday, October 10, 2012 3:33 PM
To: Joshua Harlow harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com
Cc: Alan Pevec ape...@gmail.commailto:ape...@gmail.com, Skible OpenStack 
skible.openst...@gmail.commailto:skible.openst...@gmail.com, 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] A simple guide to install OpenStack Folsom

I played around with the idea this afternoon, and settled on something as 
simple as this in keystoneclient rather than keystone-manage:

$ keystone help bootstrap
usage: keystone bootstrap [--user-name user-name] --pass password
  [--role-name role-name]
  [--tenant-name tenant-name]

Grants a new role to a new user on a new tenant, after creating each.

Optional arguments:
  --user-name user-name
The name of the user to be created (default=admin).
  --pass password
The password for the new user.
  --role-name role-name
The name of the role to be created and granted to the 
user (default=admin).
  --tenant-name tenant-name
The name of the tenant to be created (default=admin).

Example usage:

$ keystone-manage db_sync
$ keystone-all
$ keystone --token=ADMIN --endpoint=http://localhost:35357/v2.0/bootstrap 
--pass=secrete
$ keystone --os-username=admin --os-password=secrete --os-tenant-name=admin 
--os-auth-url=http://localhost:35357/v2.0/ token-get
+---+--+
|  Property |  Value   |
+---+--+
|  expires  |   2012-10-11T22:25:02Z   |
| id| 4ae78bd2cd9049888060d07acddf88d1 |
| tenant_id | 8fbba4f7f77e4acb80d746c65f20882b |
|  user_id  | d8e31d9a341243a2bb8d575707a273ea |
+---+--+

The same shortcut idea could apply to other extremely common usage patterns 
on the CLI (e.g. registering a service *and* all of it's endpoints in a single 
CLI command), thus eliminating most of the complexity of basic setup scripts 
like sample_data.sh and it's variants.

I also put this up for review: https://review.openstack.org/#/c/14314

-Dolph


On Wed, Oct 10, 2012 at 1:15 PM, Joshua Harlow 
harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com wrote:
That sounds great to me. I can help out in converting this code into that code.

It seems like a trivial kind of thing to do, what format would that command 
take, a yaml file?

Something similar to 
https://github.com/yahoo/Openstack-Anvil/blob/master/conf/templates/keystone/init_what.yaml
 maybe, idk.

From: Dolph Mathews dolph.math...@gmail.commailto:dolph.math...@gmail.com
Date: Wednesday, October 10, 2012 11:13 AM
To: Joshua Harlow harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com
Cc: Alan Pevec ape...@gmail.commailto:ape...@gmail.com, Skible OpenStack 
skible.openst...@gmail.commailto:skible.openst...@gmail.com, 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] A simple guide to install OpenStack Folsom

I'd like to simplify the scope of sample_data.sh to the absolute bare minimum 
(service tenant, admin role, admin user, identity service/endpoints, etc), and 
integrate it into keystone-manage as a 'bootstrap' command:

$ keystone-manage bootstrap

-Dolph


On Wed, Oct 10, 2012 at 12:34 PM, Joshua Harlow 
harlo...@yahoo-inc.commailto:harlo...@yahoo-inc.com wrote:
You guys should also consider the 'anvil' way of doing this (pure python
baby, haha).

Which is improved from lorin's and has been working for yahoo! for a while
now.

https://github.com/yahoo/Openstack-Anvil/blob/master/anvil/components/helpe
rs/keystone.py#L25https://github.com/yahoo/Openstack-Anvil/blob/master/anvil/components/helpers/keystone.py#L25

Please feel free to take the code!! Its only 'real' dependency is the
keystone client + yaml parsing...

On 10/10/12 2:23 AM, Alan Pevec ape...@gmail.commailto:ape...@gmail.com 
wrote:

On Wed, Oct 10, 2012 at 11:10 AM, Skible OpenStack
skible.openst...@gmail.commailto:skible.openst...@gmail.com wrote:
 I am counting on our your feedback to enhance my work and contribute it
to
 the OpenStack Eco System.

I wonder about
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/tree/master/
Scripts
which say:
# Mainly inspired by
https://github.com/openstack/keystone/blob/master/tools/sample_data.sh

Why not submit that as an improvement to Keystone?
I'd like to propose consolidation of all keystone initialization
scripts around (Keyston's sample_data.sh, Devstack's keystone_data.sh,
scripts like yours) and  move to Lorin's YAML config (see
https://lists.launchpad.net/openstack/msg17204

Re: [Openstack] A simple guide to install OpenStack Folsom

2012-10-10 Thread Asher Newcomer
Hi,

This is great stuff. This is a nicely distilled version of the official
docs for anyone looking for a quick outline, and this includes quantum
rather than nova-net. Thanks much - just what I've been after.


On Wed, Oct 10, 2012 at 4:48 AM, Skible OpenStack 
skible.openst...@gmail.com wrote:

  Hi,

 I proudly present my OpenStack Folsom Install Guide.
 It's simple, easy to use and most of all well tested.

 I am counting our your feedback to enhance my work and contribute it to
 the OpenStack Eco System.

 Direct access to the guide: OpenStack Folsom Install 
 Guidehttps://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst
 Direct access to the git repository: OpenStack Folsom Install Guide
 reposiroty https://github.com/mseknibilel/OpenStack-Folsom-Install-guide


 Best regards.

 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp