Regression: landscape-config fails to surface registration error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Undecided
|
Unassigned | ||
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When attempting to register with invalid info, landscape-config simply timeouts without return the server error or status:
# landscape-config --log-level=debug --silent -p foo -a foobar
Created symlink /etc/systemd/
Please wait...
Traceback (most recent call last):
Failure: landscape.
#echo $?
0
In the broker logs, we can clearly see the request was rejected by the server
2020-07-29 14:57:47,766 DEBUG [PoolThread-
{'accepted-types': b'\xbfx\
'client-
'client-api': b'3.8',
'messages': [{'account_name': 'foobar',
'next-
'sequence': 1,
'server-api': b'3.3',
'total-messages': 1}
2020-07-29 14:57:47,766 INFO [MainThread] Message exchange completed in 0.56s.
2020-07-29 14:57:48,378 INFO [PoolThread-
{'messages': [{'info': b'unknown-account', 'type': b'registration'}],
'server-api': '3.3',
'server-uuid': b'f1a65772-
This looks like a regression of (LP: #271759). I suspect it has been there almost as long as python3 support in landscape-client.
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/CanonicalLt d/landscape- client/ pull/87