Difference between pages "Stage 4 Test" and "OpenStack HOWTO"

(Difference between pages)
(Created page with "Assuming Funtoo Current. == Kernel == <pre> emerge vanilla-sources </pre> == Kernel .config == <pre> mv /usr/src/linux/.config /usr/src/linux/.config-old git clone https://g...")
 
 
Line 1: Line 1:
Assuming Funtoo Current.
+
== Installation ==
  
== Kernel ==
+
This section contains a work-in-progress list of steps to get OpenStack up and running under Funtoo Linux:
<pre>
+
emerge vanilla-sources
+
</pre>
+
  
== Kernel .config ==
+
<console>
<pre>
+
# ##i##emerge rabbitmq-server
mv /usr/src/linux/.config /usr/src/linux/.config-old
+
# ##i##rc-update add rabbitmq default
git clone https://gist.github.com/2604445.git
+
# ##i##rc
cp 2604445/usrsrclinux.config/txt /usr/src/linux/.config
+
</console>
</pre>
+
  
== Building ==
+
RabbitMQ is now running. Now let's create an openstack user with password <tt>foobar</tt>:
If you have lvm add --lvm
+
<pre>
+
genkernel --no-mrproper all
+
</pre>
+
  
== Update boot ==
+
<console>
You may need to view <pre> man boot.conf </pre> for a proper entry. Or ask hoverbear on freenode.
+
# ##i##rabbitmqctl add_user openstack foobar
<pre>
+
Creating user "openstack" ...
boot-update
+
...done.
</pre>
+
</console>
 +
 
 +
Now, let's get [[Keystone]] up and running. Let's emerge it:
 +
 
 +
<console>
 +
# ##i##emerge keystone
 +
</console>
 +
 
 +
A working sample configuration file will be installed automatically at <tt>/etc/keystone/keystone.conf</tt>.
 +
 
 +
Note that <tt>admin_token</tt> is set to <tt>ADMIN</tt> by default. This is the master password for Keystone. You may want to change this to something harder to guess. We can disable <tt>admin_token</tt> later for enhanced security.
 +
 
 +
<console>
 +
# ##i## rc-update add keystone default
 +
# ##i## rc
 +
</console>
 +
 
 +
By default, Keystone is configured to store its data in a SQLite database located at <tt>/etc/keystone/keystone.db</tt>. Let's initialize this database:
 +
 
 +
<console>
 +
# ##i## emerge --config keystone
 +
 
 +
 
 +
Configuring pkg...
 +
 
 +
* Got admin_token (SERVICE_TOKEN) of 'ADMIN'
 +
* Please provide a password for the Keystone admin account:
 +
    > ##i##admin_fu
 +
* Retype the password
 +
    > ##i##admin_fu
 +
* Please provide a password for the Keystone service account:
 +
    > ##i##foobar
 +
* Retype the password
 +
    > ##i##foobar
 +
* Initializing Keystone database
 +
Running keystone tenant-create --name=admin
 +
> Set ADMIN_TENANT to 9899297af5b14c659e1379be52c7cede
 +
Running keystone tenant-create --name=service
 +
> Set SERVICE_TENANT to f3174098741b4311a2b5b660be5832d0
 +
Running keystone tenant-create --name=demo
 +
> Set DEMO_TENANT to 706a116a401649c7a0011447b3f1fc3b
 +
Running keystone tenant-create --name=invisible_to_admin
 +
> Set INVIS_TENANT to 8b5d5f84f2df41deae446fee8db94b23
 +
Running keystone user-create --name=admin --pass=admin_fu --email=admin@example.com
 +
> Set ADMIN_USER to 58a4decfe6254efeb6ee926ac5b49877
 +
Running keystone user-create --name=demo --pass=admin_fu --email=demo@example.com
 +
> Set DEMO_USER to 55294a0dcac442b389c068df78320665
 +
Running keystone role-create --name=admin
 +
> Set ADMIN_ROLE to 0bcfd242ac454e618ca13b6d675d32ae
 +
Running keystone role-create --name=KeystoneAdmin
 +
> Set KEYSTONEADMIN_ROLE to 135a5c0c02a547e0a41db868ea3e7988
 +
Running keystone role-create --name=KeystoneServiceAdmin
 +
