[ovirt-users] Terraform - Ovirt - seting or get some parameters

2020-05-24 Thread Michal Obeslo
Hi all, we need a help,


we have problem to set and get IP Address when we created virtual machine
when we use terraform.


step by step: what we created


1) we created virtual machine Debian 9

- installed the software ovirt-guest-agent) [systemctl status ovirt-guest
agent = OK

- we created private and public key to connectivity from another computer
by .ssh ) /Jenkins Slave/


2) we created template from virtual machine Debian 9

- set this parameter in template initial Run > user, set static IP in Ovirt
Managemet


3) downloaded project from GitHub - create virtual machine from template

- terraform main file = OK ?

- terraform init = OK

- terraform apply = OK

: yes

create new virtual machine = OK

start automatically virtual machine = OK

- when I check IP Address > IP address not set

- when I check settings in Ovirt management > network > NOT SET

- virtual machine not has IP addres > not working

- when I change settings in Ovirt management in template Debian from Static
IP dhcp > to DHCP

- when I check settings in Ovirt management > network >

IP in Ovit have DHCP, Virtual machine have dhcp OK


But wee need set static IP to Virtual machine and get this IP from
terraform.

Thank you all.

Best regard Michal


--- This is the file main.tf:

provider "ovirt" {

url = "${var.ovirt_url}"

username = "${var.ovirt_username}"

password = "${var.ovirt_password}"

}


terraform {

backend "local" {

path = "terraform.tfstate"

}

}


# Create VM call temp02

module "temp01-pipeline" {

source = "../modules/vms"

vm_authorized_ssh_key =
"${file(pathexpand("c:/cygwin64/home/Administrator/.ssh/id_rsa.pub"))}"

vm_custom_script = "
${file(pathexpand("c:/Jenkins/workspace/AT_PipelineVM/config/basic/terraform/ovirt/init_script.yml"))}"

cluster_id = "aa583cf2-a07a-11e8-aa92-525400491e5b"

vm_name = "cd-pipeline-1.0.0"

vm_memory = "4096"

vm_cpu_cores = "1"

vm_template_id = "876a260b-26c7-482e-bc19-19b10b9c48bb"



vm_hostname = "temp01.example.com"

vm_user_name = "root"

vm_dns_servers = "8.8.8.8"

vm_dns_search = "example.com"

vm_timezone = "Africa/Nairobi"

vm_nic_device = "env3"

vm_nic_ip_address = "192.168.26.36"

vm_nic_gateway = "192.168.26.2"

vm_nic_netmask = "255.255.255.0"

}
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VGTZZH4PQHA77CU2KS2QQ5A5UDM4SDE5/


[ovirt-users] Re: How to change IP range of node and hosted engine without break anything ?

2020-05-24 Thread Stéphane Paillet
Thank you for this answer and for your help.

After testing several operations without successfully change the IP
range, I decided to reinstall the host and the hosted engine. I was
afraid that I could not reinstall the engine correctly because I had
trouble installing it 3 days ago.
But this time the installation went well.

I must be more autonomous with this virtualization solution to be able
to save / restore elements by the command line from the host, because
for the moment, if I break the engine, I'm like an idiot :) And as I
can't export it as an ova or take a snapshot when it's up, I don't feel
comfortable to test.

Regards,
Stephane

Le 24/05/2020 à 08:34, Strahil Nikolov a écrit :
> Hosts' ip can be safely changed only before deployment.
>
> In your case , it would be better if you start from scratch and
> reinstall the host with a new image, set the IP and then redeploy the
> HostedEngine (both with correct VLANs).
>
> What kind of data domain do you use. Maybe it will be easier to change
> that than a redeploy.
>
> Best Regards,
> Strahil Nikolov
>
> На 23 май 2020 г. 15:56:09 GMT+03:00, "Stéphane Paillet"
>  написа:
>
> Hello,
>
> I installed an ovirt node and its hosted engine in a lab. After several 
> difficulties to install the engine (I don't know why, I didn't have any 
> problem in the past), I would like to change IPs of both to put them on 
> another vlan.
>
> How can I do that without break anything ? My main fear is that the data 
> domain used by the hosted engine use the IP of the node rather than its 
> FQDN. I change other data domains paths, but don't find how to change 
> this one, 'cause I can't modify it, and I can't detach / delete it to 
> recreate another one. I didn't find how to move the engine on another 
> data domain using the node's FQDN in its path. For now, I don't use DNS, 
> I just updated /etc/hosts defs on both servers.
>
> If someone could help me, telling me step by step how to change IPs on 
> each element in good order, I would be grateful.
>
> Thank you.
> Cheers,
> Stephane
> 
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/CMVWT44HRX56JCQDP3C4XZ6CTOI3VXWT/
>
>
> -- 
> Изпратено от моето Андроид у-во чрез K-9 Mail. Моля да ме извините за
> краткият ми изказ. 


