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

Bug 1494388

Summary: Introspection times out after DHCP address provided
Product: Red Hat OpenStack Reporter: Mukul <mukul18>
Component: openstack-tripleoAssignee: Bob Fournier <bfournie>
Status: CLOSED DUPLICATE QA Contact: Arik Chernetsky <achernet>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 11.0 (Ocata)CC: aschultz, bfournie, dtantsur, mburns, mkovacik, mukul18, psahoo, rhel-osp-director-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-02 16:24:38 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:
Attachments:
Description Flags
instackenv
none
ironic-inspector
none
inspector.log
none
introspection-log none

Description Mukul 2017-09-22 07:28:31 UTC
Description of problem:
I am installing RHOSP 11 on HP ProLiant DL360 Gen9.

My undercloud installation is completed but when i am doing introspection of baremetal node I am getting successfull completion of introspection.

[stack@direcrot swift-data]$ openstack overcloud node introspect 9fc28e39-ad24-4044-b717-307748b3ae71 --provide
Started Mistral Workflow tripleo.baremetal.v1.introspect. Execution ID: b959e962-4a39-4192-8be2-8ffcf0bc4d12
Waiting for introspection to finish...
Waiting for messages on queue '800eae01-fa75-4a56-a421-2f6ed62bf5e2' with no timeout.
Successfully introspected all nodes.
Introspection completed.
Started Mistral Workflow tripleo.baremetal.v1.provide. Execution ID: a5a44408-25cc-49a1-abd3-10c3dabb2c7b
Waiting for messages on queue '800eae01-fa75-4a56-a421-2f6ed62bf5e2' with no timeout.
Successfully set all nodes to available.

But swift dont have any container or object created for ironic-inspector.

[stack@direcrot swift-data]$ openstack baremetal introspection data save 9fc28e39-ad24-4044-b717-307748b3ae71

Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<

Any suggestion will be very helpful for installation of openstack.

Version-Release number of selected component (if applicable):

[stack@direcrot swift-data]$ rpm -qa | grep instack
instack-6.0.0-1.el7ost.noarch
instack-undercloud-6.0.0-6.el7ost.noarch

[stack@direcrot swift-data]$ rpm -qa | grep ironic
python-ironic-inspector-client-1.11.0-1.el7ost.noarch
openstack-ironic-api-7.0.1-1.el7ost.noarch
python-ironicclient-1.11.1-1.el7ost.noarch
openstack-ironic-inspector-5.0.0-3.el7ost.noarch
puppet-ironic-10.4.0-3.el7ost.noarch
python-ironic-lib-2.5.2-1.el7ost.noarch
openstack-ironic-conductor-7.0.1-1.el7ost.noarch
openstack-ironic-common-7.0.1-1.el7ost.noarch

[stack@direcrot swift-data]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[stack@direcrot swift-data]$

Latest RHOSP11 packages

How reproducible:
Everytime

Steps to Reproduce:
1. Install undercloud and then add baremetal to ironic node.
2. Run introspection (either bulk or one by one)
3. Try to retrieve introspection data

Actual results:

openstack baremetal introspection data save 9fc28e39-ad24-4044-b717-307748b3ae71
Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<


Expected results:

Should able to see all the introspection data and able to select the disk for OS installation.

Additional info:

Comment 1 Mukul 2017-09-22 13:51:58 UTC
Created attachment 1329588 [details]
instackenv

Comment 3 Bob Fournier 2017-09-24 23:29:40 UTC
Mukul - please make sure that store_data in /etc/ironic-inspector/inspector.conf
is set to swift, e.g.

# Method for storing introspection data. If set to 'none',
# introspection data will not be stored. (string value)
# Allowed values: none, swift
#store_data = none
store_data = swift


Also, can you provide the following files as they are not gathered in the sosreport:
/etc/ironic-inspector/inspector.conf
/var/log/ironic-inspector/ironic-inspector.log

Thank you.

Comment 4 Mukul 2017-09-25 06:31:48 UTC
Created attachment 1330367 [details]
ironic-inspector

Thanks Bob for the reply.

Store_data in inspector.conf is set to swift.

Attaching required files.

Comment 5 Mukul 2017-09-25 06:34:17 UTC
Created attachment 1330368 [details]
inspector.log

Comment 6 Bob Fournier 2017-09-25 13:31:55 UTC
Thank you for the info Mukul.  From the inspector logs it looks like we are getting introspection time outs for these nodes, so introspection is not completing, which is why the data would not be available.