> Set KEYSTONESERVICE_ROLE to b05ee92c99554757bd5cd0ee8664ce79
 +
Running keystone role-create --name=anotherrole
 +
> Set ANOTHER_ROLE to 15f10605d9cf4989affe63f2d88c6caf
 +
Running keystone role-create --name=Member
 +
> Set MEMBER_ROLE to 57ab630817dc42ac93dcaf940046b3ee
 +
Running keystone user-create --name=nova --pass=foobar --tenant_id f3174098741b4311a2b5b660be5832d0 --email=nova@example.com
 +
> Set NOVA_USER to 954c2af002c2448984d4d6ffeb4ba036
 +
Running keystone user-create --name=glance --pass=foobar --tenant_id f3174098741b4311a2b5b660be5832d0 --email=glance@example.com
 +
> Set GLANCE_USER to 8d76afbd242942e99a1756f6a6789578
 +
* Completed successfully!
 +
 
 +
#
 +
</console>
 +
 
 +
[[Category:OpenStack]]

Latest revision as of 05:50, May 8, 2012

Installation

This section contains a work-in-progress list of steps to get OpenStack up and running under Funtoo Linux:

# emerge rabbitmq-server
# rc-update add rabbitmq default
# rc

RabbitMQ is now running. Now let's create an openstack user with password foobar:

# rabbitmqctl add_user openstack foobar
Creating user "openstack" ...
...done.

Now, let's get Keystone up and running. Let's emerge it:

# emerge keystone

A working sample configuration file will be installed automatically at /etc/keystone/keystone.conf.

Note that admin_token is set to ADMIN by default. This is the master password for Keystone. You may want to change this to something harder to guess. We can disable admin_token later for enhanced security.

#  rc-update add keystone default
#  rc

By default, Keystone is configured to store its data in a SQLite database located at /etc/keystone/keystone.db. Let's initialize this database:

#  emerge --config keystone


Configuring pkg...

 * Got admin_token (SERVICE_TOKEN) of 'ADMIN'
 * Please provide a password for the Keystone admin account:
    > admin_fu
 * Retype the password
    > admin_fu
 * Please provide a password for the Keystone service account:
    > foobar
 * Retype the password
    > foobar
 * Initializing Keystone database
Running keystone tenant-create --name=admin
 > Set ADMIN_TENANT to 9899297af5b14c659e1379be52c7cede
Running keystone tenant-create --name=service
 > Set SERVICE_TENANT to f3174098741b4311a2b5b660be5832d0
Running keystone tenant-create --name=demo
 > Set DEMO_TENANT to 706a116a401649c7a0011447b3f1fc3b
Running keystone tenant-create --name=invisible_to_admin
 > Set INVIS_TENANT to 8b5d5f84f2df41deae446fee8db94b23
Running keystone user-create --name=admin --pass=admin_fu --email=admin@example.com
 > Set ADMIN_USER to 58a4decfe6254efeb6ee926ac5b49877
Running keystone user-create --name=demo --pass=admin_fu --email=demo@example.com
 > Set DEMO_USER to 55294a0dcac442b389c068df78320665
Running keystone role-create --name=admin
 > Set ADMIN_ROLE to 0bcfd242ac454e618ca13b6d675d32ae
Running keystone role-create --name=KeystoneAdmin
 > Set KEYSTONEADMIN_ROLE to 135a5c0c02a547e0a41db868ea3e7988
Running keystone role-create --name=KeystoneServiceAdmin
 > Set KEYSTONESERVICE_ROLE to b05ee92c99554757bd5cd0ee8664ce79
Running keystone role-create --name=anotherrole
 > Set ANOTHER_ROLE to 15f10605d9cf4989affe63f2d88c6caf
Running keystone role-create --name=Member
 > Set MEMBER_ROLE to 57ab630817dc42ac93dcaf940046b3ee
Running keystone user-create --name=nova --pass=foobar --tenant_id f3174098741b4311a2b5b660be5832d0 --email=nova@example.com
 > Set NOVA_USER to 954c2af002c2448984d4d6ffeb4ba036
Running keystone user-create --name=glance --pass=foobar --tenant_id f3174098741b4311a2b5b660be5832d0 --email=glance@example.com
 > Set GLANCE_USER to 8d76afbd242942e99a1756f6a6789578
 * Completed successfully!

#