[Users] changing hostname in ovirt

Hi, maybe I should write an RFE BZ for this but there might be a technical limitation, I don't know. What I want: I have a Host in ovirt which is in status "down" and/or "maintenance". I want to change the hostname/ip ovirt uses to connect to this host. 2. RFEs: 1. This is not possible via webadmin, the address field is grayed out (there seem to be conflicting design patterns for the webadmin, other buttons which don't work don't get grayed out for some reason, instead they throw errors..) 2. make it possible to change the hostname/ip via API from what I've seen so far I have to hack the database to make this change happen in 3.3.2 Is there any technical reason why this is not possible? ovirt should be happy with the UUIDs for the host and should not bother about the hostname. Is there a way to alter the hostname/ip which I don't know? Could someone point me to the right table and how to alter it without breaking it? Thank you! -- 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

----- Original Message -----
From: "Sven Kieske" <S.Kieske@mittwald.de> To: "Users@ovirt.org List" <Users@ovirt.org> Sent: Monday, January 27, 2014 12:42:51 PM Subject: [Users] changing hostname in ovirt
Hi,
maybe I should write an RFE BZ for this but there might be a technical limitation, I don't know.
What I want:
I have a Host in ovirt which is in status "down" and/or "maintenance".
I want to change the hostname/ip ovirt uses to connect to this host.
2. RFEs:
1. This is not possible via webadmin, the address field is grayed out (there seem to be conflicting design patterns for the webadmin, other buttons which don't work don't get grayed out for some reason, instead they throw errors..)
2. make it possible to change the hostname/ip via API
It should be supported, yaniv? Apart of the unique id all fiends should be editable via API, right?
from what I've seen so far I have to hack the database to make this change happen in 3.3.2
Is there any technical reason why this is not possible? ovirt should be happy with the UUIDs for the host and should not bother about the hostname.
Is there a way to alter the hostname/ip which I don't know?
Could someone point me to the right table and how to alter it without breaking it?
Thank you!
-- 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 _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

you cannot change a host name after it has been installed because of certificates being installed during host installation. On 01/27/2014 10:42 AM, Sven Kieske wrote:
Hi,
maybe I should write an RFE BZ for this but there might be a technical limitation, I don't know.
What I want:
I have a Host in ovirt which is in status "down" and/or "maintenance".
I want to change the hostname/ip ovirt uses to connect to this host.
2. RFEs:
1. This is not possible via webadmin, the address field is grayed out (there seem to be conflicting design patterns for the webadmin, other buttons which don't work don't get grayed out for some reason, instead they throw errors..)
2. make it possible to change the hostname/ip via API
from what I've seen so far I have to hack the database to make this change happen in 3.3.2
Is there any technical reason why this is not possible? ovirt should be happy with the UUIDs for the host and should not bother about the hostname.
Is there a way to alter the hostname/ip which I don't know?
Could someone point me to the right table and how to alter it without breaking it?
Thank you!
-- Dafna Ron

----- Original Message -----
From: "Dafna Ron" <dron@redhat.com> To: "Sven Kieske" <S.Kieske@mittwald.de> Cc: "Users@ovirt.org List" <Users@ovirt.org> Sent: Monday, January 27, 2014 1:13:14 PM Subject: Re: [Users] changing hostname in ovirt
you cannot change a host name after it has been installed because of certificates being installed during host installation.
This should not be an issue, as you can: 1. go to maintenance. 2. modify host name via API 3. re-deploy host.
On 01/27/2014 10:42 AM, Sven Kieske wrote:
Hi,
maybe I should write an RFE BZ for this but there might be a technical limitation, I don't know.
What I want:
I have a Host in ovirt which is in status "down" and/or "maintenance".
I want to change the hostname/ip ovirt uses to connect to this host.
2. RFEs:
1. This is not possible via webadmin, the address field is grayed out (there seem to be conflicting design patterns for the webadmin, other buttons which don't work don't get grayed out for some reason, instead they throw errors..)
2. make it possible to change the hostname/ip via API
from what I've seen so far I have to hack the database to make this change happen in 3.3.2
Is there any technical reason why this is not possible? ovirt should be happy with the UUIDs for the host and should not bother about the hostname.
Is there a way to alter the hostname/ip which I don't know?
Could someone point me to the right table and how to alter it without breaking it?
Thank you!
-- Dafna Ron _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi, so you can change the address></address> part of the host via api? I can see the update description in the rsdl it seems this should work, but will this have any effect on the certificates Dafna mentioned? Am 27.01.2014 12:26, schrieb Alon Bar-Lev:
----- Original Message -----
From: "Dafna Ron" <dron@redhat.com> To: "Sven Kieske" <S.Kieske@mittwald.de> Cc: "Users@ovirt.org List" <Users@ovirt.org> Sent: Monday, January 27, 2014 1:13:14 PM Subject: Re: [Users] changing hostname in ovirt
you cannot change a host name after it has been installed because of certificates being installed during host installation.
This should not be an issue, as you can: 1. go to maintenance. 2. modify host name via API 3. re-deploy host.
On 01/27/2014 10:42 AM, Sven Kieske wrote:
Hi,
maybe I should write an RFE BZ for this but there might be a technical limitation, I don't know.
What I want:
I have a Host in ovirt which is in status "down" and/or "maintenance".
I want to change the hostname/ip ovirt uses to connect to this host.
2. RFEs:
1. This is not possible via webadmin, the address field is grayed out (there seem to be conflicting design patterns for the webadmin, other buttons which don't work don't get grayed out for some reason, instead they throw errors..)
2. make it possible to change the hostname/ip via API
from what I've seen so far I have to hack the database to make this change happen in 3.3.2
Is there any technical reason why this is not possible? ovirt should be happy with the UUIDs for the host and should not bother about the hostname.
Is there a way to alter the hostname/ip which I don't know?
Could someone point me to the right table and how to alter it without breaking it?
Thank you!
-- Dafna Ron _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- 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

On 01/27/2014 12:23 PM, Sven Kieske wrote: > Hi, > > so you can change the address></address> part > of the host via api? > > I can see the update description in the rsdl > it seems this should work, but will this have > any effect on the certificates Dafna mentioned? well, if you can re-deploy the hosts that would change the certificates as well (create new ones with the new hostname). > > Am 27.01.2014 12:26, schrieb Alon Bar-Lev: >> >> ----- Original Message ----- >>> From: "Dafna Ron" <dron@redhat.com> >>> To: "Sven Kieske" <S.Kieske@mittwald.de> >>> Cc: "Users@ovirt.org List" <Users@ovirt.org> >>> Sent: Monday, January 27, 2014 1:13:14 PM >>> Subject: Re: [Users] changing hostname in ovirt >>> >>> you cannot change a host name after it has been installed because of >>> certificates being installed during host installation. >> This should not be an issue, as you can: >> 1. go to maintenance. >> 2. modify host name via API >> 3. re-deploy host. >> >>> On 01/27/2014 10:42 AM, Sven Kieske wrote: >>>> Hi, >>>> >>>> maybe I should write an RFE BZ for this >>>> but there might be a technical limitation, I don't know. >>>> >>>> What I want: >>>> >>>> I have a Host in ovirt which is in status "down" and/or >>>> "maintenance". >>>> >>>> I want to change the hostname/ip ovirt uses to connect to >>>> this host. >>>> >>>> 2. RFEs: >>>> >>>> 1. This is not possible via webadmin, the address field >>>> is grayed out (there seem to be conflicting design patterns >>>> for the webadmin, other buttons which don't work don't get >>>> grayed out for some reason, instead they throw errors..) >>>> >>>> 2. make it possible to change the hostname/ip via API >>>> >>>> from what I've seen so far I have to hack the database >>>> to make this change happen in 3.3.2 >>>> >>>> Is there any technical reason why this is not possible? >>>> ovirt should be happy with the UUIDs for the host and >>>> should not bother about the hostname. >>>> >>>> Is there a way to alter the hostname/ip which I don't know? >>>> >>>> Could someone point me to the right table and how to alter it >>>> without breaking it? >>>> >>>> Thank you! >>>> >>>> >>> >>> >>> -- >>> Dafna Ron >>> _______________________________________________ >>> Users mailing list >>> Users@ovirt.org >>> http://lists.ovirt.org/mailman/listinfo/users >>> >> >> -- Dafna Ron

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)? 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

----- Original Message -----
From: "Sven Kieske" <S.Kieske@mittwald.de> To: dron@redhat.com Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "Users@ovirt.org List" <Users@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

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@mittwald.de> To: dron@redhat.com Cc: "Alon Bar-Lev" <alonbl@redhat.com>, "Users@ovirt.org List" <Users@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

On 01/27/2014 01:52 PM, Sven Kieske wrote:
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 shouldn't need to remove/add the host, just move to maint and click re-install. try it first on a debug host to make sure, but i wouldn't expect it to destroy your VMs in local storage.
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).
participants (4)
-
Alon Bar-Lev
-
Dafna Ron
-
Itamar Heim
-
Sven Kieske