Bug 1494388
| Summary: | Introspection times out after DHCP address provided | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Mukul <mukul18> | ||||||||||
| Component: | openstack-tripleo | Assignee: | 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
Mukul
2017-09-22 07:28:31 UTC
Created attachment 1329588 [details]
instackenv
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. Created attachment 1330367 [details]
ironic-inspector
Thanks Bob for the reply.
Store_data in inspector.conf is set to swift.
Attaching required files.
Created attachment 1330368 [details]
inspector.log
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.
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
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. 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. 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 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 *** |