← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1413136] [NEW] JSONSchema validation error with affinity policy

 

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


Follow ups

References