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 when setting hostname for client #116

Open
x00Pavel opened this issue Sep 30, 2022 · 0 comments
Open

Bug when setting hostname for client #116

x00Pavel opened this issue Sep 30, 2022 · 0 comments
Labels
bug Something isn't working critical Issue causes critical error or unhandled exception in the library

Comments

@x00Pavel
Copy link
Member

SCAutolib:__init__.run.116 [DEBUG] run: hostnamectl set-hostname client-1664531019. --static
SCAutolib:__init__.run.123 [WARNING] Could not set property: Invalid static hostname 'client-1664531019.'

SCAutolib:__init__.run.127 [ERROR] Unexpected return code 1. Expected: [0]
Traceback (most recent call last):
  File "/usr/local/bin/scauto", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/SCAutolib/cli_commands.py", line 73, in prepare
    ctx.obj["CONTROLLER"].prepare(ctx.obj["FORCE"], gdm, install_missing)
  File "/usr/local/lib/python3.6/site-packages/SCAutolib/controller.py", line 78, in prepare
    self.setup_ipa_client(force=force)
  File "/usr/local/lib/python3.6/site-packages/SCAutolib/controller.py", line 186, in setup_ipa_client
    self.ipa_ca.setup()
  File "/usr/local/lib/python3.6/site-packages/SCAutolib/models/CA.py", line 399, in setup
    self._set_hostname()
  File "/usr/local/lib/python3.6/site-packages/SCAutolib/models/CA.py", line 456, in _set_hostname
    run(f"hostnamectl set-hostname {self._ipa_client_hostname} --static")
  File "/usr/local/lib/python3.6/site-packages/SCAutolib/__init__.py", line 129, in run
    raise subprocess.CalledProcessError(out.returncode, cmd)
subprocess.CalledProcessError: Command '['hostnamectl', 'set-hostname', 'client-1664531019.', '--static']' returned non-zero exit status 1.
@x00Pavel x00Pavel added bug Something isn't working critical Issue causes critical error or unhandled exception in the library labels Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical Issue causes critical error or unhandled exception in the library
Projects
None yet
Development

No branches or pull requests

1 participant