Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-14 Thread Reznikov Alexei

13.02.2018 13:42, Simone Tiraboschi пишет:


Yes, ufortunately you are absolutely right on that: there is a bug there.
As a side effect, hosted-engine --set-shared-config and hosted-engine 
--get-shared-config always refresh the local copy of hosted-engine 
configuration files with the copy on the shared storage and so you 
will always end with host_id=1 in 
/etc/ovirt-hosted-engine/hosted-engine.conf which can lead to SPM 
conflicts.
I'd suggest to manually fix host_id parameter in 
/etc/ovirt-hosted-engine/hosted-engine.conf to its original value 
(double check with engine DB with 'sudo -u postgres psql engine -c 
"SELECT vds_spm_id, vds.vds_name FROM vds"' on the engine VM) to avoid 
that.

https://bugzilla.redhat.com/1543988

Simon, I'm trying to set the right values ... but unfortunately I fail.

[root@h3 ovirt-hosted-engine]# cat hosted-engine.conf | grep conf_
conf_volume_UUID=a20d9700-1b9a-41d8-bb4b-f2b7c168104f
conf_image_UUID=b5f353f5-9357-4aad-b1a3-751d411e6278


[root@h3 ~]# hosted-engine --set-shared-config conf_image_UUID 
b5f353f5-9357-4aad-b1a3-751d411e6278 --type he_conf

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
  .
  File 
"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/env/config.py", 
line 226, in get

    key
KeyError: 'Configuration value not found: 
file=/etc/ovirt-hosted-engine/hosted-engine.conf, key=conf_volume_UUID'


How to fix this, else there is any way to edit hosted-engine.conf on 
shared storage?



Regards,

Alex.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-13 Thread Simone Tiraboschi
On Tue, Feb 13, 2018 at 7:43 AM, Reznikov Alexei 
wrote:

> 10.02.2018 00:48, reznikov...@soskol.com пишет:
>
> Simone Tiraboschi писал 2018-02-09 15:17:
>
> It shouldn't happen.
> I suspect that something went wrong creating the configuration volume
> on the shared storage at the end of the deployment.
>
> Alexei, can both of you attach you hosted-engine-setup logs?
> Can you please check what happens on
>   hosted-engine --get-shared-config gateway
>
> Thanks
>
>
> Simone, my ovirt cluster upgrade from 3.4... and i have too old logs.
>
> I'm confused by the execution of the hosted-engine --get-shared-config
> gateway ...
> I get the output "gateway: 10.245.183.1, type: he_conf", but my current
> hosted-engine.conf is overwritten by the other hosted-engine.conf.
>
> old file:
>
> fqdn = eng.lan
> vm_disk_id = e9d7a377-e109-4b28-9a43-7a8c8b603749
> vmid = ccdd675a-a58b-495a-9502-3e6a4b7e5228
> storage = ssd.lan:/ovirt
> service_start_time = 0
> host_id = 3
> console = vnc
> domainType = nfs3
> sdUUID = 8905c9ac-d892-478d-8346-63b8fa1c5763
> connectionUUID = ce84071b-86a2-4e82-b4d9-06abf23dfbc4
> ca_cert =/etc/pki/vdsm/libvirt-spice/ca-cert.pem
> ca_subject = "C = EN, L = Test, O = Test, CN = Test"
> vdsm_use_ssl = true
> gateway = 10.245.183.1
> bridge = ovirtmgmt
> metadata_volume_UUID =
> metadata_image_UUID =
> lockspace_volume_UUID =
> lockspace_image_UUID =
>
> The following are used only for iSCSI storage
> iqn =
> portal =
> user =
> password =
> port =
>
> conf_volume_UUID = a20d9700-1b9a-41d8-bb4b-f2b7c168104f
> conf_image_UUID = b5f353f5-9357-4aad-b1a3-751d411e6278
> conf = /var/run/ovirt-hosted-engine-ha/vm.conf
> vm_disk_vol_id = cd12a59e-7d84-4b4e-98c7-4c68e83ecd7b
> spUUID = ----
>
> new rewrite file
>
> fqdn = eng.lan
> vm_disk_id = e9d7a377-e109-4b28-9a43-7a8c8b603749
> vmid = ccdd675a-a58b-495a-9502-3e6a4b7e5228
> storage = ssd.lan:/ovirt
> conf = /etc/ovirt-hosted-engine/vm.conf
> service_start_time = 0
> host_id = 3
> console = vnc
> domainType = nfs3
> spUUID = 036f83d7-39f7-48fd-a73a-3c9ffb3dbe6a
> sdUUID = 8905c9ac-d892-478d-8346-63b8fa1c5763
> connectionUUID = ce84071b-86a2-4e82-b4d9-06abf23dfbc4
> ca_cert =/etc/pki/vdsm/libvirt-spice/ca-cert.pem
> ca_subject = "C = EN, L = Test, O = Test, CN = Test"
> vdsm_use_ssl = true
> gateway = 10.245.183.1
> bridge = ovirtmgmt
> metadata_volume_UUID =
> metadata_image_UUID =
> lockspace_volume_UUID =
> lockspace_image_UUID =
>
> The following are used only for iSCSI storage
> iqn =
> portal =
> user =
> password =
> port =
>
> And this in all hosts in cluster!
> It seems to me that these are some remnants of versions 3.4, 3.5 ...
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
> BUMP
>
> I resolved error "KeyError: 'Configuration value not found:
> file=/etc/ovirt-hosted-engine/hosted-engine.conf, key=gateway'".
>
> This error was caused... "*VDSGenericException: VDSErrorException:
> received downloaded data size is wrong (requested 20480, received 10240)*",
> the solution is here https://access.redhat.com/solutions/3106231
>
> But in my case there is still a problem with the inappropriate parameters
> in hosted-engine.conf ... I think I should use "hosted-engine
> --set-shared-config" to change the values on the shared storage. This is
> right?
>

Yes, ufortunately you are absolutely right on that: there is a bug there.
As a side effect, hosted-engine --set-shared-config and hosted-engine
--get-shared-config always refresh the local copy of hosted-engine
configuration files with the copy on the shared storage and so you will
always end with host_id=1 in /etc/ovirt-hosted-engine/hosted-engine.conf
which can lead to SPM conflicts.
I'd suggest to manually fix host_id parameter in
/etc/ovirt-hosted-engine/hosted-engine.conf to its original value (double
check with engine DB with 'sudo -u postgres psql engine -c "SELECT
vds_spm_id, vds.vds_name FROM vds"' on the engine VM) to avoid that.
https://bugzilla.redhat.com/1543988


> Guru help to solve this.
>
> Regards,
>
> Alex.
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-12 Thread Reznikov Alexei

10.02.2018 00:48, reznikov...@soskol.com пишет:

Simone Tiraboschi писал 2018-02-09 15:17:


It shouldn't happen.
I suspect that something went wrong creating the configuration volume
on the shared storage at the end of the deployment.

Alexei, can both of you attach you hosted-engine-setup logs?
Can you please check what happens on
  hosted-engine --get-shared-config gateway

Thanks



Simone, my ovirt cluster upgrade from 3.4... and i have too old logs.

I'm confused by the execution of the hosted-engine --get-shared-config 
gateway ...
I get the output "gateway: 10.245.183.1, type: he_conf", but my 
current hosted-engine.conf is overwritten by the other 
hosted-engine.conf.


old file:

fqdn = eng.lan
vm_disk_id = e9d7a377-e109-4b28-9a43-7a8c8b603749
vmid = ccdd675a-a58b-495a-9502-3e6a4b7e5228
storage = ssd.lan:/ovirt
service_start_time = 0
host_id = 3
console = vnc
domainType = nfs3
sdUUID = 8905c9ac-d892-478d-8346-63b8fa1c5763
connectionUUID = ce84071b-86a2-4e82-b4d9-06abf23dfbc4
ca_cert =/etc/pki/vdsm/libvirt-spice/ca-cert.pem
ca_subject = "C = EN, L = Test, O = Test, CN = Test"
vdsm_use_ssl = true
gateway = 10.245.183.1
bridge = ovirtmgmt
metadata_volume_UUID =
metadata_image_UUID =
lockspace_volume_UUID =
lockspace_image_UUID =

The following are used only for iSCSI storage
iqn =
portal =
user =
password =
port =

conf_volume_UUID = a20d9700-1b9a-41d8-bb4b-f2b7c168104f
conf_image_UUID = b5f353f5-9357-4aad-b1a3-751d411e6278
conf = /var/run/ovirt-hosted-engine-ha/vm.conf
vm_disk_vol_id = cd12a59e-7d84-4b4e-98c7-4c68e83ecd7b
spUUID = ----

new rewrite file

fqdn = eng.lan
vm_disk_id = e9d7a377-e109-4b28-9a43-7a8c8b603749
vmid = ccdd675a-a58b-495a-9502-3e6a4b7e5228
storage = ssd.lan:/ovirt
conf = /etc/ovirt-hosted-engine/vm.conf
service_start_time = 0
host_id = 3
console = vnc
domainType = nfs3
spUUID = 036f83d7-39f7-48fd-a73a-3c9ffb3dbe6a
sdUUID = 8905c9ac-d892-478d-8346-63b8fa1c5763
connectionUUID = ce84071b-86a2-4e82-b4d9-06abf23dfbc4
ca_cert =/etc/pki/vdsm/libvirt-spice/ca-cert.pem
ca_subject = "C = EN, L = Test, O = Test, CN = Test"
vdsm_use_ssl = true
gateway = 10.245.183.1
bridge = ovirtmgmt
metadata_volume_UUID =
metadata_image_UUID =
lockspace_volume_UUID =
lockspace_image_UUID =

The following are used only for iSCSI storage
iqn =
portal =
user =
password =
port =

And this in all hosts in cluster!
It seems to me that these are some remnants of versions 3.4, 3.5 ...
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


BUMP

I resolved error "KeyError: 'Configuration value not found: 
file=/etc/ovirt-hosted-engine/hosted-engine.conf, key=gateway'".


This error was caused... "/VDSGenericException: VDSErrorException: 
received downloaded data size is wrong (requested 20480, received 
10240)/", the solution is here https://access.redhat.com/solutions/3106231


But in my case there is still a problem with the inappropriate 
parameters in hosted-engine.conf ... I think I should use "hosted-engine 
--set-shared-config" to change the values on the shared storage. This is 
right?


Guru help to solve this.

Regards,

Alex.

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-12 Thread Reznikov Alexei

09.02.2018 21:13, Alex K пишет:

Hi,

did you select "Deploy" when adding the new host?

See attached.

Inline image 2

Thanx,
Alex

On Fri, Feb 9, 2018 at 9:53 AM, Reznikov Alexei 
> wrote:


Hi all!

After upgrade from ovirt 4.0 to 4.1, a have trouble add to next
HostedEngine host to my cluster via webui... host add succesfully
and become up, but HE not active in this host.

log's from trouble host
# cat agent.log
> KeyError: 'Configuration value not found:
file=/etc/ovirt-hosted-engine/hosted-engine.conf, key=gateway'

# cat /etc/ovirt-hosted-engine/hosted-engine.conf
ca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pem
host_id=2

log deploy from engine in attach.

trouble host:
ovirt-hosted-engine-setup-2.1.4-1.el7.centos.noarch
ovirt-host-deploy-1.6.7-1.el7.centos.noarch
vdsm-4.19.45-1.el7.centos.x86_64
CentOS Linux release 7.4.1708 (Core)

engine host:
ovirt-release41-4.1.9-1.el7.centos.noarch
ovirt-engine-4.1.9.1-1.el7.centos.noarch
CentOS Linux release 7.4.1708 (Core)

Please help me fix it.

Thanx, Alex.


___
Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users




Yes, off course, i did this.

Thanx, Alex.



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-09 Thread Alex K
Hi,

did you select "Deploy" when adding the new host?

See attached.

[image: Inline image 2]

Thanx,
Alex

On Fri, Feb 9, 2018 at 9:53 AM, Reznikov Alexei 
wrote:

> Hi all!
>
> After upgrade from ovirt 4.0 to 4.1, a have trouble add to next
> HostedEngine host to my cluster via webui... host add succesfully and
> become up, but HE not active in this host.
>
> log's from trouble host
> # cat agent.log
> > KeyError: 'Configuration value not found: 
> > file=/etc/ovirt-hosted-engine/hosted-engine.conf,
> key=gateway'
>
> # cat /etc/ovirt-hosted-engine/hosted-engine.conf
> ca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pem
> host_id=2
>
> log deploy from engine in attach.
>
> trouble host:
> ovirt-hosted-engine-setup-2.1.4-1.el7.centos.noarch
> ovirt-host-deploy-1.6.7-1.el7.centos.noarch
> vdsm-4.19.45-1.el7.centos.x86_64
> CentOS Linux release 7.4.1708 (Core)
>
> engine host:
> ovirt-release41-4.1.9-1.el7.centos.noarch
> ovirt-engine-4.1.9.1-1.el7.centos.noarch
> CentOS Linux release 7.4.1708 (Core)
>
> Please help me fix it.
>
> Thanx, Alex.
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-09 Thread Simone Tiraboschi
On Fri, Feb 9, 2018 at 9:06 AM, Sandro Bonazzola 
wrote:

>
>
> 2018-02-09 8:53 GMT+01:00 Reznikov Alexei :
>
>> Hi all!
>>
>> After upgrade from ovirt 4.0 to 4.1, a have trouble add to next
>> HostedEngine host to my cluster via webui... host add succesfully and
>> become up, but HE not active in this host.
>>
>> log's from trouble host
>> # cat agent.log
>> > KeyError: 'Configuration value not found: 
>> > file=/etc/ovirt-hosted-engine/hosted-engine.conf,
>> key=gateway'
>>
>
> Adding Simone
>

It shouldn't happen.
I suspect that something went wrong creating the configuration volume on
the shared storage at the end of the deployment.

Alexei, can both of you attach you hosted-engine-setup logs?
Can you please check what happens on
  hosted-engine --get-shared-config gateway

Thanks


>
>
>
>>
>> # cat /etc/ovirt-hosted-engine/hosted-engine.conf
>> ca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pem
>> host_id=2
>>
>> log deploy from engine in attach.
>>
>> trouble host:
>> ovirt-hosted-engine-setup-2.1.4-1.el7.centos.noarch
>> ovirt-host-deploy-1.6.7-1.el7.centos.noarch
>> vdsm-4.19.45-1.el7.centos.x86_64
>> CentOS Linux release 7.4.1708 (Core)
>>
>> engine host:
>> ovirt-release41-4.1.9-1.el7.centos.noarch
>> ovirt-engine-4.1.9.1-1.el7.centos.noarch
>> CentOS Linux release 7.4.1708 (Core)
>
>
>> Please help me fix it.
>>
>> Thanx, Alex.
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
>
> --
>
> SANDRO BONAZZOLA
>
> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R
>
> Red Hat EMEA 
> 
> TRIED. TESTED. TRUSTED. 
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-09 Thread Sandro Bonazzola
2018-02-09 8:53 GMT+01:00 Reznikov Alexei :

> Hi all!
>
> After upgrade from ovirt 4.0 to 4.1, a have trouble add to next
> HostedEngine host to my cluster via webui... host add succesfully and
> become up, but HE not active in this host.
>
> log's from trouble host
> # cat agent.log
> > KeyError: 'Configuration value not found: 
> > file=/etc/ovirt-hosted-engine/hosted-engine.conf,
> key=gateway'
>

Adding Simone




>
> # cat /etc/ovirt-hosted-engine/hosted-engine.conf
> ca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pem
> host_id=2
>
> log deploy from engine in attach.
>
> trouble host:
> ovirt-hosted-engine-setup-2.1.4-1.el7.centos.noarch
> ovirt-host-deploy-1.6.7-1.el7.centos.noarch
> vdsm-4.19.45-1.el7.centos.x86_64
> CentOS Linux release 7.4.1708 (Core)
>
> engine host:
> ovirt-release41-4.1.9-1.el7.centos.noarch
> ovirt-engine-4.1.9.1-1.el7.centos.noarch
> CentOS Linux release 7.4.1708 (Core)


> Please help me fix it.
>
> Thanx, Alex.
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 

SANDRO BONAZZOLA

ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R

Red Hat EMEA 

TRIED. TESTED. TRUSTED. 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 4.1 unable deploy HostedEngine on next host Configuration value not found: file=/etc/.../hosted-engine.conf

2018-02-09 Thread Николаев Алексей
Hi, community.I have some issue on ovirt node 4.2.Resolve it with manually copying vm.conf from first host.09.02.2018, 10:56, "Reznikov Alexei" :Hi all!After upgrade from ovirt 4.0 to 4.1, a have trouble add to next HostedEngine host to my cluster via webui... host add succesfully and become up, but HE not active in this host.log's from trouble host# cat agent.log > KeyError: 'Configuration value not found: file=/etc/ovirt-hosted-engine/hosted-engine.conf, key=gateway'# cat /etc/ovirt-hosted-engine/hosted-engine.confca_cert=/etc/pki/vdsm/libvirt-spice/ca-cert.pemhost_id=2log deploy from engine in attach.trouble host:ovirt-hosted-engine-setup-2.1.4-1.el7.centos.noarchovirt-host-deploy-1.6.7-1.el7.centos.noarchvdsm-4.19.45-1.el7.centos.x86_64CentOS Linux release 7.4.1708 (Core)engine host:ovirt-release41-4.1.9-1.el7.centos.noarchovirt-engine-4.1.9.1-1.el7.centos.noarchCentOS Linux release 7.4.1708 (Core)Please help me fix it.Thanx, Alex.___Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users