forked from pivotal-cf/docs-pcf-install
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupgrading-pcf.html.md.erb
More file actions
267 lines (157 loc) · 12.9 KB
/
upgrading-pcf.html.md.erb
File metadata and controls
267 lines (157 loc) · 12.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
---
title: Upgrading Pivotal Platform
owner: Ops Manager
---
<% current_page.data.title = "Upgrading " + vars.platform_name %>
This topic describes upgrading <%= vars.platform_name %> to <%= vars.v_major_version %>.
<p class="note breaking"><strong>Breaking Changes:</strong> Read the <a href="https://docs.pivotal.io/platform/<%= vars.current_major_version.sub('.', '-') %>/pcf-release-notes/index.html">Release Notes</a> and <a href="https://docs.pivotal.io/platform/<%= vars.current_major_version.sub('.', '-') %>/pcf-release-notes/breaking-changes.html">Breaking Changes</a> for this release, including the Known Issues sections, before starting the upgrade process.</p>
<p class="note warning"><strong>Warning:</strong> Pivotal does not recommend that you skip minor versions when upgrading <%= vars.platform_name %>. Skipping minor versions when upgrading <%= vars.platform_name %> may result in breaking changes. To avoid additional breaking changes, upgrade <%= vars.platform_name %> to the minor version that directly follows your current version of <%= vars.platform_name %>.</p>
## <a id='overview'></a> Overview
The procedure below describes upgrading Pivotal Operations Manager, Pivotal Application Service (PAS), and product tiles.
The apps in your deployment continue to run during the upgrade. However, you cannot write to your deployment or make changes to apps during the upgrade.
For details about how upgrading <%= vars.platform_name %> impacts individual PAS components, see [What Happens During PAS Upgrades](../upgrading/understanding-pas.html).
## <a id="prepare"></a> Task 1: Prepare to Upgrade
If you have not already, complete the steps in the [Upgrade Preparation Checklist for <%= vars.platform_name %> <%= vars.v_major_version %>](../upgrading/checklist.html).
## <a id="upgrade_ops"></a> Task 2: Upgrade Ops Manager and Installed Products to <%= vars.v_major_version %>
The following sections describe how to upgrade Ops Manager and installed products to <%= vars.platform_name %> <%= vars.v_major_version %>:
* [Import Installation to Ops Manager <%= vars.v_major_version %> VM](#upgrade)
* [Import New PAS and Product Tiles](#upgrade-products)
* [Perform Your Upgrade](#perform-upgrade)
### <a id="upgrade"></a> Import Installation to Ops Manager <%= vars.v_major_version %> VM
To import your Ops Manager installation to the Ops Manager <%= vars.v_major_version %> VM:
1. Download the Ops Manager VM Template <%= vars.v_major_version %> from the [Pivotal Network](https://network.pivotal.io/products/ops-manager) site.
1. Record the fully qualified domain name (FQDN) address of the existing Ops Manager VM.
1. To avoid conflicts, power off the existing Ops Manager VM.
1. Deploy the new Ops Manager VM by following the steps in one of these topics:
* **AWS**: [Upgrading BOSH Director on AWS](./aws-om-upgrade.html)
* **Azure**: [Upgrading BOSH Director on Azure](./azure-om-upgrade.html)
* **GCP**: [Upgrading BOSH Director on GCP](./gcp-om-upgrade.html)
* **OpenStack**: [Deploying Ops Manager to OpenStack](/platform/ops-manager/<%= vars.current_major_version.sub('.', '-') %>/openstack/setup.html)
* **vSphere**: [Deploying Ops Manager on vSphere](/platform/ops-manager/<%= vars.current_major_version.sub('.', '-') %>/vsphere/deploy.html)
1. When redirected to the **Welcome to Ops Manager** page, select **Import Existing Installation**.
<%= image_tag("./images/upgrading/welcome.png", alt: "Below the green Pivotal logo is the text 'Welcome to Ops Manager'. Next is the text 'Select an Authentication System', below which are two rectangular blue buttons. The top button is labeled 'Use an Identity Provider' in white text; the bottom button is labeled 'Internal Authentication' in white text. Below these buttons is a horizontal line break. Below the line break is the text 'Upgrading Ops Manager?', below which is a rectangular blue button labeled 'Import Existing Installation' in white text.") %>
1. When prompted, enter the **Decryption Passphrase** for this Ops Manager installation. You set this passphrase during your initial installation of Ops Manager.
<p class="note"><strong>Note:</strong> If lost, the <strong>Decryption Passphrase</strong> cannot be recovered.</p>
1. Click **Choose File** and browse to the installation ZIP file exported in the installation export step of your upgrade preparation. For more information, see the [Export Your Installation](../upgrading/checklist.html#export) section of the _Upgrade Preparation Checklist for <%= vars.platform_name %> <%= vars.v_major_version %>_ topic.
<%= image_tag("./images/upgrading/decryption_passphrase.png", alt: "Below the green Pivotal logo is a field labeled 'Decryption Passphrase' containing five hidden characters. Below this field is the text 'Enter file', below which is a small, rectangular gray button labeled 'Choose File'. To the right of the 'Choose File' button is the filename 'installation (4).zip'. Below this button and filename is a rectangular blue button labeled 'Import' in white text.") %>
1. Click **Import**.
<p class="note"><strong>Note:</strong> Some browsers do not provide feedback on the status of the import process, and might appear to hang.</p>
1. A **Successfully imported installation** message appears upon completion.
<%= image_tag("./images/upgrading/success.png", alt: "The top half of the pop-up message contains a dark green background, a rectangular green logo with a capital P in white, and the text 'Pivotal Ops Manager' in white. The bottom half of the pop-up message contains a lighter green background, a round, dark green icon containing a light green check, and the text 'Successfully imported installation.' in dark green text.") %>
### <a id="upgrade-products"></a> Import New PAS and Product Tiles
<a name="success"></a> After upgrading to Ops Manager <%= vars.v_major_version %>, you must upgrade your product versions.
To upgrade your product versions:
1. Import the product file to your Ops Manager **Installation Dashboard**.
1. Hover over the product name in **Available Products** and click **Add**.
1. Click the newly-added tile to review any configurable options.
1. (Optional) If you use other service tiles, you can upgrade them following the same procedure. For more information, see [Upgrading PAS and Other <%= vars.platform_name %> Products](./upgrading-products.html).
### <a id="perform-upgrade"></a> Perform Your Upgrade
<p class="note warning"><strong>Warning:</strong> If the installation fails or returns errors, contact <%= vars.support_link %>. Do not attempt to roll back the upgrade by restarting the previous version's Ops Manager VM.</p>
To perform your upgrade to Ops Manager <%= vars.v_major_version %>:
1. Navigate to the Ops Manager **Installation Dashboard**.
1. Click **Review Pending Changes**, then **Apply Changes**. This immediately imports and applies upgrades to all tiles in a single transaction.
1. Click each service tile, select the **Status** tab, and confirm that all VMs appear and are in good health.
1. After confirming that the new installation functions correctly, remove the previous version's Ops Manager VM.
## <a id="monitor"></a> (Optional) Task 3: Monitor Upgrade
The following sections describe how to monitor your <%= vars.platform_name %> foundation during the upgrade and troubleshoot issues:
* [Check Status and Performance](#status)
* [Check Diego State](#diego)
* [Take Snapshots of Storage Metrics](#storage)
* [Collect Logs](#collect-logs)
### <a id="status"></a> Check Status and Performance
You can monitor the progress of the upgrade by checking the status of the foundation at various locations.
Pivotal recommends live-monitoring your upgrade with <%= vars.platform_name %> Healthwatch, which monitors and alerts on the current health, performance, and capacity of <%= vars.platform_name %>. Healthwatch captures, calculates, stores, visualizes, and alerts on <%= vars.platform_name %> platform metrics, including:
* BOSH-reported VM metrics
* Runtime component metrics
* [Key Performance Indicators](../monitoring/kpi.html) and [Key Scaling Indicators](../monitoring/key-cap-scaling.html)
* Healthwatch-generated [super metrics](https://docs.pivotal.io/pcf-healthwatch/metrics.html)
For more information, see the [<%= vars.platform_name %> Healthwatch](https://docs.pivotal.io/pcf-healthwatch/index.html) documentation.
If you are not using <%= vars.platform_name %> Healthwatch, you can do some or all of the following to monitor upgrade progress:
* Use the BOSH CLI to check the status of a task, VM, or instance. For more information, see [Check Status Using BOSH CLI](#bosh-cli-status).
* Check app availability.
* Run cf CLI commands.
* Check the availability of the Ops Manager UI.
* If using a network-attached storage (NAS) server, check the server's performance.
* If on vSphere, check vSphere performance.
#### <a id='bosh-cli-status'></a> Check Status Using BOSH CLI
To check the status of a task:
1. Run:
```
bosh -e ALIAS task TASK-NUMBER
```
Where:
* `ALIAS` is your BOSH alias.
* `TASK-NUMBER` is the number of the upgrade task you want to check.
To check the status of a VM:
1. Run:
```
bosh -e ALIAS vms --vitals
```
Where `ALIAS` is your BOSH alias.
To check the status of an instance:
1. Run:
```
bosh -e ALIAS instances --ps
```
Where `ALIAS` is your BOSH alias.
### <a id="diego"></a> Check Diego State
You can use the CF Diego Operator Toolkit (cfdot) to check Diego component instance count by current state. For more information, see the [cfdot](https://github.com/cloudfoundry/cfdot) repository on GitHub.
### <a id="storage"></a> Take Snapshots of Storage Metrics
You can periodically take snapshots of storage metrics. Pivotal recommends this if you have a large foundation and have experienced storage issues in the past.
### <a id="collect-logs"></a> Collect Logs
If you encounter problems during upgrade:
1. Collect the following information:
* All job logs
* Task debug logs for VM upgrade tasks
* The installation log from Ops Manager
This information helps determine the cause of upgrade issues.
## <a id="after"></a> Task 4: After Upgrade
The following sections describe how to prepare for use of your new environment, check its health status, and clean up after upgrading your <%= vars.product_name %> deployment:
* [Re-Create BOSH Alias](#bosh-alias)
* [Install New cf CLI](#cf-cli)
* [Check the Health of Your Deployment](#health)
* [Check Resource Settings](#resource-settings)
* [Run BOSH Clean-Up](#bosh-cleanup)
### <a id="bosh-alias"></a> Re-Create BOSH Alias
To log in to BOSH after upgrading <%= vars.platform_name %>, you must re-create your alias.
To re-create your alias using BOSH:
1. Run:
```
bosh alias-env ALIAS -e DIRECTOR-IP
```
Where:
* `ALIAS` is the BOSH alias you are re-creating.
* `DIRECTOR-IP` is the IP address of your BOSH Director VM.
### <a id="cf-cli"></a> Install New cf CLI
To install the version of the Cloud Foundry Command Line Interface (cf CLI) packaged with the PAS tile on Pivotal Network:
1. Go to the [Pivotal Application Service](https://network.pivotal.io/products/elastic-runtime/) download page on Pivotal Network.
1. Click the **CF CLI** download button.
1. Unzip the cf CLI ZIP file containing compressed binaries for the cf CLI.
1. Follow the procedure in the [Install the cf CLI Using a Compressed Binary](../../cf-cli/install-go-cli.html#bin) section of the _Installing the cf CLI_ topic.
### <a id="health"></a> Check the Health of Your Deployment
Check the health of your <%= vars.platform_name %> deployment to ensure that all jobs and processes are running as expected.
To check the health of your deployment:
1. Check your system status by running:
```
bosh -e ALIAS -d DEPLOYMENT-NAME instances --ps
bosh -e ALIAS vms --vitals
bosh -e ALIAS -d DEPLOYMENT-NAME cck --report
```
Where:
* `ALIAS` is your BOSH alias.
* `DEPLOYMENT-NAME` is the name of your <%= vars.platform_name %> deployment.
1. Push and horizontally scale a test app to test PAS performance.
1. If you are running PAS MySQL as a cluster, run the `mysql-diag` tool to validate health of the cluster. For more information, see the BOSH CLI v2 instructions in [Running mysql-diag](../mysql/mysql-diag.html).
### <a id="resource-settings"></a> Check Resource Settings
If you added custom **VM Type** or **Persistent Disk Type** options, you must ensure that these values are correctly set and were not overwritten.
To check your custom resource settings:
1. Go to the Ops Manager Installation Dashboard and click the Ops Manager tile.
1. Select **Resource Config**.
1. Ensure that the values for **VM Type** and **Persistent Disk Type** are correct.
### <a id="bosh-cleanup"></a> Run BOSH Clean-Up
To clean up old stemcells, releases, orphaned disks, and other unused resources:
1. Run:
```
bosh -e ALIAS clean-up --all
```
Where `ALIAS` is the BOSH alias you are re-creating.