Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First blockdevice implementation #1

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Conversation

jmauro
Copy link
Contributor

@jmauro jmauro commented Jun 7, 2018

No description provided.

achamo and others added 21 commits June 7, 2018 21:34
* Create a device label
* Create a partition on a given blockdevice
Create a library to retrieve parted output.
Create a data structure instead of parsing strings everywhere.
Implement unit tests.
 - Add blockdevice-test cookbook
 - Add chefspec for volume_group
- fixed some errors in volume_partition resource
- added tests for partitions

TODO:
- fix broken tests
- add tests for delete action
- start kitchen tests
Also: remove Windows from Kitchen EC2 tests
It will probably not work as is, as (at least) the offset and size properties
need to be tweaked, and more tests added.
fs_type can be nil, and we don't look for it in load_current_value.

Also: do not test msdos block device, pending later removal of msdos partition
handling.

Also: fix Rubocop.
- All sizes and offsets should now be on a boundary of 1MiB
- updated rspec and kitchen tests to match new constraint
- fixed install action for parted
* Remove partition name_or_type check, assume partition_type primary
  when partition_name is empty
* Converge_if_changed for flags
Windows requires a correct partition type to install, so we must support
them. This adds preliminary support for them.

TODO:
- Fix the tests for the partition type
- Migrate to inspec tests
Handle properly the partition code on the volume_msdos_partition.
Add inspec tests
Fix rspec tests

TODO:
 - use sgdisk for volume_gpt_partition implementation
 - handle partition code in volume_gpt_partition
Change-Id: Ie45eaf371033d7012dbb826d67d68af343ab11e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants