Bug 37146 - admember: check that univention-samba is installable
admember: check that univention-samba is installable
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-02 12:46 CET by Arvid Requate
Modified: 2019-02-21 20:29 CET (History)
4 users (show)

See Also:
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?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.103
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

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2014-12-02 12:46:06 CET
We should check that univention-samba is installable before attempting to configure the AD member mode. In my ucs-kt VM I had configured the AD DC as DNS server and had repository/online/server: univention-repository.knut.univention.de, which was not resolvable via the AD DNS.

Also, I guess we may want to commit the /etc/apt/sources.list.d/* after setting the nameserver in admember.py before checking in univention-samba is installable (or at least in case of failure), to avoid the case where the files are still empty.


For reference, this is the traceback I got:

/var/log/univention/management-console-module-adconnector.log:
02.12.14 12:33:07.546  MODULE      ( PROCESS ) : Install univention-samba
02.12.14 12:33:07.547  MODULE      ( WARN    ) : univention-samba: Paket existiert nicht
[...]
02.12.14 12:33:11.559  MODULE      ( PROCESS ) : Running samba join script
02.12.14 12:33:11.613  MODULE      ( ERROR   ) : Join process failed [OSError]: [Errno 2] Datei oder Verzeichnis nicht gefunden
02.12.14 12:33:11.614  MODULE      ( ERROR   ) : Traceback:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/adconnector/__init__.py", line 483, in admember_join
    admember.run_samba_join_script(username, password)
  File "/usr/lib/pymodules/python2.7/univention/lib/admember.py", line 613, in run_samba_join_script
    close_fds=True, env=my_env, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden



/etc/apt/sources.list.d/15_ucs-online-version.list:
#   ConfigurationError: Configuration error: host is unresolvable
Comment 1 Arvid Requate univentionstaff 2014-12-02 12:52:22 CET
Calling apt-get update would also be excellent.
Comment 2 Florian Best univentionstaff 2015-11-30 19:30:55 CET
Hit me, too.
Comment 3 Felix Botner univentionstaff 2017-08-17 19:52:49 CEST
me too
Comment 4 Florian Best univentionstaff 2017-11-09 18:46:08 CET
This hit me again.
Comment 5 Stefan Gohmann univentionstaff 2019-01-03 07:18:18 CET
This issue has been filled against UCS 4.0. The maintenance with bug and security fixes for UCS 4.0 has ended on 31st of May 2016.

Customers still on UCS 4.0 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.