From ebcf3282e1503299b225ea15efd8c323f0015ce5 Mon Sep 17 00:00:00 2001 From: Petr Kovar <pkovar@redhat.com> Date: Fri, 22 Jul 2016 18:52:05 +0200 Subject: [PATCH] [install] Remove duplicate heat content Since launch-instance-heat was moved to the heat install guide, replace the content with a link to the project install guide. Change-Id: I060e9708bce34337369a3f1dfe394451e559c577 Partially-Implements: blueprint projectspecificinstallguides --- .../source/launch-instance-heat.rst | 1 - .../source/launch-instance-heat.rst | 135 ------------------ doc/install-guide/source/launch-instance.rst | 6 +- 3 files changed, 2 insertions(+), 140 deletions(-) delete mode 120000 doc/install-guide-debconf/source/launch-instance-heat.rst delete mode 100644 doc/install-guide/source/launch-instance-heat.rst diff --git a/doc/install-guide-debconf/source/launch-instance-heat.rst b/doc/install-guide-debconf/source/launch-instance-heat.rst deleted file mode 120000 index 0379434a3a..0000000000 --- a/doc/install-guide-debconf/source/launch-instance-heat.rst +++ /dev/null @@ -1 +0,0 @@ -../../install-guide/source/launch-instance-heat.rst \ No newline at end of file diff --git a/doc/install-guide/source/launch-instance-heat.rst b/doc/install-guide/source/launch-instance-heat.rst deleted file mode 100644 index 2d38169006..0000000000 --- a/doc/install-guide/source/launch-instance-heat.rst +++ /dev/null @@ -1,135 +0,0 @@ -.. _launch-instance-heat: - -Orchestration -~~~~~~~~~~~~~ - -Create a template ------------------ - -The Orchestration service uses templates to describe stacks. -To learn about the template language, see `the Template Guide -<http://docs.openstack.org/developer/heat/template_guide/index.html>`__ -in the `Heat developer documentation -<http://docs.openstack.org/developer/heat/index.html>`__. - -* Create the ``demo-template.yml`` file with the following content: - - .. code-block:: yaml - - heat_template_version: 2015-10-15 - description: Launch a basic instance with CirrOS image using the - ``m1.tiny`` flavor, ``mykey`` key, and one network. - - parameters: - NetID: - type: string - description: Network ID to use for the instance. - - resources: - server: - type: OS::Nova::Server - properties: - image: cirros - flavor: m1.tiny - key_name: mykey - networks: - - network: { get_param: NetID } - - outputs: - instance_name: - description: Name of the instance. - value: { get_attr: [ server, name ] } - instance_ip: - description: IP address of the instance. - value: { get_attr: [ server, first_address ] } - -Create a stack --------------- - -Create a stack using the ``demo-template.yml`` template. - -#. Source the ``demo`` credentials to perform - the following steps as a non-administrative project: - - .. code-block:: console - - $ . demo-openrc - -#. Determine available networks. - - .. code-block:: console - - $ openstack network list - +--------------------------------------+-------------+--------------------------------------+ - | ID | Name | Subnets | - +--------------------------------------+-------------+--------------------------------------+ - | 4716ddfe-6e60-40e7-b2a8-42e57bf3c31c | selfservice | 2112d5eb-f9d6-45fd-906e-7cabd38b7c7c | - | b5b6993c-ddf9-40e7-91d0-86806a42edb8 | provider | 310911f6-acf0-4a47-824e-3032916582ff | - +--------------------------------------+-------------+--------------------------------------+ - - .. note:: - - This output may differ from your environment. - -#. Set the ``NET_ID`` environment variable to reflect the ID of a network. - For example, using the provider network: - - .. code-block:: console - - $ export NET_ID=$(openstack network list | awk '/ provider / { print $2 }') - -#. Create a stack of one CirrOS instance on the provider network: - - .. code-block:: console - - $ openstack stack create -t demo-template.yml --parameter "NetID=$NET_ID" stack - +--------------------------------------+------------+--------------------+---------------------+--------------+ - | ID | Stack Name | Stack Status | Creation Time | Updated Time | - +--------------------------------------+------------+--------------------+---------------------+--------------+ - | dbf46d1b-0b97-4d45-a0b3-9662a1eb6cf3 | stack | CREATE_IN_PROGRESS | 2015-10-13T15:27:20 | None | - +--------------------------------------+------------+--------------------+---------------------+--------------+ - -#. After a short time, verify successful creation of the stack: - - .. code-block:: console - - $ openstack stack list - +--------------------------------------+------------+-----------------+---------------------+--------------+ - | ID | Stack Name | Stack Status | Creation Time | Updated Time | - +--------------------------------------+------------+-----------------+---------------------+--------------+ - | dbf46d1b-0b97-4d45-a0b3-9662a1eb6cf3 | stack | CREATE_COMPLETE | 2015-10-13T15:27:20 | None | - +--------------------------------------+------------+-----------------+---------------------+--------------+ - -#. Show the name and IP address of the instance and compare with the output - of the OpenStack client: - - .. code-block:: console - - $ openstack stack output show --all stack - [ - { - "output_value": "stack-server-3nzfyfofu6d4", - "description": "Name of the instance.", - "output_key": "instance_name" - }, - { - "output_value": "10.4.31.106", - "description": "IP address of the instance.", - "output_key": "instance_ip" - } - ] - - .. code-block:: console - - $ openstack server list - +--------------------------------------+---------------------------+--------+---------------------------------+ - | ID | Name | Status | Networks | - +--------------------------------------+---------------------------+--------+---------------------------------+ - | 0fc2af0c-ae79-4d22-8f36-9e860c257da5 | stack-server-3nzfyfofu6d4 | ACTIVE | public=10.4.31.106 | - +--------------------------------------+---------------------------+--------+---------------------------------+ - -#. Delete the stack. - - .. code-block:: console - - $ openstack stack delete --yes stack diff --git a/doc/install-guide/source/launch-instance.rst b/doc/install-guide/source/launch-instance.rst index 6972f239fe..f5724d349f 100644 --- a/doc/install-guide/source/launch-instance.rst +++ b/doc/install-guide/source/launch-instance.rst @@ -180,10 +180,8 @@ Orchestration If your environment includes the Orchestration service, you can create a stack that launches an instance. -.. toctree:: - :maxdepth: 1 - - launch-instance-heat.rst +For more information, see the +`Orchestration installation guide <http://docs.openstack.org/project-install-guide/orchestration/draft/launch-instance.html>`_. Shared File Systems -------------------