diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-03 00:13:26 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-03 01:16:44 -0400 |
| commit | 718ecf27999c69acae27992123d2a7fe85d64c77 (patch) | |
| tree | f370758756b2d1ea4d3ebff5016ca0f8dce06f7c /meta-openstack/README.setup | |
| parent | e993ac074388eba8ebc96afbe5ae0e3a702921e2 (diff) | |
| download | meta-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>
Diffstat (limited to 'meta-openstack/README.setup')
| -rw-r--r-- | meta-openstack/README.setup | 79 |
1 files changed, 57 insertions, 22 deletions
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 | |||
| 4 | Description | 4 | Description |
| 5 | ----------- | 5 | ----------- |
| 6 | 6 | ||
| 7 | The meta-openstack layer provides support for building the OpenStack | 7 | The meta-openstack layers provide support for building the OpenStack |
| 8 | packages. It contains recipes for the nova, glance, keystone, cinder, | 8 | packages. It contains recipes for the nova, glance, keystone, cinder, |
| 9 | quantum, swift and horizon components and their dependencies. | 9 | quantum, swift and horizon components and their dependencies. |
| 10 | 10 | ||
| 11 | The main meta-openstack layer, works in conjunction with the meta-openstack* | ||
| 12 | layers to configure and deploy a system. | ||
| 13 | |||
| 11 | Components | 14 | Components |
| 12 | ---------- | 15 | ---------- |
| 13 | 16 | ||
| @@ -53,7 +56,7 @@ Components | |||
| 53 | Dependencies | 56 | Dependencies |
| 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 |
| 57 | meta-openembedded layers. You can find the exact URIs of the repos and the | 60 | meta-openembedded layers. You can find the exact URIs of the repos and the |
| 58 | necessary revisions in the README file. | 61 | necessary revisions in the README file. |
| 59 | 62 | ||
| @@ -69,9 +72,12 @@ Building an image | |||
| 69 | to the bblayers.conf file: | 72 | to 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 | ||
| 76 | Package configurations | 82 | Package configurations |
| 77 | ---------------------- | 83 | ---------------------- |
| @@ -81,35 +87,64 @@ for the Keystone identity system. If you want to customize the usernames or | |||
| 81 | passwords don't forget to change the information in the configuration files | 87 | passwords don't forget to change the information in the configuration files |
| 82 | for the services as well. | 88 | for the services as well. |
| 83 | 89 | ||
| 90 | The hosts.bbclass contains the IP addresses of the compute and controller | ||
| 91 | nodes that will seed the system. It also contains the IP address of the | ||
| 92 | node being built "MY_IP". Override this class in a layer to provide values | ||
| 93 | that are specific to your configuration. The defaults are suitable for a | ||
| 94 | 2 node system launched via runqemu. | ||
| 95 | |||
| 96 | If deploying to a simulated system, add the qemu deployment layer to the | ||
| 97 | bblayers.conf file, after the node type deployment layer. | ||
| 98 | |||
| 99 | * Sample Guest Image * | ||
| 100 | |||
| 101 | If a sample guest image is desired on a control node, the following can | ||
| 102 | be added to local.conf: | ||
| 103 | |||
| 104 | IMAGE_INSTALL_append = " cirros-guest-image" | ||
| 105 | |||
| 84 | Running an image | 106 | Running an image |
| 85 | ---------------- | 107 | ---------------- |
| 86 | 108 | ||
| 109 | To test the images, you can run them using the runqemu script (on a machine | ||
| 110 | with appropriate accleration). | ||
| 111 | |||
| 112 | In order to use the command line clients (nova, keystone, glance etc) some | ||
| 113 | environmental variables have to be set. These are required by the openstack | ||
| 114 | services to connect to the identity service and authenticate the user. These | ||
| 115 | can be found in /root/.bashrc or /etc/nova/openrc. | ||
| 116 | |||
| 87 | * Controller node * | 117 | * Controller node * |
| 88 | 118 | ||
| 89 | To test the image, you can run it using the runqemu script. In order to use | 119 | All the installed OpenStack services nova(except compute), keystone, glance, |
| 90 | the command line clients (nova, keystone, glance etc) some environmental | 120 | cinder, quantum, swift horizon should be running after a successful boot. |
| 91 | variables have to be set. These are required by the openstack services to | 121 | |
| 92 | connect to the identity service and authenticate the user. These can be found | 122 | % bitbake openstack-image-controller |
| 93 | in /root/.bashrc. If you start a new bash session they are automatically | 123 | % runqemu qemux86-64 openstack-image-controller kvm nographic qemuparams="-m 4096" |
| 94 | loaded. All the installed OpenStack services nova(except compute), keystone, | ||
| 95 | glance, cinder, quantum, swift horizon should be running after a successful | ||
| 96 | boot. | ||
| 97 | 124 | ||
| 98 | The dashboard component is listening for new connections on port 8080. You can | 125 | The dashboard component is listening for new connections on port 8080. You can |
| 99 | connect to it using any browser. | 126 | connect to it using any browser. |
| 100 | 127 | ||
| 101 | * Compute node * | 128 | * Compute Node * |
| 102 | 129 | ||
| 103 | The configuration files for the nova package are for a controller node so some | 130 | All the installed OpenStack compute services nova, quantum, should be running |
| 104 | options have to be changed for the compute service to properly work. You have | 131 | after a successful boot. |
| 105 | to 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 | ||
| 111 | Once the changes are done you have to restart the nova-compute service. | 136 | * Image Launch * |
| 137 | |||
| 138 | Assuing that the cirros-guest-image has been added to the control image, the | ||
| 139 | following 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 !! |
| 114 | When using a multi-node setup it is recommended that each host have a different | 148 | |
| 115 | hostname 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. | ||
