Page MenuHomePhabricator

swift-ring: Add support for Cinder based Cloud VPS VMs
Open, Needs TriagePublic

Description

The current "labs" partitioning scheme in operations/software/swift-ring was built to support LVM based Cloud VPS VMs in deployment-prep. LVM is deprecated in favour of Cinder storage, the swift-ring scripts need to be adjusted to add support for that. This is also a good opportunity to rename that from "labs" to something like "cloudvps" or "betacluster".

Event Timeline

For a bit of context: to keep a good "emulation" of production there needs to be a block device (LVM, or other like a loop device or similar) for puppet (and the scripts) to mkfs/mount/etc.

FWIW for Pontoon I've developed a solution to emulate block devices via loop files, in a way that resembles production. It can be activated in puppet via

profile::swift::storage::loopback_device_size: 2G
profile::swift::storage::loopback_device_count: 0

And then use the "pontoon" partitioning scheme in swift-ring