UNSOLVED

ben.rosenqvist

updated

2 years ago

BR

ben.rosenqvist

1 Rookie

•

10 Posts

2

24591

December 16th, 2021 01:00

5.10.00.00 - FQDN 400 Bad Request

I just updated a single server to 5.10.00.00. Now throws the below error while accessing using FQDN, IP works. Rolling back works without error. Any thoughts?

 

Bad Request

Your browser sent a request that this server could not understand.

Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request

 

 

  • jabuzz

    1 Rookie

    •

    36 Posts

    •

    30 Points

    18421

    12

    Posted December 16th, 2021 01:00

    The answer is that some idiotic twit at Dell decided it would be a good idea to throw this error when you access the iDRAC with a DNS name but it does not match the DNS name in the iDRAC settings. There are two parts to this a hostname which defaults to "idrac- " and what Dell calls the "DNS Domain Name" which by default is blank but you might set to something like "bmc.mycorp.com".

     

    If you set those then you can access the system using the FQDN and it works. But to demonstrate how idiotically stupid Dell have been you can't use short names so "myserver.bmc" does not work but "myserver.bmc.mycorp.com" does. Whoever thought this was a good idea or even acceptable should not be working in product development.

     

    Someone (or possibly a whole group) at Dell needs taking out the back and given a jolly good thrashing with a clue stick. What they have done is utterly inexcusable. 

  • Dell- Maria J

    4 Apprentice

    •

    278 Posts

    18397

    1

    Posted December 16th, 2021 08:00

    Hello ben.rosenqvist,

     

    I am sorry you faced with this issue. I did some research and it looks like a security update with HTTP/ HTTPS connection changes that may impact user connections when specifying Fully Qualified Domain Name (FQDN) address.iDRAC9 users may encounter connection errors, redirection, or '400 - Bad Request' errors. These connection sightings will occur when the specified FQDN does not match the iDRAC 'DNSRacName' or 'DNSDomainName' values.
     

    In iDRAC9 Version 5.10.00.00 Release Notes p.16

    https://dell.to/3q0BLns  Important notes: Security:

     

    - iDRAC v5.10.00.00 adds an enhanced security check for accessing iDRAC using a hostname. To access iDRAC using a hostname, ensure that you configure the hostname through the attribute idrac.webserver.ManualDNSEntry (racadm set idrac.webserver.ManualDNSEntry https://dell.to/3INwZlI).

    -Accessing iDRAC through OpenManage Enterprise Modular SSO may fail if iDRAC is configured with a short FQDN. Ensure that you configure iDRAC with full FQDN that includes a Hostname with Domain name.

     

    Could you please also check this post in Dell Community Forum:

    https://dell.to/3mcd9qB

     

    I would like also escalate this question to receive more information for you. May I please ask you to send me in Private Message Service Tag of the server and also current version of iDRAC.

     

    Thank you.

    Please ask me if you have any question,

    Maria Januszka

    #IWork4Dell

    Dell | Social Outreach Services - Enterprise

  • ben.rosenqvist

    1 Rookie

    •

    10 Posts

    18358

    0

    Posted December 17th, 2021 00:00

    Thank you

  • Dell- Maria J

    4 Apprentice

    •

    278 Posts

    18344

    1

    Posted December 17th, 2021 04:00

    Hello ben.rosenqvist,

     

    Thank you for your reply.

     

    Regarding this Knowledge base article (this is for iDRAC8 but issue description is the same)

     

    https://dell.to/3q6zgjy it should be done manually:

     

    By default, iDRAC8 checks the HTTP / HTTPS host header and compares it to the defined "DNSRacName" and "DNSDomain Name". If the values do not match, the iDRAC rejects the HTTP / HTTPS connection. In iDRAC8 2.81.81.81, this host header enforcement can be disabled with the following RACADM command.

     

    #Disable host header check

    racadm set idrac.webserver.HostHeaderCheck 0

     

    Note: Only set the HostHeaderCheck value to '0' if there is a manual host record in the DNS environment.

     

    If the HTTP / HTTPS host header check is activated (more secure), iDRAC can be accessed via the IPv4 / IPv6 address, the RAC name and / or the defined Idrac FQDN (DNSRacName. DNS domain name). If the end user accesses with host names that Idrac may not know (e.g. a manual DNS of entries added in DNS records), the firmware version of the iDRAC8 firmware 2.81.81.81 has introduced a new attribute " ManualDNSEntry". This new setting can be updated with up to 4 IP addresses / hostnames / FQDNs to provide an allow list of host headers. This ensures that incoming requests are not discarded if the HTTP / HTTPS host header contains one of the entries in the "ManualDNSEntry" setting.

     

    # Add manual entry to allow list

    racadm set idrac.webserver.ManualDNSEntry 192.168.20.30

    racadm set idrac.webserver.ManualDNSentry 192.168.20.30,https://dell.to/3sdNgKN

    This additional configuration is required in the following cases:

     

    End user manually uses DNS configuration to access iDRAC (manual DNS host record

    Alternative Applicant Name / Wildcard Certificate is used to refer to the iDRAC.

    Access to Idrac using the host IP address directly (via ISM)

     

    Please ask me if you have any questions

    Maria Januszka

    #IWork4Dell

    Dell | Social Outreach Services - Enterprise

  • 18321

    1

    Posted December 17th, 2021 12:00

    I just ran into this problem on a T440 after updating to 5.10.00.00, and before I found this post, I tried applying the 'fix' I need to use after updating to iDRAC 2.81.81.81 on older hosts, because to access these DRAC's, we use an external IP forwarded to an internal IP on the router, but only allowed from the external IP's of our offices, so the web request hostname will never match the hostname internally, and this is the configuration we have used for a long time now.

    I found that applying this :

    racadm set idrac.webserver.HostHeaderCheck 0

    Worked after rebooting the DRAC.. (Unless it happened to be one of the other changes I tried at the time)

  • 9307

    0

    Posted December 29th, 2022 08:00

    Hi there.  I just wanted to offer further details on how to fix this issue for those that had trouble understanding the guidance provided here.

    • Use Putty, or another SSH client, to connect to the IP address of the iDrac.  If prompted, use port 22 
    • Authenticate with your iDrac username and password
    • Run Command: racadm set idrac.webserver.ManualDNSEntry ***Remote Address***
      (Example:  racadm set idrac.webserver.ManualDNSEntry idrac.mydomain.com)
  • 5529

    0

    Posted February 21st, 2023 20:00

    I've just hit this upgrading to 6.10. Unbelievable.

  • grobb3

    2 Posts

    6678

    0

    Posted March 10th, 2023 14:00

    Thanks a ton for this thread.  By chance would this impact OME's ability to "discover" a device?

    Ways to reproduce:
    1. update iDRAC firmware via OME from 5.10.10.00 to 6.10.30.00
    2. Attempt to access the device
    3. Receive the '400 - Bad Request'
    4. Apply the `racadm set idrac.webserver.ManualDNSEntry idrac.mydomain.com`
    5. Successfully Access the iDrac as normal via its FQDN after update  in 4.
    6. Goto your OME instance and realize it is "gray'd" out / offline
    7. Attempt a "Refresh Status" or "Refresh Inventory" with failures
    8. Delete device from OME
    9. Attempt to re-discover device with job status in OME of:

    Results:
    Target System: idrac.mydomain.com
    Messages:
    Running
    Discovery of target started.
    Discovery target resolved to IP [: : ========== EEMI Code: CGEN1013 ==========
    Message: Unable to connect to the device over WSMAN, REDFISH because a connection error occurred.
    Recommended actions: Make sure that the target device is available and retry the operation.
    =======================================
    Task Failed. Completed With Errors.

  • Praveen.Singh

    4 Apprentice

    •

    489 Posts

    •

    17 Points

    6649

    0

    Posted March 11th, 2023 04:00

    hello Guys hope the issue is now resolved ?

  • grobb3

    2 Posts

    726

    0

    Posted March 17th, 2023 09:00

    SOLVED -  and update on the ‎03-10-2023 04:58 PM "grobb3" post above. 

    OME is working fantastic after conducting all the steps mentioned in this thread:

    TL;DR ( solution after I re-read this entire thread) Dell- Maria J <- truly provided all the data needed. TY 

     
    Apply:  `racadm set idrac.webserver.ManualDNSEntry idrac.mydomain.com`
    this gets direct to the idrac WebUI from workstations functional again
    AND
    Apply: `racadm set idrac.webserver.HostHeaderCheck 0`
    This gets OME able to communicate fully


    Thanks again for this thread!  :party_parrot:

    -- grobb3