Browse Source

API validation: Use cinder_host for services checks

Apply the new cinder_host validation spec to the
host field in the enable_and_disable, failover_host,
and freeze_and_thaw API calls.

Related-Bug: #1904892
Change-Id: I593ff70172de0d5b42d483d0c4bd2a463001155f
changes/70/777470/2
Eric Harney 7 months ago
committed by Luigi Toscano
parent
commit
8da91b74d9
  1. 6
      cinder/api/schemas/services.py

6
cinder/api/schemas/services.py

@ -22,7 +22,7 @@ enable_and_disable = {
'type': 'object',
'properties': {
'binary': {'type': 'string', 'minLength': 1, 'maxLength': 255},
'host': parameter_types.hostname,
'host': parameter_types.cinder_host,
'cluster': parameter_types.nullable_string,
'service': {'type': 'string', 'minLength': 1, 'maxLength': 255},
},
@ -67,7 +67,7 @@ freeze_and_thaw = {
'type': 'object',
'properties': {
'cluster': parameter_types.nullable_string,
'host': parameter_types.hostname,
'host': parameter_types.cinder_host,
},
'additionalProperties': False,
}
@ -76,7 +76,7 @@ freeze_and_thaw = {
failover_host = {
'type': 'object',
'properties': {
'host': parameter_types.hostname,
'host': parameter_types.cinder_host,
'backend_id': parameter_types.nullable_string,
'cluster': parameter_types.nullable_string,
},

Loading…
Cancel
Save