-- 
Stéphane Paillet
Sysadmin

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/MKLX5CBOUM3ZK7RNINOYVU3MDABSJO3S/


[ovirt-users] Re: 4.4 regression: engine-setup fails if admin password in answerfile contains a "%"

2020-05-24 Thread Gianluca Cecchi
On Sun, May 24, 2020 at 11:47 AM Yedidyah Bar David  wrote:

>
>
> Hi, Gianluca. Replying to your email on "4.4 HCI Install Failure -
> Missing /etc/pki/CA/cacert.pem":
>
> On Sun, May 24, 2020 at 12:28 PM Gianluca Cecchi
>  wrote:
> >
> > I I remember correctly it happened to me during the beta cycle and the
> only "strange" character I used for the admin password was the @
> > Donna if it related with what you reported for the % character
>
> Did you open a bug?
>
> In any case, my above patch is not supposed to fix '@', only '%' (I think).
>
> Thanks and best regards,
>
>
No, I didn't open a bug, because I scratched the system and installed again
this time without the error, but I don't remember if I used the same
password with the @ character or not
I will put attention in case of future 4.4 new installations

Gianluca
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/E442BICPCBJPC3LYCFPCVXOZFIVPLXV4/


[ovirt-users] Re: 4.4 regression: engine-setup fails if admin password in answerfile contains a "%"

2020-05-24 Thread Stephen Panicho
Created a bug report at https://bugzilla.redhat.com/show_bug.cgi?id=1839533
(forgive me if this is improperly categorized...)

On Sun, May 24, 2020 at 5:47 AM Yedidyah Bar David  wrote:

