Skip to content

cache_mode missing in form #614

@purplesrl

Description

@purplesrl

when creating a new instance from a flavor cache_mode is not inserted in the template.html, but it is required in create/forms.py

cache_mode = forms.CharField(error_messages={'required': _('Please select HDD cache mode')})

Since the form.is_valid() function will fail, nothing will be created, it will just silently exit.

To fix this under <input type="hidden" name="hdd_size" value="{{ flavor.disk }}"> in template.html add:

<input type="hidden" name="cache_mode" value="default">
To completely fix this, when the flavor is created cache mode should be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions