summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-10-03 00:13:26 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-10-03 01:16:44 -0400
commit718ecf27999c69acae27992123d2a7fe85d64c77 (patch)
treef370758756b2d1ea4d3ebff5016ca0f8dce06f7c
parente993ac074388eba8ebc96afbe5ae0e3a702921e2 (diff)
downloadmeta-cloud-services-718ecf27999c69acae27992123d2a7fe85d64c77.tar.gz
meta-openstack: documentation updates
syncing the documentation to match the current layers, configuration and launch. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--README16
-rw-r--r--meta-openstack/README7
-rw-r--r--meta-openstack/README.setup79
3 files changed, 76 insertions, 26 deletions
diff --git a/README b/README
index ca10870..a4fe714 100644
--- a/README
+++ b/README
@@ -17,6 +17,22 @@ branch: master
17revision: HEAD 17revision: HEAD
18prio: default 18prio: default
19 19
20
21Layers
22------
23
24openstack layers
25----------------
26
27There are four openstack layers that are used to build a controller/compute
28node image pair. The dependencies of these layers are also required for a
29build, and are listed in the layers themselves.
30
31 - meta-cloud-services/meta-openstack
32 - meta-cloud-services/meta-openstack-compute-deploy
33 - meta-cloud-services/meta-openstack-controller-deploy
34 - meta-cloud-services/meta-openstack-qemu
35
20Maintenance 36Maintenance
21----------- 37-----------
22 38
diff --git a/meta-openstack/README b/meta-openstack/README
index ffbea6e..cb32482 100644
--- a/meta-openstack/README
+++ b/meta-openstack/README
@@ -49,10 +49,9 @@ in tree for individual recipes is under the LICENSE stated in each recipe
49Target images 49Target images
50------------- 50-------------
51 51
52There are target images: openstack-image-compute, openstack-image-network, 52Target images: openstack-image-compute, openstack-image-network, openstack-image-controller.
53openstack-image-controller.
54 53
55They contain the packagegroups with the same name and can be used to create 54They contain the packagegroups with the same name and can be used to create
56the ypes of targets. There are no extra configurations required to build 55the types of targets. There are no extra configurations required to build
57these images. 56these images. See README.setup for more details.
58 57
diff --git a/meta-openstack/README.setup b/meta-openstack/README.setup
index 2b2aeb9..f786735 100644
--- a/meta-openstack/README.setup
+++ b/meta-openstack/README.setup
@@ -4,10 +4,13 @@ Meta-OpenStack
4Description 4Description
5----------- 5-----------
6 6
7The meta-openstack layer provides support for building the OpenStack 7The meta-openstack layers provide support for building the OpenStack
8packages. It contains recipes for the nova, glance, keystone, cinder, 8packages. It contains recipes for the nova, glance, keystone, cinder,
9quantum, swift and horizon components and their dependencies. 9quantum, swift and horizon components and their dependencies.
10 10
11The main meta-openstack layer, works in conjunction with the meta-openstack*
12layers to configure and deploy a system.
13
11Components 14Components
12---------- 15----------
13 16
@@ -53,7 +56,7 @@ Components
53Dependencies 56Dependencies
54------------ 57------------
55 58
56* This layers depends on components from the poky, meta-virtualization and 59* This layer depends on components from the poky, meta-virtualization and
57meta-openembedded layers. You can find the exact URIs of the repos and the 60meta-openembedded layers. You can find the exact URIs of the repos and the
58necessary revisions in the README file. 61necessary revisions in the README file.
59 62
@@ -69,9 +72,12 @@ Building an image
69to the bblayers.conf file: 72to the bblayers.conf file:
70 73
71 /meta-virtualization \ 74 /meta-virtualization \
72 /meta-cloud/meta-openstack \ 75 /meta-cloud-services/meta-openstack-<node type>-deploy \
76 /meta-cloud-services/meta-openstack \
77 /meta-cloud-services/meta-openstack-qemu \ # optional, add if using qemu
78 /meta-cloud-services/meta-openstack \
73 /meta-openembedded/meta-oe \ 79 /meta-openembedded/meta-oe \
74 /meta-openembedded/meta-networking \ 80 /meta-openembedded/meta-networking \
75 81
76Package configurations 82Package configurations
77---------------------- 83----------------------
@@ -81,35 +87,64 @@ for the Keystone identity system. If you want to customize the usernames or
81passwords don't forget to change the information in the configuration files 87passwords don't forget to change the information in the configuration files
82for the services as well. 88for the services as well.
83 89
90The hosts.bbclass contains the IP addresses of the compute and controller
91nodes that will seed the system. It also contains the IP address of the
92node being built "MY_IP". Override this class in a layer to provide values
93that are specific to your configuration. The defaults are suitable for a
942 node system launched via runqemu.
95
96If deploying to a simulated system, add the qemu deployment layer to the
97bblayers.conf file, after the node type deployment layer.
98
99* Sample Guest Image *
100
101If a sample guest image is desired on a control node, the following can
102be added to local.conf:
103
104 IMAGE_INSTALL_append = " cirros-guest-image"
105
84Running an image 106Running an image
85---------------- 107----------------
86 108
109To test the images, you can run them using the runqemu script (on a machine
110with appropriate accleration).
111
112In order to use the command line clients (nova, keystone, glance etc) some
113environmental variables have to be set. These are required by the openstack
114services to connect to the identity service and authenticate the user. These
115can be found in /root/.bashrc or /etc/nova/openrc.
116
87* Controller node * 117* Controller node *
88 118
89To test the image, you can run it using the runqemu script. In order to use 119All the installed OpenStack services nova(except compute), keystone, glance,
90the command line clients (nova, keystone, glance etc) some environmental 120cinder, quantum, swift horizon should be running after a successful boot.
91variables have to be set. These are required by the openstack services to 121
92connect to the identity service and authenticate the user. These can be found 122 % bitbake openstack-image-controller
93in /root/.bashrc. If you start a new bash session they are automatically 123 % runqemu qemux86-64 openstack-image-controller kvm nographic qemuparams="-m 4096"
94loaded. All the installed OpenStack services nova(except compute), keystone,
95glance, cinder, quantum, swift horizon should be running after a successful
96boot.
97 124
98The dashboard component is listening for new connections on port 8080. You can 125The dashboard component is listening for new connections on port 8080. You can
99connect to it using any browser. 126connect to it using any browser.
100 127
101* Compute node * 128* Compute Node *
102 129
103The configuration files for the nova package are for a controller node so some 130All the installed OpenStack compute services nova, quantum, should be running
104options have to be changed for the compute service to properly work. You have 131after a successful boot.
105to replace localhost to the controller node IP in the following files:
106 132
107 /etc/nova/nova.conf: sql_connection; rabbit_host; 133 % bitbake openstack-image-compute
108 /etc/nova/api-paste.ini: auth_host; 134 % runqemu qemux86-64 openstack-image-compute kvm nographic qemuparams="-m 4096"
109 /root/.bashrc: SERVICE_ENDPOINT, OS_AUTH_URL;
110 135
111Once the changes are done you have to restart the nova-compute service. 136* Image Launch *
137
138Assuing that the cirros-guest-image has been added to the control image, the
139following steps will validate a simple compute node guest launch:
140
141 % . /etc/nova/openrc
142 % glance image-create --name myFirstImage --is-public true \
143 --container-format bare --disk-format qcow2 --file images/cirros-0.3.0-x86_64-disk.img
144 % quantum net-create mynetwork
145 % nova boot --image myFirstImage --flavor 1 myinstance
112 146
113!! Hint !! 147!! Hint !!
114When using a multi-node setup it is recommended that each host have a different 148
115hostname and that every host knows the other hosts. 149 When using a multi-node setup it is recommended that each host have a different
150 hostname and that every host knows the other hosts.