2017-09-22 03:05:52.853 32198 ERROR ironic_inspector.node_cache [-] Introspection for nodes [u'9fc28e39-ad24-4044-b717-307748b3ae71'] has timed out
2017-09-22 03:05:52.856 32198 DEBUG ironic_inspector.node_cache [-] [node: 9fc28e39-ad24-4044-b717-307748b3ae71 state waiting] Executing fsm(waiting).process_event(timeout) fsm_event /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:224
2017-09-22 03:05:52.856 32198 INFO ironic_inspector.node_cache [-] [node: 9fc28e39-ad24-4044-b717-307748b3ae71 state waiting] Updating node state: waiting --> error
2017-09-22 03:05:52.856 32198 DEBUG ironic_inspector.node_cache [-] [node: 9fc28e39-ad24-4044-b717-307748b3ae71 state waiting] Committing fields: {'state': 'error'} _commit /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:167
2017-09-22 03:05:52.897 32198 DEBUG ironic_inspector.node_cache [-] [node: 9fc28e39-ad24-4044-b717-307748b3ae71 state error] Successfully released lock release_lock /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:135
2017-09-22 03:05:52.898 32198 DEBUG ironic_inspector.node_cache [-] [node: 9fc28e39-ad24-4044-b717-307748b3ae71 state error] Committing fields: {'finished_at': datetime.datetime(2017, 9, 22, 7, 5, 52, 898080), 'error': 'Introspection timeout'} _commit /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:167
2017-09-22 03:06:01.258 32198 INFO werkzeug [-] 10.188.241.51 - - [22/Sep/2017 03:06:01] "GET /v1/introspection/9fc28e39-ad24-4044-b717-307748b3ae71 HTTP/1.1" 200 -
2017-09-22 03:10:08.415 32198 ERROR ironic_inspector.utils [-] Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2017-09-22 03:10:08.416 32198 DEBUG ironic_inspector.main [-] Returning error to client: Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< error_response /usr/lib/python2.7/site-packages/ironic_inspector/main.py:79


In fact for this node all the swift queries are right after the introspection timeout:
bfournie-OSX:bug1494388 bfournie$ grep 9fc28e39-ad24-4044-b717-307748b3ae71 ironic-inspector.log | egrep "has timed out|404 Not Found"
2017-09-21 05:26:45.630 6893 ERROR ironic_inspector.node_cache [-] Introspection for nodes [u'9fc28e39-ad24-4044-b717-307748b3ae71'] has timed out
2017-09-21 05:27:51.102 6893 ERROR ironic_inspector.utils [-] Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2017-09-21 05:27:51.103 6893 DEBUG ironic_inspector.main [-] Returning error to client: Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< error_response /usr/lib/python2.7/site-packages/ironic_inspector/main.py:79
2017-09-21 05:28:07.439 6893 ERROR ironic_inspector.utils [-] Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2017-09-21 05:28:07.440 6893 DEBUG ironic_inspector.main [-] Returning error to client: Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< error_response /usr/lib/python2.7/site-packages/ironic_inspector/main.py:79
2017-09-21 05:54:45.654 6893 ERROR ironic_inspector.node_cache [-] Introspection for nodes [u'9fc28e39-ad24-4044-b717-307748b3ae71'] has timed out
2017-09-21 05:55:46.664 6893 ERROR ironic_inspector.utils [-] Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2017-09-21 05:55:46.664 6893 DEBUG ironic_inspector.main [-] Returning error to client: Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< error_response /usr/lib/python2.7/site-packages/ironic_inspector/main.py:79
2017-09-22 01:50:18.861 6893 ERROR ironic_inspector.utils [-] Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2017-09-22 01:50:18.862 6893 DEBUG ironic_inspector.main [-] Returning error to client: Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< error_response /usr/lib/python2.7/site-packages/ironic_inspector/main.py:79
2017-09-22 02:02:38.871 6893 ERROR ironic_inspector.utils [-] Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2017-09-22 02:02:38.873 6893 DEBUG ironic_inspector.main [-] Returning error to client: Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< error_response /usr/lib/python2.7/site-packages/ironic_inspector/main.py:79
2017-09-22 02:24:46.684 6893 ERROR ironic_inspector.node_cache [-] Introspection for nodes [u'9fc28e39-ad24-4044-b717-307748b3ae71'] has timed out
2017-09-22 02:30:46.250 6893 ERROR ironic_inspector.utils [-] Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2017-09-22 02:30:46.250 6893 DEBUG ironic_inspector.main [-] Returning error to client: Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< error_response /usr/lib/python2.7/site-packages/ironic_inspector/main.py:79
2017-09-22 03:05:52.853 32198 ERROR ironic_inspector.node_cache [-] Introspection for nodes [u'9fc28e39-ad24-4044-b717-307748b3ae71'] has timed out
2017-09-22 03:10:08.415 32198 ERROR ironic_inspector.utils [-] Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
2017-09-22 03:10:08.416 32198 DEBUG ironic_inspector.main [-] Returning error to client: Swift failed to get object inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 in container ironic-inspector. Error was: Object GET failed: http://10.188.241.51:8080/v1/AUTH_f9dbe7464c4840ce821f0c55c03f526c/ironic-inspector/inspector_data-9fc28e39-ad24-4044-b717-307748b3ae71 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< error_response /usr/lib/python2.7/site-packages/ironic_inspector/main.py:79


