by 'sporadically' i mean roughly every-other time.
We have a nova cloud installed with the daily ppa:
python-nova at version 2012.1~e1~20110920.1604-0ubuntu0ppa1~oneiric2
We would see:
$ euca-describe-instances
UnknownError: An unknown error has occurred. Please try your request again.
We saw the following trace in logs:
ubuntu@mabolo:~$ 2011-09-21 11:03:47,041 DEBUG nova.api [-] action: DescribeInstances from (pid=25529) __call__ /usr/lib/python2.7/dist-packages/nova/api/ec2/__init__.py:290
2011-09-21 11:03:47,042 DEBUG nova.compute.api [-] Searching by: {'deleted': False} from (pid=25529) get_all /usr/lib/python2.7/dist-packages/nova/compute/api.py:862
2011-09-21 11:03:47,162 ERROR nova.api [70460539-3492-4108-b805-3e73f00c0e3c 35a1d80e-ab85-42ab-81f8-7fb7e0197ccb novaproject] Unexpected error raised: Parent instance <Instance at 0x5413310> is not bound to a Session; lazy load operation of attribute 'fixed_ips' cannot proceed
(nova.api): TRACE: Traceback (most recent call last):
(nova.api): TRACE: File "/usr/lib/python2.7/dist-packages/nova/api/ec2/__init__.py", line 398, in __call__
(nova.api): TRACE: result = api_request.invoke(context)
(nova.api): TRACE: File "/usr/lib/python2.7/dist-packages/nova/api/ec2/apirequest.py", line 78, in invoke
(nova.api): TRACE: result = method(context, **args)
(nova.api): TRACE: File "/usr/lib/python2.7/dist-packages/nova/api/ec2/cloud.py", line 1151, in describe_instances
(nova.api): TRACE: instance_id=instance_id)
(nova.api): TRACE: File "/usr/lib/python2.7/dist-packages/nova/api/ec2/cloud.py", line 1160, in _format_describe_instances
(nova.api): TRACE: return {'reservationSet': self._format_instances(context, **kwargs)}
(nova.api): TRACE: File "/usr/lib/python2.7/dist-packages/nova/api/ec2/cloud.py", line 1260, in _format_instances
(nova.api): TRACE: if instance['fixed_ips']:
(nova.api): TRACE: File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/models.py", line 76, in __getitem__
(nova.api): TRACE: return getattr(self, key)
(nova.api): TRACE: File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 168, in __get__
(nova.api): TRACE: instance_dict(instance))
(nova.api): TRACE: File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 388, in get
(nova.api): TRACE: value = callable_(passive=passive)
(nova.api): TRACE: File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/strategies.py", line 599, in __call__
(nova.api): TRACE: (mapperutil.state_str(state), self.key)
(nova.api): TRACE: DetachedInstanceError: Parent instance <Instance at 0x5413310> is not bound to a Session; lazy load operation of attribute 'fixed_ips' cannot proceed
(nova.api): TRACE:
2011-09-21 11:03:47,162 ERROR nova.api [70460539-3492-4108-b805-3e73f00c0e3c 35a1d80e-ab85-42ab-81f8-7fb7e0197ccb novaproject] Environment: {"CONTENT_TYPE": "application/x-www-form-urlencoded; charset=UTF-8", "SCRIPT_NAME": "/services/Cloud", "REQUEST_METHOD": "POST", "HTTP_HOST": "10.55.55.5:8773", "PATH_INFO": "/", "SERVER_PROTOCOL": "HTTP/1.0", "HTTP_USER_AGENT": "Boto/2.0 (linux2)", "SERVER_NAME": "10.55.55.5", "REMOTE_ADDR": "10.55.55.5", "wsgi.url_scheme": "http", "SERVER_PORT": "8773", "GATEWAY_INTERFACE": "CGI/1.1", "HTTP_ACCEPT_ENCODING": "identity"}
2011-09-21 11:03:47,162 ERROR nova.api [70460539-3492-4108-b805-3e73f00c0e3c 35a1d80e-ab85-42ab-81f8-7fb7e0197ccb novaproject] UnknownError: An unknown error has occurred. Please try your request again.
2011-09-21 11:03:47,163 INFO nova.api [70460539-3492-4108-b805-3e73f00c0e3c 35a1d80e-ab85-42ab-81f8-7fb7e0197ccb novaproject] 0.121898s 10.55.55.5 POST /services/Cloud/ CloudController:DescribeInstances 400 [Boto/2.0 (linux2)] application/x-www-form-urlencoded text/xml
running the command sequentially for 300 times, i got:
132 passes and 168 failures.