Restore fails when drbd filesystems exceed the cgts-vg size

Bug #1934146 reported by Mihnea Saracin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Invalid
Low
Felipe Sanches Zanoni

Bug Description

Brief Description
-----------------

Restore playbook fails because the puppet manifest wants to create the docker-distribution-lv with a size of 100G exceeding the default cgts-vg size

Severity
--------

Critical

Steps to Reproduce
------------------

Install a system

Resize docker-distribution-lv or other drbd filesystem to 100G

Backup it

Run restore playbook

Expected Behavior
------------------

restore playbook succeeds

Actual Behavior
----------------

restore playbook fails

Reproducibility
---------------

100%

System Configuration
--------------------

AIO-SX, possible all configs

Branch/Pull Time/Commit
-----------------------

stx master build on "2021-06-10"

Last Pass
---------
N/A

Timestamp/Logs
--------------

# ansible log

TASK [bootstrap/apply-manifest : Fail if puppet manifest apply script returns an error] ***
fatal: []: FAILED! => {"changed": false, "msg": "Failed to apply bootstrap manifest. Please re-install before attempting to bootstrap it again. See /var/log/puppet/latest/puppet.log for details."}

# puppet log

2021-06-25T14:52:01.660 ^[[0;36mDebug: 2021-06-25 14:52:01 +0000 Executing: '/usr/sbin/lvs cgts-vg'^[[0m
2021-06-25T14:52:01.662 ^[[0;36mDebug: 2021-06-25 14:52:01 +0000 Executing: '/usr/sbin/vgs --noheading -o vg_extent_size --units k cgts-vg'^[[0m
2021-06-25T14:52:01.664 ^[[0;36mDebug: 2021-06-25 14:52:01 +0000 Executing: '/usr/sbin/lvcreate -n platform-lv --size 10485760k cgts-vg'^[[0m
2021-06-25T14:52:01.666 ^[[1;31mError: 2021-06-25 14:52:01 +0000 Execution of '/usr/sbin/lvcreate -n platform-lv --size 10485760k cgts-vg' returned 5: Volume group "cgts-vg" has insufficient free space (145 extents): 320 required.

Test Activity
-------------

Developer Testing

Changed in starlingx:
assignee: nobody → Mihnea Saracin (msaracin)
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.6.0 stx.update
Revision history for this message
Frank Miller (sensfan22) wrote :

Removing tag stx.6.0 as this is a day 1 issue and only occurs when doing a restore after resizing a filesystem. This is not a high runner scenario. Would be good to have this fixed at some point but should not hold up the stx.6.0 release.

tags: added: stx.storage
removed: stx.6.0
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Medium → Low
Changed in starlingx:
assignee: Mihnea Saracin (msaracin) → Felipe Sanches Zanoni (fsanches)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to stx-puppet (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/stx-puppet/+/859147

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-playbooks (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on config (master)

Change abandoned by "Mauricio Biasi do Monte Carmelo <email address hidden>" on branch: master
Review: https://review.opendev.org/c/starlingx/config/+/866414

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ansible-playbooks (master)

Change abandoned by "Mauricio Biasi do Monte Carmelo <email address hidden>" on branch: master
Review: https://review.opendev.org/c/starlingx/ansible-playbooks/+/866341

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on stx-puppet (master)

Change abandoned by "Felipe Sanches Zanoni <email address hidden>" on branch: master
Review: https://review.opendev.org/c/starlingx/stx-puppet/+/859147
Reason: This code will no longer be necessary for master branch

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ansible-playbooks (master)

Change abandoned by "Felipe Sanches Zanoni <email address hidden>" on branch: master
Review: https://review.opendev.org/c/starlingx/ansible-playbooks/+/859148
Reason: This code will no longer be necessary for master branch

Changed in starlingx:
status: In Progress → Fix Committed
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Marking as Invalid as it appears that no fixes were actually required for this issue

Changed in starlingx:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.