Re: [ovirt-users] ovirt question

2018-04-23 Thread Pavol Brilla
​inst.stage2 = This specifies the location to fetch ONLY the installer
runtime image; packages will be ignored. ​

I think it is helping to streamline ovirt-node build, as installation part
is untouch OS and we deploy 2nd squash as image of node.



On Mon, Apr 23, 2018 at 9:38 PM, Justin Zygmont 
wrote:

> Thanks, but I still don’t understand why there are 2 squash images though.
>
>
>
>
>
> *From:* Gianluca Cecchi [mailto:gianluca.cec...@gmail.com]
> *Sent:* Saturday, April 21, 2018 12:59 AM
> *To:* Justin Zygmont 
> *Cc:* users@ovirt.org
> *Subject:* Re: [ovirt-users] ovirt question
>
>
>
> On Sat, Apr 21, 2018 at 3:11 AM, Justin Zygmont 
> wrote:
>
> I was wondering why there has to be 2 node squash images?  A
> LiveOS/squash.img and a ovirt-node-ng-image.squashfs.img in the ISO for
> download, and which one should be used?
>
>
>
> When doing a kickstart installation I noticed it uses the Live OS image
> from the inst.stage2= and in the kickstart.cfg it would reference the other
> node image from liveimg --url
>
>
>
> Is there any documentation around doing kickstart installs with oVirt?
>
>
>
>
>
> Thanks,
>
>
>
>
>
>
>
> I too tried some weeks ago (4.2.1 if I remeber correctly) and was
> confused
>
> I was able to succesfully deploy, with these steps and pxe, also taking
> "inspiration" on what written at this link:
> https://github.com/oVirt/ovirt-node-ng/blob/master/docs/book/install.md
> 
>
> note: my pxe server makes also as dhcp server and http server for install
>
>
> - iso of node-ng-installer
> mounted (via loop in my case) under /var/www/html/ovnode42 of pxe server
>
> -under /var/www/html created directory ovnode2_stage2 containing
> product.img (6k of file) downloaded here:
> http://jenkins.ovirt.org/job/ovirt-node-ng_ovirt-4.2_build-
> artifacts-el7-x86_64/lastStableBuild/artifact/exported-artifacts/
> 
>
> --> why not included..?
>
> I think in theory one can downoad here also the file updates.img and it
> should update the base version of the iso... TBV (not tested by me)
>
> ---> where to get the updates.img? Perhaps inside
> ovirt-node-ng-image-update-x.y.z.rpm?
>
>
> - inside ovnode2_stage2 created directory LiveOS and inside it created the
> link
> ln -sf /var/www/html/ovnode42/LiveOS/squashfs.img
> /var/www/html/ovnode42_stage2/LiveOS/squashfs.img
>
>
> - the pxe file
>
> It contains
>
> default pxeboot
> timeout 50
> label pxeboot
> kernel vmlinuz.ovnode42
> append initrd=initrd.ovnode42.img inst.ks=http://192.168.122.1/ovnode42.ks
> 
> inst.stage2=http://192.168.122.1/ovnode42_stage2/
> 
> verbose
>
>
> - kickstart file
>
> in /var/www/html created file ovnode42.ks
> it contains
>
> install
> lang en_US.UTF-8
> keyboard us
> rootpw  --plaintext my_password
> network --bootproto=dhcp
> timezone --utc Europe/Rome
> firewall --service=ssh
>
> liveimg --url=http://192.168.122.1/ovnode42/ovirt-node-ng-image.
> squashfs.img
> 
>
> # partitioning - nuke and start fresh
> zerombr
> clearpart --all --initlabel
> autopart --type=thinp
> bootloader --location=mbr
>
> #reboot
>
> last line left commented to cross-check before reboot
>
> at pxe boot the graphical install comes up and completes the install
> without any prompt
>
> It only asks to reboot as I commented out the line above
>
>
> verified that after reboot I was able to connect to the server at https on
> port 9090 and getting the node dashboard
>
> any validation 

[ovirt-users] oVirt Local Storage Domain Resize

2018-04-23 Thread Samuel Kneppel
Hello All,

I am fairly new to oVirt and this mailing list, but I am having trouble 
figuring out how to expand my local data storage domain on my oVirt server.

I see that the oVirt system defaults the size of the iso and data domains you 
can create to 50GB.

However, I have a 1TB drive that I would like to fully use for VMs.

Is there a way to expand the current data domain that I have? Or, do I have to 
just keep creating domains when I run out of space on the current storage 
domains?

Thank you,

Samuel Kneppel

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


Re: [ovirt-users] Help debugging VM import error

2018-04-23 Thread ~Stack~
Thank you Roy and Benny for your assistance. I have opened the following
bug ticket:
https://bugzilla.redhat.com/show_bug.cgi?id=1571039

Please let me know if there is something else I can provide.

And thank you for your work on oVirt! :-)

~Stack~



signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Emergency shutdown script

2018-04-23 Thread Doug Ingham
I've plugged this into our monitoring.

When the UPS' are at 50%, it puts the general cluster into global
maintenance & then triggers a shutdown action on all of the VMs in the
cluster's service group via the monitoring agent (you could use an SNMP
trap if you use agentless monitoring). Once all of the VMs are down, it
then continues with the hosts.

At 20%, it does the same with our "core" cluster.

This method means that the HE can be shutdown, and it works whether the HE
is up or not.

For emergencies when the monitoring is offline, I've also hacked up a bash
script which parses the output of vdsClient & uses a loop to send a
shutdown signal to all of the VMs on each host.

Doug

On Mon, 23 Apr 2018, 14:14 Simon Vincent,  wrote:

> Does anyone have a way of shutting down oVirt automatically in the case of
> a power outage?
>
> Ideally I would like a script that can be automatically run when the UPS
> reaches a certain level. I had a look at the python SDK but I could only
> find functions for shutting down VMs and not hosts. Also I suspect this
> wont let me shutdown the hosted engine VM.
>
> Any ideas?
>
> Regards
> ___
> 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] Emergency shutdown script

2018-04-23 Thread Joop
On 23-4-2018 20:13, Simon Vincent wrote:
> Does anyone have a way of shutting down oVirt automatically in the
> case of a power outage?
>
> Ideally I would like a script that can be automatically run when the
> UPS reaches a certain level. I had a look at the python SDK but I
> could only find functions for shutting down VMs and not hosts. Also I
> suspect this wont let me shutdown the hosted engine VM.
>
>
I have posted in the past a script which you might be able to use as a
starting point.
I've got a, most of the time, a single server setup using hosted-engine
for development/testing work and shutdown my server when needed.
Recently found out that using 'sanlock client shutdown -f 1 -w 1'  will
allow me to shutdown my server cleanly.
I'll dig up the script when I'm booted into CentOS instead of Windows :-)
Nudge me if I forget to post the script :-)

Regards,

Joop

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


Re: [ovirt-users] Help debugging VM import error

2018-04-23 Thread ~Stack~
On 04/23/2018 01:57 PM, Roy Golan wrote:
> Please open a bug including the logs.
> https://www.ovirt.org/community/get-involved/report-a-bug/

Sorry, got pulled onto another project that a coworker needed help on. I
will gladly file a bug report in the morning (or later tonight if I get
the chance).

> Also what is the exact version you are using?
4.2.2

Thanks!
~Stack~



signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] FreeIPA authentication broken

2018-04-23 Thread Kristian Petersen
Looks like it can't find the IPA.properties file.  I tried following the
path it is complaining about but there are only files in
/etc/ovirt-engine/extensions.d
on the engine VM.  No subdirectories.  However, that directory appears to
contain the files it is looking for.  Both IPA-authn.properties and
IPA.properties are there as are the internal properties files.  Is there a
config file we can edit to tell it to look in the right place?

On Mon, Apr 23, 2018 at 2:13 PM, Kristian Petersen 
wrote:

> After running ovirt-engine-extensions-tool --log-level=FINEST
> --log-file=/tmp/aaa.log aaa login-user --user-name nesretep --profile IPA...
>
> *Contents of /tmp/aaa.log:*
> 2018-04-23 14:10:58,771-06 FINEVersion: ovirt-engine-4.2.1.7 ()
> 2018-04-23 14:10:58,856-06 INFO===
> =
> 2018-04-23 14:10:58,856-06 INFO
> Initialization 
> 2018-04-23 14:10:58,857-06 INFO===
> =
> 2018-04-23 14:10:58,858-06 FINELoading extension file
> 'internal-authz.properties'
> 2018-04-23 14:10:58,882-06 INFOLoading extension 'internal-authz'
> 2018-04-23 14:10:58,884-06 FINEST  Invoke Input BEGIN
> 2018-04-23 14:10:58,886-06 FINEST  
> {Extkey[name=EXTENSION_INVOKE_COMMAND;type=class
> org.ovirt.engine.api.extensions.ExtUUID;uuid=EXTENSION_INVOKE_COMMAND[
> 485778ab-bede-4f1a-b823-7
> 7b262a2f28d];]=EXTENSION_LOAD[b0f2460e-7971-4a9c-b4e1-c1db1362a47a],
> Extkey[name=EXTENSION_INVOKE_CONTEXT;type=class org.ovirt.engine.api.
> extensions.ExtMap;uuid=EXTENSION_INVOKE_C
> ONTEXT[886d2ebb-312a-49ae-9cc3-e1f849834b7d];]={Extkey[
> name=EXTENSION_GLOBAL_CONTEXT;type=class org.ovirt.engine.api.
> extensions.ExtMap;uuid=EXTENSION_GLOBAL_CONTEXT[9799e72f-7af6-
> 4cf1-bf08-297bc8903676];]=*skip*, 
> Extkey[name=EXTENSION_MANAGER_TRACE_LOG;type=interface
> org.slf4j.Logger;uuid=EXTENSION_MANAGER_TRACE_LOG[863db666-3ea7-4751-9695-
> 918a3197ad83];]=
> org.slf4j.impl.JDK14LoggerAdapter(org.ovirt.engine.core.extensions.mgr.ExtensionsManager.trace),
> Extkey[name=EXTENSION_CONFIGURATION_SENSITIVE_KEYS;type=interface
> java.util.Collec
> tion;uuid=EXTENSION_CONFIGURATION_SENSITIVE_KEYS[a456efa1-73ff-4204-9f9b-ebff01e35263];]=[],
> Extkey[name=EXTENSION_PROVIDES;type=interface java.util.Collection;uuid=
> EXTENSION_PROV
> IDES[8cf373a6-65b5-4594-b828-0e275087de91];]=[org.ovirt.
> engine.api.extensions.aaa.Authz], Extkey[name=EXTENSION_LOCALE;type=class
> java.lang.String;uuid=EXTENSION_LOCALE[0780b112-0
> ce0-404a-b85e-8765d778bb29];]=en_US, 
> Extkey[name=EXTENSION_CONFIGURATION_FILE;type=class
> java.lang.String;uuid=EXTENSION_CONFIGURATION_FILE[
> 4fb0ffd3-983c-4f3f-98ff-9660bd67af6a];]
> =/etc/ovirt-engine/extensions.d/internal-authz.properties,
> Extkey[name=EXTENSION_CONFIGURATION;type=class java.util.Properties;uuid=
> EXTENSION_CONFIGURATION[2d48ab72-f0a1-4312-b4ae
> -5068a226b0fc];]=***, Extkey[name=EXTENSION_INTERFACE_VERSION_MAX;type=class
> java.lang.Integer;uuid=EXTENSION_INTERFACE_VERSION_
> MAX[f4cff49f-2717-4901-8ee9-df362446e3e7];]=0, Extk
> ey[name=EXTENSION_INTERFACE_VERSION_MIN;type=class java.lang.Integer;uuid=
> EXTENSION_INTERFACE_VERSION_MIN[2b84fc91-305b-497b-a1d7-d961b9d2ce0b];]=0,
> Extkey[name=EXTENSION_INSTANCE
> _NAME;type=class java.lang.String;uuid=EXTENSION_INSTANCE_NAME[
> 65c67ff6-aeca-4bd5-a245-8674327f011b];]=internal-authz}}
> 2018-04-23 14:10:58,887-06 FINEST  Invoke Input END
> 2018-04-23 14:10:58,891-06 FINEST  Invoke Output BEGIN
> 2018-04-23 14:10:58,892-06 FINEST  {Extkey[name=AAA_AUTHZ_STATUS;type=class
> java.lang.Integer;uuid=AAA_AUTHZ_STATUS[566f0ba5-8329-4de1-952a-7a81e4bedd3e];]=0,
> Extkey[name=EXTENSIO
> N_INVOKE_RESULT;type=class java.lang.Integer;uuid=EXTENSION_INVOKE_RESULT[
> 0909d91d-8bde-40fb-b6c0-099c772ddd4e];]=0}
> 2018-04-23 14:10:58,892-06 FINEST  Invoke Output END
> 2018-04-23 14:10:58,893-06 INFOExtension 'internal-authz' loaded
> 2018-04-23 14:10:58,894-06 FINEConfig BEGIN
> 2018-04-23 14:10:58,894-06 FINEovirt.engine.extension.provides:
> org.ovirt.engine.api.extensions.aaa.Authz
> 2018-04-23 14:10:58,895-06 FINE
> ovirt.engine.extension.binding.jbossmodule.class:
> org.ovirt.engine.extension.aaa.jdbc.binding.api.AuthzExtension
> 2018-04-23 14:10:58,896-06 FINEovirt.engine.extension.bindings.method:
> jbossmodule
> 2018-04-23 14:10:58,897-06 FINEconfig.datasource.file:
> /etc/ovirt-engine/aaa/internal.properties
> 2018-04-23 14:10:58,897-06 FINEovirt.engine.extension.name:
> internal-authz
> 2018-04-23 14:10:58,898-06 FINE
> ovirt.engine.extension.binding.jbossmodule.module:
> org.ovirt.engine.extension.aaa.jdbc
> 2018-04-23 14:10:58,898-06 FINEConfig END
> 2018-04-23 14:10:58,899-06 FINELoading extension file
> 'internal-authn.properties'
> 2018-04-23 14:10:58,900-06 INFOLoading extension 'internal-authn'

Re: [ovirt-users] FreeIPA authentication broken

2018-04-23 Thread Kristian Petersen
After running ovirt-engine-extensions-tool --log-level=FINEST
--log-file=/tmp/aaa.log aaa login-user --user-name nesretep --profile IPA...

*Contents of /tmp/aaa.log:*
2018-04-23 14:10:58,771-06 FINEVersion: ovirt-engine-4.2.1.7 ()
2018-04-23 14:10:58,856-06 INFO
   
