Jump to: navigation, search

Difference between revisions of "Meteos/Devstack"

(Created page with "== Setup DevStack == DevStack can be installed on Fedora, Ubuntu, and CentOS. For supported versions see [http://devstack.org/ DevStack documentation] This documentation based...")
 
m (3. Stark DevStack)
 
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
== Setup DevStack ==
 
== Setup DevStack ==
 
DevStack can be installed on Fedora, Ubuntu, and CentOS. For supported versions see [http://devstack.org/ DevStack documentation]
 
DevStack can be installed on Fedora, Ubuntu, and CentOS. For supported versions see [http://devstack.org/ DevStack documentation]
 +
 
This documentation based on [http://docs.openstack.org/developer/sahara/devref/devstack.html Setup Sahara on Devstack]
 
This documentation based on [http://docs.openstack.org/developer/sahara/devref/devstack.html Setup Sahara on Devstack]
  
Line 7: Line 8:
 
=== 1. Install DevStack ===
 
=== 1. Install DevStack ===
  
$ sudo apt-get install git-core
+
<pre>
$ git clone https://git.openstack.org/openstack-dev/devstack.git
+
$ sudo apt-get install git-core
 +
$ git clone https://git.openstack.org/openstack-dev/devstack.git
 +
$ cd devstack/
 +
</pre>
  
 
=== 2. Create the file local.conf ===
 
=== 2. Create the file local.conf ===
Line 14: Line 18:
 
Create the file local.conf in devstack directory with the following content
 
Create the file local.conf in devstack directory with the following content
  
[[[[local|localrc]]]]
+
<pre>
ADMIN_PASSWORD=nova
+
[[local|localrc]]
MYSQL_PASSWORD=nova
+
ADMIN_PASSWORD=nova
RABBIT_PASSWORD=nova
+
MYSQL_PASSWORD=nova
SERVICE_PASSWORD=$ADMIN_PASSWORD
+
RABBIT_PASSWORD=nova
SERVICE_TOKEN=nova
+
SERVICE_PASSWORD=$ADMIN_PASSWORD
+
SERVICE_TOKEN=nova
HOST_IP=<YOUR_IP_ADDRESS>
+
 
+
HOST_IP=<YOUR_IP_ADDRESS>
# Enable Swift
+
 
enable_service s-proxy s-object s-container s-account
+
# Enable Swift
+
enable_service s-proxy s-object s-container s-account
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
+
 
SWIFT_REPLICAS=1
+
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_DATA_DIR=$DEST/data
+
SWIFT_REPLICAS=1
+
SWIFT_DATA_DIR=$DEST/data
# Force checkout prerequisites
+
 
# FORCE_PREREQ=1
+
# Force checkout prerequisites
+
# FORCE_PREREQ=1
# keystone is now configured by default to use PKI as the token format
+
 
# which produces huge tokens.
+
# keystone is now configured by default to use PKI as the token format
# set UUID as keystone token format which is much shorter and easier to
+
# which produces huge tokens.
# work with.
+
# set UUID as keystone token format which is much shorter and easier to
KEYSTONE_TOKEN_FORMAT=UUID
+
# work with.
+
KEYSTONE_TOKEN_FORMAT=UUID
# Change the FLOATING_RANGE to whatever IPs VM is working in.
+
 
# In NAT mode it is the subnet VMware Fusion provides, in bridged mode
+
# Change the FLOATING_RANGE to whatever IPs VM is working in.
# it is your local network. But only use the top end of the network by
+
# In NAT mode it is the subnet VMware Fusion provides, in bridged mode
# using a /27 and starting at the 224 octet.
+
# it is your local network. But only use the top end of the network by
FLOATING_RANGE=192.168.55.224/27
+
# using a /27 and starting at the 224 octet.
+
FLOATING_RANGE=192.168.55.224/27
# Enable logging
+
 
SCREEN_LOGDIR=$DEST/logs/screen
+
# Enable logging
+
SCREEN_LOGDIR=$DEST/logs/screen
# Set ``OFFLINE`` to ``True`` to configure ``stack.sh`` to run cleanly
+
 
# without Internet access. ``stack.sh`` must have been previously run
+
# Set ``OFFLINE`` to ``True`` to configure ``stack.sh`` to run cleanly
# with Internet access to install prerequisites and fetch repositories.
+
# without Internet access. ``stack.sh`` must have been previously run
# OFFLINE=True
+
# with Internet access to install prerequisites and fetch repositories.
+
# OFFLINE=True
# Enable sahara
+
 
enable_plugin sahara git://git.openstack.org/openstack/sahara
+
# Enable heat, sahara and meteos
enable_plugin meteos git://git.openstack.org/openstack/meteos
+
enable_plugin heat https://git.openstack.org/openstack/heat
 +
enable_plugin sahara https://git.openstack.org/openstack/sahara
 +
enable_plugin meteos https://git.openstack.org/openstack/meteos
 +
enable_plugin meteos-ui https://git.openstack.org/openstack/meteos-ui
 +
</pre>
 +
 
 +
=== 3. Start DevStack ===
 +
 
 +
<pre>
 +
$ ./stack.sh
 +
</pre>
 +
 
 +
=== 4. Upload Meteos Image ===
 +
 
 +
Upload Meteos Image to Glance.
  
=== 3. Stark DevStack ===
+
This Image is developed based on [http://sahara-files.mirantis.com/images/upstream/ Sahara Spark Image].
  
$ ./stack.sh
+
<pre>
 +
$ wget https://gitlab.com/guchi-hiro/meteos-images/raw/master/meteos-1.6.img
 +
$ source ~/devstack/openrc demo
 +
$ glance image-create --name meteos --container-format bare --disk-format qcow2 --file meteos-1.6.img
 +
</pre>

Latest revision as of 00:56, 28 June 2017

Setup DevStack

DevStack can be installed on Fedora, Ubuntu, and CentOS. For supported versions see DevStack documentation

This documentation based on Setup Sahara on Devstack

We recommend that you install DevStack in a VM, rather than on your main system.

1. Install DevStack

$ sudo apt-get install git-core
$ git clone https://git.openstack.org/openstack-dev/devstack.git
$ cd devstack/

2. Create the file local.conf

Create the file local.conf in devstack directory with the following content

[[local|localrc]]
ADMIN_PASSWORD=nova
MYSQL_PASSWORD=nova
RABBIT_PASSWORD=nova
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=nova

HOST_IP=<YOUR_IP_ADDRESS>

# Enable Swift
enable_service s-proxy s-object s-container s-account

SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data

# Force checkout prerequisites
# FORCE_PREREQ=1

# keystone is now configured by default to use PKI as the token format
# which produces huge tokens.
# set UUID as keystone token format which is much shorter and easier to
# work with.
KEYSTONE_TOKEN_FORMAT=UUID

# Change the FLOATING_RANGE to whatever IPs VM is working in.
# In NAT mode it is the subnet VMware Fusion provides, in bridged mode
# it is your local network. But only use the top end of the network by
# using a /27 and starting at the 224 octet.
FLOATING_RANGE=192.168.55.224/27

# Enable logging
SCREEN_LOGDIR=$DEST/logs/screen

# Set ``OFFLINE`` to ``True`` to configure ``stack.sh`` to run cleanly
# without Internet access. ``stack.sh`` must have been previously run
# with Internet access to install prerequisites and fetch repositories.
# OFFLINE=True

# Enable heat, sahara and meteos
enable_plugin heat https://git.openstack.org/openstack/heat
enable_plugin sahara https://git.openstack.org/openstack/sahara
enable_plugin meteos https://git.openstack.org/openstack/meteos
enable_plugin meteos-ui https://git.openstack.org/openstack/meteos-ui

3. Start DevStack

$ ./stack.sh

4. Upload Meteos Image

Upload Meteos Image to Glance.

This Image is developed based on Sahara Spark Image.

$ wget https://gitlab.com/guchi-hiro/meteos-images/raw/master/meteos-1.6.img
$ source ~/devstack/openrc demo
$ glance image-create --name meteos --container-format bare --disk-format qcow2 --file meteos-1.6.img