Univention Bugzilla – Full Text Bug Listing |
Summary: | system-activation: Search for license returns motd, communication with license server fails | ||
---|---|---|---|
Product: | UCS | Reporter: | Erik Damrose <damrose> |
Component: | System setup | Assignee: | Erik Damrose <damrose> |
Status: | CLOSED FIXED | QA Contact: | Alexander Kläser <klaeser> |
Severity: | normal | ||
Priority: | P5 | CC: | best, klaeser |
Version: | UCS 4.1 | ||
Target Milestone: | UCS 4.1-3-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 6: Setup Problem: Issue for the setup process |
Who will be affected by this bug?: | 3: Will affect average number of installed domains | How will those affected feel about the bug?: | 5: Blocking further progress on the daily work |
User Pain: | 0.514 | Enterprise Customer affected?: | |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Attachments: | response to GET /license |
AFAIS, the message of the day will be printed when sudoing due to univention-system-setup-boot being installed. I can reproduce the issue if I install u-s-s-boot and type: sudo /usr/bin/univention-ldapsearch -LLL objectClass=univentionLicense I would vote for removing anything between the "/#+/"-lines, e.g. (but then with an equivalent in python): sudo ... | sed '/^#\+$/,/^#\+$/d; /^\s*$/d' This seems to be the quickest solution. There already is a UCRv to deactivate this behaviour in setup-join.sh, but it was not set for the fast demo mode. Fixed in r71752 univention-system-setup 9.0.4-36 r71755 yaml r71756 Merge to 4.2 Test the sudo call with ucr set system/setup/showloginmessage=false vs. true Changes: OK, loginmessage is set to false and it fixes the described problem. Merge to 4.1-2: OK YAML file: OK, I adjusted the description to be more user friendly [r71857] |
Created attachment 7895 [details] response to GET /license univention-system-activation tries to load the license in order to send it to the license server: out = subprocess.check_output(['/usr/bin/sudo', '/usr/bin/univention-ldapsearch', '-LLL', 'objectClass=univentionLicense']) Apparently 'out' sometimes(?) also contains the output of the motd, presumably due to the sudo call. The http response to GET /license looks as in the attachment. The license server then rejects the license request.