Partition deleted immediately after being created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Daniel Badea |
Bug Description
Brief Description
-----------------
When installing a multi-node system without dedicated storage the stage of adding a new partition on controller-0 fails because the partition is created and then deleted immediately. This is not 100% reproducible.
Severity
--------
Minor: Running the command to create partition again is successfull.
Steps to Reproduce
------------------
On unlocked controller-0 run:
system host-disk-
as fast as you can while sysinv-agent service is starting (watch /var/log/
Expected Behavior
------------------
Run:
system host-disk-
it should display the new partition.
Actual Behavior
----------------
There is no new partition.
Reproducibility
---------------
Intermittent. No frequency data.
System Configuration
-------
Multi-node system
Branch/Pull Time/Commit
-------
Timestamp/Logs
--------------
Most likely there's a race between manage-partitions and inventory agent's update: conductor decides to delete the partition.
2018-08-21 15:57:22.503 121506 INFO manage-partitions [-] Executing command: 'udevadm settle -E /dev/disk/
2018-08-21 15:57:22.506 121506 INFO manage-partitions [-] Executing command: 'parted -s /dev/disk/
2018-08-21 15:57:22.621 121506 INFO manage-partitions [-] Executing command: 'sgdisk --typecode=
2018-08-21 15:57:23.760 121506 INFO manage-partitions [-] Executing command: 'ls /dev/disk/
2018-08-21 15:57:24.064 121506 INFO manage-partitions [-] Executing command: 'ls /dev/disk/
2018-08-21 15:57:24.368 121506 INFO manage-partitions [-] Executing command: 'ls /dev/disk/
2018-08-21 15:57:24.371 121506 INFO manage-partitions [-] Executing command: 'sgdisk -i 1 /dev/disk/
2018-08-21 15:57:24.477 121506 INFO manage-partitions [-] Executing command: 'udevadm settle -E /dev/disk/
2018-08-21 15:57:24.482 121506 INFO manage-partitions [-] Executing pipe command: 'sgdisk -p /dev/disk/
2018-08-21 15:57:24.588 121506 INFO manage-partitions [-] Executing command: 'blockdev --getss /dev/disk/
...
2018-08-21 15:57:25.505 81085 INFO sysinv.
description: | updated |
Changed in starlingx: | |
assignee: | nobody → Daniel Badea (daniel.badea) |
tags: | added: stx.config |
tags: | added: stx.2018.10 |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: |
added: stx.1.0 removed: stx.2018.10 |
Fix proposed to branch: master /review. openstack. org/599002
Review: https:/