[octane] Upgrade of compute node fails due to mismatch in partition table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Sergey Abramov | ||
8.0.x |
Fix Committed
|
High
|
Sergey Abramov | ||
Newton |
Fix Committed
|
High
|
Sergey Abramov |
Bug Description
Detailed bug description:
Upgrade of compute node fails due to mismatch in partition table.
During upgrade octane complained that machine which undergoes upgrade fell in error state.
Astute log revealed the line below:
"Unexpected error\nUnexpected error while running command.\nCommand: mkswap /dev/vda5\nExit code: 1\nStdout: ''\nStderr:
/dev/vda4 is a swap partition.
Steps to reproduce:
octane upgrade-node 8 8
Expected results:
Compute node is upgraded
Actual result:
Compute node isn't upgraded
Reproducibility:
Always if partition preservation is used
Description of the environment:
Source Fuel version: 6.0
Destination Fuel version: 8.0
Operation system: Ubuntu
Changed in fuel: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Fuel Octane (fuel-octane-team) |
description: | updated |
Changed in fuel: | |
assignee: | Oleg S. Gelbukh (gelbuhos) → Pavel Chechetin (paulche) |
Changed in fuel: | |
assignee: | Pavel Chechetin (paulche) → Sergey Abramov (sabramov) |
Changed in fuel: | |
assignee: | Sergey Abramov (sabramov) → Oleg S. Gelbukh (gelbuhos) |
Changed in fuel: | |
assignee: | Oleg S. Gelbukh (gelbuhos) → Sergey Abramov (sabramov) |
Changed in fuel: | |
assignee: | Sergey Abramov (sabramov) → Oleg S. Gelbukh (gelbuhos) |
Changed in fuel: | |
assignee: | Oleg S. Gelbukh (gelbuhos) → Sergey Abramov (sabramov) |
Changed in fuel: | |
assignee: | Sergey Abramov (sabramov) → Oleg S. Gelbukh (gelbuhos) |
Changed in fuel: | |
assignee: | Oleg S. Gelbukh (gelbuhos) → Sergey Abramov (sabramov) |
assignee: | Sergey Abramov (sabramov) → Oleg S. Gelbukh (gelbuhos) |
assignee: | Oleg S. Gelbukh (gelbuhos) → Sergey Abramov (sabramov) |
To fix this bug, we need to patch fuel-agent installed in the bootstrap image so it properly handles the partitions schema created in the initial provisioning (i.e. in version 6.x). In that versions, the following partitions were created:
1. boot
2. root
3. swap
Since version 7.0, new provisioning schema (image-based) was made defualt. This schema creates the following partitions:
1. boot
2. UEFI boot
3. root
4. swap
This leads to the situation when swap partition physically is 3rd (due to partition preservation), but fuel-agent expects it to be 4th.