Commit 5fab565
committed
Fail peadm::util::retrieve_and_upload on PCP
The `peadm::util::retrieve_and_upload` plan downloads a
PE installer tarball and then uploads it to a set of
hosts that need it (Primary and Database nodes).
When the PCP transport is in use, this upload is done
via the `bolt_shim::upload` task, which essentially
reads the file into memory, encodes it, and then
ships it over Orchestrator as a task argument.
This method of file transfer is utterly inadequate
for shipping files as large as the PE installer
which is over half of a gigabyte in size. Use
of "bolt_shim::upload" will cause either a
Linux kernel OOM, an Orchestrator OOM, or
slam into the `max-message-size` allowed by
the Orchestrator.
This commit updates `peadm::util::retrieve_and_upload`
to fail with a descriptive error message if any
of the target nodes is using the PCP transport.1 parent 31cfdea commit 5fab565
File tree
2 files changed
+35
-0
lines changed- plans/util
- spec/plans/util
2 files changed
+35
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
8 | 30 | | |
9 | 31 | | |
10 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
44 | 57 | | |
0 commit comments