Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1560445

Summary: When Amphora fails to boot we should have the error+cause seen in " openstack loadbalancer show ID"
Product: Red Hat OpenStack Reporter: Alexander Stafeyev <astafeye>
Component: openstack-octaviaAssignee: Assaf Muller <amuller>
Status: CLOSED DUPLICATE QA Contact: Alexander Stafeyev <astafeye>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 13.0 (Queens)CC: cgoncalves, ihrachys, lpeer, majopela, nyechiel
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-05 14:18:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***