[Users] changing hostname in ovirt

Sven Kieske S.Kieske at mittwald.de
Mon Feb 3 12:00:03 UTC 2014


Hi,

just to complete this thread.

I changed the hostname by hacking the database, which was successful.

The complete procedure can be found in this BZ:

https://bugzilla.redhat.com/show_bug.cgi?id=1060215

What I don't know/didn't research is, if the certificates
really need to get redeployed and/or recreated.

So far the host runs fine with the old certificates and the new
address in ovirt.

Am 27.01.2014 14:07, schrieb Alon Bar-Lev:
> 
> 
> ----- Original Message -----
>> From: "Sven Kieske" <S.Kieske at mittwald.de>
>> To: dron at redhat.com
>> Cc: "Alon Bar-Lev" <alonbl at redhat.com>, "Users at ovirt.org List" <Users at ovirt.org>
>> Sent: Monday, January 27, 2014 2:52:03 PM
>> Subject: Re: [Users] changing hostname in ovirt
>>
>> well, that's not what I want, because I'm talking about a local
>> storage DC. I just want to change the hosts address which ovirt
>> uses to connect to the host.
>>
>> This isn't possible without changing the certificates (re-deploy)?
> 
> You can... just a lot of places.
> 
> generate empty subject certificate request using /etc/pki/vdsm/keys/vdsmkey.pem key
> 
> # openssl req -new -key /etc/pki/vdsm/keys/vdsmkey.pem -subj "/"
> 
> use engine utility /usr/share/ovirt-engine/bin/pki-enroll-request.sh to enroll a new certificate with the new host name.
> 
> # cat > /etc/pki/ovirt-engine/requests/xxx.req
> <paste request>
> # /usr/share/ovirt-engine/bin/pki-enroll-request.sh --name=xxx --subject="/CN=xxxx/O=xxxx/C=xxx"
> # cat /etc/pki/ovirt-engine/certs/xxx.cer
> 
> copy the certificate into:
> /etc/pki/vdsm/certs/vdsmcert.pem
> /etc/pki/vdsm/libvirt-spice/server-cert.pem
> /etc/pki/libvirt/clientcert.pem
> 
>>
>> Am 27.01.2014 13:27, schrieb Dafna Ron:
>>> well, if you can re-deploy the hosts that would change the certificates
>>> as well (create new ones with the new hostname).


-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen


More information about the Users mailing list