pike: nova scheduler, Failed to update inventory for resource provider

Bug #1777762 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
Critical
Quique Llorente

Bug Description

http://logs.openstack.org/85/564285/20/check/tripleo-ci-centos-7-scenario004-multinode-oooq-container/5894ea4/logs/subnode-2/var/log/containers/nova/nova-compute.log.txt.gz#_2018-06-20_01_54_50_903

2018-06-20 01:54:50.903 7 WARNING nova.scheduler.client.report [req-36012e34-70de-44e9-b757-a194d3a16b28 - - - - -] [req-b88725d5-9831-40fa-be0a-977401aa6e6c] Failed to update inventory for resource provider 1f03e781-e2c5-446d-8208-ee697a118136: 400 <html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  The server could not comply with the request since it is either malformed or otherwise incorrect.<br /><br />
JSON does not validate: 0.0 is less than the minimum of 1

Failed validating 'minimum' in schema['properties']['inventories']['patternProperties']['^[A-Z0-9_]+$']['properties']['max_unit']:
    {'maximum': 2147483647, 'minimum': 1, 'type': 'integer'}

On instance['inventories'][u'DISK_GB']['max_unit']:
    0

 </body>
</html>

===================
Results in tempest failure

http://logs.openstack.org/85/564285/20/check/tripleo-ci-centos-7-scenario004-multinode-oooq-container/5894ea4/logs/stackviz/#/stdin/test-details/tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tempest/common/utils/__init__.py", line 89, in wrapper
    return f(self, *func_args, **func_kwargs)
  File "/usr/lib/python2.7/site-packages/tempest/scenario/test_network_basic_ops.py", line 403, in test_network_basic_ops
    self._setup_network_and_servers()
  File "/usr/lib/python2.7/site-packages/tempest/scenario/test_network_basic_ops.py", line 119, in _setup_network_and_servers
    server = self._create_server(self.network, port_id)
  File "/usr/lib/python2.7/site-packages/tempest/scenario/test_network_basic_ops.py", line 171, in _create_server
    security_groups=security_groups)
  File "/usr/lib/python2.7/site-packages/tempest/scenario/manager.py", line 202, in create_server
    image_id=image_id, **kwargs)
  File "/usr/lib/python2.7/site-packages/tempest/common/compute.py", line 258, in create_test_server
    server['id'])
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/lib/python2.7/site-packages/tempest/common/compute.py", line 229, in create_test_server
    clients.servers_client, server['id'], wait_until)
  File "/usr/lib/python2.7/site-packages/tempest/common/waiters.py", line 76, in wait_for_server_status
    server_id=server_id)
tempest.exceptions.BuildErrorException: Server 3d212ef0-f28b-4a90-ad2d-3ca60308cb1f failed to build and is in ERROR status
Details: {u'message': u'No valid host was found. ', u'code': 500, u'created': u'2018-06-20T02:01:36Z'}

Changed in tripleo:
assignee: nobody → Quique Llorente (quiquell)
Revision history for this message
Quique Llorente (quiquell) wrote :

Nova compute is giving DISK_GB of 0.0 but placement validates with minimal 1, can be related to the following nova pike change, https://github.com/openstack/nova/commit/2c9c4a09cb5fd31ccff368315534eaa788e90e67

Revision history for this message
Quique Llorente (quiquell) wrote :

Let's revert this https://review.openstack.org/#/c/571425/ and test.

Revision history for this message
Quique Llorente (quiquell) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-quickstart (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/576851

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (stable/queens)

Related fix proposed to branch: stable/queens
Review: https://review.openstack.org/576863

Revision history for this message
Quique Llorente (quiquell) wrote :

To test a pike change with an upgrade job, https://review.openstack.org/576863.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/queens)

Change abandoned by Quique Llorente (<email address hidden>) on branch: stable/queens
Review: https://review.openstack.org/576863

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (stable/pike)

Related fix proposed to branch: stable/pike
Review: https://review.openstack.org/576866

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-quickstart (master)

Reviewed: https://review.openstack.org/576851
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=7d2415a8a8c94bbd9043edd957e7edb37629bc7c
Submitter: Zuul
Branch: master

commit 7d2415a8a8c94bbd9043edd957e7edb37629bc7c
Author: Wes Hayutin <email address hidden>
Date: Wed Jun 20 09:19:07 2018 -0400

    set the ceph container for pike

    A patch was made that change how the containers
    were pulled in [1]. A default to luminous was
    set in defaults that needs to be overriden
    in the release config.

    [1] https://github.com/openstack/tripleo-quickstart-extras/commit/b3794ff03ab841bbbc15a339e35a7ec02b193111

    Closes-Bug: #1777759
    Related-Bug: #1777762
    Change-Id: I82e422f30d63b2fe8808e585e2f0eed273c96b2a

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/pike)

Change abandoned by Quique Llorente (<email address hidden>) on branch: stable/pike
Review: https://review.openstack.org/576866

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.