> On Sun, May 24, 2020 at 12:08 PM Yedidyah Bar David 
> wrote:
> >
> > On Sun, May 24, 2020 at 9:51 AM Strahil Nikolov via Users
> >  wrote:
> > >
> > > Hi Stephen,
> > >
> > > I think it's a regression. Could you open an issue/bug .
> >
> > It is. Thanks for the report. Here is a fix:
> >
> > https://gerrit.ovirt.org/109244
> >
> > Did any of you open a bug? If not, I'll open one. Thanks.
> >
> > Best regards,
>
> Hi, Gianluca. Replying to your email on "4.4 HCI Install Failure -
> Missing /etc/pki/CA/cacert.pem":
>
> On Sun, May 24, 2020 at 12:28 PM Gianluca Cecchi
>  wrote:
> >
> > I I remember correctly it happened to me during the beta cycle and the
> only "strange" character I used for the admin password was the @
> > Donna if it related with what you reported for the % character
>
> Did you open a bug?
>
> In any case, my above patch is not supposed to fix '@', only '%' (I think).
>
> Thanks and best regards,
>
> >
> > >
> > > Best Regards,
> > > Strahil Nikolov
> > >
> > > На 24 май 2020 г. 2:28:41 GMT+03:00, Stephen Panicho <
> s.pani...@gmail.com> написа:
> > >>
> > >> I encountered this error when deploying the Hosted Engine via Cockpit:
> > >>
> > >> [ INFO ] TASK [ovirt.engine-setup : Run engine-setup with answerfile]
> > >> [ ERROR ] fatal: [localhost -> engine.ovirt.trashnet.xyz]: FAILED!
> => {"changed": true, "cmd": ["engine-setup", "--accept-defaults",
> "--config-append=/root/ovirt-engine-answers"], "delta": "0:00:01.396490",
> "end": "2020-05-22 18:32:41.965984", "msg": "non-zero return code", "rc":
> 1, "start": "2020-05-22 18:32:40.569494", "stderr": "", "stderr_lines": [],
> "stdout": "[ INFO ] Stage: Initializing\n[ ERROR ] Failed to execute stage
> 'Initializing': '%' must be followed by '%' or '(', found: '%JUUj'\n[ INFO
> ] Stage: Clean up\n Log file is located at
> /var/log/ovirt-engine/setup/ovirt-engine-setup-20200522183241-c7d1kh.log\n[
> ERROR ] Failed to execute stage 'Clean up': 'NoneType' object has no
> attribute 'cleanup'\n[ INFO ] Generating answer file
> '/var/lib/ovirt-engine/setup/answers/20200522183241-setup.conf'\n[ INFO ]
> Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Execution of
> setup failed", "stdout_lines": ["[ INFO ] Stage: Initializing", "[ ERROR ]
> Failed to execute stage 'Initializing': '%' must be followed by '%' or '(',
> found: '%JUUj'", "[ INFO ] Stage: Clean up", " Log file is located at
> /var/log/ovirt-engine/setup/ovirt-engine-setup-20200522183241-c7d1kh.log",
> "[ ERROR ] Failed to execute stage 'Clean up': 'NoneType' object has no
> attribute 'cleanup'", "[ INFO ] Generating answer file
> '/var/lib/ovirt-engine/setup/answers/20200522183241-setup.conf'", "[ INFO ]
> Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ]
> Execution of setup failed"]}
> > >>
> > >> The important bit is this: Failed to execute stage 'Initializing':
> '%' must be followed by '%' or '(', found: '%JUUj'"
> > >>
> > >> Hey! Those are the last few characters of the admin password. Note
> that I don't mean the root password to the VM, but the one for the "admin"
> user of the web interface. I added some debug lines to the Ansible play to
> see the answerfile that was being generated.
> > >>
> > >> OVESETUP_CONFIG/adminPassword=str:&6#b%JUUj
> > >>
> > >> Apparently engine-setup can no longer handle an answerfile with a "%"
> character in it. This same password worked in 4.3.
> > >>
> > >> Once I changed the admin password, installation progressed normally.
> > >
> > >
> > > --
> > > Изпратено от моето Андроид у-во чрез K-9 Mail. Моля да ме извините за
> краткият ми изказ.
> > > ___
> > > Users mailing list -- users@ovirt.org
> > > To unsubscribe send an email to users-le...@ovirt.org
> > > Privacy Statement: https://www.ovirt.org/privacy-policy.html
> > > oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> > > List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/OHDBPINYMOJVS3PYBNF2IVW72QZOSRTV/
> >
> >
> >
> > --
> > Didi
>
>
>
> --
> Didi
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/WOY36ZACG2FGEVDMQVJOTJCMXS3URQXL/


[ovirt-users] Re: Issues encountered performing HE install on 4.3

2020-05-24 Thread Yedidyah Bar David
Hi,

Sorry for the very late reply...

On Tue, Mar 10, 2020 at 7:25 PM Alan G  wrote:
>
> Hi,
>
> I hit a few issues while performing a recent HE install of 4.3. While I 
> managed to find solutions/workarounds to all the problems I thought I might 
> share them here

Thanks, that's appreciated!

>
> * As defined in the Ansible defaults the temp dir for building the local HE 
> VM is /var/tmp. I was 80M short of the required space and there did not 
> appear to be a (supported) way to specify a different
location. I ended up having to do a bind mount of /var/tmp to get me
through the install. Would be nice to be able to specify a custom
location.

You can affect this via the ansible var he_local_vm_dir_path . I don't
think we have this documented anywhere, or even whether that's easily
settable by the user.

>
> * Permissive umask required. Our CIS CentOS 7 build requires that default 
> umask is 027. This breaks the installer as it creates the VM image under 
> /var/tmp as root and cannot then access it as qemu user. As the temp files 
> are cleaned up on failure it took me a while to track this one down. My 
> solution was to temporarily set the umask to 022 for the session while 
> running the installer. It would be nice if the installer either handled this 
> by doing a chmod/chown as required, or at least doing a umask pre-check and 
> failing with a meaningful error.
>
> * SSH root login required on host. Again for CIS we have "PermitRoologin no" 
> configured in sshd. This means the add host task fails on the Engine, but 
> instead of a hard failure we get a timeout on the installer. Which left me 
> chasing some imagined routing/bridging/DNS issue. Eventually I realised I 
> could get to the engine logs and found the issue but took several hours. 
> Would be nice if the installer could either support a sudo option or at least 
> perform a root login pre-check and fail with a meaningful error.

Also both of these make sense. Would you like to open RFE bugs to
track these issues?

For latter, we had in the past:

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

