ValueError: year is out of range

Bug #1801836 reported by Muhammad Hanif
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

Environment:
- CentOS 7
- OpenStack Queens
- Nova 17.0.5

I executed: nova usage, I got error:

ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ValueError'> (HTTP 500) (Request-ID: req-632775ad-e64d-407d-8b38-2e923aff5292)

Then I executed with --debug option: nova --debug usage, I got error:

DEBUG (connectionpool:395) http://172.28.0.12:8774 "GET /v2.1/dca26b5227484837825c800bb4e88c5f/os-simple-tenant-usage/dca26b5227484837825c800bb4e88c5f?start=2018-10-09T03:28:05.272705&end=2018-11-07T03:28:05.272705 HTTP/1.1" 500 194
DEBUG (session:419) RESP: [500] Openstack-Api-Version: compute 2.60 X-Openstack-Nova-Api-Version: 2.60 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version Content-Type: application/json; charset=UTF-8 Content-Length: 194 X-Openstack-Request-Id: req-ccc3b2b9-c80d-4185-ae24-edd05ebc26e6 X-Compute-Request-Id: req-ccc3b2b9-c80d-4185-ae24-edd05ebc26e6 Date: Tue, 06 Nov 2018 03:28:05 GMT Connection: keep-alive
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<type 'exceptions.ValueError'>", "code": 500}}

DEBUG (session:722) GET call to compute for http://172.28.0.12:8774/v2.1/dca26b5227484837825c800bb4e88c5f/os-simple-tenant-usage/dca26b5227484837825c800bb4e88c5f?start=2018-10-09T03:28:05.272705&end=2018-11-07T03:28:05.272705 used request id req-ccc3b2b9-c80d-4185-ae24-edd05ebc26e6
DEBUG (shell:793) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ValueError'> (HTTP 500) (Request-ID: req-ccc3b2b9-c80d-4185-ae24-edd05ebc26e6)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 791, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 713, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 3048, in do_usage
    usage = cs.usage.get(tenant_id, start, end)
  File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 393, in substitution
    return methods[-1].func(obj, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/usage.py", line 128, in get
    return self._get(url, 'tenant_usage')
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 356, in _get
    resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 304, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 83, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ValueError'> (HTTP 500) (Request-ID: req-ccc3b2b9-c80d-4185-ae24-edd05ebc26e6)
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ValueError'> (HTTP 500) (Request-ID: req-ccc3b2b9-c80d-4185-ae24-edd05ebc26e6)

nova-compute log:

2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager [req-75d7367b-3444-44da-bf59-0f0f62497529 - - - - -] Error updating resources for node server3.: ValueError: year is out of range
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager Traceback (most recent call last):
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 7345, in update_available_resource_for_node
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager rt.update_available_resource(context, nodename)
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 673, in update_available_resource
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager resources = self.driver.get_available_resource(nodename)
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6437, in get_available_resource
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager disk_over_committed = self._get_disk_over_committed_size_total()
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7947, in _get_disk_over_committed_size_total
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager ctx, filters, use_slave=True)
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 177, in wrapper
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager args, kwargs)
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/conductor/rpcapi.py", line 240, in object_class_action_versions
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager args=args, kwargs=kwargs)
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 174, in call
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager retry=self.retry)
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 131, in _send
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager timeout=timeout, retry=retry)
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 559, in send
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager retry=retry)
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 550, in _send
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager raise result
2018-11-06 10:14:45.335 26807 ERROR nova.compute.manager ValueError: year is out of range

nova-api log:

2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi [req-e11d15e7-3355-458c-a971-1dda7d7441b5 5fd9267fddb54b638b2129db881353dc dca26b5227484837825c800bb4e88c5f - default default] Unexpected exception in API method: ValueError: year is out of range
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 788, in wrapped
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi return f(*args, **kwargs)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/simple_tenant_usage.py", line 283, in show
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi return self._show(req, id, links=True)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/simple_tenant_usage.py", line 353, in _show
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi detailed=True, limit=limit, marker=marker)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/simple_tenant_usage.py", line 144, in _tenant_usages_for_period
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi limit, marker)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/simple_tenant_usage.py", line 119, in _get_instances_all_cells
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi marker=marker))
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/objects/instance.py", line 1366, in get_active_by_window_joined
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi limit=limit, marker=marker)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 184, in wrapper
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi result = fn(cls, context, *args, **kwargs)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/objects/instance.py", line 1336, in _get_active_by_window_joined
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi expected_attrs)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/objects/instance.py", line 1211, in _make_instance_list
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi expected_attrs=expected_attrs)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/objects/instance.py", line 353, in _from_db_object
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi instance[field] = db_inst[field]
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 777, in __setitem__
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi setattr(self, name, value)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 72, in setter
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi field_value = field.coerce(self, name, value)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/fields.py", line 195, in coerce
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi return self._type.coerce(obj, attr, value)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/fields.py", line 463, in coerce
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi value = timeutils.parse_isotime(value)
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/oslo_utils/timeutils.py", line 68, in parse_isotime
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi raise ValueError(six.text_type(e))
2018-11-06 10:30:37.474 10941 ERROR nova.api.openstack.wsgi ValueError: year is out of range

I don't know how to solve it. I am looking forward to being instructed. Thank you.

Tags: nova
description: updated
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.