Skip to content

Commit

Permalink
Update documentation according to suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
agileshaw committed Jan 9, 2024
1 parent c4f131e commit 36772a1
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 38 deletions.
8 changes: 0 additions & 8 deletions docs/explanation/analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,3 @@ from Juju: the model status and the configuration for each application is obtain
and stored in an Analysis object, divided into control and data plane. Each
application is represented by a generic **OpenStackApplication** class or by a custom
subclass, e.g. **Keystone(OpenStackApplication)**.

Required Juju commands
~~~~~~~~~~~~~~~~~~~~~~

.. code::
$ juju status
$ juju config <app-name>
1 change: 0 additions & 1 deletion docs/explanation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ and known issues.
analysis
planning
upgrade
known-issues
5 changes: 0 additions & 5 deletions docs/explanation/planning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,3 @@ successfully.

The plan can also be obtained without the need to perform cloud upgrade using
the **plan** command. See :doc:`Plan an upgrade <../how-to/plan-upgrade>`.

Required Juju commands
~~~~~~~~~~~~~~~~~~~~~~

No Juju commands are used.
13 changes: 4 additions & 9 deletions docs/explanation/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
Upgrade
=======

This phase is responsible for applying the upgrade plan step by step (See
:doc:`Upgrade a cloud <../how-to/upgrade-cloud>`). By default steps are applied
sequentially, but there are steps which can be run in parallel.

Required Juju commands
~~~~~~~~~~~~~~~~~~~~~~

Any upgrade step may require different Juju commands, from changing configuration
to running commands directly on a unit.
This phase is responsible for applying the upgrade plan step by step (see
:doc:`Upgrade a cloud <../how-to/upgrade-cloud>`). Most steps will be applied
sequentially, but for some that are defined to be run in parallel, they will be
executed in such a way.
3 changes: 3 additions & 0 deletions docs/get-started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ calling the juju status command.
juju status --model <name-of-your-openstack-model>
**COU** requires at minimum `write` permission to the target model.

Installation
------------
Install the **COU** snap from the `snap store`_:
Expand Down
3 changes: 1 addition & 2 deletions docs/how-to/different-model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ program. For example, `JUJU_DATA`_ can be used to specify a different path for J
configuration files.

.. code::
$ JUJU_MODEL=openstack cou plan
$ JUJU_DATA=./my-remote-cloud-juju-data cou plan
.. LINKS
Expand Down
25 changes: 17 additions & 8 deletions docs/how-to/no-backup.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=====================================
Upgrade without cloud database backup
=====================================
==========================================
Plan/Upgrade without cloud database backup
==========================================

By default, **COU** plans for and runs a backup step of the cloud database before
proceeding to actual upgrade steps. This can be turned off with `--no-backup` flag.
Expand All @@ -23,13 +23,13 @@ Plan:
Control Plane principal(s) upgrade plan
Upgrade plan for 'rabbitmq-server' to victoria
Upgrade software packages of 'rabbitmq-server' from the current APT repositories
...
Upgrade:

.. code::
$ cou plan --no-backup --no-
$ cou upgrade --no-backup
Full execution log: '/home/ubuntu/.local/share/cou/log/cou-20231215211717.log'
Connected to 'test-model' ✔
Analyzing cloud... ✔
Expand All @@ -38,7 +38,16 @@ Upgrade:
Running cloud upgrade...
Verify that all OpenStack applications are in idle state ✔
# note that there's no backup step being executed
Upgrade software packages of 'keystone' from the current APT repositories ✔
Upgrade 'keystone' to the new channel: 'victoria/stable' ✔
...
Upgrade plan for 'rabbitmq-server' to victoria
Upgrade software packages of 'rabbitmq-server' from the current APT repositories
Upgrade 'rabbitmq-server' to the new channel: '3.9/stable'
Change charm config of 'rabbitmq-server' 'source' to 'cloud:focal-victoria'
Wait 1800s for model test-model to reach the idle state.
Check if the workload of 'rabbitmq-server' has been upgraded
Continue (y/n): y
Upgrade plan for 'rabbitmq-server' to victoria ✔
... # apply steps
Upgrade completed.
2 changes: 1 addition & 1 deletion docs/how-to/upgrade-cloud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Usage example
Continue (y/n): y
Upgrade software packages of 'keystone' from the current APT repositories \
# apply each step
... # apply each step
Upgrade completed.
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ In this documentation

.. grid-item:: :doc:`Reference <reference/index>`

**Technical information** - available commands and environmental variables
**Technical information** - commands, environmental variables, and known issues

.. grid-item:: :doc:`Explanation <explanation/index>`

**Additional information** - details of upgrade phases and known issues
**Additional information** - details of upgrade phases defined in **COU**


.. toctree::
Expand Down
1 change: 1 addition & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ This section explains the list of available commands and environmental variables

commands
environment-variables
known-issues
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
Known issues
============

There are known upgrade bugs of the OpenStack that may help you troubleshoot an
unsuccessful upgrade run:
Potential known upgrade bugs and non-standard procedures are listed in the OpenStack Charm Guide:

- `Issues, charm procedures, and OpenStack upgrade notes`_

Expand Down

0 comments on commit 36772a1

Please sign in to comment.