So it looks like in fact there is an introspection failure.  In that case would it be possible to get the logs in /var/log/ironic-inspector/ramdisk/ for this particular node (9fc28e39-ad24-4044-b717-307748b3ae71).  Also the output of
"openstack baremetal node show <node-id>"

Thanks again.

Comment 7 Mukul 2017-09-25 17:32:35 UTC
Created attachment 1330641 [details]
introspection-log

Thanks Bob for the reply.

Attaching the baremetal show output.

We are doing introspection in UEFI mode and i have dynamic smart array controller in my HPE DL and that doesn't support legacy support.

What we observe during introspection that DHCP of node is going in infinite loop and after 10-15 mins we are getting successful introspection message.

Also we don't have any file inside "/var/log/ironic-inspector/ramdisk/"

Timeout of introspection is happening due to this issue. 

Please suggest

Comment 8 Bob Fournier 2017-09-25 20:24:42 UTC
Thanks Mukul.  OK, yes it looks there is a problem during pre boot which is causing the introspection timeout.  There will also be no files in /var/log/ironic-inspector/ramdisk/ since the IPA never loaded.

In /var/log/messages we can see that the DHCP address was provided by Ironic Inspector dnsmasq so its most likely a pxe boot failure following dhcp negotiation.
messages:Sep 22 03:03:54 direcrot dnsmasq-dhcp[20897]: DHCPDISCOVER(br-ctlplane) 5c:b9:01:93:92:6c
messages:Sep 22 03:03:54 direcrot dnsmasq-dhcp[20897]: DHCPOFFER(br-ctlplane) 10.188.241.200 5c:b9:01:93:92:6c
messages:Sep 22 03:04:02 direcrot dnsmasq-dhcp[20897]: DHCPREQUEST(br-ctlplane) 10.188.241.200 5c:b9:01:93:92:6c
messages:Sep 22 03:04:02 direcrot dnsmasq-dhcp[20897]: DHCPACK(br-ctlplane) 10.188.241.200 5c:b9:01:93:92:6c

Since you are using UEFI its highly possible you are hitting this bug - https://bugzilla.redhat.com/show_bug.cgi?id=1479386 which causes looping during the PXE boot process after DHCP assignment succeeds.  This is fixed in an upcoming OSP-11 Stream.

If you want to provide a tcpdump of the DHCP process (tcpdump -n port 67 and port 68 -w file) we can try do determine if it is this bug or you can try the changes to /etc/ironic-inspector/dnsmasq.conf as defined in the bug.

I'm updating the summary to reflect its not a swift issue.

Comment 9 Bob Fournier 2017-10-02 13:38:31 UTC
Mukul - as per previous comment, we believe this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1479386

If you want to provide a tcpdump of the DHCP process (tcpdump -n port 67 and port 68 -w file) we can confirm that or you can try the changes to /etc/ironic-inspector/dnsmasq.conf as defined in 1479386.

Comment 10 Mukul 2017-10-02 15:51:19 UTC
Hi Bob,

Sorry for late reply, had some hardware issue to test the solution.

Today, we tried the above solution and it works for my introspection and now will go ahead will the overcloud deployment.

Thanks for the help.

Regards,
Mukul

Comment 11 Bob Fournier 2017-10-02 16:24:38 UTC
Mukul - thank you for testing this. So it looks like this is the UEFI PXE looping issue, I will mark it as a duplicate.  This will be fixed in the next OSP-11 zstream release.

Note that https://bugzilla.redhat.com/show_bug.cgi?id=1489546 is the bug for OSP-11 which is a clone of the bug referenced above.

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