no validation when creating share group type

Bug #1936689 reported by Ashley Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
In Progress
Low
Ashley Rodriguez

Bug Description

Description
===========
Administrators currently are able to create a share-group-type,
using incompatible share-types.
For example, Admin creates a share-group-type with group_spec snapshot_support = True.
In creating this share-group-type, they list share_types that are configured with
snapshot_support = False.
There is no error message, or at the least a warning message, informing Admin of this
incompatibility.

Steps to reproduce
==================

* manila type-create sharetype1 true --create_share_from_snapshot_support false
* manila share-group-type-create group1 sharetype1 --group-spec consistent_snapshot_support=true

Expected result
===============
Perhaps a user message with message_level=Warning, or a response from CLI
"Warning: creating a share-group-type with incompatible share-type extra specs"
or something along those lines.
It shouldn't necessarily stop the admin from doing this, in case a configuration like this
was intentional based on intended end-user experience.

Environment
===========
developing on master
python-manilaclient = 2.7.1
clouds.yaml includes "shared_file_system_api_version = 2.63"

Tags: share-groups
Vida Haririan (vhariria)
tags: added: share-groups
Changed in manila:
assignee: nobody → Ashley Rodriguez (ashrod98)
Changed in manila:
assignee: Ashley Rodriguez (ashrod98) → Ashley Rodriguez (ashrodri)
milestone: none → xena-rc1
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila/+/809004

Changed in manila:
status: New → In Progress
Changed in manila:
milestone: xena-rc1 → yoga-1
Changed in manila:
milestone: yoga-1 → yoga-2
Changed in manila:
milestone: yoga-2 → yoga-3
Changed in manila:
milestone: yoga-3 → zed-1
Changed in manila:
milestone: zed-1 → zed-2
Changed in manila:
milestone: zed-2 → zed-3
Changed in manila:
milestone: zed-3 → zed-rc1
Changed in manila:
milestone: zed-rc1 → antelope-1
Changed in manila:
milestone: antelope-1 → antelope-2
Changed in manila:
milestone: antelope-2 → antelope-3
Changed in manila:
milestone: antelope-3 → antelope-rc1
Changed in manila:
milestone: antelope-rc1 → bobcat-1
Changed in manila:
milestone: bobcat-1 → bobcat-2
Changed in manila:
milestone: bobcat-2 → bobcat-3
Changed in manila:
milestone: bobcat-3 → bobcat-rc1
Changed in manila:
assignee: Ashley Rodriguez (ashrodri) → Ashley Rodriguez (ashrod98)
Changed in manila:
milestone: bobcat-rc1 → caracal-1
Changed in manila:
milestone: caracal-1 → caracal-2
Changed in manila:
milestone: caracal-2 → caracal-3
Changed in manila:
milestone: caracal-3 → dalmation-1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.