On Wed, May 18, 2016 at 3:55 PM, Ralf Schenk <rs@databay.de> wrote:

Hello,

thanks a lot. Yesterday I stood at the edge off a cliff. Now I'm one step beyond...

Setup finished sucsessfully, engine-vm was shutdown - and no HA Config, No running engine VM afterwards. :-(


Do you have /etc/ovirt-hosted-engine/hosted-engine.conf ?
that should be enough to mount the shared storage and start the VM extracting the VM configuration from there.

Do you have any error from ovirt-ha-agent or from ovirt-ha-broker?
 

Restart of ovirt-ha-agent/ovirt-ha-broker doesn't work. Reboot of Host neither. No (mounted) /var/run/ovirt-hosted-engine-ha/vm.conf.

I can do "hosted-engine --connect-storage" which mounts my replica 3 gluster under /rhev/data-center/mnt/glusterSD/glusterfs.rxmgmt.databay.de:_engine.

I found the tar file with configs in my volume and I am able to extract all the files (fhanswers.conf, hosted-engine.conf, broker.conf, vm.conf) from the conf volume which is a tar file (/rhev/data-center/mnt/glusterSD/glusterfs.rxmgmt.databay.de:_engine/de9c1cb5-a11c-4f0d-b436-7e37378702c3/images/2d2145f5-9406-40c3-b85a-c17be924dd16/b64c8bac-f978-441e-b71c-2fa1d0fc078f) .

Is it possible to persist that and get ha up and running ? I think it was not persisted in vdsm, am I right ?

I found your post http://lists.ovirt.org/pipermail/users/2015-December/036305.html that looked like a similar Problem.


Here we had a bug but now the code is OK. 

(tar -cO * | dd of=/rhev/data-center/mnt/blockSD/$sdUUID/images/$conf_image_UUID/$conf_volume_UUID oflag=direct) ?

Bye


Am 18.05.2016 um 11:38 schrieb Simone Tiraboschi:
The issue is here:
2016-05-18 00:16:17 DEBUG otopi.context context.dumpEnvironment:510 ENV OVEHOSTED_ENGINE/appHostName=str:''hosted_engine_1''
You are quoting it twice and so it will try to use the string with the inner quote which is not a valid name.

Does it come from your custom '/root/engine_answers.conf'? if so please fix it there and try again.


On Wed, May 18, 2016 at 11:22 AM, Ralf Schenk <rs@databay.de> wrote:

Hello,

of course. See attached File.

Bye


Am 18.05.2016 um 11:13 schrieb Simone Tiraboschi:
It looks, correct.

Can you please share the whole log file?

On Wed, May 18, 2016 at 11:03 AM, Ralf Schenk <rs@databay.de> wrote:

Hello,

from the last setup Log:

2016-05-11 18:19:31 DEBUG otopi.context context.dumpEnvironment:510 ENV OVEHOSTED_ENGINE/appHostName=str:'hosted_engine_1'


Am 18.05.2016 um 10:59 schrieb Simone Tiraboschi:


On Wed, May 18, 2016 at 10:33 AM, Ralf Schenk <rs@databay.de> wrote:

Dear list,

i'm working for days on a hosted-engine setup on glusterfs and 'm stuck in the last phase of hosted-engine --deploy see Text output (for two days now :-( ). I've only ovirtmgmt Bridge up and running and all DNS-Names seen in the screenshot are resolvable. It shouldn't be related to your problem regarding multiple nic's in the engine-vm. As seen the hosted-engine setup is already succsessfull, engine-vm running, but the setup fails in registering the host (microcloud21...) in the engine.


[...]

          |- [ INFO  ] Starting engine service
          |- [ INFO  ] Restarting httpd
          |- [ INFO  ] Restarting ovirt-vmconsole proxy service
          |- [ INFO  ] Stage: Clean up
          |-           Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20160517222119-ndcyxn.log
          |- [ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20160517223055-setup.conf'
          |- [ INFO  ] Stage: Pre-termination
          |- [ INFO  ] Stage: Termination
          |- [ INFO  ] Execution of setup completed successfully
          |- HE_APPLIANCE_ENGINE_SETUP_SUCCESS
[ INFO  ] Engine-setup successfully completed
[ INFO  ] Engine is still unreachable
[ INFO  ] Engine is still not reachable, waiting...
[ INFO  ] Engine replied: DB Up!Welcome to Health Status!
[ INFO  ] Acquiring internal CA cert from the engine
[ INFO  ] The following CA certificate is going to be used, please immediately interrupt if not correct:
[ INFO  ] Issuer: C=US, O=rxmgmt.databay.de, CN=engine-mcIII.rxmgmt.databay.de.77792, Subject: C=US, O=rxmgmt.databay.de, CN=engine-mcIII.rxmgmt.databay.de.77792, Fingerprint (SHA-1): D71A5EA7C5C2C2450F1473523C3A1E022945430
[ INFO  ] Connecting to the Engine
[ ERROR ] Cannot automatically add the host to cluster Default: Host name must be formed of alphanumeric characters, numbers or "-_."


          Please check Engine VM configuration.

          Make a selection from the options below:
          (1) Continue setup - Engine VM configuration has been fixed
          (2) Abort setup

          (1, 2)[1]: 1

          Checking for oVirt-Engine status at engine-mcIII.rxmgmt.databay.de...
[ INFO  ] Engine replied: DB Up!Welcome to Health Status!
[ ERROR ] Cannot automatically add the host to cluster Default: Host name must be formed of alphanumeric characters, numbers or "-_."


          Please check Engine VM configuration.

          Make a selection from the options below:
          (1) Continue setup - Engine VM configuration has been fixed
          (2) Abort setup

          (1, 2)[1]:

Additionally I can see the error in the eninge-vm in /var/log/ovirt-engine/engine.log:

2016-05-17 14:08:15,296 WARN  [org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand] (default task-13) [9277b0a] CanDoAction of action 'AddVds' failed for user admin@internal. Reasons: VAR__ACTION__ADD,VAR__TYPE__HOST,$server microcloud21.rxmgmt.databay.de,VALIDATION_VDS_NAME_INVALID
2016-05-17 14:08:15,360 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-13) [] Operation Failed: [Host name must be formed of alphanumeric characters, numbers or "-_."]


'microcloud21.rxmgmt.databay.de' is the host address, in oVirt the host has also a name.
Can you please look for OVEHOSTED_ENGINE/appHostName in your hosted-engine-setup logs?
 


The hostname that should be registered is the correct fqdn for the virtualization host that runs the engine-vm, points to the ip of the ovirtmgmt-Bridge and also the IP is reverse-resolvable to the hostname.
I checked /etc/hostname of the host for non-printable characters and as you can see that is a valid hostname.

All is running on Centos 7 Versions:
ovirt-engine-appliance.noarch         3.6-20160420.1.el7.centos  @ovirt-3.6
ovirt-engine-sdk-python.noarch        3.6.5.0-1.el7.centos       @ovirt-3.6
ovirt-host-deploy.noarch              1.4.1-1.el7.centos         @ovirt-3.6
ovirt-hosted-engine-ha.noarch         1.3.5.3-1.1.el7            @centos-ovirt36
ovirt-hosted-engine-setup.noarch      1.3.5.0-1.1.el7            @centos-ovirt36
ovirt-setup-lib.noarch                1.0.1-1.el7.centos         @ovirt-3.6
ovirt-vmconsole.noarch                1.0.0-1.el7.centos         @ovirt-3.6
ovirt-vmconsole-host.noarch           1.0.0-1.el7.centos         @ovirt-3.6

Since I already repeated the setup for many times now, I need your help.
--


Ralf Schenk
fon +49 (0) 24 05 / 40 83 70
fax +49 (0) 24 05 / 40 83 759
mail rs@databay.de
 
Databay AG
Jens-Otto-Krag-Straße 11
D-52146 Würselen
www.databay.de

Sitz/Amtsgericht Aachen • HRB:8437 • USt-IdNr.: DE 210844202
Vorstand: Ralf Schenk, Dipl.-Ing. Jens Conze, Aresch Yavari, Dipl.-Kfm. Philipp Hermanns
Aufsichtsratsvorsitzender: Klaus Scholzen (RA)


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



--


Ralf Schenk
fon +49 (0) 24 05 / 40 83 70
fax +49 (0) 24 05 / 40 83 759
mail rs@databay.de
 
Databay AG
Jens-Otto-Krag-Straße 11
D-52146 Würselen
www.databay.de

Sitz/Amtsgericht Aachen • HRB:8437 • USt-IdNr.: DE 210844202
Vorstand: Ralf Schenk, Dipl.-Ing. Jens Conze, Aresch Yavari, Dipl.-Kfm. Philipp Hermanns
Aufsichtsratsvorsitzender: Klaus Scholzen (RA)



--


Ralf Schenk
fon +49 (0) 24 05 / 40 83 70
fax +49 (0) 24 05 / 40 83 759
mail rs@databay.de
 
Databay AG
Jens-Otto-Krag-Straße 11
D-52146 Würselen
www.databay.de

Sitz/Amtsgericht Aachen • HRB:8437 • USt-IdNr.: DE 210844202
Vorstand: Ralf Schenk, Dipl.-Ing. Jens Conze, Aresch Yavari, Dipl.-Kfm. Philipp Hermanns
Aufsichtsratsvorsitzender: Klaus Scholzen (RA)



--


Ralf Schenk
fon +49 (0) 24 05 / 40 83 70
fax +49 (0) 24 05 / 40 83 759
mail rs@databay.de
 
Databay AG
Jens-Otto-Krag-Straße 11
D-52146 Würselen
www.databay.de

Sitz/Amtsgericht Aachen • HRB:8437 • USt-IdNr.: DE 210844202
Vorstand: Ralf Schenk, Dipl.-Ing. Jens Conze, Aresch Yavari, Dipl.-Kfm. Philipp Hermanns
Aufsichtsratsvorsitzender: Klaus Scholzen (RA)