Perhaps you can reopen, to show your interest, although the details
have changed since then, as we now use ansible (in 4.4, fully. In 4.3,
partially).

Best regards,
-- 
Didi
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/V3ED4ST55KGZFISPAH4BYVACTFHFBLXQ/


[ovirt-users] Re: Bug with ovirt-hosted-engine-setup

2020-05-24 Thread Yedidyah Bar David
On Wed, May 20, 2020 at 4:11 PM  wrote:
>
> This is 100% repeatable for me.  Brand new environment, all using the ovirt 
> node ISO.  4.3.9 downloaded a couple of days ago.
>
>
> [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 5, "changed": true, 
> "cmd": ["hosted-engine", "--reinitialize-lockspace", "--force"], "delta": 
> "0:00:00.412864", "end": "2020-05-19 09:23:03.856435", "msg": "non-zero 
> return code", "rc": 1, "start": "2020-05-19 09:23:03.443571", "stderr": 
> "Traceback (most recent call last):\n  File 
> \"/usr/lib64/python2.7/runpy.py\", line 162, in _run_module_as_main\n
> \"__main__\", fname, loader, pkg_name)\n  File 
> \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\nexec code in 
> run_globals\n  File 
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py\",
>  line 30, in \nha_cli.reset_lockspace(force)\n  File 
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py\", 
> line 286, in reset_lockspace\nstats = broker.get_stats_from_storage()\n  
> File 
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py\",
>  line 146, in get_stats_from_storage\nresult = self
>  ._proxy.get_stats()\n  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 
> 1233, in __call__\nreturn self.__send(self.__name, args)\n  File 
> \"/usr/lib64/python2.7/xmlrpclib.py\", line 1591, in __request\n
> verbose=self.__verbose\n  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 
> 1273, in request\nreturn self.single_request(host, handler, request_body, 
> verbose)\n  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 1301, in 
> single_request\nself.send_content(h, request_body)\n  File 
> \"/usr/lib64/python2.7/xmlrpclib.py\", line 1448, in send_content\n
> connection.endheaders(request_body)\n  File 
> \"/usr/lib64/python2.7/httplib.py\", line 1052, in endheaders\n
> self._send_output(message_body)\n  File \"/usr/lib64/python2.7/httplib.py\", 
> line 890, in _send_output\nself.send(msg)\n  File 
> \"/usr/lib64/python2.7/httplib.py\", line 852, in send\nself.connect()\n  
> File 
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.py\", 
> line 60, in connect\nself.
>  sock.connect(base64.b16decode(self.host))\n  File 
> \"/usr/lib64/python2.7/socket.py\", line 224, in meth\nreturn 
> getattr(self._sock,name)(*args)\nsocket.error: [Errno 2] No such file or 
> directory", "stderr_lines": ["Traceback (most recent call last):", "  File 
> \"/usr/lib64/python2.7/runpy.py\", line 162, in _run_module_as_main", "
> \"__main__\", fname, loader, pkg_name)", "  File 
> \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code", "exec code in 
> run_globals", "  File 
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/reinitialize_lockspace.py\",
>  line 30, in ", "ha_cli.reset_lockspace(force)", "  File 
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/client/client.py\", 
> line 286, in reset_lockspace", "stats = broker.get_stats_from_storage()", 
> "  File 
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py\",
>  line 146, in get_stats_from_storage", "result = 
> self._proxy.get_stats()", "  File \"/usr/lib64/python2.7/
>  xmlrpclib.py\", line 1233, in __call__", "return 
> self.__send(self.__name, args)", "  File 
> \"/usr/lib64/python2.7/xmlrpclib.py\", line 1591, in __request", "
> verbose=self.__verbose", "  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 
> 1273, in request", "return self.single_request(host, handler, 
> request_body, verbose)", "  File \"/usr/lib64/python2.7/xmlrpclib.py\", line 
> 1301, in single_request", "self.send_content(h, request_body)", "  File 
> \"/usr/lib64/python2.7/xmlrpclib.py\", line 1448, in send_content", "
> connection.endheaders(request_body)", "  File 
> \"/usr/lib64/python2.7/httplib.py\", line 1052, in endheaders", "
> self._send_output(message_body)", "  File 
> \"/usr/lib64/python2.7/httplib.py\", line 890, in _send_output", "
> self.send(msg)", "  File \"/usr/lib64/python2.7/httplib.py\", line 852, in 
> send", "self.connect()", "  File 
> \"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.py\", 
> line 60, in connect", "self.sock.connect(base
>  64.b16decode(self.host))", "  File \"/usr/lib64/python2.7/socket.py\", line 
> 224, in meth", "return getattr(self._sock,name)(*args)", "socket.error: 
> [Errno 2] No such file or directory"], "stdout": "", "stdout_lines": []}
> [ ERROR ] Failed to execute stage 'Closing up': Failed executing 
> ansible-playbook

This might be a storage-related issue - permissions or something like that.

If this isn't resolved yet, please check/share full logs.

Perhaps open a bug and attach a sosreport.

Perhaps some of below is enough:

/var/log/ovirt-hosted-engine-setup/*
/var/log/ovirt-hosted-engine-ha/*
/var/log/vdsm/*
/var/log/message

Thanks and 

[ovirt-users] Re: OVirt Upgrade from 4.3 to 4.4 - Hosted engine

2020-05-24 Thread Carlos C
Hi Strahil, 

You can see the procedure in the link that I posted in my previous post.

Look the image about this https://pasteboard.co/J9R7y4n.png


Regards,
Carlos
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/GKZJPVWXYFUOV2GUHZX5WV2DN5XWC6NS/


[ovirt-users] Re: 4.4 regression: engine-setup fails if admin password in answerfile contains a "%"

2020-05-24 Thread Yedidyah Bar David
On Sun, May 24, 2020 at 12:08 PM Yedidyah Bar David  wrote:
>
> On Sun, May 24, 2020 at 9:51 AM Strahil Nikolov via Users
>  wrote:
> >
> > Hi Stephen,
> >
> > I think it's a regression. Could you open an issue/bug .
>
> It is. Thanks for the report. Here is a fix:
>
> https://gerrit.ovirt.org/109244
>
> Did any of you open a bug? If not, I'll open one. Thanks.
>
> Best regards,

Hi, Gianluca. Replying to your email on "4.4 HCI Install Failure -
Missing /etc/pki/CA/cacert.pem":

On Sun, May 24, 2020 at 12:28 PM Gianluca Cecchi
 wrote:
>
> I I remember correctly it happened to me during the beta cycle and the only 
> "strange" character I used for the admin password was the @
> Donna if it related with what you reported for the % character

Did you open a bug?

In any case, my above patch is not supposed to fix '@', only '%' (I think).

Thanks and best regards,

>
> >
> > Best Regards,
> > Strahil Nikolov
> >
> > На 24 май 2020 г. 2:28:41 GMT+03:00, Stephen Panicho  
> > написа:
> >>
> >> I encountered this error when deploying the Hosted Engine via Cockpit:
> >>
> >> [ INFO ] TASK [ovirt.engine-setup : Run engine-setup with answerfile]
> >> [ ERROR ] fatal: [localhost -> engine.ovirt.trashnet.xyz]: FAILED! => 
> >> {"changed": true, "cmd": ["engine-setup", "--accept-defaults", 
> >> "--config-append=/root/ovirt-engine-answers"], "delta": "0:00:01.396490", 
> >> "end": "2020-05-22 18:32:41.965984", "msg": "non-zero return code", "rc": 
> >> 1, "start": "2020-05-22 18:32:40.569494", "stderr": "", "stderr_lines": 
> >> [], "stdout": "[ INFO ] Stage: Initializing\n[ ERROR ] Failed to execute 
> >> stage 'Initializing': '%' must be followed by '%' or '(', found: 
> >> '%JUUj'\n[ INFO ] Stage: Clean up\n Log file is located at 
> >> /var/log/ovirt-engine/setup/ovirt-engine-setup-20200522183241-c7d1kh.log\n[
> >>  ERROR ] Failed to execute stage 'Clean up': 'NoneType' object has no 
> >> attribute 'cleanup'\n[ INFO ] Generating answer file 
> >> '/var/lib/ovirt-engine/setup/answers/20200522183241-setup.conf'\n[ INFO ] 
> >> Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Execution 
> >> of setup failed", "stdout_lines": ["[ INFO ] Stage: Initializing", "[ 
> >> ERROR ] Failed to execute stage 'Initializing': '%' must be followed by 
> >> '%' or '(', found: '%JUUj'", "[ INFO ] Stage: Clean up", " Log file is 
> >> located at 
> >> /var/log/ovirt-engine/setup/ovirt-engine-setup-20200522183241-c7d1kh.log", 
> >> "[ ERROR ] Failed to execute stage 'Clean up': 'NoneType' object has no 
> >> attribute 'cleanup'", "[ INFO ] Generating answer file 
> >> '/var/lib/ovirt-engine/setup/answers/20200522183241-setup.conf'", "[ INFO 
> >> ] Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ] 
> >> Execution of setup failed"]}
> >>
> >> The important bit is this: Failed to execute stage 'Initializing': '%' 
> >> must be followed by '%' or '(', found: '%JUUj'"
> >>
> >> Hey! Those are the last few characters of the admin password. Note that I 
> >> don't mean the root password to the VM, but the one for the "admin" user 
> >> of the web interface. I added some debug lines to the Ansible play to see 
> >> the answerfile that was being generated.
> >>
> >> OVESETUP_CONFIG/adminPassword=str:&6#b%JUUj
> >>
> >> Apparently engine-setup can no longer handle an answerfile with a "%" 
> >> character in it. This same password worked in 4.3.
> >>
> >> Once I changed the admin password, installation progressed normally.
> >
> >
> > --
> > Изпратено от моето Андроид у-во чрез K-9 Mail. Моля да ме извините за 
> > краткият ми изказ.
> > ___
> > Users mailing list -- users@ovirt.org
> > To unsubscribe send an email to users-le...@ovirt.org
> > Privacy Statement: https://www.ovirt.org/privacy-policy.html
> > oVirt Code of Conduct: 
> > https://www.ovirt.org/community/about/community-guidelines/
> > List Archives: 
> > https://lists.ovirt.org/archives/list/users@ovirt.org/message/OHDBPINYMOJVS3PYBNF2IVW72QZOSRTV/
>
>
>
> --
> Didi



-- 
Didi
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/36M32KPJTGR6OV3VTDUQHVVIGSKL3DYO/


[ovirt-users] Re: 4.4 HCI Install Failure - Missing /etc/pki/CA/cacert.pem

2020-05-24 Thread Gianluca Cecchi
On Sun, May 24, 2020 at 1:39 AM Stephen Panicho  wrote:

> Fixed the above in
> https://lists.ovirt.org/archives/list/users@ovirt.org/thread/6QODLB6J5Z74YCVF6C3TLQPF4KK7RKB5/
>
>
>
I I remember correctly it happened to me during the beta cycle and the only
"strange" character I used for the admin password was the @
Donna if it related with what you reported for the % character

Gianluca
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/FH26JUTEYOSKNOWENYLPRSEIWK5VEWAI/


[ovirt-users] Re: 4.4 regression: engine-setup fails if admin password in answerfile contains a "%"

2020-05-24 Thread Yedidyah Bar David
On Sun, May 24, 2020 at 9:51 AM Strahil Nikolov via Users
 wrote:
>
> Hi Stephen,
>
> I think it's a regression. Could you open an issue/bug .

It is. Thanks for the report. Here is a fix:

https://gerrit.ovirt.org/109244

Did any of you open a bug? If not, I'll open one. Thanks.

Best regards,

>
> Best Regards,
> Strahil Nikolov
>
> На 24 май 2020 г. 2:28:41 GMT+03:00, Stephen Panicho  
> написа:
>>
>> I encountered this error when deploying the Hosted Engine via Cockpit:
>>
>> [ INFO ] TASK [ovirt.engine-setup : Run engine-setup with answerfile]
>> [ ERROR ] fatal: [localhost -> engine.ovirt.trashnet.xyz]: FAILED! => 
>> {"changed": true, "cmd": ["engine-setup", "--accept-defaults", 
>> "--config-append=/root/ovirt-engine-answers"], "delta": "0:00:01.396490", 
>> "end": "2020-05-22 18:32:41.965984", "msg": "non-zero return code", "rc": 1, 
>> "start": "2020-05-22 18:32:40.569494", "stderr": "", "stderr_lines": [], 
>> "stdout": "[ INFO ] Stage: Initializing\n[ ERROR ] Failed to execute stage 
>> 'Initializing': '%' must be followed by '%' or '(', found: '%JUUj'\n[ INFO ] 
>> Stage: Clean up\n Log file is located at 
>> /var/log/ovirt-engine/setup/ovirt-engine-setup-20200522183241-c7d1kh.log\n[ 
>> ERROR ] Failed to execute stage 'Clean up': 'NoneType' object has no 
>> attribute 'cleanup'\n[ INFO ] Generating answer file 
>> '/var/lib/ovirt-engine/setup/answers/20200522183241-setup.conf'\n[ INFO ] 
>> Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Execution of 
>> setup failed", "stdout_lines": ["[ INFO ] Stage: Initializing", "[ ERROR ] 
>> Failed to execute stage 'Initializing': '%' must be followed by '%' or '(', 
>> found: '%JUUj'", "[ INFO ] Stage: Clean up", " Log file is located at 
>> /var/log/ovirt-engine/setup/ovirt-engine-setup-20200522183241-c7d1kh.log", 
>> "[ ERROR ] Failed to execute stage 'Clean up': 'NoneType' object has no 
>> attribute 'cleanup'", "[ INFO ] Generating answer file 
>> '/var/lib/ovirt-engine/setup/answers/20200522183241-setup.conf'", "[ INFO ] 
>> Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ] Execution 
>> of setup failed"]}
>>
>> The important bit is this: Failed to execute stage 'Initializing': '%' must 
>> be followed by '%' or '(', found: '%JUUj'"
>>
>> Hey! Those are the last few characters of the admin password. Note that I 
>> don't mean the root password to the VM, but the one for the "admin" user of 
>> the web interface. I added some debug lines to the Ansible play to see the 
>> answerfile that was being generated.
>>
>> OVESETUP_CONFIG/adminPassword=str:&6#b%JUUj
>>
>> Apparently engine-setup can no longer handle an answerfile with a "%" 
>> character in it. This same password worked in 4.3.
>>
>> Once I changed the admin password, installation progressed normally.
>
>
> --
> Изпратено от моето Андроид у-во чрез K-9 Mail. Моля да ме извините за 
> краткият ми изказ.
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/OHDBPINYMOJVS3PYBNF2IVW72QZOSRTV/



-- 
Didi
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/YWKDW4YUYKG74QMXCH4ZZ3O3OJYEWPQM/


[ovirt-users] Re: 4.4 regression: engine-setup fails if admin password in answerfile contains a "%"

2020-05-24 Thread Strahil Nikolov via Users
Hi Stephen,

I think it's a regression. Could you open an issue/bug .

Best Regards,
Strahil Nikolov

На 24 май 2020 г. 2:28:41 GMT+03:00, Stephen Panicho  
написа:
>I encountered this error when deploying the Hosted Engine via Cockpit:
>
>[ INFO ] TASK [ovirt.engine-setup : Run engine-setup with answerfile]
>[ ERROR ] fatal: [localhost -> engine.ovirt.trashnet.xyz]: FAILED! =>
>{"changed": true, "cmd": ["engine-setup", "--accept-defaults",
>"--config-append=/root/ovirt-engine-answers"], "delta":
>"0:00:01.396490",
>"end": "2020-05-22 18:32:41.965984", "msg": "non-zero return code",
>"rc":
>1, "start": "2020-05-22 18:32:40.569494", "stderr": "", "stderr_lines":
>[],
>"stdout": "[ INFO ] Stage: Initializing\n[ ERROR ] Failed to execute
>stage
>'Initializing': '%' must be followed by '%' or '(', found: '%JUUj'\n[
>INFO
>] Stage: Clean up\n Log file is located at
>/var/log/ovirt-engine/setup/ovirt-engine-setup-20200522183241-c7d1kh.log\n[
>ERROR ] Failed to execute stage 'Clean up': 'NoneType' object has no
>attribute 'cleanup'\n[ INFO ] Generating answer file
>'/var/lib/ovirt-engine/setup/answers/20200522183241-setup.conf'\n[ INFO
>]
>Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ]
>Execution of
>setup failed", "stdout_lines": ["[ INFO ] Stage: Initializing", "[
>ERROR ]
>Failed to execute stage 'Initializing': '%' must be followed by '%' or
>'(',
>found: '%JUUj'", "[ INFO ] Stage: Clean up", " Log file is located at
>/var/log/ovirt-engine/setup/ovirt-engine-setup-20200522183241-c7d1kh.log",
>"[ ERROR ] Failed to execute stage 'Clean up': 'NoneType' object has no
>attribute 'cleanup'", "[ INFO ] Generating answer file
>'/var/lib/ovirt-engine/setup/answers/20200522183241-setup.conf'", "[
>INFO ]
>Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ]
>Execution of setup failed"]}
>
>The important bit is this: Failed to execute stage 'Initializing': '%'
>must
>be followed by '%' or '(', found: '%JUUj'"
>
>Hey! Those are the last few characters of the admin password. Note that
>I
>don't mean the root password to the VM, but the one for the "admin"
>user of
>the web interface. I added some debug lines to the Ansible play to see
>the
>answerfile that was being generated.
>
>OVESETUP_CONFIG/adminPassword=str:&6#b%JUUj
>
>Apparently engine-setup can no longer handle an answerfile with a "%"
>character in it. This same password worked in 4.3.
>
>Once I changed the admin password, installation progressed normally.

-- 
Изпратено от моето Андроид у-во чрез K-9 Mail. Моля да ме извините за краткият 
ми изказ.___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/OHDBPINYMOJVS3PYBNF2IVW72QZOSRTV/


[ovirt-users] Re: OVirt Upgrade from 4.3 to 4.4 - Hosted engine

2020-05-24 Thread Strahil Nikolov via Users
Hi Carlos,

where do you see a refference to standalone engine only ? I don't  see such 
thing.

Best Regards,
Strahil  Nikolov

На 23 май 2020 г. 16:54:20 GMT+03:00, ccesa...@blueit.com.br написа:
>Hello,
>Could someone please inform if Upgrade from OVirt 4.3 to 4.4 when using
>Hosted engine is it supported !? According the documentation
>https://www.ovirt.org/documentation/upgrade_guide/#Upgrading_from_4-3
>the upgrade procedure make reference only  to "standalone engine".
>If it is supported, what is correct steps to do it?
>
>Best regards
>Carlos
>___
>Users mailing list -- users@ovirt.org
>To unsubscribe send an email to users-le...@ovirt.org
>Privacy Statement: https://www.ovirt.org/privacy-policy.html
>oVirt Code of Conduct:
>https://www.ovirt.org/community/about/community-guidelines/
>List Archives:
>https://lists.ovirt.org/archives/list/users@ovirt.org/message/NQEU72S3WNIAYF4WECDAFDPEOUE4HXMN/

-- 
Изпратено от моето Андроид у-во чрез K-9 Mail. Моля да ме извините за краткият 
ми изказ.___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/CRQKH4RZNMVMLNQYAV6KJTYH3QOC5MSP/


[ovirt-users] Re: How to change IP range of node and hosted engine without break anything ?

2020-05-24 Thread Strahil Nikolov via Users
Hosts' ip can be  safely changed only before deployment.

In your case , it would be better if you start from scratch and reinstall the 
host with a new image, set the IP and then redeploy the HostedEngine  (both 
with correct VLANs).

What kind of data domain do you use. Maybe it will be easier to change that 
than a redeploy.

Best Regards,
Strahil Nikolov

На 23 май 2020 г. 15:56:09 GMT+03:00, "Stéphane Paillet" 
 написа:
>Hello,
>
>I installed an ovirt node and its hosted engine in a lab. After several
>
>difficulties to install the engine (I don't know why, I didn't have any
>
>problem in the past), I would like to change IPs of both to put them on
>
>another vlan.
>
>How can I do that without break anything ? My main fear is that the
>data 
>domain used by the hosted engine use the IP of the node rather than its
>
>FQDN. I change other data domains paths, but don't find how to change 
>this one, 'cause I can't modify it, and I can't detach / delete it to 
>recreate another one. I didn't find how to move the engine on another 
>data domain using the node's FQDN in its path. For now, I don't use
>DNS, 
>I just updated /etc/hosts defs on both servers.
>
>If someone could help me, telling me step by step how to change IPs on 
>each element in good order, I would be grateful.
>
>Thank you.
>Cheers,
>Stephane
>___
>Users mailing list -- users@ovirt.org
>To unsubscribe send an email to users-le...@ovirt.org
>Privacy Statement: https://www.ovirt.org/privacy-policy.html
>oVirt Code of Conduct:
>https://www.ovirt.org/community/about/community-guidelines/
>List Archives:
>https://lists.ovirt.org/archives/list/users@ovirt.org/message/CMVWT44HRX56JCQDP3C4XZ6CTOI3VXWT/

-- 
Изпратено от моето Андроид у-во чрез K-9 Mail. Моля да ме извините за краткият 
ми изказ.___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/3TQXYLMVLWU6EKS6EE7JW26K25TFENXV/