Public bug reported:

When the new JSONSchema is used for server_group validation, the server_group 
creation fails with validation error:
ValidationError: Invalid input for field/attribute 0. Value: affinity. 
{'allOf': [{'enum': 'affinity'}, {'enum': 'anti-affinity'}]} is not allowed for 
'affinity'

The JSONSchema was introduced in this change:
https://review.openstack.org/#/c/131924/8

The issue is caused by the incorrect use of 'enum' in the schema.

** Affects: nova
     Importance: Undecided
     Assignee: Ildiko Vancsa (ildiko-vancsa)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Ildiko Vancsa (ildiko-vancsa)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1413136

Title:
  JSONSchema validation error with affinity policy

Status in OpenStack Compute (Nova):
  New

Bug description:
  When the new JSONSchema is used for server_group validation, the server_group 
creation fails with validation error:
  ValidationError: Invalid input for field/attribute 0. Value: affinity. 
{'allOf': [{'enum': 'affinity'}, {'enum': 'anti-affinity'}]} is not allowed for 
'affinity'

  The JSONSchema was introduced in this change:
  https://review.openstack.org/#/c/131924/8

  The issue is caused by the incorrect use of 'enum' in the schema.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1413136/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to