landscape-config shouldn't accept empty --computer-title
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Invalid
|
Medium
|
Unassigned |
Bug Description
We had a case where a user was registering a computer using a command line like this:
# landscape-config --account-
Due to a mistake, $variable was empty. Turns out the landscape-config tool doesn't complain. It fails later on when trying to register, and there are no useful logs about the failure:
(...)
Tags:
* Stopping landscape-client daemon [fail]
* Starting the landscape-client daemon [ OK ]
Please wait...
Request a new registration for this computer now? (Y/n):
Traceback (most recent call last):
Failure: landscape.
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
Failure: landscape.
It just stalls there, you have to ctrl-c it, at which point you get:
Failure: landscape.
^CTraceback (most recent call last):
File "/usr/bin/
main(
File "/usr/lib/
result = register(config, reactor)
File "/usr/lib/
assert len(results) == 1, "We expect exactly one result."
AssertionError: We expect exactly one result.
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
current.result = callback(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
--- <exception caught here> ---
File "/usr/lib/
current.result = callback(
File "/usr/lib/
raise SystemExit
exceptions.
root@nsn7:~#
tags: | removed: kanban |
This bug has not seen any activity in the last 6 months, so it is being automatically closed.
If you are still experiencing this issue, please feel free to re-open.
Landscape Team