Cannot specify replicaton network in swift-object-device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-swift |
In Progress
|
Wishlist
|
Alex Schultz |
Bug Description
There appears to be no way to separate storage and replication networks in swift-object-device and friends.
My naive attempt was this:
class profiles:
$storage_ip = hiera('
$replication_ip = hiera('
@@ring_
region => hiera('
zone => hiera('
weight => hiera('
}
...while this sets up the two networks ok in the ring, it confuses the provider utterly and it tries to add the device repeatedly even if it is already there (I'm guessing - not a ruby pro - that it is comparing the storage part of the ring builder output to the entire passed in storage + replication string). If I've understood the problem properly this might be easy to correct!
description: | updated |
description: | updated |
Changed in puppet-swift: | |
assignee: | nobody → Adam Vinsh (adam-vinsh) |
status: | New → In Progress |
Changed in puppet-swift: | |
importance: | Undecided → Wishlist |
Changed in puppet-swift: | |
assignee: | Mark Kirkwood (mark-kirkwood) → Alex Schultz (alex-schultz) |
I decided it was time to learn a little ruby. I think pull request https:/ /github. com/openstack/ puppet- swift/pull/ 7 fixes the issue by amending the validators and provider for ring_xxx_device.