2018-04-23 14:10:58,856-06 INFO
Initialization 
2018-04-23 14:10:58,857-06 INFO
   
2018-04-23 14:10:58,858-06 FINELoading extension file
'internal-authz.properties'
2018-04-23 14:10:58,882-06 INFOLoading extension 'internal-authz'
2018-04-23 14:10:58,884-06 FINEST  Invoke Input BEGIN
2018-04-23 14:10:58,886-06 FINEST
 {Extkey[name=EXTENSION_INVOKE_COMMAND;type=class
org.ovirt.engine.api.extensions.ExtUUID;uuid=EXTENSION_INVOKE_COMMAND[485778ab-bede-4f1a-b823-7
7b262a2f28d];]=EXTENSION_LOAD[b0f2460e-7971-4a9c-b4e1-c1db1362a47a],
Extkey[name=EXTENSION_INVOKE_CONTEXT;type=class
org.ovirt.engine.api.extensions.ExtMap;uuid=EXTENSION_INVOKE_C
ONTEXT[886d2ebb-312a-49ae-9cc3-e1f849834b7d];]={Extkey[name=EXTENSION_GLOBAL_CONTEXT;type=class
org.ovirt.engine.api.extensions.ExtMap;uuid=EXTENSION_GLOBAL_CONTEXT[9799e72f-7af6-
4cf1-bf08-297bc8903676];]=*skip*,
Extkey[name=EXTENSION_MANAGER_TRACE_LOG;type=interface
org.slf4j.Logger;uuid=EXTENSION_MANAGER_TRACE_LOG[863db666-3ea7-4751-9695-918a3197ad83];]=
org.slf4j.impl.JDK14LoggerAdapter(org.ovirt.engine.core.extensions.mgr.ExtensionsManager.trace),
Extkey[name=EXTENSION_CONFIGURATION_SENSITIVE_KEYS;type=interface
java.util.Collec
tion;uuid=EXTENSION_CONFIGURATION_SENSITIVE_KEYS[a456efa1-73ff-4204-9f9b-ebff01e35263];]=[],
Extkey[name=EXTENSION_PROVIDES;type=interface
java.util.Collection;uuid=EXTENSION_PROV
IDES[8cf373a6-65b5-4594-b828-0e275087de91];]=[org.ovirt.engine.api.extensions.aaa.Authz],
Extkey[name=EXTENSION_LOCALE;type=class
java.lang.String;uuid=EXTENSION_LOCALE[0780b112-0
ce0-404a-b85e-8765d778bb29];]=en_US,
Extkey[name=EXTENSION_CONFIGURATION_FILE;type=class
java.lang.String;uuid=EXTENSION_CONFIGURATION_FILE[4fb0ffd3-983c-4f3f-98ff-9660bd67af6a];]
=/etc/ovirt-engine/extensions.d/internal-authz.properties,
Extkey[name=EXTENSION_CONFIGURATION;type=class
java.util.Properties;uuid=EXTENSION_CONFIGURATION[2d48ab72-f0a1-4312-b4ae
-5068a226b0fc];]=***,
Extkey[name=EXTENSION_INTERFACE_VERSION_MAX;type=class
java.lang.Integer;uuid=EXTENSION_INTERFACE_VERSION_MAX[f4cff49f-2717-4901-8ee9-df362446e3e7];]=0,
Extk
ey[name=EXTENSION_INTERFACE_VERSION_MIN;type=class
java.lang.Integer;uuid=EXTENSION_INTERFACE_VERSION_MIN[2b84fc91-305b-497b-a1d7-d961b9d2ce0b];]=0,
Extkey[name=EXTENSION_INSTANCE
_NAME;type=class
java.lang.String;uuid=EXTENSION_INSTANCE_NAME[65c67ff6-aeca-4bd5-a245-8674327f011b];]=internal-authz}}

2018-04-23 14:10:58,887-06 FINEST  Invoke Input END
2018-04-23 14:10:58,891-06 FINEST  Invoke Output BEGIN
2018-04-23 14:10:58,892-06 FINEST  {Extkey[name=AAA_AUTHZ_STATUS;type=class
java.lang.Integer;uuid=AAA_AUTHZ_STATUS[566f0ba5-8329-4de1-952a-7a81e4bedd3e];]=0,
Extkey[name=EXTENSIO
N_INVOKE_RESULT;type=class
java.lang.Integer;uuid=EXTENSION_INVOKE_RESULT[0909d91d-8bde-40fb-b6c0-099c772ddd4e];]=0}

2018-04-23 14:10:58,892-06 FINEST  Invoke Output END
2018-04-23 14:10:58,893-06 INFOExtension 'internal-authz' loaded
2018-04-23 14:10:58,894-06 FINEConfig BEGIN
2018-04-23 14:10:58,894-06 FINEovirt.engine.extension.provides:
org.ovirt.engine.api.extensions.aaa.Authz
2018-04-23 14:10:58,895-06 FINE
   ovirt.engine.extension.binding.jbossmodule.class:
org.ovirt.engine.extension.aaa.jdbc.binding.api.AuthzExtension
2018-04-23 14:10:58,896-06 FINEovirt.engine.extension.bindings.method:
jbossmodule
2018-04-23 14:10:58,897-06 FINEconfig.datasource.file:
/etc/ovirt-engine/aaa/internal.properties
2018-04-23 14:10:58,897-06 FINEovirt.engine.extension.name:
internal-authz
2018-04-23 14:10:58,898-06 FINE
   ovirt.engine.extension.binding.jbossmodule.module:
