Skip to content

Uninformative output when specified format is not available #597

@denvolj

Description

@denvolj

The problem

When trying to format partitions using blivet library, you can get uninformative output like:

ansible.errors.AnsibleTaskError: Task failed: Module failed: resource to create this format mdmember is unavailable

that tells nothing about reasons "why" it's not available. After further debugging inside module I got the reason:

libblockdev plugin mdraid is loaded but some required technologies are not available (The 'mdadm' utility is not available)

but it took a lot of time.

Expected behaviour

When trying to format partition when feature not available raise an exception with more details

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions