← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1909008] Re: tempest.lib.exceptions.PreconditionFailed: Precondition Failed on standalone-full-tempest-api-master

 

** Also affects: neutron
   Importance: Undecided
       Status: New

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1909008

Title:
  tempest.lib.exceptions.PreconditionFailed: Precondition Failed on
  standalone-full-tempest-api-master

Status in neutron:
  New
Status in tripleo:
  Triaged

Bug description:
  Error logs:

  ft1.7: neutron_tempest_plugin.api.test_revisions.TestRevisions.test_update_network_constrained_by_revision[id-4a26a4be-9c53-483c-bc50-b11111113333]testtools.testresult.real._StringException: pythonlogging:'': {{{
  2020-12-15 19:33:06,577 211730 INFO     [tempest.lib.common.rest_client] Request (TestRevisions:test_update_network_constrained_by_revision): 201 POST http://192.168.24.3:9696/v2.0/networks 0.749s
  2020-12-15 19:33:06,577 211730 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
          Body: {"network": {"name": "tempest-test-network--2021099203"}}
      Response - Headers: {'content-type': 'application/json', 'content-length': '626', 'x-openstack-request-id': 'req-1548254b-2055-4bad-a701-967ac66d821e', 'date': 'Tue, 15 Dec 2020 19:33:06 GMT', 'connection': 'close', 'status': '201', 'content-location': 'http://192.168.24.3:9696/v2.0/networks'}
          Body: b'{"network":{"id":"cef0d923-c7a0-44e3-a796-d17fd6b6d895","name":"tempest-test-network--2021099203","tenant_id":"2e6b43d3504c424a9740166604033168","admin_state_up":true,"mtu":1442,"status":"ACTIVE","subnets":[],"shared":false,"project_id":"2e6b43d3504c424a9740166604033168","qos_policy_id":null,"port_security_enabled":true,"dns_domain":"","router:external":false,"availability_zone_hints":[],"is_default":false,"availability_zones":[],"ipv4_address_scope":null,"ipv6_address_scope":null,"description":"","l2_adjacency":true,"tags":[],"created_at":"2020-12-15T19:33:05Z","updated_at":"2020-12-15T19:33:05Z","revision_number":1}}'
  2020-12-15 19:33:06,893 211730 INFO     [tempest.lib.common.rest_client] Request (TestRevisions:test_update_network_constrained_by_revision): 412 PUT http://192.168.24.3:9696/v2.0/networks/cef0d923-c7a0-44e3-a796-d17fd6b6d895 0.314s
  2020-12-15 19:33:06,893 211730 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'If-Match': 'revision_number=0', 'X-Auth-Token': '<omitted>'}
          Body: {"network": {"name": "newnet"}}
      Response - Headers: {'content-length': '132', 'content-type': 'application/json', 'x-openstack-request-id': 'req-6892d0e6-7425-4eb3-ad04-c6791f805047', 'date': 'Tue, 15 Dec 2020 19:33:06 GMT', 'connection': 'close', 'status': '412', 'content-location': 'http://192.168.24.3:9696/v2.0/networks/cef0d923-c7a0-44e3-a796-d17fd6b6d895'}
          Body: b'{"NeutronError": {"type": "RevisionNumberConstraintFailed", "message": "Constrained to 0, but current revision is 1", "detail": ""}}'
  2020-12-15 19:33:07,060 211730 INFO     [tempest.lib.common.rest_client] Request (TestRevisions:test_update_network_constrained_by_revision): 200 GET http://192.168.24.3:9696/v2.0/networks/cef0d923-c7a0-44e3-a796-d17fd6b6d895 0.166s
  2020-12-15 19:33:07,060 211730 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
          Body: None
      Response - Headers: {'content-type': 'application/json', 'content-length': '607', 'x-openstack-request-id': 'req-15563484-9fca-4cd0-9252-effc646c70f1', 'date': 'Tue, 15 Dec 2020 19:33:07 GMT', 'connection': 'close', 'status': '200', 'content-location': 'http://192.168.24.3:9696/v2.0/networks/cef0d923-c7a0-44e3-a796-d17fd6b6d895'}
          Body: b'{"network":{"id":"cef0d923-c7a0-44e3-a796-d17fd6b6d895","name":"tempest-test-network--2021099203","tenant_id":"2e6b43d3504c424a9740166604033168","admin_state_up":true,"mtu":1442,"status":"ACTIVE","subnets":[],"shared":false,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"ipv6_address_scope":null,"router:external":false,"description":"","qos_policy_id":null,"port_security_enabled":true,"dns_domain":"","l2_adjacency":true,"tags":[],"created_at":"2020-12-15T19:33:05Z","updated_at":"2020-12-15T19:33:05Z","revision_number":1,"project_id":"2e6b43d3504c424a9740166604033168"}}'
  2020-12-15 19:33:07,520 211730 INFO     [tempest.lib.common.rest_client] Request (TestRevisions:test_update_network_constrained_by_revision): 412 PUT http://192.168.24.3:9696/v2.0/networks/cef0d923-c7a0-44e3-a796-d17fd6b6d895 0.459s
  2020-12-15 19:33:07,521 211730 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'If-Match': 'revision_number=1', 'X-Auth-Token': '<omitted>'}
          Body: {"network": {"name": "newnet"}}
      Response - Headers: {'content-type': 'application/json', 'content-length': '132', 'x-openstack-request-id': 'req-d10865d0-75aa-4136-94b4-f7ff3a2059fb', 'date': 'Tue, 15 Dec 2020 19:33:07 GMT', 'connection': 'close', 'status': '412', 'content-location': 'http://192.168.24.3:9696/v2.0/networks/cef0d923-c7a0-44e3-a796-d17fd6b6d895'}
          Body: b'{"NeutronError": {"type": "RevisionNumberConstraintFailed", "message": "Constrained to 1, but current revision is 2", "detail": ""}}'
  }}}

  Traceback (most recent call last):
    File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/test_revisions.py", line 59, in test_update_network_constrained_by_revision
      headers={'If-Match': 'revision_number=%s' % current})
    File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/services/network/json/network_client.py", line 158, in _update
      resp, body = self.put(uri, post_data, headers=headers)
    File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 362, in put
      return self.request('PUT', url, extra_headers, headers, body, chunked)
    File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 702, in request
      self._error_checker(resp, resp_body)
    File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 828, in _error_checker
      raise exceptions.PreconditionFailed(resp_body, resp=resp)
  tempest.lib.exceptions.PreconditionFailed: Precondition Failed
  Details: {'type': 'RevisionNumberConstraintFailed', 'message': 'Constrained to 1, but current revision is 2', 'detail': ''}

  [1]: https://review.rdoproject.org/zuul/builds?pipeline=openstack-
  periodic-integration-main&job_name=periodic-tripleo-ci-centos-8
  -standalone-full-tempest-api-master

  [2]: https://logserver.rdoproject.org/openstack-periodic-integration-
  main/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-
  centos-8-standalone-full-tempest-api-
  master/08b1a26/logs/undercloud/var/log/tempest/stestr_results.html.gz

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