org.ovirt.engine.extension.aaa.jdbc
2018-04-23 14:10:58,898-06 FINEConfig END
2018-04-23 14:10:58,899-06 FINELoading extension file
'internal-authn.properties'
2018-04-23 14:10:58,900-06 INFOLoading extension 'internal-authn'
2018-04-23 14:10:58,900-06 FINEST  Invoke Input BEGIN
2018-04-23 14:10:58,901-06 FINEST
 {Extkey[name=EXTENSION_INVOKE_COMMAND;type=class
org.ovirt.engine.api.extensions.ExtUUID;uuid=EXTENSION_INVOKE_COMMAND[485778ab-bede-4f1a-b823-7
7b262a2f28d];]=EXTENSION_LOAD[b0f2460e-7971-4a9c-b4e1-c1db1362a47a],
Extkey[name=EXTENSION_INVOKE_CONTEXT;type=class
org.ovirt.engine.api.extensions.ExtMap;uuid=EXTENSION_INVOKE_C
ONTEXT[886d2ebb-312a-49ae-9cc3-e1f849834b7d];]={Extkey[name=EXTENSION_GLOBAL_CONTEXT;type=class
org.ovirt.engine.api.extensions.ExtMap;uuid=EXTENSION_GLOBAL_CONTEXT[9799e72f-7af6-
4cf1-bf08-297bc8903676];]=*skip*,
Extkey[name=EXTENSION_MANAGER_TRACE_LOG;type=interface

Re: [ovirt-users] Problem to upgrade ovirt

2018-04-23 Thread Marcelo Leandro
Thank you for reply,


"BZ 1515635 [RFE] Drop uuid_generate_v1() internal implementation and use
the implementation from standard PostgreSQL uuid-ossp extension
We have added a requirement for uuid-ossp PostgreSQL extension to be
present in engine database. For databases managed by engine-setup this is
performed automatically, but non-managed databases (usually remote
databases) this needs to be done manually by administrators. "


my database is  managed by engine-setup, so i think that is perfomed
automatically. I know that problem in my database , but I instaled it`s
whith engine-setup com default options.

I try an new instalation in new host and restore backup and when I try
update I had take the same error.


Very thanks!!





2018-04-23 16:47 GMT-03:00 Alexander Wels :

> On Monday, April 23, 2018 3:23:21 PM EDT Marcelo Leandro wrote:
> > Can someone help me?
> >
> > Thanks,
> >
> > Marcelo Leandro
> >
>
> You need postgresql 9.5, following the information here should give you
> everything you need:
>
> https://www.ovirt.org/release/4.2.1/
>
> Also look at the information below 'What's New in 4.2.1' it has some
> information on upgrading the uuid generation which requires some manual
> steps.
>
> > 2018-04-23 8:27 GMT-03:00 Robert O'Kane :
> > > Hello,
> > >
> > > Sorry, I did not have to chance anything else. It simply worked after
> my
> > > SELinux solution.
> > >
> > > Good Luck.
> > >
> > > Robert O'Kane
> > >
> > > On 04/23/2018 01:21 PM, Marcelo Leandro wrote:
> > >> Hello, Robert
> > >>
> > >> Thank you for reply, I tried this steps but not worked for me , I
> think
> > >> that I need change parameters in my postgresql but I don't know how do
> > >> this.
> > >>
> > >>
> > >> 2018-04-22 7:45 GMT-03:00 Robert O'Kane  >>
> > >> ok...@khm.de>>:
> > >> Hello,
> > >>
> > >> I had a similar problem with the engine update from 4.1.9 to
> 4.2.2.
> > >> For me it was SELinux in Enforcing mode on the host.  You should
> > >>
> > >> check that
> > >>
> > >> SELinux is in "Enforcing" mode and that the audit daemon is
> > >>
> > >> complaining
> > >>
> > >> about postgres95. "audit2why -a"
> > >>
> > >>
> > >> I set the host to "Permissive", did the upgrade and it worked for
> me.
> > >> But you may have to leave it in "Permissive" mode until you can
> > >>
> > >> update the
> > >>
> > >> SELinux rules.
> > >>
> > >>
> > >> *IF* the problem is SELinux I would suggest:
> > >>
> > >> 1: Clean up the auditd logs (make sure all old problems are
> > >>
> > >> corrected).
> > >>
> > >> Reset the auditd logs so the following output is "cleaner".
> > >> The "audit2why -a" command should show nothing. Please
> RYFM
> > >>
> > >> 2: Set SELinux to "Permissive" mode.
> > >>
> > >> 3: Apply the Ovirt-engine updates. Make sure everything works.
> > >>
> > >> 4: run "audit2why -a" and see what the warnings are
> > >>
> > >>   or go directly to 5
> > >>
> > >> 5: generate the new rules with:
> > >>audit2allow -a -M postgres95-selinux-ovirt
> > >>
> > >> 6: add the rules to the system:
> > >>semodule -i  postgres95-selinux-ovirt.pp
> > >>
> > >> 7: It should now be possible to set SELinux back to "Enforcing"
> > >>
> > >>
> > >> Good Luck,
> > >>
> > >> Robert O'Kane
> > >>
> > >> Am 21.04.2018 um 10:26 schrieb Marcelo Leandro:
> > >> Hello,
> > >> I have problem when i try upgrade the ovirt to 4.2,  my
> version
> > >>
> > >> is 4.1.9, I
> > >>
> > >> have problem when engine-setup try update the postgresql.
> > >> Postgres version 9.2
> > >>
> > >> I had this message:
> > >>
> > >> Log install:
> > >>
> > >> ERROR: pg_upgrade tool failed
> > >> ERROR: Upgrade failed.
> > >>
> > >>* See /var/lib/pgsql/upgrade_rh-
> postgresql95-postgresql.log
> > >>
> > >> for details.
> > >>
> > >> 2018-04-21 04:53:10,766-0300 DEBUG otopi.transaction
> > >> transaction._prepare:66 exception during prepare phase
> > >>
> > >> Traceback (most recent call last):
> > >> File "/usr/lib/python2.7/site-
> packages/otopi/transaction.py",
> > >>
> > >> line
> > >>
> > >> 62, in
> > >> _prepare
> > >>
> > >>   element.prepare()
> > >>
> > >> File
> > >>
> > >> "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_
> > >>
> > >> common/postgres.py",
> > >>
> > >> line 777, in prepare
> > >>
> > >>   raiseOnError=True,
> > >>
> > >> File "/usr/lib/python2.7/site-packages/otopi/plugin.py",
> > >>
> > >> line 931, in
> > >>
> > >> execute
> > >>
> > >>   command=args[0],
> > >>
> > >> RuntimeError: Command
> > >> '/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup'
> failed
> > >>
> > >> to execute
> > >>
> > >> 2018-04-21 04:53:10,768-0300 

Re: [ovirt-users] Problem to upgrade ovirt

2018-04-23 Thread Alexander Wels
On Monday, April 23, 2018 3:23:21 PM EDT Marcelo Leandro wrote:
> Can someone help me?
> 
> Thanks,
> 
> Marcelo Leandro
> 

You need postgresql 9.5, following the information here should give you 
everything you need:

https://www.ovirt.org/release/4.2.1/

Also look at the information below 'What's New in 4.2.1' it has some 
information on upgrading the uuid generation which requires some manual steps.

> 2018-04-23 8:27 GMT-03:00 Robert O'Kane :
> > Hello,
> > 
> > Sorry, I did not have to chance anything else. It simply worked after my
> > SELinux solution.
> > 
> > Good Luck.
> > 
> > Robert O'Kane
> > 
> > On 04/23/2018 01:21 PM, Marcelo Leandro wrote:
> >> Hello, Robert
> >> 
> >> Thank you for reply, I tried this steps but not worked for me , I think
> >> that I need change parameters in my postgresql but I don't know how do
> >> this.
> >> 
> >> 
> >> 2018-04-22 7:45 GMT-03:00 Robert O'Kane > 
> >> ok...@khm.de>>:
> >> Hello,
> >> 
> >> I had a similar problem with the engine update from 4.1.9 to 4.2.2.
> >> For me it was SELinux in Enforcing mode on the host.  You should
> >> 
> >> check that
> >> 
> >> SELinux is in "Enforcing" mode and that the audit daemon is
> >> 
> >> complaining
> >> 
> >> about postgres95. "audit2why -a"
> >> 
> >> 
> >> I set the host to "Permissive", did the upgrade and it worked for me.
> >> But you may have to leave it in "Permissive" mode until you can
> >> 
> >> update the
> >> 
> >> SELinux rules.
> >> 
> >> 
> >> *IF* the problem is SELinux I would suggest:
> >> 
> >> 1: Clean up the auditd logs (make sure all old problems are
> >> 
> >> corrected).
> >> 
> >> Reset the auditd logs so the following output is "cleaner".
> >> The "audit2why -a" command should show nothing. Please RYFM
> >> 
> >> 2: Set SELinux to "Permissive" mode.
> >> 
> >> 3: Apply the Ovirt-engine updates. Make sure everything works.
> >> 
> >> 4: run "audit2why -a" and see what the warnings are
> >> 
> >>   or go directly to 5
> >> 
> >> 5: generate the new rules with:
> >>audit2allow -a -M postgres95-selinux-ovirt
> >> 
> >> 6: add the rules to the system:
> >>semodule -i  postgres95-selinux-ovirt.pp
> >> 
> >> 7: It should now be possible to set SELinux back to "Enforcing"
> >> 
> >> 
> >> Good Luck,
> >> 
> >> Robert O'Kane
> >> 
> >> Am 21.04.2018 um 10:26 schrieb Marcelo Leandro:
> >> Hello,
> >> I have problem when i try upgrade the ovirt to 4.2,  my version
> >> 
> >> is 4.1.9, I
> >> 
> >> have problem when engine-setup try update the postgresql.
> >> Postgres version 9.2
> >> 
> >> I had this message:
> >> 
> >> Log install:
> >> 
> >> ERROR: pg_upgrade tool failed
> >> ERROR: Upgrade failed.
> >> 
> >>* See /var/lib/pgsql/upgrade_rh-postgresql95-postgresql.log
> >> 
> >> for details.
> >> 
> >> 2018-04-21 04:53:10,766-0300 DEBUG otopi.transaction
> >> transaction._prepare:66 exception during prepare phase
> >> 
> >> Traceback (most recent call last):
> >> File "/usr/lib/python2.7/site-packages/otopi/transaction.py",
> >> 
> >> line
> >> 
> >> 62, in
> >> _prepare
> >> 
> >>   element.prepare()
> >> 
> >> File
> >> 
> >> "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_
> >> 
> >> common/postgres.py",
> >> 
> >> line 777, in prepare
> >> 
> >>   raiseOnError=True,
> >> 
> >> File "/usr/lib/python2.7/site-packages/otopi/plugin.py",
> >> 
> >> line 931, in
> >> 
> >> execute
> >> 
> >>   command=args[0],
> >> 
> >> RuntimeError: Command
> >> '/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup' failed
> >> 
> >> to execute
> >> 
> >> 2018-04-21 04:53:10,768-0300 DEBUG otopi.context
> >> 
> >> context._executeMethod:143
> >> 
> >> method exception
> >> 
> >> Traceback (most recent call last):
> >> File "/usr/lib/python2.7/site-packages/otopi/context.py",
> >> 
> >> line 133, in
> >> 
> >> _executeMethod
> >> 
> >>   method['method']()
> >> 
> >> File
> >> 
> >> "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-
> >> 
> >> setup/ovirt-engine/db/dbmsupgrade.py",
> >> 
> >> line 89, in _updateDBMS
> >> 
> >>   oengcommcons.ProvisioningEnv.OLD_POSTGRES_SERVICE
> >> 
> >> File "/usr/lib/python2.7/site-packages/otopi/transaction.py",
> >> 
> >> line 106,
> >> 
> >> in append
> >> 
> >>   self._prepare(element=element)
> >> 
> >>  

Re: [ovirt-users] ovirt question

2018-04-23 Thread Justin Zygmont
Thanks, but I still don’t understand why there are 2 squash images though.


From: Gianluca Cecchi [mailto:gianluca.cec...@gmail.com]
Sent: Saturday, April 21, 2018 12:59 AM
To: Justin Zygmont 
Cc: users@ovirt.org
Subject: Re: [ovirt-users] ovirt question

On Sat, Apr 21, 2018 at 3:11 AM, Justin Zygmont 
> wrote:
I was wondering why there has to be 2 node squash images?  A LiveOS/squash.img 
and a ovirt-node-ng-image.squashfs.img in the ISO for download, and which one 
should be used?

When doing a kickstart installation I noticed it uses the Live OS image from 
the inst.stage2= and in the kickstart.cfg it would reference the other node 
image from liveimg --url

Is there any documentation around doing kickstart installs with oVirt?


Thanks,



I too tried some weeks ago (4.2.1 if I remeber correctly) and was confused
I was able to succesfully deploy, with these steps and pxe, also taking 
"inspiration" on what written at this link:
https://github.com/oVirt/ovirt-node-ng/blob/master/docs/book/install.md
note: my pxe server makes also as dhcp server and http server for install

- iso of node-ng-installer
mounted (via loop in my case) under /var/www/html/ovnode42 of pxe server

-under /var/www/html created directory ovnode2_stage2 containing
product.img (6k of file) downloaded here:
http://jenkins.ovirt.org/job/ovirt-node-ng_ovirt-4.2_build-artifacts-el7-x86_64/lastStableBuild/artifact/exported-artifacts/
--> why not included..?
I think in theory one can downoad here also the file updates.img and it should 
update the base version of the iso... TBV (not tested by me)
---> where to get the updates.img? Perhaps inside 
ovirt-node-ng-image-update-x.y.z.rpm?

- inside ovnode2_stage2 created directory LiveOS and inside it created the link
ln -sf /var/www/html/ovnode42/LiveOS/squashfs.img 
/var/www/html/ovnode42_stage2/LiveOS/squashfs.img


- the pxe file

It contains

default pxeboot
timeout 50
label pxeboot
kernel vmlinuz.ovnode42
append initrd=initrd.ovnode42.img 
inst.ks=http://192.168.122.1/ovnode42.ks
 
inst.stage2=http://192.168.122.1/ovnode42_stage2/
 verbose


- kickstart file

in /var/www/html created file ovnode42.ks
it contains

install
lang en_US.UTF-8
keyboard us
rootpw  --plaintext my_password
network --bootproto=dhcp
timezone --utc Europe/Rome
firewall --service=ssh

liveimg 
--url=http://192.168.122.1/ovnode42/ovirt-node-ng-image.squashfs.img

# partitioning - nuke and start fresh
zerombr
clearpart --all --initlabel
autopart --type=thinp
bootloader --location=mbr

#reboot

last line left commented to cross-check before reboot

at pxe boot the graphical install comes up and completes the install without 
any prompt
It only asks to reboot as I commented out the line above

verified that after reboot I was able to connect to the server at https on port 
9090 and getting the node dashboard
any validation comment?
HIH,
Gianluca

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


Re: [ovirt-users] Problem to upgrade ovirt

2018-04-23 Thread Marcelo Leandro
Can someone help me?

Thanks,

Marcelo Leandro

2018-04-23 8:27 GMT-03:00 Robert O'Kane :

> Hello,
>
> Sorry, I did not have to chance anything else. It simply worked after my
> SELinux solution.
>
> Good Luck.
>
> Robert O'Kane
>
>
> On 04/23/2018 01:21 PM, Marcelo Leandro wrote:
>
>> Hello, Robert
>>
>> Thank you for reply, I tried this steps but not worked for me , I think
>> that I need change parameters in my postgresql but I don't know how do this.
>>
>>
>> 2018-04-22 7:45 GMT-03:00 Robert O'Kane  ok...@khm.de>>:
>>
>>
>> Hello,
>>
>> I had a similar problem with the engine update from 4.1.9 to 4.2.2.
>> For me it was SELinux in Enforcing mode on the host.  You should
>> check that
>> SELinux is in "Enforcing" mode and that the audit daemon is
>> complaining
>> about postgres95. "audit2why -a"
>>
>>
>> I set the host to "Permissive", did the upgrade and it worked for me.
>> But you may have to leave it in "Permissive" mode until you can
>> update the
>> SELinux rules.
>>
>>
>> *IF* the problem is SELinux I would suggest:
>>
>> 1: Clean up the auditd logs (make sure all old problems are
>> corrected).
>> Reset the auditd logs so the following output is "cleaner".
>> The "audit2why -a" command should show nothing. Please RYFM
>>
>> 2: Set SELinux to "Permissive" mode.
>>
>> 3: Apply the Ovirt-engine updates. Make sure everything works.
>>
>> 4: run "audit2why -a" and see what the warnings are
>>   or go directly to 5
>>
>> 5: generate the new rules with:
>>audit2allow -a -M postgres95-selinux-ovirt
>>
>> 6: add the rules to the system:
>>semodule -i  postgres95-selinux-ovirt.pp
>>
>> 7: It should now be possible to set SELinux back to "Enforcing"
>>
>>
>> Good Luck,
>>
>> Robert O'Kane
>>
>>
>>
>> Am 21.04.2018 um 10:26 schrieb Marcelo Leandro:
>>
>> Hello,
>> I have problem when i try upgrade the ovirt to 4.2,  my version
>> is 4.1.9, I
>> have problem when engine-setup try update the postgresql.
>> Postgres version 9.2
>>
>> I had this message:
>>
>> Log install:
>>
>> ERROR: pg_upgrade tool failed
>> ERROR: Upgrade failed.
>>* See /var/lib/pgsql/upgrade_rh-postgresql95-postgresql.log
>> for details.
>>
>> 2018-04-21 04:53:10,766-0300 DEBUG otopi.transaction
>> transaction._prepare:66 exception during prepare phase
>> Traceback (most recent call last):
>> File "/usr/lib/python2.7/site-packages/otopi/transaction.py",
>> line
>> 62, in
>> _prepare
>>   element.prepare()
>> File
>> "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_
>> common/postgres.py",
>> line 777, in prepare
>>   raiseOnError=True,
>> File "/usr/lib/python2.7/site-packages/otopi/plugin.py",
>> line 931, in
>> execute
>>   command=args[0],
>> RuntimeError: Command
>> '/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup' failed
>> to execute
>> 2018-04-21 04:53:10,768-0300 DEBUG otopi.context
>> context._executeMethod:143
>> method exception
>> Traceback (most recent call last):
>> File "/usr/lib/python2.7/site-packages/otopi/context.py",
>> line 133, in
>> _executeMethod
>>   method['method']()
>> File
>> "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-
>> setup/ovirt-engine/db/dbmsupgrade.py",
>> line 89, in _updateDBMS
>>   oengcommcons.ProvisioningEnv.OLD_POSTGRES_SERVICE
>> File "/usr/lib/python2.7/site-packages/otopi/transaction.py",
>> line 106,
>> in append
>>   self._prepare(element=element)
>> File "/usr/lib/python2.7/site-packages/otopi/transaction.py",
>> line
>> 62, in
>> _prepare
>>   element.prepare()
>> File
>> "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_
>> common/postgres.py",
>> line 777, in prepare
>>   raiseOnError=True,
>> File "/usr/lib/python2.7/site-packages/otopi/plugin.py",
>> line 931, in
>> execute
>>   command=args[0],
>> RuntimeError: Command
>> '/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup' failed
>> to execute
>> 2018-04-21 04:53:10,770-0300 ERROR otopi.context
>> context._executeMethod:152
>> Failed to execute stage 'Misc configuration': Command
>> '/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup' failed
>> to execute
>>
>> Log postgres:
>> Performing Consistency Checks
>> -
>> Checking cluster versions   ok
>> Checking database user is the install user  ok
>> Checking database 

Re: [ovirt-users] Help debugging VM import error

2018-04-23 Thread Roy Golan
I suspect

List guids =
Guid.createGuidListFromString(snap.getMemoryVolume());

where guids is empty because there is not memory volume. which fails this

StorageDomain sd =
getStorageDomainDao().getForStoragePool(guids.get(0),
params.getStoragePoolId());



On Mon, 23 Apr 2018 at 22:01 Benny Zlotnik  wrote:

> Looks like a bug. Can you please file a report:
> https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine
>
> On Mon, Apr 23, 2018 at 9:38 PM, ~Stack~  wrote:
>
>> Greetings,
>>
>> After my rebuild, I have imported my VM's. Everything went smooth and
>> all of them came back, except one. One VM gives me the error "General
>> command validation failure." which isn't helping me when I search for
>> the problem.
>>
>> The oVirt engine logs aren't much better at pointing to what the failure
>> is (posted below).
>>
>> Can someone help me figure out why this VM isn't importing, please?
>>
>> Thanks!
>> ~Stack~
>>
>>
>> 2018-04-23 13:31:44,313-05 INFO
>> [org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
>> (default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Lock Acquired
>> to object 'EngineLock:{exclusiveLocks='[infra01=VM_NAME,
>> 0b64ced5-7e4b-48cd-9d0d-24e8b905758c=VM]',
>> sharedLocks='[0b64ced5-7e4b-48cd-9d0d-24e8b905758c=REMOTE_VM]'}'
>> 2018-04-23 13:31:44,349-05 ERROR
>> [org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
>> (default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Error during
>> ValidateFailure.: java.lang.NullPointerException
>> at
>>
>> org.ovirt.engine.core.bll.validator.ImportValidator.validateStorageExistsForMemoryDisks(ImportValidator.java:140)
>> [bll.jar:]
>> at
>>
>> org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand.isValidDisks(ImportVmFromConfigurationCommand.java:151)
>> [bll.jar:]
>> at
>>
>> org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand.validate(ImportVmFromConfigurationCommand.java:103)
>> [bll.jar:]
>> at
>>
>> org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:779)
>> [bll.jar:]
>> at
>> org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:368)
>> [bll.jar:]
>> at
>>
>> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.canRunActions(PrevalidatingMultipleActionsRunner.java:113)
>> [bll.jar:]
>> at
>>
>> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.invokeCommands(PrevalidatingMultipleActionsRunner.java:99)
>> [bll.jar:]
>> at
>>
>> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.execute(PrevalidatingMultipleActionsRunner.java:76)
>> [bll.jar:]
>> at
>> org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Backend.java:596)
>> [bll.jar:]
>> at
>> org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend.java:566)
>> [bll.jar:]
>> at sun.reflect.GeneratedMethodAccessor914.invoke(Unknown Source)
>> [:1.8.0_161]
>> at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> [rt.jar:1.8.0_161]
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> [rt.jar:1.8.0_161]
>> at
>>
>> org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
>> at
>>
>> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
>> at
>>
>> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
>> at
>>
>> org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:78)
>> at
>>
>> org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:88)
>> at
>>
>> org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)
>> at
>>
>> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
>> at
>>
>> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
>> at
>>
>> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
>> at
>>
>> org.ovirt.engine.core.bll.interceptors.CorrelationIdTrackerInterceptor.aroundInvoke(CorrelationIdTrackerInterceptor.java:13)
>> [bll.jar:]
>> at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
>> [:1.8.0_161]
>> at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> [rt.jar:1.8.0_161]
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> [rt.jar:1.8.0_161]
>> at
>>
>> org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)
>> at
>>
>> 

Re: [ovirt-users] FreeIPA authentication broken

2018-04-23 Thread Ondra Machacek

On 04/23/2018 04:30 PM, Kristian Petersen wrote:

Hey everyone,

I had FreeIPA authentication set up on my oVirt instance and it was 
working great.  Then something happened that disconnected my NFS storage 
and caused a problem with my hosted-engine.  Once I got it back up and 
running again, my FreeIPA authentication was sill a choice for 
authentication, but it always rejects my password even though it is 
correct.  I have tried running the setup again to no avail.  Nothing 
shows up in the httpd error log when the login fails.  The engine.log 
from ovirt-engine in /var/log shows the following upon attempting to 
authenticate with a user from freeIPA:


2018-04-23 08:08:24,384-06 WARN  
[org.ovirt.engineextensions.aaa.ldap.Framework] (default task-34) [] 
Ignoring records from pool: 'authz'
2018-04-23 08:08:24,384-06 ERROR 
[org.ovirt.engine.core.sso.servlets.InteractiveAuthServlet] (default 
task-34) [] Cannot authenticate user 'nesretep@IPA' connecting from 
'UNKNOWN': The username or password is incorrect.


Can you try to run this command:

 $ ovirt-engine-extensions-tool --log-level=FINEST 
--log-file=/tmp/aaa.log aaa login-user --user-name nesretep --profile IPA


and share /tmp/aaa.log?



I'm not sure why 'authz' is being ignored but it is certainly why IPA 
authentication isn't working as 'username@authz' is how IPA logins show 
up in oVirt when they do work.  Any ideas where to look next?

--
Kristian Petersen
System Administrator
BYU Dept. of Chemistry and Biochemistry


___
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] Help debugging VM import error

2018-04-23 Thread Benny Zlotnik
Looks like a bug. Can you please file a report:
https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine

On Mon, Apr 23, 2018 at 9:38 PM, ~Stack~  wrote:

> Greetings,
>
> After my rebuild, I have imported my VM's. Everything went smooth and
> all of them came back, except one. One VM gives me the error "General
> command validation failure." which isn't helping me when I search for
> the problem.
>
> The oVirt engine logs aren't much better at pointing to what the failure
> is (posted below).
>
> Can someone help me figure out why this VM isn't importing, please?
>
> Thanks!
> ~Stack~
>
>
> 2018-04-23 13:31:44,313-05 INFO
> [org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
> (default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Lock Acquired
> to object 'EngineLock:{exclusiveLocks='[infra01=VM_NAME,
> 0b64ced5-7e4b-48cd-9d0d-24e8b905758c=VM]',
> sharedLocks='[0b64ced5-7e4b-48cd-9d0d-24e8b905758c=REMOTE_VM]'}'
> 2018-04-23 13:31:44,349-05 ERROR
> [org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
> (default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Error during
> ValidateFailure.: java.lang.NullPointerException
> at
> org.ovirt.engine.core.bll.validator.ImportValidator.
> validateStorageExistsForMemoryDisks(ImportValidator.java:140)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationComma
> nd.isValidDisks(ImportVmFromConfigurationCommand.java:151)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationComma
> nd.validate(ImportVmFromConfigurationCommand.java:103)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.CommandBase.internalValidate(
> CommandBase.java:779)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:368)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRu
> nner.canRunActions(PrevalidatingMultipleActionsRunner.java:113)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRu
> nner.invokeCommands(PrevalidatingMultipleActionsRunner.java:99)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.execute(
> PrevalidatingMultipleActionsRunner.java:76)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Backend.java:596)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend.java:566)
> [bll.jar:]
> at sun.reflect.GeneratedMethodAccessor914.invoke(Unknown Source)
> [:1.8.0_161]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> [rt.jar:1.8.0_161]
> at java.lang.reflect.Method.invoke(Method.java:498)
> [rt.jar:1.8.0_161]
> at
> org.jboss.as.ee.component.ManagedReferenceMethodIntercep
> tor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
> at
> org.jboss.invocation.InterceptorContext.proceed(
> InterceptorContext.java:422)
> at
> org.jboss.invocation.InterceptorContext$Invocation.
> proceed(InterceptorContext.java:509)
> at
> org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.
> delegateInterception(Jsr299BindingsInterceptor.java:78)
> at
> org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.
> doMethodInterception(Jsr299BindingsInterceptor.java:88)
> at
> org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.
> processInvocation(Jsr299BindingsInterceptor.java:101)
> at
> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.
> processInvocation(UserInterceptorFactory.java:63)
> at
> org.jboss.invocation.InterceptorContext.proceed(
> InterceptorContext.java:422)
> at
> org.jboss.invocation.InterceptorContext$Invocation.
> proceed(InterceptorContext.java:509)
> at
> org.ovirt.engine.core.bll.interceptors.CorrelationIdTrackerIntercepto
> r.aroundInvoke(CorrelationIdTrackerInterceptor.java:13)
> [bll.jar:]
> at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
> [:1.8.0_161]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> [rt.jar:1.8.0_161]
> at java.lang.reflect.Method.invoke(Method.java:498)
> [rt.jar:1.8.0_161]
> at
> org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.
> processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)
> at
> org.jboss.invocation.InterceptorContext.proceed(
> InterceptorContext.java:422)
> at
> org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.
> processInvocation(ExecutionTimeInterceptor.java:43)
> [wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(
> InterceptorContext.java:422)
> at
> org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(
> 

Re: [ovirt-users] Help debugging VM import error

2018-04-23 Thread Roy Golan
Please open a bug including the logs.
https://www.ovirt.org/community/get-involved/report-a-bug/

Also what is the exact version you are using?



On Mon, 23 Apr 2018 at 21:48 ~Stack~  wrote:

> Greetings,
>
> After my rebuild, I have imported my VM's. Everything went smooth and
> all of them came back, except one. One VM gives me the error "General
> command validation failure." which isn't helping me when I search for
> the problem.
>
> The oVirt engine logs aren't much better at pointing to what the failure
> is (posted below).
>
> Can someone help me figure out why this VM isn't importing, please?
>
> Thanks!
> ~Stack~
>
>
> 2018-04-23 13:31:44,313-05 INFO
> [org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
> (default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Lock Acquired
> to object 'EngineLock:{exclusiveLocks='[infra01=VM_NAME,
> 0b64ced5-7e4b-48cd-9d0d-24e8b905758c=VM]',
> sharedLocks='[0b64ced5-7e4b-48cd-9d0d-24e8b905758c=REMOTE_VM]'}'
> 2018-04-23 13:31:44,349-05 ERROR
> [org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
> (default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Error during
> ValidateFailure.: java.lang.NullPointerException
> at
>
> org.ovirt.engine.core.bll.validator.ImportValidator.validateStorageExistsForMemoryDisks(ImportValidator.java:140)
> [bll.jar:]
> at
>
> org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand.isValidDisks(ImportVmFromConfigurationCommand.java:151)
> [bll.jar:]
> at
>
> org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand.validate(ImportVmFromConfigurationCommand.java:103)
> [bll.jar:]
> at
>
> org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:779)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:368)
> [bll.jar:]
> at
>
> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.canRunActions(PrevalidatingMultipleActionsRunner.java:113)
> [bll.jar:]
> at
>
> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.invokeCommands(PrevalidatingMultipleActionsRunner.java:99)
> [bll.jar:]
> at
>
> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.execute(PrevalidatingMultipleActionsRunner.java:76)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Backend.java:596)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend.java:566)
> [bll.jar:]
> at sun.reflect.GeneratedMethodAccessor914.invoke(Unknown Source)
> [:1.8.0_161]
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [rt.jar:1.8.0_161]
> at java.lang.reflect.Method.invoke(Method.java:498)
> [rt.jar:1.8.0_161]
> at
>
> org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
> at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at
>
> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at
>
> org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:78)
> at
>
> org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:88)
> at
>
> org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)
> at
>
> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
> at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at
>
> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at
>
> org.ovirt.engine.core.bll.interceptors.CorrelationIdTrackerInterceptor.aroundInvoke(CorrelationIdTrackerInterceptor.java:13)
> [bll.jar:]
> at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
> [:1.8.0_161]
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [rt.jar:1.8.0_161]
> at java.lang.reflect.Method.invoke(Method.java:498)
> [rt.jar:1.8.0_161]
> at
>
> org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)
> at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at
>
> org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
> [wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
> at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at
>
> 

[ovirt-users] Help debugging VM import error

2018-04-23 Thread ~Stack~
Greetings,

After my rebuild, I have imported my VM's. Everything went smooth and
all of them came back, except one. One VM gives me the error "General
command validation failure." which isn't helping me when I search for
the problem.

The oVirt engine logs aren't much better at pointing to what the failure
is (posted below).

Can someone help me figure out why this VM isn't importing, please?

Thanks!
~Stack~


2018-04-23 13:31:44,313-05 INFO
[org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
(default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Lock Acquired
to object 'EngineLock:{exclusiveLocks='[infra01=VM_NAME,
0b64ced5-7e4b-48cd-9d0d-24e8b905758c=VM]',
sharedLocks='[0b64ced5-7e4b-48cd-9d0d-24e8b905758c=REMOTE_VM]'}'
2018-04-23 13:31:44,349-05 ERROR
[org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
(default task-72) [6793fe73-7cda-4cb5-a806-7104a05c3c1b] Error during
ValidateFailure.: java.lang.NullPointerException
at
org.ovirt.engine.core.bll.validator.ImportValidator.validateStorageExistsForMemoryDisks(ImportValidator.java:140)
[bll.jar:]
at
org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand.isValidDisks(ImportVmFromConfigurationCommand.java:151)
[bll.jar:]
at
org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand.validate(ImportVmFromConfigurationCommand.java:103)
[bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:779)
[bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:368)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.canRunActions(PrevalidatingMultipleActionsRunner.java:113)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.invokeCommands(PrevalidatingMultipleActionsRunner.java:99)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.execute(PrevalidatingMultipleActionsRunner.java:76)
[bll.jar:]
at
org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Backend.java:596)
[bll.jar:]
at
org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend.java:566)
[bll.jar:]
at sun.reflect.GeneratedMethodAccessor914.invoke(Unknown Source)
[:1.8.0_161]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_161]
at
org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
at
org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:78)
at
org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:88)
at
org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)
at
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
at
org.ovirt.engine.core.bll.interceptors.CorrelationIdTrackerInterceptor.aroundInvoke(CorrelationIdTrackerInterceptor.java:13)
[bll.jar:]
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
[:1.8.0_161]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_161]
at
org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at
org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
[wildfly-ejb3-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at
org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
[wildfly-ee-11.0.0.Final.jar:11.0.0.Final]
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at
org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
at

[ovirt-users] Emergency shutdown script

2018-04-23 Thread Simon Vincent
Does anyone have a way of shutting down oVirt automatically in the case of
a power outage?

Ideally I would like a script that can be automatically run when the UPS
reaches a certain level. I had a look at the python SDK but I could only
find functions for shutting down VMs and not hosts. Also I suspect this
wont let me shutdown the hosted engine VM.

Any ideas?

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


Re: [ovirt-users] Decrease downtime for HA

2018-04-23 Thread Michal Skrivanek


> On 23 Apr 2018, at 10:52, Daniel Menzel  
> wrote:
> 
> Hi Michal,
> 
> in your last mail you wrote, that the values can be turned down - how can 
> this be done?
> 
> 

this is not anything we change very often as it then decreases the system’s 
tolerance to short network glitches
You’d have to take a look at vdc_options and play with some of those 
parameters…Martin/Eli may have some suggestions, otherwise you’d have to read 
the source code and experiment
> Best
> Daniel
> 
> On 12.04.2018 20:29, Michal Skrivanek wrote:
>> 
>> 
>>> On 12 Apr 2018, at 13:13, Daniel Menzel >> > wrote:
>>> 
>>> Hi there,
>>> 
>>> does anyone have an idea how to decrease a virtual machine's downtime?
>>> 
>>> Best
>>> Daniel
>>> 
>>> On 06.04.2018 13:34, Daniel Menzel wrote:
 Hi Michal,
 
 
>> 
>> Hi Daniel,
>> adding Martin to review fencing behavior
 (sorry for misspelling your name in my first mail).
 
 
>> 
>> that’s not the reason I’m replying late!:-))
>> 
 The settings for the VMs are the following (oVirt 4.2):
 
 HA checkbox enabled of course
 "Target Storage Domain for VM Lease" -> left empty
>> 
>> if you need faster reactions then try to use VM Leases as well, it won’t 
>> make a difference in this case but will help in case of network issues. E.g. 
>> if you use iSCSI and the storage connection breaks while host connection 
>> still works it would restart the VM in about 80s; otherwise it would take >5 
>> mins. 
 "Resume Behavior" -> AUTO_RESUME
 Priority for Migration -> High
 "Watchdog Model" -> No-Watchdog
 For testing we did not kill any VM but the host. So basically we simulated 
 an instantaneous crash by manually turning the machine off via 
 IPMI-Interface (not via operating system!) and ping the guest(s). What 
 happens then?
 
 2-3 seconds after the we press the host's shutdown button we lose ping 
 contact to the VM(s).
 After another 20s oVirt changes the host's status to "connecting", the 
 VM's status is set to a question mark.
 After ~1:30 the host is flagged to "non responsive”
>> 
>> that sounds about right. Now fencing action should have been initiated, if 
>> you can share the engine logs we can confirm that. IIRC we first try soft 
>> fencing - try to ssh to that host, that might take some time to time out I 
>> guess. Martin?
 
 After ~2:10 the host's reboot is initiated by oVirt, 5-10s later the guest 
 is back online.
 So, there seems to be one mistake I made in the first mail: The downtime 
 is "only" 2.5min. But still I think this time can be decreased as for some 
 services it is still quite a long time.
 
 
>> 
>> these values can be tuned down, but then you may be more susceptible to 
>> fencing power cycling a host in case of shorter network outages. It may be 
>> ok…depending on your requirements.
 Best
 Daniel
 
 On 06.04.2018 12:49, Michal Skrivanek wrote:
>> On 6 Apr 2018, at 12:45, Daniel Menzel  
>>  wrote:
>> 
>> Hi Michael,
>> thanks for your mail. Sorry, I forgot to write that. Yes, we have power 
>> management and fencing enabled on all hosts. We also tested this and 
>> found out that it works perfectly. So this cannot be the reason I guess.
> Hi Daniel,
> ok, then it’s worth looking into details. Can you describe in more detail 
> what happens? What exact settings you’re using for such VM? Are you 
> killing the HE VM or other VMs or both? Would be good to narrow it down a 
> bit and then review the exact flow
> 
> Thanks,
> michal
> 
>> Daniel
>> 
>> 
>> 
>> On 06.04.2018 11:11, Michal Skrivanek wrote:
 On 4 Apr 2018, at 15:36, Daniel Menzel 
  
  wrote:
 
 Hello,
 
 we're successfully using a setup with 4 Nodes and a replicated Gluster 
 for storage. The engine is self hosted. What we're dealing with at the 
 moment is the high availability: If a node fails (for example 
 simulated by a forced power loss) the engine comes back up online 
 withing ~2min. But guests (having the HA option enabled) come back 
 online only after a very long grace time of ~5min. As we have a 
 reliable network (40 GbE) and reliable servers I think that the 
 default grace times are way too high for us - is there any possibility 
 to change those values?
>>> And do you have Power Management(iLO, iDRAC,etc) configured for your 
>>> hosts? Otherwise we have to resort to relatively long timeouts to make 
>>> sure the host is really dead
>>> Thanks,
>>> michal
 Thanks in 

Re: [ovirt-users] oVirt Image I/O

2018-04-23 Thread Michal Skrivanek


> On 23 Apr 2018, at 16:25, Николаев Алексей  
> wrote:
> 
> Hi community!
>  
> Is it possible to Upload ISO or disk image from URL as specified 
> https://ovirt.org/develop/release-management/features/storage/image-upload/? 
> 
yes, it is

Thanks,
michal

>  
> ___
> 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] Hosted Engine won't start, how to debug?

2018-04-23 Thread Martin Sivak
Hi,

the VM configuration is stored in the engine database and we generate
the vm.conf using the data the engine exports. So you are right, we
overwrite the file.

You might be able to simply edit the VM in the webadmin and enable the
VNC (or Spice) console there. I am not entirely sure if we allow that
atm, but we might.

If that is not allowed, then you will have to edit the DB. The best
way would be to change the vm_static table's origin (should be 6 -
managed hosted engine) field to 3 - ovirt. The webadmin will then
allow you to edit the VM fully. Then change the origin back to 6. All
that for a VM with vm_name = "HostedEngine".

So the fallback procedure for a default install of webadmin (the
database name = engine):

- put hosted engine into global maintenance
- ssh into the engine VM
- sudo -i -u postgres
- psql engine -c "UPDATE vm_static SET origin=3 WHERE vm_name='HostedEngine'"
- edit the VM in webadmin (it should lose its crown status after a
while) and add VNC
- psql engine -c "UPDATE vm_static SET origin=6 WHERE vm_name='HostedEngine'"
- remove global maintenance

All usual disclaimers apply. I recommend backup if it is a production
environment and I can only propose this because I used it repeatedly
during development tests. But production use is on your own risk.

Best regards

Martin Sivak

On Mon, Apr 23, 2018 at 3:45 PM, Thomas Klute  wrote:
> Dear Martin,
>
> a follow up question regarding this case:
> we managed to get the hosted engine up and running again, but we'd like
> to permanently add the missing graphics device to the vm.conf (instead
> of starting with the vm-custom.conf in case of trouble).
> How do I add this line to the vm.conf config file (it seems to be
> overwritten after a few seconds - I suppose it's copied from somewhere?)
>
> Thanks,
> Thomas
>
>> Hi,
>>
>> the vnc device is there by default (I copied it out of my own hosted
>> engine instance), I do not know why it was missing in your case.
>>
>> Best regards
>>
>> Martin Sivak
>>
>> On Fri, Apr 13, 2018 at 5:13 PM, Thomas Klute  wrote:
>>> Dear Martin,
>>>
>>> yes, that worked. Thank you so much!!
>>> We were able to see that the latest kernel update failed and did not
>>> create the initramfs file and thus the boot process failed with a kernel
>>> panic.
>>>
>>> Debugging this problem took us many hours... It felt so complicated to
>>> connect a vnc to this vm - compared to a bare metal setup with display
>>> and keyboard.
>>> Wouldn't it be a good idea to have the vnc device in the config by default?
>>>
>>> Best regards,
>>>  Thomas
>>>
 You need to be in global maintenance, but I think you already know that.
 Then try updating the vm.conf like you already did and add this line:

 devices={device:vnc,type:graphics,deviceId:f1d0394e-b077-4ea6-99e5-b9b6b8fe073c,address:None}

 Then restart the VM using hosted-engine commands and try the VNC approach 
 again.

 Best regards

 Martin Sivak

 On Fri, Apr 13, 2018 at 2:35 PM, Thomas Klute  wrote:
> Dear Martin,
>
> thanks for the feedback.
> We already read this and tried it.
> It seems to me that the graphics device was removed from the hosted
> engine by some ovirt release.
>
> If I try to set a console password I see this message:
>
> hosted-engine --add-console-password
> Enter password:
> no graphics devices configured
>
> Furthermore, there is nothing listening on port 5900 after that.
> The HostedEngine qemu process shows a " -display none " as parameter and
> I have no idea where this can be changed.
>
> I already created a /var/run/ovirt-hosted-engine-ha/vm-custom.conf
> containing:
> display=vnc
> kvmEnable=true
>
> But nothing changed.
> I also edited the HostedEngine VM config using virsh and added a vnc
> display:
> /usr/bin/virsh -c
> qemu:///system?authfile=/etc/ovirt-hosted-engine/virsh_auth.conf edit
> HostedEngine
>
> 
>   
> 
> 
>    heads='1' primary='yes'/>
>    function='0x0'/>
> 
>
> But there is still "display none" passed as command line parameter to
> qemu and thus, I suppose, there's no display.
>
> Any help is appreciated, thanks,
> Thomas
>
>
>> Hi,
>>
>> the serial console will show output if the kernel knows to use it.
>>
>> The VNC approach is also possible and I believe we already have a
>> graphical device present. What you are looking for is probably this
>> (VNC method is described there):
>> https://www.ovirt.org/documentation/how-to/hosted-engine/#handle-engine-vm-boot-problems
>>
>> Best regards
>>
>> --
>> Martin Sivak
>> SLA / oVirt
>>
>> On Fri, Apr 13, 2018 at 11:26 AM, Thomas Klute  wrote:
>>> Dear oVirt Team,
>>>

[ovirt-users] FreeIPA authentication broken

2018-04-23 Thread Kristian Petersen
Hey everyone,

I had FreeIPA authentication set up on my oVirt instance and it was working
great.  Then something happened that disconnected my NFS storage and caused
a problem with my hosted-engine.  Once I got it back up and running again,
my FreeIPA authentication was sill a choice for authentication, but it
always rejects my password even though it is correct.  I have tried running
the setup again to no avail.  Nothing shows up in the httpd error log when
the login fails.  The engine.log from ovirt-engine in /var/log shows the
following upon attempting to authenticate with a user from freeIPA:

2018-04-23 08:08:24,384-06 WARN
[org.ovirt.engineextensions.aaa.ldap.Framework] (default task-34) []
Ignoring records from pool: 'authz'
2018-04-23 08:08:24,384-06 ERROR
[org.ovirt.engine.core.sso.servlets.InteractiveAuthServlet] (default
task-34) [] Cannot authenticate user 'nesretep@IPA' connecting from
'UNKNOWN': The username or password is incorrect.

I'm not sure why 'authz' is being ignored but it is certainly why IPA
authentication isn't working as 'username@authz' is how IPA logins show up
in oVirt when they do work.  Any ideas where to look next?
-- 
Kristian Petersen
System Administrator
BYU Dept. of Chemistry and Biochemistry
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] oVirt Image I/O

2018-04-23 Thread Николаев Алексей
Hi community! Is it possible to Upload ISO or disk image from URL as specified https://ovirt.org/develop/release-management/features/storage/image-upload/? 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted Engine won't start, how to debug?

2018-04-23 Thread Thomas Klute
Dear Martin,

a follow up question regarding this case:
we managed to get the hosted engine up and running again, but we'd like
to permanently add the missing graphics device to the vm.conf (instead
of starting with the vm-custom.conf in case of trouble).
How do I add this line to the vm.conf config file (it seems to be
overwritten after a few seconds - I suppose it's copied from somewhere?)

Thanks,
Thomas

> Hi,
>
> the vnc device is there by default (I copied it out of my own hosted
> engine instance), I do not know why it was missing in your case.
>
> Best regards
>
> Martin Sivak
>
> On Fri, Apr 13, 2018 at 5:13 PM, Thomas Klute  wrote:
>> Dear Martin,
>>
>> yes, that worked. Thank you so much!!
>> We were able to see that the latest kernel update failed and did not
>> create the initramfs file and thus the boot process failed with a kernel
>> panic.
>>
>> Debugging this problem took us many hours... It felt so complicated to
>> connect a vnc to this vm - compared to a bare metal setup with display
>> and keyboard.
>> Wouldn't it be a good idea to have the vnc device in the config by default?
>>
>> Best regards,
>>  Thomas
>>
>>> You need to be in global maintenance, but I think you already know that.
>>> Then try updating the vm.conf like you already did and add this line:
>>>
>>> devices={device:vnc,type:graphics,deviceId:f1d0394e-b077-4ea6-99e5-b9b6b8fe073c,address:None}
>>>
>>> Then restart the VM using hosted-engine commands and try the VNC approach 
>>> again.
>>>
>>> Best regards
>>>
>>> Martin Sivak
>>>
>>> On Fri, Apr 13, 2018 at 2:35 PM, Thomas Klute  wrote:
 Dear Martin,

 thanks for the feedback.
 We already read this and tried it.
 It seems to me that the graphics device was removed from the hosted
 engine by some ovirt release.

 If I try to set a console password I see this message:

 hosted-engine --add-console-password
 Enter password:
 no graphics devices configured

 Furthermore, there is nothing listening on port 5900 after that.
 The HostedEngine qemu process shows a " -display none " as parameter and
 I have no idea where this can be changed.

 I already created a /var/run/ovirt-hosted-engine-ha/vm-custom.conf
 containing:
 display=vnc
 kvmEnable=true

 But nothing changed.
 I also edited the HostedEngine VM config using virsh and added a vnc
 display:
 /usr/bin/virsh -c
 qemu:///system?authfile=/etc/ovirt-hosted-engine/virsh_auth.conf edit
 HostedEngine

 
   
 
 
   >>> heads='1' primary='yes'/>
   >>> function='0x0'/>
 

 But there is still "display none" passed as command line parameter to
 qemu and thus, I suppose, there's no display.

 Any help is appreciated, thanks,
 Thomas


> Hi,
>
> the serial console will show output if the kernel knows to use it.
>
> The VNC approach is also possible and I believe we already have a
> graphical device present. What you are looking for is probably this
> (VNC method is described there):
> https://www.ovirt.org/documentation/how-to/hosted-engine/#handle-engine-vm-boot-problems
>
> Best regards
>
> --
> Martin Sivak
> SLA / oVirt
>
> On Fri, Apr 13, 2018 at 11:26 AM, Thomas Klute  wrote:
>> Dear oVirt Team,
>>
>> after trying to reboot a hosted engine setup on oVirt 4.2 the VM won't
>> come up anymore.
>> The qemu-kvm process is there but we're unable to access the VM using
>> - the serial console (simply does not show anything, does not react to
>> characters typed)
>> - VNC / Spice because the hosted engine vm.conf does not contain any
>> graphics device.
>>
>> Before trying to reinstall, we'd like to recover and debug what is going 
>> on.
>> We mounted a Centos7 install .iso and started the VM using
>> hosted-engine --vm-start
>> --vm-conf=/var/run/ovirt-hosted-engine-ha/vm-custom.conf
>> But we still have to problem, that the serial console does not show
>> anything and there is no way to connect using VNC.
>>
>> So, what is the recommended way to move forward in such situation?
>> IMHO the classical way would be to add a graphics device and connect via
>> VNC?
>> I did not use the serial console much, up to now. Should the serial
>> console show any output during boot?
>>
>> Thanks for your help,
>>  Thomas
>>
>> --
>> 
>>
>>  Dipl.-Inform. Thomas Klute   kl...@ingenit.com
>>  Geschäftsführer / CEO
>>  --
>>  ingenit GmbH & Co. KG   Tel. +49 (0)231 58 698-120
>>  Emil-Figge-Strasse 76-80

Re: [ovirt-users] Duplicate host_id after deployment via GUI, how is the hosted engine host_id selected?

2018-04-23 Thread Thomas Klute
Hi Martin,

I fully understand.
The only reason is that it's not only me administering this oVirt setup,
it's a setup for a client that has 2 local administrators.
We are trying to eliminate any configuration that might cause confusion.
When doing a

hosted-engine --vm-status

a list like this is shown:

--== Host 1 status ==--
...
Hostname   : ovirt1.munk.de
Host ID    : 1
...

--== Host 2 status ==--
...
Hostname   : ovirt3.munk.de
Host ID    : 2
...

and so on.
This "Host 2" -> ovirt3 will sooner or later cause confusion and will
lead to administrative actions applied to the wrong hosts.

I'll give it a try and try to align the hosts and ids. I'll backup the
old values in order to be able to roll back the changes if it does not work.

Thanks for your help!!
Best regards,
 Thomas



> Hi Thomas,
>
> is there a real need to have them aligned? Both SPM ID and Hosted
> engine ids are quite hidden and accompanied by hostname where visible.
>
> I understand the urge to have everything neatly organized, but playing
> with hosted engine IDs and SPM IDs will bring you nothing but trouble.
>
> Theoretically you could put all hosts to maintenance, hosted engine to
> global maintenance, stop the engine service and update the DB and
> hosted engine config files. Changing anything when active is a big
> NO-NO. And I can't promise stability even if you stop everything
> first.
>
> The short version: Please change hosted engine ID to match SPM ID
> (/etc/ovirt-hosted-engine/hosted-engine.conf) and ignore the hostname
> vs ID mismatch. All other options might cost you..
>
> Best regards
>
> --
> Martin Sivak
> SLA / oVirt
>
> On Mon, Apr 23, 2018 at 2:26 PM, Thomas Klute  wrote:
>> Dear Simone,
>>
>> thanks for the help, I already have noticed, that there is a mismatch
>> between SPM IDs and the hosts.
>> From my knowledge this may be our fault.
>>
>>  vds_name | vds_spm_id
>>  oVirt4   |  3
>>  oVirt2   |  4
>>  oVirt6   |  6
>>  oVirt5   |  5
>>  oVirt1   |  1
>>  oVirt3   |  2
>>
>> oVirt3 was re-installed using the node ng image - and was assigned id 2 that
>> was available at that time (taken into account this database query).
>> It was not available in fact because of the host ovirt2 having the host_id=2
>> entry in the configuration on the host and the sanlock having locked the
>> appropriate space.
>>
>> I can't remember where this mismatch came from but I assume that some time
>> ago someone maybe manually changed the entry on oVirt2 host in order to
>> match with the hostname (oVirtX -> Host id X).
>> Thus I think it is not a bug at the moment.
>>
>> But that leads me to the next question:
>>
>> Is there a manual way to align numbers in the hostnames with the SPM IDs?
>> (oVirt4 should be spm id 4)
>>
>> Does this work? Update the database, change the entry in hosted-engine.conf
>> and then reboot the node?
>>
>> Thanks & best regards,
>> Thomas
>>
>>
>>
>>
>> On Mon, Apr 23, 2018 at 1:04 PM, Martin Sivak  wrote:
>>> Hello,
>>>
>>> the ID should be coming from the SPM ID of the host as assigned by the
>>> engine and duplicates should not be happening indeed.
>>>
>>> Can you please tell us what version of engine you have and how was
>>> first hosted engine node deployed? We recently changed the default
>>> deployment method (4.2.2 in fact) and we would like to know whether
>>> this might be related to that change or not.
>>>
>>> Simone, do you know how to debug this? Are there logs we could use to
>>> check the behavior? The host-deploy logs maybe?
>>
>> Thomas,
>> can you please share the output of
>>   sudo -u postgres scl enable rh-postgresql95 -- psql -d engine -c "select
>> vds_id, vds_name, vds_spm_id from vds"
>> executed on the engine VM
>>
>> and the content of /var/log/ovirt-engine/host-deploy (still from the engine
>> VM)?
>>
>>>
>>> Best regards
>>>
>>> --
>>> Martin Sivak
>>> SLA / oVirt
>>>
>>> On Mon, Apr 23, 2018 at 12:54 PM, Thomas Klute  wrote:
 Dear oVirt Users,

 we installed a third ovirt node using the ovirt node ng image (4.2.2),
 and
 added that node using the web interface of the hosted engine:

 Compute->Hosts->New - including the Hosted engine option "Choose hosted
 engine deployment action" set to "Deploy"

 After that we found out, that on the new node the host_id entry was
 causing
 problems. In

 /etc/ovirt-hosted-engine/hosted-engine.conf

 we found the entry

 ...
 host_id=2
 ...

 But that host id already exists and was alive during deployment process.
 So my questions are:

 How is the host id chosen (when adding a new host via GUI)?
 Is there an option to preselect the host id in the GUI for a new node?
 How can we prevent further duplicate host ids?

 Thanks and 

Re: [ovirt-users] Duplicate host_id after deployment via GUI, how is the hosted engine host_id selected?

2018-04-23 Thread Martin Sivak
Hi Thomas,

is there a real need to have them aligned? Both SPM ID and Hosted
engine ids are quite hidden and accompanied by hostname where visible.

I understand the urge to have everything neatly organized, but playing
with hosted engine IDs and SPM IDs will bring you nothing but trouble.

Theoretically you could put all hosts to maintenance, hosted engine to
global maintenance, stop the engine service and update the DB and
hosted engine config files. Changing anything when active is a big
NO-NO. And I can't promise stability even if you stop everything
first.

The short version: Please change hosted engine ID to match SPM ID
(/etc/ovirt-hosted-engine/hosted-engine.conf) and ignore the hostname
vs ID mismatch. All other options might cost you..

Best regards

--
Martin Sivak
SLA / oVirt

On Mon, Apr 23, 2018 at 2:26 PM, Thomas Klute  wrote:
> Dear Simone,
>
> thanks for the help, I already have noticed, that there is a mismatch
> between SPM IDs and the hosts.
> From my knowledge this may be our fault.
>
>  vds_name | vds_spm_id
>  oVirt4   |  3
>  oVirt2   |  4
>  oVirt6   |  6
>  oVirt5   |  5
>  oVirt1   |  1
>  oVirt3   |  2
>
> oVirt3 was re-installed using the node ng image - and was assigned id 2 that
> was available at that time (taken into account this database query).
> It was not available in fact because of the host ovirt2 having the host_id=2
> entry in the configuration on the host and the sanlock having locked the
> appropriate space.
>
> I can't remember where this mismatch came from but I assume that some time
> ago someone maybe manually changed the entry on oVirt2 host in order to
> match with the hostname (oVirtX -> Host id X).
> Thus I think it is not a bug at the moment.
>
> But that leads me to the next question:
>
> Is there a manual way to align numbers in the hostnames with the SPM IDs?
> (oVirt4 should be spm id 4)
>
> Does this work? Update the database, change the entry in hosted-engine.conf
> and then reboot the node?
>
> Thanks & best regards,
> Thomas
>
>
>
>
> On Mon, Apr 23, 2018 at 1:04 PM, Martin Sivak  wrote:
>>
>> Hello,
>>
>> the ID should be coming from the SPM ID of the host as assigned by the
>> engine and duplicates should not be happening indeed.
>>
>> Can you please tell us what version of engine you have and how was
>> first hosted engine node deployed? We recently changed the default
>> deployment method (4.2.2 in fact) and we would like to know whether
>> this might be related to that change or not.
>>
>> Simone, do you know how to debug this? Are there logs we could use to
>> check the behavior? The host-deploy logs maybe?
>
>
> Thomas,
> can you please share the output of
>   sudo -u postgres scl enable rh-postgresql95 -- psql -d engine -c "select
> vds_id, vds_name, vds_spm_id from vds"
> executed on the engine VM
>
> and the content of /var/log/ovirt-engine/host-deploy (still from the engine
> VM)?
>
>>
>>
>> Best regards
>>
>> --
>> Martin Sivak
>> SLA / oVirt
>>
>> On Mon, Apr 23, 2018 at 12:54 PM, Thomas Klute  wrote:
>> > Dear oVirt Users,
>> >
>> > we installed a third ovirt node using the ovirt node ng image (4.2.2),
>> > and
>> > added that node using the web interface of the hosted engine:
>> >
>> > Compute->Hosts->New - including the Hosted engine option "Choose hosted
>> > engine deployment action" set to "Deploy"
>> >
>> > After that we found out, that on the new node the host_id entry was
>> > causing
>> > problems. In
>> >
>> > /etc/ovirt-hosted-engine/hosted-engine.conf
>> >
>> > we found the entry
>> >
>> > ...
>> > host_id=2
>> > ...
>> >
>> > But that host id already exists and was alive during deployment process.
>> > So my questions are:
>> >
>> > How is the host id chosen (when adding a new host via GUI)?
>> > Is there an option to preselect the host id in the GUI for a new node?
>> > How can we prevent further duplicate host ids?
>> >
>> > Thanks and best regards,
>> > Thomas
>> >
>> >
>> > --
>> > 
>> >
>> >  Dipl.-Inform. Thomas Klute   kl...@ingenit.com
>> >  Geschäftsführer / CEO
>> >  --
>> >  ingenit GmbH & Co. KG   Tel. +49 (0)231 58 698-120
>> >  Emil-Figge-Strasse 76-80Fax. +49 (0)231 58 698-121
>> >  D-44227 Dortmund   www.ingenit.com
>> >
>> >  Registergericht: Amtsgericht Dortmund, HRA 13 914
>> >  Gesellschafter : Thomas Klute, Marc-Christian Schröer
>> > 
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@ovirt.org
>> > http://lists.ovirt.org/mailman/listinfo/users
>> >
>
>
>
> Sollten noch Fragen offen sein, stehen wir Ihnen natürlich jederzeit
> gerne zur 

Re: [ovirt-users] Duplicate host_id after deployment via GUI, how is the hosted engine host_id selected?

2018-04-23 Thread Thomas Klute
Dear Simone,

thanks for the help, I already have noticed, that there is a mismatch
between SPM IDs and the hosts.
>From my knowledge this may be our fault.

 vds_name | vds_spm_id
 oVirt4   |  3
 oVirt2   |  4
 oVirt6   |  6
 oVirt5   |  5
 oVirt1   |  1
 oVirt3   |  2

oVirt3 was re-installed using the node ng image - and was assigned id 2
that was available at that time (taken into account this database query).
It was not available in fact because of the host ovirt2 having the
host_id=2 entry in the configuration on the host and the sanlock having
locked the appropriate space.

I can't remember where this mismatch came from but I assume that some
time ago someone maybe manually changed the entry on oVirt2 host in
order to match with the hostname (oVirtX -> Host id X).
Thus I think it is not a bug at the moment.

But that leads me to the next question:

Is there a manual way to align numbers in the hostnames with the SPM
IDs? (oVirt4 should be spm id 4)

Does this work? Update the database, change the entry in
hosted-engine.conf and then reboot the node?

Thanks & best regards,
Thomas


>
>
> On Mon, Apr 23, 2018 at 1:04 PM, Martin Sivak  > wrote:
>
> Hello,
>
> the ID should be coming from the SPM ID of the host as assigned by the
> engine and duplicates should not be happening indeed.
>
> Can you please tell us what version of engine you have and how was
> first hosted engine node deployed? We recently changed the default
> deployment method (4.2.2 in fact) and we would like to know whether
> this might be related to that change or not.
>
> Simone, do you know how to debug this? Are there logs we could use to
> check the behavior? The host-deploy logs maybe?
>
>
> Thomas,
> can you please share the output of 
>   sudo -u postgres scl enable rh-postgresql95 -- psql -d engine -c
> "select vds_id, vds_name, vds_spm_id from vds"
> executed on the engine VM
>
> and the content of /var/log/ovirt-engine/host-deploy (still from the
> engine VM)?
>  
>
>
> Best regards
>
> --
> Martin Sivak
> SLA / oVirt
>
> On Mon, Apr 23, 2018 at 12:54 PM, Thomas Klute  > wrote:
> > Dear oVirt Users,
> >
> > we installed a third ovirt node using the ovirt node ng image
> (4.2.2), and
> > added that node using the web interface of the hosted engine:
> >
> > Compute->Hosts->New - including the Hosted engine option "Choose
> hosted
> > engine deployment action" set to "Deploy"
> >
> > After that we found out, that on the new node the host_id entry
> was causing
> > problems. In
> >
> > /etc/ovirt-hosted-engine/hosted-engine.conf
> >
> > we found the entry
> >
> > ...
> > host_id=2
> > ...
> >
> > But that host id already exists and was alive during deployment
> process.
> > So my questions are:
> >
> > How is the host id chosen (when adding a new host via GUI)?
> > Is there an option to preselect the host id in the GUI for a new
> node?
> > How can we prevent further duplicate host ids?
> >
> > Thanks and best regards,
> > Thomas
> >
> >
> > --
> >
> 
> >
> >  Dipl.-Inform. Thomas Klute                         
>  kl...@ingenit.com 
> >  Geschäftsführer / CEO
> > 
> --
> >  ingenit GmbH & Co. KG                       Tel. +49 (0)231 58
> 698-120
> >  Emil-Figge-Strasse 76-80                    Fax. +49 (0)231 58
> 698-121
> >  D-44227 Dortmund                                     
>  www.ingenit.com 
> >
> >  Registergericht: Amtsgericht Dortmund, HRA 13 914
> >  Gesellschafter : Thomas Klute, Marc-Christian Schröer
> >
> 
> >
> >
> > ___
> > Users mailing list
> > Users@ovirt.org 
> > http://lists.ovirt.org/mailman/listinfo/users
> 
> >
>
>

Sollten noch Fragen offen sein, stehen wir Ihnen natürlich jederzeit
gerne zur Verfügung.

Mit Grüßen aus Dortmund,
 Thomas Klute

-- 


 Dipl.-Inform. Thomas Klute   kl...@ingenit.com
 Geschäftsführer / CEO
 --
 ingenit GmbH & Co. KG   Tel. +49 (0)231 58 698-120
 Emil-Figge-Strasse 76-80Fax. +49 (0)231 58 698-121
 D-44227 Dortmund   

Re: [ovirt-users] Duplicate host_id after deployment via GUI, how is the hosted engine host_id selected?

2018-04-23 Thread Simone Tiraboschi
On Mon, Apr 23, 2018 at 1:04 PM, Martin Sivak  wrote:

> Hello,
>
> the ID should be coming from the SPM ID of the host as assigned by the
> engine and duplicates should not be happening indeed.
>
> Can you please tell us what version of engine you have and how was
> first hosted engine node deployed? We recently changed the default
> deployment method (4.2.2 in fact) and we would like to know whether
> this might be related to that change or not.
>
> Simone, do you know how to debug this? Are there logs we could use to
> check the behavior? The host-deploy logs maybe?
>

Thomas,
can you please share the output of
  sudo -u postgres scl enable rh-postgresql95 -- psql -d engine -c "select
vds_id, vds_name, vds_spm_id from vds"
executed on the engine VM

and the content of /var/log/ovirt-engine/host-deploy (still from the engine
VM)?


>
> Best regards
>
> --
> Martin Sivak
> SLA / oVirt
>
> On Mon, Apr 23, 2018 at 12:54 PM, Thomas Klute  wrote:
> > Dear oVirt Users,
> >
> > we installed a third ovirt node using the ovirt node ng image (4.2.2),
> and
> > added that node using the web interface of the hosted engine:
> >
> > Compute->Hosts->New - including the Hosted engine option "Choose hosted
> > engine deployment action" set to "Deploy"
> >
> > After that we found out, that on the new node the host_id entry was
> causing
> > problems. In
> >
> > /etc/ovirt-hosted-engine/hosted-engine.conf
> >
> > we found the entry
> >
> > ...
> > host_id=2
> > ...
> >
> > But that host id already exists and was alive during deployment process.
> > So my questions are:
> >
> > How is the host id chosen (when adding a new host via GUI)?
> > Is there an option to preselect the host id in the GUI for a new node?
> > How can we prevent further duplicate host ids?
> >
> > Thanks and best regards,
> > Thomas
> >
> >
> > --
> > 
> >
> >  Dipl.-Inform. Thomas Klute   kl...@ingenit.com
> >  Geschäftsführer / CEO
> >  --
> >  ingenit GmbH & Co. KG   Tel. +49 (0)231 58 698-120
> >  Emil-Figge-Strasse 76-80Fax. +49 (0)231 58 698-121
> >  D-44227 Dortmund   www.ingenit.com
> >
> >  Registergericht: Amtsgericht Dortmund, HRA 13 914
> >  Gesellschafter : Thomas Klute, Marc-Christian Schröer
> > 
> >
> >
> > ___
> > 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] Cluster Processor Change

2018-04-23 Thread Michal Skrivanek


> On 7 Apr 2018, at 14:27, Clint Boggio  wrote:
> 
> Forgive me if this is a duplicate, as I had spam filter problems previously 
> when I sent this inquiry.
> 
> Environment Rundown:
> 
> OVirt 4.2
> 6 CentOS 7.4 Compute Nodes Intel Xeon
> 1 CentOS 7.4 Dedicated Engine Node Intel Xeon 
> 1 Datacenter 
> 1 Storage Domain
> 1 Cluster
> 10Gig-E iSCSI Storage 
> 10Gig-E NFS Export Domain
> 20 VM’s of various OS’s and uses 
> 
> The current cluster is using the Nehalem architecture.
> 
> I’ve got the deploy two new VMs that the current system will not allow me to 
> configure with the Nehalem based cluster, so I’ve got to bump up the 
> architecture of the cluster to accommodate them.

why not? You are the one selecting teh VM’s CPU…why not use Nehalem too?

> 
> Before i shut down all the current VMs to upgrade the cluster, I have some 
> questions about the effect this is going to have on the environment.
> 
> 1. Will all of the current VM’s use the legacy processor architecture or will 
> I have to change them ?

running VMs will change on their power cycle. Unless you used per-VM CPU Type 
override (I suppose you did not)

> 
> 2. Can I elevate the cluster processor functionality higher than the 
> underlying hardware architecture  ?

if all your hosts support it

> 
> 3. In regards to the new cluster processor, will all of the processor 
> architectures below the one I choose be an option for the existing and future 
> VMs ?

not sure I understand the question. Normally you can use any CPU as long as it 
is supported by all hosts in the cluster. You can use per-VM override to bypass 
that, but that’s usually not a good idea

Thanks,
michal
> 
> I apologize for the long post and I hope that I haven’t left out any vital 
> information.
> ___
> 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] Problem to upgrade ovirt

2018-04-23 Thread Marcelo Leandro
Hello, Robert

Thank you for reply, I tried this steps but not worked for me , I think
that I need change parameters in my postgresql but I don't know how do this.


2018-04-22 7:45 GMT-03:00 Robert O'Kane :

> Hello,
>
> I had a similar problem with the engine update from 4.1.9 to 4.2.2.
> For me it was SELinux in Enforcing mode on the host.  You should check
> that SELinux is in "Enforcing" mode and that the audit daemon is
> complaining about postgres95. "audit2why -a"
>
>
> I set the host to "Permissive", did the upgrade and it worked for me.
> But you may have to leave it in "Permissive" mode until you can update the
> SELinux rules.
>
>
> *IF* the problem is SELinux I would suggest:
>
> 1: Clean up the auditd logs (make sure all old problems are corrected).
>Reset the auditd logs so the following output is "cleaner".
>The "audit2why -a" command should show nothing. Please RYFM
>
> 2: Set SELinux to "Permissive" mode.
>
> 3: Apply the Ovirt-engine updates. Make sure everything works.
>
> 4: run "audit2why -a" and see what the warnings are
>  or go directly to 5
>
> 5: generate the new rules with:
>   audit2allow -a -M postgres95-selinux-ovirt
>
> 6: add the rules to the system:
>   semodule -i  postgres95-selinux-ovirt.pp
>
> 7: It should now be possible to set SELinux back to "Enforcing"
>
>
> Good Luck,
>
> Robert O'Kane
>
>
>
> Am 21.04.2018 um 10:26 schrieb Marcelo Leandro:
>
>> Hello,
>> I have problem when i try upgrade the ovirt to 4.2,  my version is 4.1.9,
>> I
>> have problem when engine-setup try update the postgresql.
>> Postgres version 9.2
>>
>> I had this message:
>>
>> Log install:
>>
>> ERROR: pg_upgrade tool failed
>> ERROR: Upgrade failed.
>>   * See /var/lib/pgsql/upgrade_rh-postgresql95-postgresql.log for
>> details.
>>
>> 2018-04-21 04:53:10,766-0300 DEBUG otopi.transaction
>> transaction._prepare:66 exception during prepare phase
>> Traceback (most recent call last):
>>File "/usr/lib/python2.7/site-packages/otopi/transaction.py", line
>> 62, in
>> _prepare
>>  element.prepare()
>>File
>> "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_
>> common/postgres.py",
>> line 777, in prepare
>>  raiseOnError=True,
>>File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 931, in
>> execute
>>  command=args[0],
>> RuntimeError: Command
>> '/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup' failed to execute
>> 2018-04-21 04:53:10,768-0300 DEBUG otopi.context
>> context._executeMethod:143
>> method exception
>> Traceback (most recent call last):
>>File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in
>> _executeMethod
>>  method['method']()
>>File
>> "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-
>> setup/ovirt-engine/db/dbmsupgrade.py",
>> line 89, in _updateDBMS
>>  oengcommcons.ProvisioningEnv.OLD_POSTGRES_SERVICE
>>File "/usr/lib/python2.7/site-packages/otopi/transaction.py", line
>> 106,
>> in append
>>  self._prepare(element=element)
>>File "/usr/lib/python2.7/site-packages/otopi/transaction.py", line
>> 62, in
>> _prepare
>>  element.prepare()
>>File
>> "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_
>> common/postgres.py",
>> line 777, in prepare
>>  raiseOnError=True,
>>File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 931, in
>> execute
>>  command=args[0],
>> RuntimeError: Command
>> '/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup' failed to execute
>> 2018-04-21 04:53:10,770-0300 ERROR otopi.context
>> context._executeMethod:152
>> Failed to execute stage 'Misc configuration': Command
>> '/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup' failed to execute
>>
>> Log postgres:
>> Performing Consistency Checks
>> -
>> Checking cluster versions   ok
>> Checking database user is the install user  ok
>> Checking database connection settings   ok
>> Checking for prepared transactions  ok
>> Checking for reg* system OID user data typesok
>> Checking for contrib/isn with bigint-passing mismatch   ok
>> Checking for invalid "line" user columnsok
>> Creating dump of global objects ok
>> Creating dump of database schemas
>>engine
>>ovirt_engine_history
>>postgres
>>template1
>>  ok
>>
>> encodings for database "postgres" do not match:  old "SQL_ASCII", new
>> "UTF8"
>> Failure, exiting
>>
>>
>> I know that problem not is in oVirt , but anyone help me ?
>>
>>
>> Thank you!
>>
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
> --
> Systems Administrator
> Kunsthochschule für Medien Köln
> Peter-Welter-Platz 2
> 50676 Köln
> 

Re: [ovirt-users] Duplicate host_id after deployment via GUI, how is the hosted engine host_id selected?

2018-04-23 Thread Martin Sivak
Hello,

the ID should be coming from the SPM ID of the host as assigned by the
engine and duplicates should not be happening indeed.

Can you please tell us what version of engine you have and how was
first hosted engine node deployed? We recently changed the default
deployment method (4.2.2 in fact) and we would like to know whether
this might be related to that change or not.

Simone, do you know how to debug this? Are there logs we could use to
check the behavior? The host-deploy logs maybe?

Best regards

--
Martin Sivak
SLA / oVirt

On Mon, Apr 23, 2018 at 12:54 PM, Thomas Klute  wrote:
> Dear oVirt Users,
>
> we installed a third ovirt node using the ovirt node ng image (4.2.2), and
> added that node using the web interface of the hosted engine:
>
> Compute->Hosts->New - including the Hosted engine option "Choose hosted
> engine deployment action" set to "Deploy"
>
> After that we found out, that on the new node the host_id entry was causing
> problems. In
>
> /etc/ovirt-hosted-engine/hosted-engine.conf
>
> we found the entry
>
> ...
> host_id=2
> ...
>
> But that host id already exists and was alive during deployment process.
> So my questions are:
>
> How is the host id chosen (when adding a new host via GUI)?
> Is there an option to preselect the host id in the GUI for a new node?
> How can we prevent further duplicate host ids?
>
> Thanks and best regards,
> Thomas
>
>
> --
> 
>
>  Dipl.-Inform. Thomas Klute   kl...@ingenit.com
>  Geschäftsführer / CEO
>  --
>  ingenit GmbH & Co. KG   Tel. +49 (0)231 58 698-120
>  Emil-Figge-Strasse 76-80Fax. +49 (0)231 58 698-121
>  D-44227 Dortmund   www.ingenit.com
>
>  Registergericht: Amtsgericht Dortmund, HRA 13 914
>  Gesellschafter : Thomas Klute, Marc-Christian Schröer
> 
>
>
> ___
> 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] problem with ovirt-container-engine

2018-04-23 Thread Michael Mortensen (MCMR)
That's a very old project - I haven't tried it myself, but I suspect that the 
project has died. Can anyone confirm?
Setting up an engine on a machine is very easy though, so if you have one 
spare, it should be straight forward.


// Mike
 

-Original Message-
From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of Ken 
Zhang-Hokkien
Sent: 23. april 2018 12:12
To: users@ovirt.org
Subject: [ovirt-users] problem with ovirt-container-engine

Hello,

I'm trying out the ovirt-engine docker image here:

https://github.com/oVirt/ovirt-container-engine

But, I keep getting errors like this:

2018-04-21 04:59:55,065 ERROR
[org.jboss.as.controller.management-operation] (Controller Boot
Thread) [] WFLYCTL0013: Operation ("add") failed - address: ([,
("subsystem" => "undertow"),,
("server" => "default-server"),,
("http-listener" => "http"),
]) - failure description: {,
"WFLYCTL0080: Failed services" => {"jboss.undertow.listener.http"
=> "org.jboss.msc.service.StartException in service
jboss.undertow.listener.http: WFLYUT0082: Could not start 'http'
listener.,
Caused by: java.net.SocketException: Protocol family unavailable"},,
"WFLYCTL0412: Required services that are not installed:" => 
["jboss.undertow.listener.http"],,
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined, 
},
2018-04-21 04:59:55,065 ERROR
[org.jboss.as.controller.management-operation] (Controller Boot
Thread) [] WFLYCTL0013: Operation ("add") failed - address: ([,
("subsystem" => "undertow"),,
("server" => "default-server"),,
("https-listener" => "https"),
]) - failure description: {,
"WFLYCTL0080: Failed services" => {"jboss.undertow.listener.https"
=> "org.jboss.msc.service.StartException in service
jboss.undertow.listener.https: WFLYUT0082: Could not start 'https'
listener.,
Caused by: java.net.SocketException: Protocol family unavailable"},,
"WFLYCTL0412: Required services that are not installed:" => 
["jboss.undertow.listener.https"],,
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined, 
},
2018-04-21 04:59:55,086 INFO  [org.jboss.as.server] (ServerService Thread Pool 
-- 25) [] WFLYSRV0010: Deployed "restapi.war"
(runtime-name : "restapi.war"),
2018-04-21 04:59:55,086 INFO  [org.jboss.as.server] (ServerService Thread Pool 
-- 25) [] WFLYSRV0010: Deployed "engine.ear" (runtime-name
: "engine.ear"),
2018-04-21 04:59:55,088 INFO  [org.jboss.as.controller] (Controller Boot 
Thread) [] WFLYCTL0183: Service status report,
WFLYCTL0186:   Services which failed to start:  service
jboss.undertow.listener.https: org.jboss.msc.service.StartException in service 
jboss.undertow.listener.https: WFLYUT0082: Could not start 'https' listener.,
  service jboss.undertow.listener.http:
org.jboss.msc.service.StartException in service
jboss.undertow.listener.http: WFLYUT0082: Could not start 'http'
listener.,
,
2018-04-21 04:59:55,157 INFO  [org.jboss.as] (Controller Boot Thread) [] 
WFLYSRV0060: Http management interface listening on 
http://127.0.0.1:8706/management,
2018-04-21 04:59:55,157 INFO  [org.jboss.as] (Controller Boot Thread) [] 
WFLYSRV0051: Admin console listening on http://127.0.0.1:8706,
2018-04-21 04:59:55,157 ERROR [org.jboss.as] (Controller Boot Thread) [] 
WFLYSRV0026: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started (with 
errors) in 10417ms - Started 1366 of 1638 services (2 services failed or 
missing dependencies, 442 services are lazy, passive or on-demand),


how can i get this docker image to work? seems like it is missing something:

Caused by: java.net.SocketException: Protocol family unavailable"},,
"WFLYCTL0412: Required services that are not installed:" => 
["jboss.undertow.listener.http"],,
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined,

any help is much appreciated. thanks.
___
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


[ovirt-users] Duplicate host_id after deployment via GUI, how is the hosted engine host_id selected?

2018-04-23 Thread Thomas Klute
Dear oVirt Users,

we installed a third ovirt node using the ovirt node ng image (4.2.2),
and added that node using the web interface of the hosted engine:

Compute->Hosts->New - including the Hosted engine option "Choose hosted
engine deployment action" set to "Deploy"

After that we found out, that on the new node the host_id entry was
causing problems. In

/etc/ovirt-hosted-engine/hosted-engine.conf

we found the entry

...
host_id=2
...

But that host id already exists and was alive during deployment process.
So my questions are:

  * How is the host id chosen (when adding a new host via GUI)?
  * Is there an option to preselect the host id in the GUI for a new node?
  * How can we prevent further duplicate host ids?

Thanks and best regards,
Thomas


-- 


 Dipl.-Inform. Thomas Klute   kl...@ingenit.com
 Geschäftsführer / CEO
 --
 ingenit GmbH & Co. KG   Tel. +49 (0)231 58 698-120
 Emil-Figge-Strasse 76-80Fax. +49 (0)231 58 698-121
 D-44227 Dortmund   www.ingenit.com

 Registergericht: Amtsgericht Dortmund, HRA 13 914
 Gesellschafter : Thomas Klute, Marc-Christian Schröer


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


Re: [ovirt-users] RPM conflicts when upgrading from 4.1.9 to 4.2.2

2018-04-23 Thread Matthias Leopold



Am 2018-04-23 um 12:08 schrieb Matthias Leopold:



Am 2018-04-23 um 11:44 schrieb Matthias Leopold:

Hi,

i tried to upgrade my oVirt 4.1.9 test environment to version 4.2.2.
this failed on the engine host with messages like

2018-04-23 11:10:57,716+0200 ERROR 
otopi.plugins.otopi.packagers.yumpackager yumpackager.error:85 Yum 
Test-Transaktionsfehler:   file 
/usr/share/ansible/roles/ovirt-manageiq from install of 
ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts with file from 
package ovirt-ansible-manageiq-1.1.6-1.el7.centos.noarch
   file /usr/share/ansible/roles/ovirt-image-template from install of 
ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts with file from 
package ovirt-ansible-image-template-1.1.5-1.el7.centos.noarch
   file /usr/share/ansible/roles/ovirt-infra from install of 
ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts with file from 
package ovirt-ansible-infra-1.1.4-1.el7.centos.noarch
   file /usr/share/ansible/roles/ovirt-vm-infra from install of 
ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts with file from 
package ovirt-ansible-vm-infra-1.1.5-1.el7.centos.noarch
   file /usr/share/ansible/roles/ovirt-cluster-upgrade from install of 
ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts with file from 
package ovirt-ansible-cluster-upgrade-1.1.6-1.el7.centos.noarch


OK, now i found https://bugzilla.redhat.com/show_bug.cgi?id=1519301 
which describes the problem, but doesn't give a solution...


it sounds like removing the "optional in 4.1.9" package 
ovirt-ansible-roles before the upgrade would prevent the error, but i 
would like to finish the upgrade in my test environment where i didn't 
do this. how can i do that?




i finally resolved the situation by force removing (rpm -e --nodeps) the 
ovirt-ansible-* packages, after that engine-setup finishes ok, in the 
end i execute "yum install ovirt-ansible-roles". this _seems_ to work...


thx matthias





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


[ovirt-users] problem with ovirt-container-engine

2018-04-23 Thread Ken Zhang-Hokkien
Hello,

I'm trying out the ovirt-engine docker image here:

https://github.com/oVirt/ovirt-container-engine

But, I keep getting errors like this:

2018-04-21 04:59:55,065 ERROR
[org.jboss.as.controller.management-operation] (Controller Boot
Thread) [] WFLYCTL0013: Operation ("add") failed - address: ([,
("subsystem" => "undertow"),,
("server" => "default-server"),,
("http-listener" => "http"),
]) - failure description: {,
"WFLYCTL0080: Failed services" => {"jboss.undertow.listener.http"
=> "org.jboss.msc.service.StartException in service
jboss.undertow.listener.http: WFLYUT0082: Could not start 'http'
listener.,
Caused by: java.net.SocketException: Protocol family unavailable"},,
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.undertow.listener.http"],,
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined,
},
2018-04-21 04:59:55,065 ERROR
[org.jboss.as.controller.management-operation] (Controller Boot
Thread) [] WFLYCTL0013: Operation ("add") failed - address: ([,
("subsystem" => "undertow"),,
("server" => "default-server"),,
("https-listener" => "https"),
]) - failure description: {,
"WFLYCTL0080: Failed services" => {"jboss.undertow.listener.https"
=> "org.jboss.msc.service.StartException in service
jboss.undertow.listener.https: WFLYUT0082: Could not start 'https'
listener.,
Caused by: java.net.SocketException: Protocol family unavailable"},,
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.undertow.listener.https"],,
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined,
},
2018-04-21 04:59:55,086 INFO  [org.jboss.as.server] (ServerService
Thread Pool -- 25) [] WFLYSRV0010: Deployed "restapi.war"
(runtime-name : "restapi.war"),
2018-04-21 04:59:55,086 INFO  [org.jboss.as.server] (ServerService
Thread Pool -- 25) [] WFLYSRV0010: Deployed "engine.ear" (runtime-name
: "engine.ear"),
2018-04-21 04:59:55,088 INFO  [org.jboss.as.controller] (Controller
Boot Thread) [] WFLYCTL0183: Service status report,
WFLYCTL0186:   Services which failed to start:  service
jboss.undertow.listener.https: org.jboss.msc.service.StartException in
service jboss.undertow.listener.https: WFLYUT0082: Could not start
'https' listener.,
  service jboss.undertow.listener.http:
org.jboss.msc.service.StartException in service
jboss.undertow.listener.http: WFLYUT0082: Could not start 'http'
listener.,
,
2018-04-21 04:59:55,157 INFO  [org.jboss.as] (Controller Boot Thread)
[] WFLYSRV0060: Http management interface listening on
http://127.0.0.1:8706/management,
2018-04-21 04:59:55,157 INFO  [org.jboss.as] (Controller Boot Thread)
[] WFLYSRV0051: Admin console listening on http://127.0.0.1:8706,
2018-04-21 04:59:55,157 ERROR [org.jboss.as] (Controller Boot Thread)
[] WFLYSRV0026: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final)
started (with errors) in 10417ms - Started 1366 of 1638 services (2
services failed or missing dependencies, 442 services are lazy,
passive or on-demand),


how can i get this docker image to work? seems like it is missing something:

Caused by: java.net.SocketException: Protocol family unavailable"},,
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.undertow.listener.http"],,
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined,

any help is much appreciated. thanks.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] RPM conflicts when upgrading from 4.1.9 to 4.2.2

2018-04-23 Thread Matthias Leopold



Am 2018-04-23 um 11:44 schrieb Matthias Leopold:

Hi,

i tried to upgrade my oVirt 4.1.9 test environment to version 4.2.2.
this failed on the engine host with messages like

2018-04-23 11:10:57,716+0200 ERROR 
otopi.plugins.otopi.packagers.yumpackager yumpackager.error:85 Yum 
Test-Transaktionsfehler:   file /usr/share/ansible/roles/ovirt-manageiq 
from install of ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts 
with file from package ovirt-ansible-manageiq-1.1.6-1.el7.centos.noarch
   file /usr/share/ansible/roles/ovirt-image-template from install of 
ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts with file from 
package ovirt-ansible-image-template-1.1.5-1.el7.centos.noarch
   file /usr/share/ansible/roles/ovirt-infra from install of 
ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts with file from 
package ovirt-ansible-infra-1.1.4-1.el7.centos.noarch
   file /usr/share/ansible/roles/ovirt-vm-infra from install of 
ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts with file from 
package ovirt-ansible-vm-infra-1.1.5-1.el7.centos.noarch
   file /usr/share/ansible/roles/ovirt-cluster-upgrade from install of 
ovirt-ansible-roles-1.0.4-1.el7.centos.noarch conflicts with file from 
package ovirt-ansible-cluster-upgrade-1.1.6-1.el7.centos.noarch


OK, now i found https://bugzilla.redhat.com/show_bug.cgi?id=1519301 
which describes the problem, but doesn't give a solution...


it sounds like removing the "optional in 4.1.9" package 
ovirt-ansible-roles before the upgrade would prevent the error, but i 
would like to finish the upgrade in my test environment where i didn't 
do this. how can i do that?


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


Re: [ovirt-users] create VM failed

2018-04-23 Thread Michal Skrivanek
looks like some host misconfiguration. Make sure you deploy a host correctly - 
CentOS 7.4//RHEL 7.5, without any system modification...

> On 23 Apr 2018, at 11:41, gss...@pku.edu.cn wrote:
> 
> Hi,
> when I creating  an VM
> 
> 
> 
> ___
> 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


[ovirt-users] create VM failed

2018-04-23 Thread gss...@pku.edu.cn
Hi,
when I creating  an VM


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


Re: [ovirt-users] Cannot update Node 4.2 to 4.2.2

2018-04-23 Thread Pavol Brilla
can you try to run:
# nodectl info

if you have results back you are on ovirt-node

if -bash: nodectl: command not found - most probably you are on CentOS with
VDSM


On Mon, Apr 9, 2018 at 5:48 PM, Vincent Royer  wrote:

> No I don't.
>
> *Vincent Royer*
> *778-825-1057*
>
>
> 
> *SUSTAINABLE MOBILE ENERGY SOLUTIONS*
>
>
>
>
> On Wed, Apr 4, 2018 at 11:42 PM, Maton, Brett 
> wrote:
>
>> shot inthe dark, but have you got EPEL repo enabled by any chance?
>>
>> On 4 April 2018 at 20:20, Vincent Royer  wrote:
>>
>>> Trying to update my nodes to 4.2.2, having a hard time.
>>>
>>> I updated the engine, no problems. Migrated VMs off host 1 and put it
>>> into maintenance.  I do a "check upgrade" in the GUI, it finds an update,
>>> but fails to install.
>>>
>>> Drop to CLI and try to do it manually
>>>
>>> yum update -y
>>>
>>> I get lots of dependency errors for missing packages.   A quick google
>>> shows that I may have the incorrect RPMs installed, and should only have
>>> the ovirt-node-ng-image and appliance rpms. So I try to install only those.
>>>
>>> So I think I have the right rpms now
>>>
>>>
>>> But now when I do a yum update it says there are no packages marked for
>>> update.
>>>
>>> How to fix this?   Is there anything I have done wrong that I shouldn't
>>> do on my other hosts?
>>>
>>>
>>>
>>> ___
>>> 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
>
>


-- 

PAVOL BRILLA

RHV QUALITY ENGINEER, CLOUD

Red Hat Czech Republic, Brno 

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


Re: [ovirt-users] Decrease downtime for HA

2018-04-23 Thread Daniel Menzel

Hi Michal,

in your last mail you wrote, that the values can be turned down - how 
can this be done?


Best
Daniel


On 12.04.2018 20:29, Michal Skrivanek wrote:



On 12 Apr 2018, at 13:13, Daniel Menzel 
> wrote:


Hi there,

does anyone have an idea how to decrease a virtual machine's downtime?

Best
Daniel


On 06.04.2018 13:34, Daniel Menzel wrote:


Hi Michal,




Hi Daniel,
adding Martin to review fencing behavior


(sorry for misspelling your name in my first mail).




that’s not the reason I’m replying late!:-))


The settings for the VMs are the following (oVirt 4.2):

 1. HA checkbox enabled of course
 2. "Target Storage Domain for VM Lease" -> left empty



if you need faster reactions then try to use VM Leases as well, it 
won’t make a difference in this case but will help in case of network 
issues. E.g. if you use iSCSI and the storage connection breaks while 
host connection still works it would restart the VM in about 80s; 
otherwise it would take >5 mins.


 3. "Resume Behavior" -> AUTO_RESUME
 4. Priority for Migration -> High
 5. "Watchdog Model" -> No-Watchdog

For testing we did not kill any VM but the host. So basically we 
simulated an instantaneous crash by manually turning the machine off 
via IPMI-Interface (not via operating system!) and ping the 
guest(s). What happens then?


 1. 2-3 seconds after the we press the host's shutdown button we
lose ping contact to the VM(s).
 2. After another 20s oVirt changes the host's status to
"connecting", the VM's status is set to a question mark.
 3. After ~1:30 the host is flagged to "non responsive”



that sounds about right. Now fencing action should have been 
initiated, if you can share the engine logs we can confirm that. IIRC 
we first try soft fencing - try to ssh to that host, that might take 
some time to time out I guess. Martin?


3.


 4. After ~2:10 the host's reboot is initiated by oVirt, 5-10s later
the guest is back online.

So, there seems to be one mistake I made in the first mail: The 
downtime is "only" 2.5min. But still I think this time can be 
decreased as for some services it is still quite a long time.





these values can be tuned down, but then you may be more susceptible 
to fencing power cycling a host in case of shorter network outages. It 
may be ok…depending on your requirements.


Best
Daniel


On 06.04.2018 12:49, Michal Skrivanek wrote:

On 6 Apr 2018, at 12:45, Daniel Menzel  wrote:

Hi Michael,
thanks for your mail. Sorry, I forgot to write that. Yes, we have power 
management and fencing enabled on all hosts. We also tested this and found out 
that it works perfectly. So this cannot be the reason I guess.

Hi Daniel,
ok, then it’s worth looking into details. Can you describe in more detail what 
happens? What exact settings you’re using for such VM? Are you killing the HE 
VM or other VMs or both? Would be good to narrow it down a bit and then review 
the exact flow

Thanks,
michal


Daniel



On 06.04.2018 11:11, Michal Skrivanek wrote:

On 4 Apr 2018, at 15:36, Daniel Menzel  wrote:

Hello,

we're successfully using a setup with 4 Nodes and a replicated Gluster for 
storage. The engine is self hosted. What we're dealing with at the moment is 
the high availability: If a node fails (for example simulated by a forced power 
loss) the engine comes back up online withing ~2min. But guests (having the HA 
option enabled) come back online only after a very long grace time of ~5min. As 
we have a reliable network (40 GbE) and reliable servers I think that the 
default grace times are way too high for us - is there any possibility to 
change those values?

And do you have Power Management(iLO, iDRAC,etc) configured for your hosts? 
Otherwise we have to resort to relatively long timeouts to make sure the host 
is really dead
Thanks,
michal

Thanks in advance!
Daniel

___
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


___
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] Unable to add host to cluster after network

2018-04-23 Thread Eitan Raviv
Hi Stack,

Indeed this is a bug in the engine. We have opened a case [1] and are
working to fix it on 4.2 ASAP
Thanks for posting...

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1570388

Eitan
oVirt | Redhat

On Wed, Apr 18, 2018 at 8:35 PM, ~Stack~  wrote:

> On 04/18/2018 09:55 AM, ~Stack~ wrote:
> > On 04/18/2018 08:41 AM, Eitan Raviv wrote:
> >> Hi Stack,
> >>
> >> I read through your ordeal and I would like to post a few comments:
> >
> > Thanks I appreciate it!
> >
> >>   * When I try to reproduce your scenario with the second network set to
> >> 'not required' before on-boarding the second host, it  is processed
> >> and set to 'up' by the engine without any hiccups or any errors in
> >> the log.
> >
> > Hrm. Yeah, I think I can reproduce the failure. I've only done it once,
> > but I have the chance to test so just to make sue I've got the right
> > information I'm going to run a another test specifically for it.
> >
>
> I agree with you, Eitan. I did a complete rebuild and made sure my
> alternate network was set to 'not required' before adding the second
> host. I successfully added a second host. It is possible I did something
> else wrong in that first test.
>
> Since this is an acceptable work-around for now, I am going to finish
> building my hosts out so I can move forward with this project.
>
> I would still like feedback on my other questions in the original post
> if anyone is willing.
>
> Thanks!
> ~Stack~
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 
Eitan Raviv
IRC: erav (#ovirt #vdsm #devel #rhev-dev)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt permissions

2018-04-23 Thread Roy Golan
We don't limit admin roles from querying assets, so the simple answer is no.



On Mon, 23 Apr 2018 at 10:10 Николаев Алексей 
wrote:

> Hi community!
>
> I want to create a Admin Role like "DataCenterAdmin" but without a
> permissions to list a resources (ex[ample VM) from another datacenters. Is
> it possible?
> ___
> 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


[ovirt-users] oVirt permissions

2018-04-23 Thread Николаев Алексей
Hi community! I want to create a Admin Role like "DataCenterAdmin" but without a permissions to list a resources (ex[ample VM) from another datacenters. Is it possible?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users