The backend driver should be reloaded after the pool is updated
Bug #1387441 reported by
Jeffrey Zhang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
In Progress
|
High
|
Feilong Wang |
Bug Description
After updating the pool's option, the backend driver behind pool should be reload to take these new options.
Changed in zaqar: | |
status: | New → Triaged |
Changed in zaqar: | |
importance: | Undecided → High |
milestone: | none → kilo-1 |
Changed in zaqar: | |
milestone: | kilo-1 → kilo-2 |
Changed in zaqar: | |
assignee: | nobody → Jeffrey Zhang (jeffrey4l) |
Changed in zaqar: | |
milestone: | kilo-2 → kilo-3 |
Changed in zaqar: | |
milestone: | kilo-3 → kilo-rc1 |
Changed in zaqar: | |
milestone: | kilo-rc1 → liberty-1 |
Changed in zaqar: | |
milestone: | liberty-1 → liberty-2 |
Changed in zaqar: | |
assignee: | Jeffrey Zhang (jeffrey4l) → nobody |
Changed in zaqar: | |
assignee: | nobody → Fei Long Wang (flwang) |
Changed in zaqar: | |
milestone: | liberty-2 → liberty-3 |
Changed in zaqar: | |
milestone: | liberty-3 → liberty-rc1 |
Changed in zaqar: | |
milestone: | liberty-rc1 → none |
To post a comment you must log in.
add a `last_modified` field to the pool, when update the pool, this field is updated.
Then when the catalog get the drivers[0]. Compare the the `last_modified` field with the value cached in the catalog.
* if they are equal, the do noting and use the cached driver.
* if they are not equal, then destroy the old one and init a new driver by using the lasted pool options.
Is this a good direction?
[0] https:/ /github. com/openstack/ zaqar/blob/ master/ zaqar/storage/ pooling. py#L530