Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Latest RPM Build fails when trying any kind of variation of --boot-to on R630 #407

Closed
sadsfae opened this issue Oct 1, 2024 · 1 comment
Labels

Comments

@sadsfae
Copy link
Member

sadsfae commented Oct 1, 2024

I know Dell R630 are very old and we may not be able to support this but:

-=>>badfish -H mgmt-f28-h24-000-r630.example.com -u root -p XXXXXX  --boot-to NIC.Slot.2-1-1 
Traceback (most recent call last):
  File "/usr/bin/badfish", line 33, in <module>
    sys.exit(load_entry_point('badfish==1.0.2', 'console_scripts', 'badfish')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 2943, in main
    _host, result = loop.run_until_complete(
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 2468, in execute_badfish
    badfish = await badfish_factory(
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 41, in badfish_factory
    await badfish.init()
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 73, in init
    self.session_uri = await self.find_session_uri()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 459, in find_session_uri
    data = json.loads(raw.strip())
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-=>>badfish -H mgmt-f28-h24-000-r630.example.com -u root -p XXXXX  -i ~/git_modules/badfish-self/config/idrac_interfaces.yml --boot-to-type foreman
Traceback (most recent call last):
  File "/usr/bin/badfish", line 33, in <module>
    sys.exit(load_entry_point('badfish==1.0.2', 'console_scripts', 'badfish')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 2943, in main
    _host, result = loop.run_until_complete(
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 2468, in execute_badfish
    badfish = await badfish_factory(
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 41, in badfish_factory
    await badfish.init()
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 73, in init
    self.session_uri = await self.find_session_uri()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/badfish/main.py", line 459, in find_session_uri
    data = json.loads(raw.strip())
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@sadsfae sadsfae added the Dell label Oct 1, 2024
@sadsfae
Copy link
Member Author

sadsfae commented Oct 1, 2024

Ok this is not a bug, racadm set iDRAC.webserver.HostHeaderCheck needs to be set for this to work right, apparently this can get reset after a firmware update.

@sadsfae sadsfae closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant