Bug 27276 - Fehler bei setup-join.sh
Fehler bei setup-join.sh
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: System setup
UCS 3.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-24 11:44 CEST by Philipp Hahn
Modified: 2018-04-14 13:37 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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
Log "erfolgreich" (37.86 KB, text/plain)
2012-05-24 11:44 CEST, Philipp Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2012-05-24 11:44:42 CEST
Created attachment 4391 [details]
Log "erfolgreich"

Bei einem Testversuch, in der EC2 eine Testinstanz automatisch zu
konfigurieren, ist setup-join.sh gestern nicht sehr erfolgreich gewesen.
Der heutige Test auf skepp mit einem Generic-UCS-3.0 war erfolgreicher, aber in
der Ausgaben tauchten trotzdem etliche Fehler auf, die untersucht werden
sollten.

=== ssl/10ssl (2012-05-24 10:04:00) ===
Generating RSA private key, 2048 bit long modulus
Creating certificate: master.univention.qa
Generating RSA private key, 1024 bit long modulus
Creating certificate: ip0ae3b141.eu-west-1.compute.internal
Generating RSA private key, 1024 bit long modulus

Wofür ist der erste RSA-Key?
Hier wird zwischenzeitlich in Zertifikat für den alten Namen erzeugt.
In VMs und auf Servers besteht die Gefahr, das beim Generieren der Zertifikate
/dev/random leer läuft und der Prozeß an schließend blockiert. Da dort keine
Mausbewegungen und Tastaturanschläge passieren, kann die VM so sehr lange
blockieren. Ein Login per ssh ist dann i.d.R. auch nicht mehr möglich, weil
dafür auch Zufallszahlen benötigt werden. Das ist mir schon mit einer
KVM-Instanz passiert.

=== net/10interfaces (2012-05-24 08:04:11) ===
SIOCSIFBRDADDR: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address
Failed to bring up eth0:2.

Das scheint von interfaces/eth0_X/type=appliance-mode-temporary übrig zu
bleiben.

=== setup-join.sh (2012-05-24 08:04:28) ===
Configure /usr/lib/univention-install/02univention-directory-notifier.inst
Starting Univention Directory Notifier daemon.
warning: univention-directory-notifier: unable to open supervise/ok: file does
not exist
...
__MSG__:Configure 20univention-join
chown: cannot dereference `/etc/univention/ssl/master': No such file or
directory
...
Configure
/usr/lib/univention-install/35univention-management-console-module-setup.inst
Traceback (most recent call last):
File "/usr/share/univention-directory-manager-tools/univention-cli-server",
line 233, in doit
output = univention.admincli.admin.doit(arglist)
File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 1036, in
doit
object=univention.admin.modules.lookup(module, co, lo, scope='base',
superordinate=superordinate, base=dn, filter=filter, required=1, unique=1)[0]
IndexError: list index out of range
Traceback (most recent call last):
File "/usr/share/univention-directory-manager-tools/univention-cli-server",
line 233, in doit
output = univention.admincli.admin.doit(arglist)
File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 1036, in
doit
object=univention.admin.modules.lookup(module, co, lo, scope='base',
superordinate=superordinate, base=dn, filter=filter, required=1, unique=1)[0]
IndexError: list index out of range
Comment 1 Philipp Hahn univentionstaff 2012-06-05 16:13:58 CEST
(In reply to comment #0)
> === ssl/10ssl (2012-05-24 10:04:00) ===
> Generating RSA private key, 2048 bit long modulus
> Creating certificate: master.univention.qa
> Generating RSA private key, 1024 bit long modulus
> Creating certificate: ip0ae3b141.eu-west-1.compute.internal
> Generating RSA private key, 1024 bit long modulus
> 
> Wofür ist der erste RSA-Key?

Vermutlich werden hier die UCR-Variablen ssh/ neu gesetzt, während die UCR-Variable hostname noch nicht aktualisiert wurde.

Das führt später dann auch zu folgendem Problem:

> __MSG__:Configure 20univention-join
> chown: cannot dereference `/etc/univention/ssl/master': No such file or
> directory

Hier scheint "$hostname" immer noch auf den altern Wert zu haben, obwohl ein „eval "$(ucr-shell)"” ausgeführt wird.
Comment 2 Florian Best univentionstaff 2016-10-25 17:39:47 CEST
The error in 35univention-management-console-module-setup.inst is Bug #27620.
I close this as WORKSFORME, reopen if you think the rest still exists. You changed some things in univention-ssl. This bug was created against UCS 3.0.