[install] Liberty updates for nova
Update nova configuration for Liberty and address some consistency issues. In particular, adjust user and endpoint creation. Change-Id: I8474b138c38aff848fdd59bc58307a342d834dba Implements: blueprint installguide-liberty
This commit is contained in:
parent
16c482533a
commit
cb038fff72
@ -50,7 +50,7 @@ Install and configure components
|
|||||||
|
|
||||||
# apt-get install nova-compute sysfsutils
|
# apt-get install nova-compute sysfsutils
|
||||||
|
|
||||||
2. Edit the :file:`/etc/nova/nova.conf` file and
|
2. Edit the ``/etc/nova/nova.conf`` file and
|
||||||
complete the following actions:
|
complete the following actions:
|
||||||
|
|
||||||
* In the ``[DEFAULT]`` and [oslo_messaging_rabbit]
|
* In the ``[DEFAULT]`` and [oslo_messaging_rabbit]
|
||||||
@ -147,11 +147,6 @@ Install and configure components
|
|||||||
can use a web browser to access remote consoles of instances
|
can use a web browser to access remote consoles of instances
|
||||||
on this compute node.
|
on this compute node.
|
||||||
|
|
||||||
Replace ``MANAGEMENT_INTERFACE_IP_ADDRESS`` with
|
|
||||||
the IP address of the management network interface on your
|
|
||||||
compute node, typically 10.0.0.31 for the first node in the
|
|
||||||
:ref:`example architecture <overview-example-architectures>`.
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
If the web browser to access remote consoles resides on
|
If the web browser to access remote consoles resides on
|
||||||
@ -199,16 +194,14 @@ Install and configure components
|
|||||||
|
|
||||||
.. only:: obs
|
.. only:: obs
|
||||||
|
|
||||||
3.
|
3. Ensure the kernel module ``nbd`` is loaded.
|
||||||
|
|
||||||
* Ensure the kernel module ``nbd`` is loaded.
|
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
# modprobe nbd
|
# modprobe nbd
|
||||||
|
|
||||||
* Ensure the module will be loaded on every boot by adding
|
4. Ensure the module will be loaded on every boot by adding
|
||||||
``nbd`` in the :file:`/etc/modules-load.d/nbd.conf` file.
|
``nbd`` in the ``/etc/modules-load.d/nbd.conf`` file.
|
||||||
|
|
||||||
Finalize installation
|
Finalize installation
|
||||||
---------------------
|
---------------------
|
||||||
@ -231,7 +224,7 @@ Finalize installation
|
|||||||
.. only:: obs or rdo
|
.. only:: obs or rdo
|
||||||
|
|
||||||
* Edit the ``[libvirt]`` section in the
|
* Edit the ``[libvirt]`` section in the
|
||||||
:file:`/etc/nova/nova.conf` file as follows:
|
``/etc/nova/nova.conf`` file as follows:
|
||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
@ -242,7 +235,7 @@ Finalize installation
|
|||||||
.. only:: ubuntu
|
.. only:: ubuntu
|
||||||
|
|
||||||
* Edit the ``[libvirt]`` section in the
|
* Edit the ``[libvirt]`` section in the
|
||||||
:file:`/etc/nova/nova-compute.conf` file as follows:
|
``/etc/nova/nova-compute.conf`` file as follows:
|
||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
|
@ -51,30 +51,27 @@ create a database, service credentials, and API endpoints.
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ openstack user create --password-prompt nova
|
$ openstack user create --domain default --password-prompt nova
|
||||||
User Password:
|
User Password:
|
||||||
Repeat User Password:
|
Repeat User Password:
|
||||||
+----------+----------------------------------+
|
+-----------+----------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+----------+----------------------------------+
|
+-----------+----------------------------------+
|
||||||
| email | None |
|
| domain_id | default |
|
||||||
| enabled | True |
|
| enabled | True |
|
||||||
| id | 8e0b71d732db4bfba04943a96230c8c0 |
|
| id | 8c46e4760902464b889293a74a0c90a8 |
|
||||||
| name | nova |
|
| name | nova |
|
||||||
| username | nova |
|
+-----------+----------------------------------+
|
||||||
+----------+----------------------------------+
|
|
||||||
|
|
||||||
* Add the ``admin`` role to the ``nova`` user:
|
* Add the ``admin`` role to the ``nova`` user:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ openstack role add --project service --user nova admin
|
$ openstack role add --project service --user nova admin
|
||||||
+-------+----------------------------------+
|
|
||||||
| Field | Value |
|
.. note::
|
||||||
+-------+----------------------------------+
|
|
||||||
| id | cd2cb9a39e874ea69e5d4b896eb16128 |
|
This command provides no output.
|
||||||
| name | admin |
|
|
||||||
+-------+----------------------------------+
|
|
||||||
|
|
||||||
* Create the ``nova`` service entity:
|
* Create the ``nova`` service entity:
|
||||||
|
|
||||||
@ -92,27 +89,56 @@ create a database, service credentials, and API endpoints.
|
|||||||
| type | compute |
|
| type | compute |
|
||||||
+-------------+----------------------------------+
|
+-------------+----------------------------------+
|
||||||
|
|
||||||
#. Create the Compute service API endpoint:
|
#. Create the Compute service API endpoints:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ openstack endpoint create \
|
$ openstack endpoint create --region RegionOne \
|
||||||
--publicurl http://controller:8774/v2/%\(tenant_id\)s \
|
compute public http://controller:8774/v2/%\(tenant_id\)s
|
||||||
--internalurl http://controller:8774/v2/%\(tenant_id\)s \
|
|
||||||
--adminurl http://controller:8774/v2/%\(tenant_id\)s \
|
|
||||||
--region RegionOne \
|
|
||||||
compute
|
|
||||||
+--------------+-----------------------------------------+
|
+--------------+-----------------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+--------------+-----------------------------------------+
|
+--------------+-----------------------------------------+
|
||||||
| adminurl | http://controller:8774/v2/%(tenant_id)s |
|
| enabled | True |
|
||||||
| id | 4e885d4ad43f4c4fbf2287734bc58d6b |
|
| id | 3c1caa473bfe4390a11e7177894bcc7b |
|
||||||
| internalurl | http://controller:8774/v2/%(tenant_id)s |
|
| interface | public |
|
||||||
| publicurl | http://controller:8774/v2/%(tenant_id)s |
|
|
||||||
| region | RegionOne |
|
| region | RegionOne |
|
||||||
| service_id | 060d59eac51b4594815603d75a00aba2 |
|
| region_id | RegionOne |
|
||||||
|
| service_id | e702f6f497ed42e6a8ae3ba2e5871c78 |
|
||||||
| service_name | nova |
|
| service_name | nova |
|
||||||
| service_type | compute |
|
| service_type | compute |
|
||||||
|
| url | http://controller:8774/v2/%(tenant_id)s |
|
||||||
|
+--------------+-----------------------------------------+
|
||||||
|
|
||||||
|
$ openstack endpoint create --region RegionOne \
|
||||||
|
compute internal http://controller:8774/v2/%\(tenant_id\)s
|
||||||
|
+--------------+-----------------------------------------+
|
||||||
|
| Field | Value |
|
||||||
|
+--------------+-----------------------------------------+
|
||||||
|
| enabled | True |
|
||||||
|
| id | e3c918de680746a586eac1f2d9bc10ab |
|
||||||
|
| interface | internal |
|
||||||
|
| region | RegionOne |
|
||||||
|
| region_id | RegionOne |
|
||||||
|
| service_id | e702f6f497ed42e6a8ae3ba2e5871c78 |
|
||||||
|
| service_name | nova |
|
||||||
|
| service_type | compute |
|
||||||
|
| url | http://controller:8774/v2/%(tenant_id)s |
|
||||||
|
+--------------+-----------------------------------------+
|
||||||
|
|
||||||
|
$ openstack endpoint create --region RegionOne \
|
||||||
|
compute admin http://controller:8774/v2/%\(tenant_id\)s
|
||||||
|
+--------------+-----------------------------------------+
|
||||||
|
| Field | Value |
|
||||||
|
+--------------+-----------------------------------------+
|
||||||
|
| enabled | True |
|
||||||
|
| id | 38f7af91666a47cfb97b4dc790b94424 |
|
||||||
|
| interface | admin |
|
||||||
|
| region | RegionOne |
|
||||||
|
| region_id | RegionOne |
|
||||||
|
| service_id | e702f6f497ed42e6a8ae3ba2e5871c78 |
|
||||||
|
| service_name | nova |
|
||||||
|
| service_type | compute |
|
||||||
|
| url | http://controller:8774/v2/%(tenant_id)s |
|
||||||
+--------------+-----------------------------------------+
|
+--------------+-----------------------------------------+
|
||||||
|
|
||||||
Install and configure components
|
Install and configure components
|
||||||
@ -152,7 +178,7 @@ Install and configure components
|
|||||||
nova-consoleauth nova-novncproxy nova-scheduler \
|
nova-consoleauth nova-novncproxy nova-scheduler \
|
||||||
python-novaclient
|
python-novaclient
|
||||||
|
|
||||||
2. Edit the :file:`/etc/nova/nova.conf` file and
|
2. Edit the ``/etc/nova/nova.conf`` file and
|
||||||
complete the following actions:
|
complete the following actions:
|
||||||
|
|
||||||
* Add a ``[database]`` section, and configure database access:
|
* Add a ``[database]`` section, and configure database access:
|
||||||
@ -288,7 +314,7 @@ Install and configure components
|
|||||||
...
|
...
|
||||||
lock_path = /var/lib/nova/tmp
|
lock_path = /var/lib/nova/tmp
|
||||||
|
|
||||||
* In the ``[DEFAULT]`` section, disable the in tree EC2 API:
|
* In the ``[DEFAULT]`` section, disable the EC2 API:
|
||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user