This repository has been archived by the owner on Dec 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block device allocation configuration (bsc#937800)
Make block_device_allocate_retries and block_device_allocate_retries_interval configurable from the crowbar web ui in the raw view. See also https://bugzilla.suse.com/show_bug.cgi?id=937800
- Loading branch information
Showing
5 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
chef/data_bags/crowbar/migrate/nova/025_configure_block_device_allocation.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
def upgrade(ta, td, a, d) | ||
unless a.has_key? "block_device" | ||
a["block_device"] = ta["block_device"] | ||
end | ||
return a, d | ||
end | ||
|
||
def downgrade(ta, td, a, d) | ||
unless ta.has_key? "block_device" | ||
a.delete("block_device") | ||
end | ||
return a, d | ||
end |