Bug 1560445 - When Amphora fails to boot we should have the error+cause seen in " openstack loadbalancer show ID"
Summary: When Amphora fails to boot we should have the error+cause seen in " openstack...
Keywords:
Status: CLOSED DUPLICATE of bug 1623981
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-octavia
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Assaf Muller
QA Contact: Alexander Stafeyev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-26 08:02 UTC by Alexander Stafeyev
Modified: 2019-09-10 14:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-05 14:18:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack Storyboard 2001733 0 None None None 2018-03-26 08:03:05 UTC

Description Alexander Stafeyev 2018-03-26 08:02:15 UTC
Description of problem:
When amphora fails to boot and usually is deleted, along with the log rotation, may cause us not to know/find a cause of failure for LB creation. 

So if we would show the failure error ( like we do in nova show) in the output of "openstack loadbalancer show ID" command it will be kept because the LB object is not removed automatically when its amphora is deleted. 




Additional info:
This is taken from Octavia worker log: 
[root@controller-0 ~]# tailf /var/log/containers/octavia/worker.log 
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 336, in reraise_if_any
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server     failures[0].reraise()
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 343, in reraise
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server     six.reraise(*self._exc_info)
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server     result = task.execute(**arguments)
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/octavia/controller/worker/tasks/compute_tasks.py", line 195, in execute
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server     raise exceptions.ComputeBuildException(fault=fault)
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server ComputeBuildException: Failed to build compute instance due to: {u'message': u'No valid host was found. ', u'code': 500, u'details': u'  File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 1116, in schedule_and_build_instances\n    instance_uuids, return_alternates=True)\n  File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 716, in _schedule_instances\n    return_alternates=return_alternates)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 726, in wrapped\n    return func(*args, **kwargs)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 53, in select_destinations\n    instance_uuids, return_objects, return_alternates)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method\n    return getattr(self.instance, __name)(*args, **kwargs)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 42, in select_destinations\n    instance_uuids, return_objects, return_alternates)\n  File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 158, in select_destinations\n    return cctxt.call(ctxt, \'select_destinations\', **msg_args)\n  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 174, in call\n    retry=self.retry)\n  File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 131, in _send\n    timeout=timeout, retry=retry)\n  File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 559, in send\n    retry=retry)\n  File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 550, in _send\n    raise result\n', u'created': u'2018-03-26T07:52:46Z'}
2018-03-26 07:52:56.672 21 ERROR oslo_messaging.rpc.server 

 
This can be showed in the "openstack loadbalancer show ID" command output.

Comment 1 Carlos Goncalves 2018-10-05 14:18:06 UTC
Closing as duplicate of rhbz #1623981 (we have docs pointing to that one, none to this IIRC).

*** This bug has been marked as a duplicate of bug 1623981 ***


Note You need to log in before you can comment on or make changes to this bug.