Re: [ovirt-users] Failure Backing up oVirt Manager 3.6.5

2016-05-24 Thread Yedidyah Bar David
On Tue, May 24, 2016 at 11:50 PM, Julián Tete  wrote:
> Thanks (SOLVED)
>
> You nailed it
>
> But I don't see the "--provision-dwh-db --provision-reports-db"  in
>
> http://www.ovirt.org/develop/release-management/features/engine/engine-backup/

You are right, wikification ate some dashes. This page (and probably
others) need some
love from markdown professionals, which I am (sadly? yet?) not. Pushed
this for now:

https://github.com/oVirt/ovirt-site/pull/259

In any case, please consider 'engine-backup --help' to be the
reference for available
options/syntax/etc.

Thanks for the report!

Best,

>
> 2016-05-24 1:16 GMT-05:00 Yedidyah Bar David :
>>
>> On Mon, May 23, 2016 at 9:48 PM, Julián Tete 
>> wrote:
>> > oVirt version = 3.6.5 on CentOS 7.2
>> >
>> > I have Data Warehouse and Reports database
>> >
>> > Method 1:
>> >
>> > In the Manager machine:
>> >
>> > engine-backup --mode=backup --file=/home/cnscadmin/engine-3.6.bck
>> > --log=/home/cnscadmin/backup.log
>> >
>> > less /home/cnscadmin/backup.log
>> >
>> > 2016-05-23 11:43:30 3585: Start of engine-backup mode backup scope all
>> > file
>> > /home/cnscadmin/engine-3.6.bck
>> > 2016-05-23 11:43:30 3585: OUTPUT: Backing up:
>> > 2016-05-23 11:43:30 3585: Generating pgpass
>> > 2016-05-23 11:43:30 3585: OUTPUT: Notifying engine
>> > 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost
>> > -p
>> > 5432  engine -t -c SELECT LogEngineBackupEvent('files', now(), 0,
>> > 'Started',
>> > 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>> >
>> >
>> > 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost
>> > -p
>> > 5432  engine -t -c SELECT LogEngineBackupEvent('db', now(), 0,
>> > 'Started',
>> > 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>> >
>> >
>> > 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost
>> > -p
>> > 5432  engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 0,
>> > 'Started',
>> > 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>> >
>> >
>> > 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost
>> > -p
>> > 5432  engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 0,
>> > 'Started', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>> >
>> >
>> > 2016-05-23 11:43:30 3585: Creating temp folder
>> > /tmp/engine-backup.UwsBOUPMGT/tar
>> > 2016-05-23 11:43:30 3585: OUTPUT: - Files
>> > 2016-05-23 11:43:30 3585: Backing up files to
>> > /tmp/engine-backup.UwsBOUPMGT/tar/files
>> > 2016-05-23 11:43:30 3585: OUTPUT: - Engine database 'engine'
>> > 2016-05-23 11:43:30 3585: Backing up database to
>> > /tmp/engine-backup.UwsBOUPMGT/tar/db/engine_backup.db
>> > 2016-05-23 11:43:30 3585: pg_cmd running: pg_dump -w -U engine -h
>> > localhost
>> > -p 5432  engine -E UTF8 --disable-dollar-quoting --disable-triggers
>> > --format=custom
>> > 2016-05-23 11:43:31 3585: OUTPUT: - DWH database 'ovirt_engine_history'
>> > 2016-05-23 11:43:31 3585: Backing up dwh database to
>> > /tmp/engine-backup.UwsBOUPMGT/tar/db/dwh_backup.db
>> > 2016-05-23 11:43:31 3585: pg_cmd running: pg_dump -w -U
>> > ovirt_engine_history
>> > -h localhost -p 5432  ovirt_engine_history -E UTF8
>> > --disable-dollar-quoting
>> > --disable-triggers --format=custom
>> > 2016-05-23 11:43:32 3585: OUTPUT: - Reports database
>> > 'ovirt_engine_reports'
>> > 2016-05-23 11:43:32 3585: Backing up reports database to
>> > /tmp/engine-backup.UwsBOUPMGT/tar/db/reports_backup.db
>> > 2016-05-23 11:43:32 3585: pg_cmd running: pg_dump -w -U
>> > ovirt_engine_reports
>> > -h localhost -p 5432  ovirt_engine_reports -E UTF8
>> > --disable-dollar-quoting
>> > --disable-triggers --format=custom
>> > 2016-05-23 11:43:33 3585: Creating md5sum at
>> > /tmp/engine-backup.UwsBOUPMGT/tar/md5sum
>> > 2016-05-23 11:43:33 3585: OUTPUT: Packing into file
>> > '/home/cnscadmin/engine-3.6.bck'
>> > 2016-05-23 11:43:33 3585: Creating tarball
>> > /home/cnscadmin/engine-3.6.bck
>> > 2016-05-23 11:43:33 3585: OUTPUT: Notifying engine
>> > 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost
>> > -p
>> > 5432  engine -t -c SELECT LogEngineBackupEvent('files', now(), 1,
>> > 'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>> >
>> >
>> > 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost
>> > -p
>> > 5432  engine -t -c SELECT LogEngineBackupEvent('db', now(), 1,
>> > 'Finished',
>> > 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>> >
>> >
>> > 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost
>> > -p
>> > 5432  engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 1,
>> > 'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>> >
>> >
>> > 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost
>> > -p
>> > 5432  engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 1,
>> > 'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');

Re: [ovirt-users] gluster VM disk permissions

2016-05-24 Thread Richard W.M. Jones
As it says in the error message:

> Try running qemu directly without libvirt using this environment variable:
> export LIBGUESTFS_BACKEND=direct

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Failure Backing up oVirt Manager 3.6.5

2016-05-24 Thread Julián Tete
Thanks (SOLVED)

You nailed it

But I don't see the "--provision-dwh-db --provision-reports-db"  in

http://www.ovirt.org/develop/release-management/features/engine/engine-backup/

2016-05-24 1:16 GMT-05:00 Yedidyah Bar David :

> On Mon, May 23, 2016 at 9:48 PM, Julián Tete 
> wrote:
> > oVirt version = 3.6.5 on CentOS 7.2
> >
> > I have Data Warehouse and Reports database
> >
> > Method 1:
> >
> > In the Manager machine:
> >
> > engine-backup --mode=backup --file=/home/cnscadmin/engine-3.6.bck
> > --log=/home/cnscadmin/backup.log
> >
> > less /home/cnscadmin/backup.log
> >
> > 2016-05-23 11:43:30 3585: Start of engine-backup mode backup scope all
> file
> > /home/cnscadmin/engine-3.6.bck
> > 2016-05-23 11:43:30 3585: OUTPUT: Backing up:
> > 2016-05-23 11:43:30 3585: Generating pgpass
> > 2016-05-23 11:43:30 3585: OUTPUT: Notifying engine
> > 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost
> -p
> > 5432  engine -t -c SELECT LogEngineBackupEvent('files', now(), 0,
> 'Started',
> > 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
> >
> >
> > 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost
> -p
> > 5432  engine -t -c SELECT LogEngineBackupEvent('db', now(), 0, 'Started',
> > 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
> >
> >
> > 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost
> -p
> > 5432  engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 0,
> 'Started',
> > 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
> >
> >
> > 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost
> -p
> > 5432  engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 0,
> > 'Started', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
> >
> >
> > 2016-05-23 11:43:30 3585: Creating temp folder
> > /tmp/engine-backup.UwsBOUPMGT/tar
> > 2016-05-23 11:43:30 3585: OUTPUT: - Files
> > 2016-05-23 11:43:30 3585: Backing up files to
> > /tmp/engine-backup.UwsBOUPMGT/tar/files
> > 2016-05-23 11:43:30 3585: OUTPUT: - Engine database 'engine'
> > 2016-05-23 11:43:30 3585: Backing up database to
> > /tmp/engine-backup.UwsBOUPMGT/tar/db/engine_backup.db
> > 2016-05-23 11:43:30 3585: pg_cmd running: pg_dump -w -U engine -h
> localhost
> > -p 5432  engine -E UTF8 --disable-dollar-quoting --disable-triggers
> > --format=custom
> > 2016-05-23 11:43:31 3585: OUTPUT: - DWH database 'ovirt_engine_history'
> > 2016-05-23 11:43:31 3585: Backing up dwh database to
> > /tmp/engine-backup.UwsBOUPMGT/tar/db/dwh_backup.db
> > 2016-05-23 11:43:31 3585: pg_cmd running: pg_dump -w -U
> ovirt_engine_history
> > -h localhost -p 5432  ovirt_engine_history -E UTF8
> --disable-dollar-quoting
> > --disable-triggers --format=custom
> > 2016-05-23 11:43:32 3585: OUTPUT: - Reports database
> 'ovirt_engine_reports'
> > 2016-05-23 11:43:32 3585: Backing up reports database to
> > /tmp/engine-backup.UwsBOUPMGT/tar/db/reports_backup.db
> > 2016-05-23 11:43:32 3585: pg_cmd running: pg_dump -w -U
> ovirt_engine_reports
> > -h localhost -p 5432  ovirt_engine_reports -E UTF8
> --disable-dollar-quoting
> > --disable-triggers --format=custom
> > 2016-05-23 11:43:33 3585: Creating md5sum at
> > /tmp/engine-backup.UwsBOUPMGT/tar/md5sum
> > 2016-05-23 11:43:33 3585: OUTPUT: Packing into file
> > '/home/cnscadmin/engine-3.6.bck'
> > 2016-05-23 11:43:33 3585: Creating tarball /home/cnscadmin/engine-3.6.bck
> > 2016-05-23 11:43:33 3585: OUTPUT: Notifying engine
> > 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost
> -p
> > 5432  engine -t -c SELECT LogEngineBackupEvent('files', now(), 1,
> > 'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
> >
> >
> > 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost
> -p
> > 5432  engine -t -c SELECT LogEngineBackupEvent('db', now(), 1,
> 'Finished',
> > 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
> >
> >
> > 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost
> -p
> > 5432  engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 1,
> > 'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
> >
> >
> > 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost
> -p
> > 5432  engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 1,
> > 'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
> >
> >
> > 2016-05-23 11:43:33 3585: OUTPUT: Done.
> >
> > In the Restore Machine:
> >
> > yum -y install postgresql postgresql-server postgresql-contrib
> >
> > postgresql-setup initdb
> >
> > systemctl enable postgresql.service
> >
> > systemctl start postgresql.service
> >
> > less /var/lib/pgsql/data/pg_hba.conf
> >
> >
> > hostengine  engine  0.0.0.0/0   md5
> > hostovirt_engine_reports  ovirt_engine_reports
> > 0.0.0.0/0   md5
> > hostovirt_engine_history  ovirt_engine_history
> > 0.0.0.0/0   md5
> >
> >
> > 

Re: [ovirt-users] gluster VM disk permissions

2016-05-24 Thread Bill James

I just tried importing using the import script and got this error:

[root@ovirt1 prod ~]# import-to-ovirt.pl 
/mnt/tmp/puppetdb.j2noc.com.disk.xm 
/rhev/data-center/mnt/j2hqnap02:_vol_ovirt__inside__export_exportTemplates

libvirt needs authentication to connect to libvirt URI qemu:///system
(see also: http://libvirt.org/auth.html http://libvirt.org/uri.html)
Please enter your authentication name: vdsm@ovirt
Please enter your password:
could not create appliance through libvirt.

Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct

Original error from libvirt: internal error: process exited while 
connecting to monitor: 2016-05-24T18:10:21.651694Z qemu-kvm: -drive 
file=/tmp/libguestfsWx9FbI/overlay1,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=unsafe: 
Could not open '/tmp/libguestfsWx9FbI/overlay1': Permission denied

 [code=1 domain=10] at /usr/local/bin/import-to-ovirt.pl line 233.


I believe this is the same error that prompted me to use "user = root" 
in qemu.conf, but sounds like there is a better resolution?





[root@ovirt1 prod qemu]# less guestfs-7ogk4gszrvsyv7j7.log
2016-05-24 18:10:21.617+: starting up libvirt version: 1.2.17, 
package: 13.el7_2.4 (CentOS BuildSystem , 
2016-03-31-16:56:26, worker1.bsys.centos.org), qemu version: 2.3.0 
(qemu-kvm-ev-2.3.0-31.el7_2.4.1)
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin 
QEMU_AUDIO_DRV=none TMPDIR=/var/tmp /usr/libexec/qemu-kvm -name 
guestfs-7ogk4gszrvsyv7j7 -S -machine 
pc-i440fx-rhel7.2.0,accel=kvm,usb=off -cpu host -m 500 -realtime 
mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 
ceeecdda-e44e-4227-990d-84261d0161aa -nographic -no-user-config 
-nodefaults -device sga -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-guestfs-7ogk4gszrvsyv7j7/monitor.sock,server,nowait 
-mon chardev=charmonitor,id=monitor,mode=control -rtc 
base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet 
-no-reboot -no-acpi -boot strict=on -kernel 
/var/tmp/.guestfs-0/appliance.d/kernel -initrd 
/var/tmp/.guestfs-0/appliance.d/initrd -append panic=1 console=ttyS0 
udevtimeout=6000 udev.event-timeout=6000 no_timer_check acpi=off 
printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 TERM=screen 
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device 
virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x2 -device 
virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x3 -drive 
file=/tmp/libguestfsWx9FbI/overlay1,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=unsafe 
-device 
scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1 
-drive 
file=/tmp/libguestfsWx9FbI/overlay2,if=none,id=drive-scsi0-0-1-0,format=qcow2,cache=unsafe 
-device 
scsi-hd,bus=scsi0.0,channel=0,scsi-id=1,lun=0,drive=drive-scsi0-0-1-0,id=scsi0-0-1-0 
-chardev socket,id=charserial0,path=/tmp/libguestfsWx9FbI/console.sock 
-device isa-serial,chardev=charserial0,id=serial0 -chardev 
socket,id=charchannel0,path=/tmp/libguestfsWx9FbI/guestfsd.sock -device 
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.libguestfs.channel.0 
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 -msg timestamp=on

Domain id=5 is tainted: custom-argv
Domain id=5 is tainted: host-cpu
2016-05-24T18:10:21.651694Z qemu-kvm: -drive 
file=/tmp/libguestfsWx9FbI/overlay1,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=unsafe: 
Could not open '/tmp/libguestfsWx9FbI/overlay1': Permission denied

2016-05-24 18:10:21.825+: shutting down



[root@ovirt1 prod ~]# ps -e -o 
euser,user,suser,fuser,egroup,rgroup,sgroup,fgroup,cmd | egrep 
'qemu-kvm'|head -2
qemu qemu qemu qemu qemu qemu qemu qemu 
/usr/libexec/qemu-kvm -name billj6-1.j2noc.com -S -machine 
pc-i440fx-rhel7.2.0,accel=kvm,usb=off -cpu SandyBridge -m 
size=2097152k,slots=16,maxmem=4294967296k -realtime mlock=off -smp 
1,maxcpus=16,sockets=16,cores=1,threads=1 -numa 
node,nodeid=0,cpus=0,mem=2048 -uuid 60ded316-aa18-4eda-9c52-16016d026e1a 
-smbios type=1,manufacturer=oVirt,product=oVirt 
Node,version=7-2.1511.el7.centos.2.10,serial=30343536-3138-584D-51





On 05/23/2016 09:17 AM, Richard W.M. Jones wrote:

On Mon, May 23, 2016 at 09:00:48AM -0700, Bill James wrote:

thank you very much for the reply.
My main question now is does it required to use "user = root" in
qemu.conf for the import script to work?

I haven't knowingly modified qemu.conf in my life, so likely the
answer is no.

Rich.




Cloud Services for Business www.j2.com
j2 | eFax | eVoice | FuseMail | Campaigner | KeepItSafe | Onebox


This email, its contents and attachments contain information from j2 Global, 
Inc. and/or its affiliates which may be privileged, confidential or otherwise 
protected from disclosure. The information is intended to be for the 
addressee(s) only. If you are not an addressee, any disclosure, copy, 
distribution, or use of the 

Re: [ovirt-users] editing VM settting

2016-05-24 Thread Fabrice Bacchella
I thinks it's a minor thing, but still puzzling.

A new VM don't have the kernel, initrd and cmdline elements. Once added for a 
custom boot, if I remove them using the API, there are still here, but empty. 
If I use, the GUI, they vanished.

Using CLI:








Using GUI:





Not critical, but strange. Both works


> Le 24 mai 2016 à 13:36, Shmuel Melamud  > a écrit :
> 
> Hi!
> 
> What do you mean under "removing values"?  You want ,  etc. 
> not to appear in engine response? There is no such thing. There is always 
> some value, empty or non-empty.
> 
> Shmuel
> 
> On Tue, Apr 12, 2016 at 6:40 PM, Fabrice Bacchella 
> > wrote:
> I'm trying to change the way a VM is booted, I want an initial setup with 
> kernel, initrd and cmdline given and later removed.
> 
> Using the GUI it works fine.
> 
> But I have no success using the python API. And running with debug enable, I 
> get this strange result :
> 
> > PUT /api/vms/8ced0f81-03fd-415b-a8ef-60141de7eeca HTTP/1.1
> ...
> > 
> > 
> > 
> > 
> ...
> < 
> < 
> < 
> < .../vmlinuz
> < .../initrd.img
> < 
> < 
> 
> I got this with:
> os_params =  params.OperatingSystem()
> os_params.set_boot(old_os_params.get_boot())
> os_params.set_type(old_os_params.get_type())
> os_params.set_kernel(None)
> os_params.set_initrd(None)
> os_params.set_cmdline(None)
> self.broker.set_os(os_params)
> self.broker.update()
> trying to set kernel and others to empty string is not really better:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> ...
> < 
> < 
> < 
> < 
> < 
> < 
> < 
> 
> What kind of "magic values" the engine uses to removes values ?
> 
> 
> ___
> 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] How to setup host network to link ovirtmgmt with eth0 automatically?

2016-05-24 Thread Ondřej Svoboda

Hi again, (correcting myself a bit)

are using the Open vSwitch hook intentionally? If not, you can |yum 
remove vdsm-hook-ovs| for a while. What is your exact VDSM version?


Also, can you give a little more context from your vdsm.log, and also 
from supervdsm.log? I think the vdsm.log failure is only related to 
stats reporting, and is not the root problem.


If you don't have any confidential information in the logs (or you can 
remove it), I suggest that you open a bug on product=vdsm at 
https://bugzilla.redhat.com/ Have no fear about naming the bug, it can 
be renamed if necessary.


Thanks, Ondra


On 24.5.2016 11:47, Kai Kang wrote:

Hi,

I checked vdsm.log, it show error:

jsonrpc.Executor/0::DEBUG::2016-05-24 
09:46:04,056::utils::671::root::(execCmd) /usr/bin/taskset --cpu-list 
0-7 /usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs (cwd None)
jsonrpc.Executor/0::DEBUG::2016-05-24 
09:46:04,136::utils::689::root::(execCmd) FAILED:  = 'Traceback 
(most recent call last):\n  File 
"/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 72, in 
\nmain()\n  File 
"/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 66, in 
main\n 
 stats[\'network\'].update(ovs_networks_stats(stats[\'network\']))\nKeyError: 
\'network\'\n\n';  = 2
jsonrpc.Executor/0::INFO::2016-05-24 
09:46:04,136::hooks::98::root::(_runHooksDir) Traceback (most recent 
call last):
  File "/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 72, 
in 

main()
  File "/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 66, 
in main

stats['network'].update(ovs_networks_stats(stats['network']))
KeyError: 'network'


I'm checking what wrong with it.

Thanks,
Kai



On Tue, May 24, 2016 at 3:57 PM, Kai Kang > wrote:


And network configurations on node:

[root at ovirt-node] # brctl show
bridge name bridge id   STP enabled interfaces
docker0 8000.0242ae1de711   no
ovirtmgmt   8000.001320ff73aa   no  eth0

[root at ovirt-node] # ifconfig -a
docker0   Link encap:Ethernet  HWaddr 02:42:ae:1d:e7:11
  inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0  Link encap:Ethernet  HWaddr 00:13:20:ff:73:aa
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:6331 errors:0 dropped:0 overruns:0 frame:0
  TX packets:2866 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:762182 (744.3 KiB)  TX bytes:210611 (205.6 KiB)
  Interrupt:20 Memory:d110-d112

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:65536  Metric:1
  RX packets:36 errors:0 dropped:0 overruns:0 frame:0
  TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:2478 (2.4 KiB)  TX bytes:2478 (2.4 KiB)

ovirtmgmt Link encap:Ethernet  HWaddr 00:13:20:ff:73:aa
  inet addr:128.224.165.170  Bcast:128.224.165.255
 Mask:255.255.255.0
  inet6 addr: fe80::213:20ff:feff:73aa/64 Scope:Link
  inet6 addr: 11:2233:4455:6677:213:20ff:feff:73aa/64
Scope:Global
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:6295 errors:0 dropped:6 overruns:0 frame:0
  TX packets:2831 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:644421 (629.3 KiB)  TX bytes:177616 (173.4 KiB)

sit0  Link encap:UNSPEC  HWaddr
00-00-00-00-32-33-33-00-00-00-00-00-00-00-00-00
  NOARP  MTU:1480  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet  HWaddr 80:86:f2:8b:1d:cf
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Thanks,
Kai



On Tue, May 24, 2016 at 3:36 PM, Kai Kang 
wrote:

Hi,

When I install a host, it fails with:

2016-05-24 07:00:01,749 ERROR
[org.ovirt.engine.core.bll.SetNonOperationalVdsCommand]
(DefaultQuartzScheduler_Worker-4) 

Re: [ovirt-users] How to setup host network to link ovirtmgmt with eth0 automatically?

2016-05-24 Thread Ondřej Svoboda

Hi,

are using the Open vSwitch hook intentionally? If not, you |yum remove 
vdsm-hook-ovs for a while. What is your exact VDSM version?


|

Thanks, Ondra


On 24.5.2016 11:47, Kai Kang wrote:

Hi,

I checked vdsm.log, it show error:

jsonrpc.Executor/0::DEBUG::2016-05-24 
09:46:04,056::utils::671::root::(execCmd) /usr/bin/taskset --cpu-list 
0-7 /usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs (cwd None)
jsonrpc.Executor/0::DEBUG::2016-05-24 
09:46:04,136::utils::689::root::(execCmd) FAILED:  = 'Traceback 
(most recent call last):\n  File 
"/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 72, in 
\nmain()\n  File 
"/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 66, in 
main\n 
 stats[\'network\'].update(ovs_networks_stats(stats[\'network\']))\nKeyError: 
\'network\'\n\n';  = 2
jsonrpc.Executor/0::INFO::2016-05-24 
09:46:04,136::hooks::98::root::(_runHooksDir) Traceback (most recent 
call last):
  File "/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 72, 
in 

main()
  File "/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 66, 
in main

stats['network'].update(ovs_networks_stats(stats['network']))
KeyError: 'network'


I'm checking what wrong with it.

Thanks,
Kai



On Tue, May 24, 2016 at 3:57 PM, Kai Kang > wrote:


And network configurations on node:

[root at ovirt-node] # brctl show
bridge name bridge id   STP enabled   interfaces
docker0 8000.0242ae1de711   no
ovirtmgmt   8000.001320ff73aa   noeth0

[root at ovirt-node] # ifconfig -a
docker0   Link encap:Ethernet  HWaddr 02:42:ae:1d:e7:11
  inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0  Link encap:Ethernet  HWaddr 00:13:20:ff:73:aa
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:6331 errors:0 dropped:0 overruns:0 frame:0
  TX packets:2866 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:762182 (744.3 KiB)  TX bytes:210611 (205.6 KiB)
  Interrupt:20 Memory:d110-d112

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:65536  Metric:1
  RX packets:36 errors:0 dropped:0 overruns:0 frame:0
  TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:2478 (2.4 KiB)  TX bytes:2478 (2.4 KiB)

ovirtmgmt Link encap:Ethernet  HWaddr 00:13:20:ff:73:aa
  inet addr:128.224.165.170  Bcast:128.224.165.255
 Mask:255.255.255.0
  inet6 addr: fe80::213:20ff:feff:73aa/64 Scope:Link
  inet6 addr: 11:2233:4455:6677:213:20ff:feff:73aa/64
Scope:Global
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:6295 errors:0 dropped:6 overruns:0 frame:0
  TX packets:2831 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:644421 (629.3 KiB)  TX bytes:177616 (173.4 KiB)

sit0  Link encap:UNSPEC  HWaddr
00-00-00-00-32-33-33-00-00-00-00-00-00-00-00-00
  NOARP  MTU:1480  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet  HWaddr 80:86:f2:8b:1d:cf
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Thanks,
Kai



On Tue, May 24, 2016 at 3:36 PM, Kai Kang > wrote:

Hi,

When I install a host, it fails with:

2016-05-24 07:00:01,749 ERROR
[org.ovirt.engine.core.bll.SetNonOperationalVdsCommand]
(DefaultQuartzScheduler_Worker-4) [1bf36cd4] Host 'node3' is
set to Non-Operational, it is missing the following networks:
'ovirtmgmt'
2016-05-24 07:00:01,781 WARN
 [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(DefaultQuartzScheduler_Worker-4) [1bf36cd4] Correlation ID:
1bf36cd4, Job ID: db281e8f-67cc-441a-b44c-90b135e509bd, Call
Stack: null, Custom Event ID: -1, Message: Host node3 

Re: [ovirt-users] editing VM settting

2016-05-24 Thread Shmuel Melamud
Hi!

What do you mean under "removing values"?  You want ,  etc.
not to appear in engine response? There is no such thing. There is always
some value, empty or non-empty.

Shmuel

On Tue, Apr 12, 2016 at 6:40 PM, Fabrice Bacchella <
fabrice.bacche...@orange.fr> wrote:

> I'm trying to change the way a VM is booted, I want an initial setup with
> kernel, initrd and cmdline given and later removed.
>
> Using the GUI it works fine.
>
> But I have no success using the python API. And running with debug enable,
> I get this strange result :
>
> > PUT /api/vms/8ced0f81-03fd-415b-a8ef-60141de7eeca HTTP/1.1
> ...
> > 
> > 
> > 
> > 
> ...
> < 
> < 
> < 
> < .../vmlinuz
> < .../initrd.img
> < 
> < 
>
> I got this with:
>
> os_params =  params.OperatingSystem()
> os_params.set_boot(old_os_params.get_boot())
> os_params.set_type(old_os_params.get_type())
> os_params.set_kernel(None)
> os_params.set_initrd(None)
> os_params.set_cmdline(None)
> self.broker.set_os(os_params)
> self.broker.update()
>
> trying to set kernel and others to empty string is not really better:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> ...
> < 
> < 
> < 
> < 
> < 
> < 
> < 
>
> What kind of "magic values" the engine uses to removes values ?
>
>
> ___
> 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] How to setup host network to link ovirtmgmt with eth0 automatically?

2016-05-24 Thread Kai Kang
Hi,

I checked vdsm.log, it show error:

jsonrpc.Executor/0::DEBUG::2016-05-24
09:46:04,056::utils::671::root::(execCmd) /usr/bin/taskset --cpu-list 0-7
/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs (cwd None)
jsonrpc.Executor/0::DEBUG::2016-05-24
09:46:04,136::utils::689::root::(execCmd) FAILED:  = 'Traceback (most
recent call last):\n  File
"/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 72, in \n
   main()\n  File "/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line
66, in main\n
 stats[\'network\'].update(ovs_networks_stats(stats[\'network\']))\nKeyError:
\'network\'\n\n';  = 2
jsonrpc.Executor/0::INFO::2016-05-24
09:46:04,136::hooks::98::root::(_runHooksDir) Traceback (most recent call
last):
  File "/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 72, in

main()
  File "/usr/lib64/vdsm/vdsm/hooks/after_get_stats/50_ovs", line 66, in main
stats['network'].update(ovs_networks_stats(stats['network']))
KeyError: 'network'


I'm checking what wrong with it.

Thanks,
Kai



On Tue, May 24, 2016 at 3:57 PM, Kai Kang  wrote:

> And network configurations on node:
>
> [root at ovirt-node] # brctl show
> bridge name bridge id   STP enabled interfaces
> docker0 8000.0242ae1de711   no
> ovirtmgmt   8000.001320ff73aa   no  eth0
>
> [root at ovirt-node] # ifconfig -a
> docker0   Link encap:Ethernet  HWaddr 02:42:ae:1d:e7:11
>   inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
>   UP BROADCAST MULTICAST  MTU:1500  Metric:1
>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:0
>   RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> eth0  Link encap:Ethernet  HWaddr 00:13:20:ff:73:aa
>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>   RX packets:6331 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:2866 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:1000
>   RX bytes:762182 (744.3 KiB)  TX bytes:210611 (205.6 KiB)
>   Interrupt:20 Memory:d110-d112
>
> loLink encap:Local Loopback
>   inet addr:127.0.0.1  Mask:255.0.0.0
>   inet6 addr: ::1/128 Scope:Host
>   UP LOOPBACK RUNNING  MTU:65536  Metric:1
>   RX packets:36 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:0
>   RX bytes:2478 (2.4 KiB)  TX bytes:2478 (2.4 KiB)
>
> ovirtmgmt Link encap:Ethernet  HWaddr 00:13:20:ff:73:aa
>   inet addr:128.224.165.170  Bcast:128.224.165.255
>  Mask:255.255.255.0
>   inet6 addr: fe80::213:20ff:feff:73aa/64 Scope:Link
>   inet6 addr: 11:2233:4455:6677:213:20ff:feff:73aa/64 Scope:Global
>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>   RX packets:6295 errors:0 dropped:6 overruns:0 frame:0
>   TX packets:2831 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:0
>   RX bytes:644421 (629.3 KiB)  TX bytes:177616 (173.4 KiB)
>
> sit0  Link encap:UNSPEC  HWaddr
> 00-00-00-00-32-33-33-00-00-00-00-00-00-00-00-00
>   NOARP  MTU:1480  Metric:1
>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:0
>   RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> wlan0 Link encap:Ethernet  HWaddr 80:86:f2:8b:1d:cf
>   BROADCAST MULTICAST  MTU:1500  Metric:1
>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:1000
>   RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
>
> Thanks,
> Kai
>
>
>
> On Tue, May 24, 2016 at 3:36 PM, Kai Kang  wrote:
>
>> Hi,
>>
>> When I install a host, it fails with:
>>
>> 2016-05-24 07:00:01,749 ERROR
>> [org.ovirt.engine.core.bll.SetNonOperationalVdsCommand]
>> (DefaultQuartzScheduler_Worker-4) [1bf36cd4] Host 'node3' is set to
>> Non-Operational, it is missing the following networks: 'ovirtmgmt'
>> 2016-05-24 07:00:01,781 WARN
>>  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
>> (DefaultQuartzScheduler_Worker-4) [1bf36cd4] Correlation ID: 1bf36cd4, Job
>> ID: db281e8f-67cc-441a-b44c-90b135e509bd, Call Stack: null, Custom Event
>> ID: -1, Message: Host node3 does not comply with the cluster Default
>> networks, the following networks are missing on host: 'ovirtmgmt'
>>
>> After I click the "Hosts" -> subtab "Network Interfaces" -> "Setup Host
>> Networks" on the web ui and drag ovirtmgmt to "Assigned Logical" to link
>> with eth0, then activate host "node3" successfully.
>>
>> My question is how to make such manual operation automatically?  Then I
>> can run some automatic tests.

Re: [ovirt-users] How to setup host network to link ovirtmgmt with eth0 automatically?

2016-05-24 Thread Kai Kang
And network configurations on node:

[root at ovirt-node] # brctl show
bridge name bridge id   STP enabled interfaces
docker0 8000.0242ae1de711   no
ovirtmgmt   8000.001320ff73aa   no  eth0

[root at ovirt-node] # ifconfig -a
docker0   Link encap:Ethernet  HWaddr 02:42:ae:1d:e7:11
  inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0  Link encap:Ethernet  HWaddr 00:13:20:ff:73:aa
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:6331 errors:0 dropped:0 overruns:0 frame:0
  TX packets:2866 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:762182 (744.3 KiB)  TX bytes:210611 (205.6 KiB)
  Interrupt:20 Memory:d110-d112

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:65536  Metric:1
  RX packets:36 errors:0 dropped:0 overruns:0 frame:0
  TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:2478 (2.4 KiB)  TX bytes:2478 (2.4 KiB)

ovirtmgmt Link encap:Ethernet  HWaddr 00:13:20:ff:73:aa
  inet addr:128.224.165.170  Bcast:128.224.165.255
 Mask:255.255.255.0
  inet6 addr: fe80::213:20ff:feff:73aa/64 Scope:Link
  inet6 addr: 11:2233:4455:6677:213:20ff:feff:73aa/64 Scope:Global
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:6295 errors:0 dropped:6 overruns:0 frame:0
  TX packets:2831 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:644421 (629.3 KiB)  TX bytes:177616 (173.4 KiB)

sit0  Link encap:UNSPEC  HWaddr
00-00-00-00-32-33-33-00-00-00-00-00-00-00-00-00
  NOARP  MTU:1480  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet  HWaddr 80:86:f2:8b:1d:cf
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Thanks,
Kai



On Tue, May 24, 2016 at 3:36 PM, Kai Kang  wrote:

> Hi,
>
> When I install a host, it fails with:
>
> 2016-05-24 07:00:01,749 ERROR
> [org.ovirt.engine.core.bll.SetNonOperationalVdsCommand]
> (DefaultQuartzScheduler_Worker-4) [1bf36cd4] Host 'node3' is set to
> Non-Operational, it is missing the following networks: 'ovirtmgmt'
> 2016-05-24 07:00:01,781 WARN
>  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (DefaultQuartzScheduler_Worker-4) [1bf36cd4] Correlation ID: 1bf36cd4, Job
> ID: db281e8f-67cc-441a-b44c-90b135e509bd, Call Stack: null, Custom Event
> ID: -1, Message: Host node3 does not comply with the cluster Default
> networks, the following networks are missing on host: 'ovirtmgmt'
>
> After I click the "Hosts" -> subtab "Network Interfaces" -> "Setup Host
> Networks" on the web ui and drag ovirtmgmt to "Assigned Logical" to link
> with eth0, then activate host "node3" successfully.
>
> My question is how to make such manual operation automatically?  Then I
> can run some automatic tests.
>
> Thanks a lot.
>
> --Kai
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Downgrade ovirt-engine 3.6 to 3.5

2016-05-24 Thread Barak Korren
On 24 May 2016 at 10:29, Gianluca Cecchi  wrote:
> On Tue, May 24, 2016 at 9:21 AM, Yedidyah Bar David  wrote:
>>
>> On Tue, May 24, 2016 at 9:47 AM, Nicolas Ecarnot 
>> wrote:
>> > Le 24/05/2016 08:36, Sandvik Agustin a écrit :
>> >>
>> >> Hi,
>> >>
>> >> thanks for the quick reply, i have export domain already running and
>> >> attached to ovirt 3.6.
>> >>
>> >> co'z i have 3 hypervisor, 2 are running centos 6.7
>> >
>> >
>> > No one could resist asking you why you wouldn't upgrade those two hosts
>> > to
>> > centos 7 ...
>>
>> I think I can - because in 3.6 we do not support migrating VMs across
>> clusters
>> from el6 to el7, while in 3.5 we did. Not sure exactly why, but this was
>> the
>> reason for doing this migration in 3.5 for hosted-engine upgrade [1].
>>
>>
>
> But in just released 3.6.6 it should be here again.
> See in release notes http://www.ovirt.org/release/3.6.6/
>
> BZ 1241149 [RFE] Provide way to preform in-cluster upgrade of hosts from
> el6->el7.
> https://bugzilla.redhat.com/show_bug.cgi?id=1241149
>
> or not?
>

Not sure about that RFE, but out-of-cluster migration of live VMs from
EL6 to EL7 is very much possible (just hiding behind an "advanced"
button in the UI), and is the migration path we took for many systems.



-- 
Barak Korren
bkor...@redhat.com
RHEV-CI Team
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] How to setup host network to link ovirtmgmt with eth0 automatically?

2016-05-24 Thread Kai Kang
Hi,

When I install a host, it fails with:

2016-05-24 07:00:01,749 ERROR
[org.ovirt.engine.core.bll.SetNonOperationalVdsCommand]
(DefaultQuartzScheduler_Worker-4) [1bf36cd4] Host 'node3' is set to
Non-Operational, it is missing the following networks: 'ovirtmgmt'
2016-05-24 07:00:01,781 WARN
 [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(DefaultQuartzScheduler_Worker-4) [1bf36cd4] Correlation ID: 1bf36cd4, Job
ID: db281e8f-67cc-441a-b44c-90b135e509bd, Call Stack: null, Custom Event
ID: -1, Message: Host node3 does not comply with the cluster Default
networks, the following networks are missing on host: 'ovirtmgmt'

After I click the "Hosts" -> subtab "Network Interfaces" -> "Setup Host
Networks" on the web ui and drag ovirtmgmt to "Assigned Logical" to link
with eth0, then activate host "node3" successfully.

My question is how to make such manual operation automatically?  Then I can
run some automatic tests.

Thanks a lot.

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


Re: [ovirt-users] Downgrade ovirt-engine 3.6 to 3.5

2016-05-24 Thread Gianluca Cecchi
On Tue, May 24, 2016 at 9:21 AM, Yedidyah Bar David  wrote:

> On Tue, May 24, 2016 at 9:47 AM, Nicolas Ecarnot 
> wrote:
> > Le 24/05/2016 08:36, Sandvik Agustin a écrit :
> >>
> >> Hi,
> >>
> >> thanks for the quick reply, i have export domain already running and
> >> attached to ovirt 3.6.
> >>
> >> co'z i have 3 hypervisor, 2 are running centos 6.7
> >
> >
> > No one could resist asking you why you wouldn't upgrade those two hosts
> to
> > centos 7 ...
>
> I think I can - because in 3.6 we do not support migrating VMs across
> clusters
> from el6 to el7, while in 3.5 we did. Not sure exactly why, but this was
> the
> reason for doing this migration in 3.5 for hosted-engine upgrade [1].
>
>
>
But in just released 3.6.6 it should be here again.
See in release notes http://www.ovirt.org/release/3.6.6/

BZ 1241149 [RFE] Provide way to preform in-cluster upgrade of hosts from
el6->el7.
https://bugzilla.redhat.com/show_bug.cgi?id=1241149

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


Re: [ovirt-users] Downgrade ovirt-engine 3.6 to 3.5

2016-05-24 Thread Yedidyah Bar David
On Tue, May 24, 2016 at 9:47 AM, Nicolas Ecarnot  wrote:
> Le 24/05/2016 08:36, Sandvik Agustin a écrit :
>>
>> Hi,
>>
>> thanks for the quick reply, i have export domain already running and
>> attached to ovirt 3.6.
>>
>> co'z i have 3 hypervisor, 2 are running centos 6.7
>
>
> No one could resist asking you why you wouldn't upgrade those two hosts to
> centos 7 ...

I think I can - because in 3.6 we do not support migrating VMs across clusters
from el6 to el7, while in 3.5 we did. Not sure exactly why, but this was the
reason for doing this migration in 3.5 for hosted-engine upgrade [1].

You might be able to move the VMs to the el7 cluster while they are down.
Still requires downtime, but less than export/import.

[1] https://www.ovirt.org/documentation/how-to/hosted-engine-host-OS-upgrade/

>
>
>> , 1 is running centos
>> 7, i don't have any problem at this moment, but i want them to be in the
>> same cluster, the 2 centos 6.7 are in the same cluster but i'm unable to
>> add the host running centos 7 on that cluster, so what i did is create
>> another cluster and add this host centos 7 on the new cluster.
>>
>> I just want them 3 host in the same cluster. :)
>>
>> TIA
>
>
> --
> Nicolas ECARNOT
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users



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


Re: [ovirt-users] Downgrade ovirt-engine 3.6 to 3.5

2016-05-24 Thread Nicolas Ecarnot

Le 24/05/2016 08:36, Sandvik Agustin a écrit :

Hi,

thanks for the quick reply, i have export domain already running and
attached to ovirt 3.6.

co'z i have 3 hypervisor, 2 are running centos 6.7


No one could resist asking you why you wouldn't upgrade those two hosts 
to centos 7 ...



, 1 is running centos
7, i don't have any problem at this moment, but i want them to be in the
same cluster, the 2 centos 6.7 are in the same cluster but i'm unable to
add the host running centos 7 on that cluster, so what i did is create
another cluster and add this host centos 7 on the new cluster.

I just want them 3 host in the same cluster. :)

TIA


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


Re: [ovirt-users] Downgrade ovirt-engine 3.6 to 3.5

2016-05-24 Thread Sandvik Agustin
Hi,

thanks for the quick reply, i have export domain already running and
attached to ovirt 3.6.

co'z i have 3 hypervisor, 2 are running centos 6.7, 1 is running centos 7,
i don't have any problem at this moment, but i want them to be in the same
cluster, the 2 centos 6.7 are in the same cluster but i'm unable to add the
host running centos 7 on that cluster, so what i did is create another
cluster and add this host centos 7 on the new cluster.

I just want them 3 host in the same cluster. :)

TIA

On Tue, May 24, 2016 at 2:25 PM, Yedidyah Bar David  wrote:

> On Tue, May 24, 2016 at 7:01 AM, Sandvik Agustin
>  wrote:
> > Hi users,
> >
> > Is it possible to downgrade ovirt-engine 3.6 to 3.5 if I remove
> > thishttp://resources.ovirt.org/pub/yum-repo/ovirt-release36.rpm then
> install
> > this http://resources.ovirt.org/pub/yum-repo/ovirt-release35.rpm and run
> > this command? # yum update "ovirt-engine-setup*"?
>
> No.
>
> If you already upgraded to 3.6, your database is incompatible with 3.5.
>
> You might try exporting all your VMs to an export domain, setup 3.5,
> import back. Not even sure this works - i.e. that 3.6 export domains are
> 3.5 compatible.
>
> Why do you want to do this?
>
> Best,
> --
> Didi
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Downgrade ovirt-engine 3.6 to 3.5

2016-05-24 Thread Yedidyah Bar David
On Tue, May 24, 2016 at 7:01 AM, Sandvik Agustin
 wrote:
> Hi users,
>
> Is it possible to downgrade ovirt-engine 3.6 to 3.5 if I remove
> thishttp://resources.ovirt.org/pub/yum-repo/ovirt-release36.rpm then install
> this http://resources.ovirt.org/pub/yum-repo/ovirt-release35.rpm and run
> this command? # yum update "ovirt-engine-setup*"?

No.

If you already upgraded to 3.6, your database is incompatible with 3.5.

You might try exporting all your VMs to an export domain, setup 3.5,
import back. Not even sure this works - i.e. that 3.6 export domains are
3.5 compatible.

Why do you want to do this?

Best,
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Failure Backing up oVirt Manager 3.6.5

2016-05-24 Thread Yedidyah Bar David
On Mon, May 23, 2016 at 9:48 PM, Julián Tete  wrote:
> oVirt version = 3.6.5 on CentOS 7.2
>
> I have Data Warehouse and Reports database
>
> Method 1:
>
> In the Manager machine:
>
> engine-backup --mode=backup --file=/home/cnscadmin/engine-3.6.bck
> --log=/home/cnscadmin/backup.log
>
> less /home/cnscadmin/backup.log
>
> 2016-05-23 11:43:30 3585: Start of engine-backup mode backup scope all file
> /home/cnscadmin/engine-3.6.bck
> 2016-05-23 11:43:30 3585: OUTPUT: Backing up:
> 2016-05-23 11:43:30 3585: Generating pgpass
> 2016-05-23 11:43:30 3585: OUTPUT: Notifying engine
> 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p
> 5432  engine -t -c SELECT LogEngineBackupEvent('files', now(), 0, 'Started',
> 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>
>
> 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p
> 5432  engine -t -c SELECT LogEngineBackupEvent('db', now(), 0, 'Started',
> 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>
>
> 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p
> 5432  engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 0, 'Started',
> 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>
>
> 2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p
> 5432  engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 0,
> 'Started', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>
>
> 2016-05-23 11:43:30 3585: Creating temp folder
> /tmp/engine-backup.UwsBOUPMGT/tar
> 2016-05-23 11:43:30 3585: OUTPUT: - Files
> 2016-05-23 11:43:30 3585: Backing up files to
> /tmp/engine-backup.UwsBOUPMGT/tar/files
> 2016-05-23 11:43:30 3585: OUTPUT: - Engine database 'engine'
> 2016-05-23 11:43:30 3585: Backing up database to
> /tmp/engine-backup.UwsBOUPMGT/tar/db/engine_backup.db
> 2016-05-23 11:43:30 3585: pg_cmd running: pg_dump -w -U engine -h localhost
> -p 5432  engine -E UTF8 --disable-dollar-quoting --disable-triggers
> --format=custom
> 2016-05-23 11:43:31 3585: OUTPUT: - DWH database 'ovirt_engine_history'
> 2016-05-23 11:43:31 3585: Backing up dwh database to
> /tmp/engine-backup.UwsBOUPMGT/tar/db/dwh_backup.db
> 2016-05-23 11:43:31 3585: pg_cmd running: pg_dump -w -U ovirt_engine_history
> -h localhost -p 5432  ovirt_engine_history -E UTF8 --disable-dollar-quoting
> --disable-triggers --format=custom
> 2016-05-23 11:43:32 3585: OUTPUT: - Reports database 'ovirt_engine_reports'
> 2016-05-23 11:43:32 3585: Backing up reports database to
> /tmp/engine-backup.UwsBOUPMGT/tar/db/reports_backup.db
> 2016-05-23 11:43:32 3585: pg_cmd running: pg_dump -w -U ovirt_engine_reports
> -h localhost -p 5432  ovirt_engine_reports -E UTF8 --disable-dollar-quoting
> --disable-triggers --format=custom
> 2016-05-23 11:43:33 3585: Creating md5sum at
> /tmp/engine-backup.UwsBOUPMGT/tar/md5sum
> 2016-05-23 11:43:33 3585: OUTPUT: Packing into file
> '/home/cnscadmin/engine-3.6.bck'
> 2016-05-23 11:43:33 3585: Creating tarball /home/cnscadmin/engine-3.6.bck
> 2016-05-23 11:43:33 3585: OUTPUT: Notifying engine
> 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p
> 5432  engine -t -c SELECT LogEngineBackupEvent('files', now(), 1,
> 'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>
>
> 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p
> 5432  engine -t -c SELECT LogEngineBackupEvent('db', now(), 1, 'Finished',
> 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>
>
> 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p
> 5432  engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 1,
> 'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>
>
> 2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p
> 5432  engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 1,
> 'Finished', 'ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
>
>
> 2016-05-23 11:43:33 3585: OUTPUT: Done.
>
> In the Restore Machine:
>
> yum -y install postgresql postgresql-server postgresql-contrib
>
> postgresql-setup initdb
>
> systemctl enable postgresql.service
>
> systemctl start postgresql.service
>
> less /var/lib/pgsql/data/pg_hba.conf
>
>
> hostengine  engine  0.0.0.0/0   md5
> hostovirt_engine_reports  ovirt_engine_reports
> 0.0.0.0/0   md5
> hostovirt_engine_history  ovirt_engine_history
> 0.0.0.0/0   md5
>
>
> hostengine  engine  ::0/0   md5
> hostovirt_engine_reports  ovirt_engine_reports  ::0/0
> md5
> hostovirt_engine_history  ovirt_engine_history  ::0/0
> md5
>
> less /var/lib/pgsql/data/postgresql.conf
>
> listen_addresses = '*'  # what IP address(es) to listen on;
>
>
> firewall-cmd --permanent --add-service=postgresql
>
> firewall-cmd --reload
>

All of the above is not needed (but should be harmless) if you use