Upgrade to 3.4.2 failed
by Demeter Tibor
Hi,
I just did an upgrade to my 3.4.0 box.
I did a yum update and an engine-setup
After the package downloading process got this:
[ INFO ] Yum Verify: 14/14: ovirt-engine.noarch 0:3.4.0-1.el6 - ud
[ INFO ] Stage: Misc configuration
[ INFO ] Backing up database localhost:engine_20140130075536 to '/var/lib/ovirt-engine/backups/engine-20140617140129.QZGO9x.dump'.
[ INFO ] Updating Engine database schema
[ ERROR ] Failed to execute stage 'Misc configuration': Command '/usr/share/ovirt-engine/dbscripts/upgrade.sh' failed to execute
[ INFO ] Yum Performing yum transaction rollback
[ INFO ] Yum Status: Downloading Packages
[ INFO ] Yum Download/Verify: ovirt-engine-3.4.0-1.el6.noarch
A cut from the log file:
running upgrade sql script upgrade/03_04_0720_add_host_interface_high_network_use_event.sql ...
Running upgrade sql script upgrade/03_04_0730_change_group_ids.sql ...
Running upgrade sql script upgrade/03_04_0740_update_user_ids.sql ...
2014-06-17 14:01:41 DEBUG otopi.plugins.ovirt_engine_setup.ovirt_engine.db.schema plugin.execute:866 execute-output: ['/usr/share/ovirt-engine/dbscripts/upgrade.sh', '-s', 'localhost',
'-p', '5432', '-u', 'engine_20140130075536', '-d', 'engine_20140130075536', '-l', '/var/log/ovirt-engine/setup/ovirt-engine-setup-20140617135909-a7zbn6.log', '-g'] stderr:
psql:upgrade/03_04_0740_update_user_ids.sql:41: ERROR: duplicate key value violates unique constraint "pk_users"
CONTEXT: SQL statement "UPDATE users SET user_id = temp_id"
PL/pgSQL function "__temp_update_user_ids_03_04_0740" line 30 at SQL statement
2014-06-17 14:01:41 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod
method['method']()
File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/db/schema.py", line 345, in _miscUpgrade
osetupcons.DBEnv.PGPASS_FILE
File "/usr/lib/python2.6/site-packages/otopi/plugin.py", line 871, in execute
command=args[0],
RuntimeError: Command '/usr/share/ovirt-engine/dbscripts/upgrade.sh' failed to execute
2014-06-17 14:01:41 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Misc configuration': Command '/usr/share/ovirt-engine/dbscripts/upgrade.sh' failed to execute
2014-06-17 14:01:41 DEBUG otopi.transaction transaction.abort:131 aborting 'Yum Transaction'
2014-06-17 14:01:41 INFO otopi.plugins.otopi.packagers.yumpackager yumpackager.info:92 Yum Performing yum transaction rollback
2014-06-17 14:01:41 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager.verbose:88 Yum Building transaction
2014-06-17 14:01:42 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager.verbose:88 Yum Transaction built
2014-06-17 14:01:42 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager.verbose:88 Yum Transaction Summary:
2014-06-17 14:01:42 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager.verbose:88 Yum install - ovirt-engine-3.4.0-1.el6.noarch
Anybody help me?
Thanks in advance
Tibor
10 years, 4 months
Disk's locked of VM
by Andy Michielsen
Hello all,
Does anyone know how I can check if a VM's disk are indeed locked or not.
The engine tell's me they are locked but this is now already 16 day's and
counting.
I already restarted every server involved but to no avail.
I can not remove, change or start the VM as long as the disks are locked.
Can I give a command to check the status of this machine in the CLI
enviroment or after connecting to the database and checking a table (Realy
don't know how to do this).
Kind regards.
10 years, 4 months
Ip spoofing
by Punit Dambiwal
Hi,
I have setup Ovirt with glusterfs...I have some concern about the network
part....
1. Is there any way to restrict the Guest VM...so that it can be assign
with single ip address...and in anyhow the user can not manipulate the IP
address from inside the VM (that means user can not change the ip address
inside the VM).
Thanks,
Punit
10 years, 4 months
iSCSI and multipath
by Nicolas Ecarnot
Hi,
Context here :
- 2 setups (2 datacenters) in oVirt 3.4.1 with CentOS 6.4 and 6.5 hosts
- connected to some LUNs in iSCSI on a dedicated physical network
Every host has two interfaces used for management and end-user LAN
activity. Every host also have 4 additional NICs dedicated to the iSCSI
network.
Those 4 NICs were setup from the oVirt web GUI in a bonding with a
unique IP address and connected to the SAN.
Everything is working fine. I just had to manually tweak some points
(MTU, other small things) but it is working.
Recently, our SAN dealer told us that using bonding in an iSCSI context
was terrible, and the recommendation is to use multipathing.
My previous experience pre-oVirt was to agree with that. Long story
short is just that when setting up the host from oVirt, it was so
convenient to click and setup bonding, and observe it working that I did
not pay further attention. (and we seem to have no bottleneck yet).
Anyway, I dedicated a host to experiment, I things are not clear to me.
I know how to setup NICs, iSCSI and multipath to present the host OS a
partition or a logical volume, using multipathing instead of bonding.
But in this precise case, what is disturbing me is that many layers
described above are managed by oVirt (mount/unmount of LV, creation of
bridges on top of bonded interfaces, managing the WWID amongst the cluster).
And I see nothing related to multipath at the NICs level.
Though I can setup everything fine in the host, this setup does not
match what oVirt is expecting : oVirt is expecting a bridge named as the
iSCSI network, and able to connect to the SAN.
My multipathing is offering the access to the partition of the LUNs, it
is not the same.
I saw that multipathing is talked here :
http://www.ovirt.org/Feature/iSCSI-Multipath
I here read :
> Add an iSCSI Storage to the Data Center
> Make sure the Data Center contains networks.
> Go to the Data Center main tab and choose the specific Data Center
> At the sub tab choose "iSCSI Bond"
The only tabs I see are "Storage/Logical Networks/Network
QoS/Clusters/Permissions".
In this datacenter, I have one iSCSI master storage domain, two iSCSI
storage domains and one NFS export domain.
What did I miss?
> Press the "new" button to add a new iSCSI Bond
> Configure the networks you want to add to the new iSCSI Bond.
Anyway, I'm not sure to understand the point of this wiki page and this
implementation : it looks like a much higher level of multipathing over
virtual networks, and not at all what I'm talking about above...?
Well as you see, I need enlightenments.
--
Nicolas Ecarnot
10 years, 4 months
Spam Latency
by Maurice James
------=_Part_9185_436466821.1403826165017
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
I noticed that the following operations take way, way too long:
Any type of import/export (VM, template. etc.)
Disk migration
Snapshot deletion
These operations take over 60 minutes, most of the time pushing 90 minutes. I know I don't have the fastest storage disks but wow, up to 90 minutes?.
My NFS storage is on a 4 disk RAID 5. 7200rpm disks. 2GBps network connection.
Specs:
Cluster of 4 Dell R420
Dual 6 core Xeon
32 GB Ram per server
4 500GB 7200 rpm disks RAID 5
------=_Part_9185_436466821.1403826165017
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>I noticed that the following operations take way, way too long:<br></div><div><br></div><div>Any type of import/export (VM, template. etc.)<br></div><div>Disk migration<br></div><div>Snapshot deletion<br></div><div><br></div><div>These operations take over 60 minutes, most of the time pushing 90 minutes. I know I don't have the fastest storage disks but wow, up to 90 minutes?.<br></div><div>My NFS storage is on a 4 disk RAID 5. 7200rpm disks. 2GBps network connection.<br></div><div><br></div><div>Specs:<br></div><div>Cluster of 4 Dell R420<br></div><div>Dual 6 core Xeon<br></div><div>32 GB Ram per server<br></div><div>4 500GB 7200 rpm disks RAID 5<br></div><div><br></div><div><br></div></div></body></html>
------=_Part_9185_436466821.1403826165017--
10 years, 4 months
USB support?
by Demeter Tibor
------=_Part_21849033_1430502381.1403807823211
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Hi,
Is there any possibility for using the host's usb ports for a guest?
I need to migrate a physical windows based machine that using usb tokens.
Thanks in advance.
Tibor
------=_Part_21849033_1430502381.1403807823211
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi,</div><div><br></div><div>Is there any possibility for using the host's usb ports for a guest? </div><div>I need to migrate a physical windows based machine that using usb tokens. </div><div><br></div><div>Thanks in advance.</div><div>Tibor</div><div><br></div></div></body></html>
------=_Part_21849033_1430502381.1403807823211--
10 years, 4 months
Issues in IP Assigning using API
by Shanil S
Hi,
I am assigning IP using the REST API as like
http://www.ovirt.org/Features/Cloud-Init_Integration but it seems the IP is
not assigning to the vm. But the other details like host address etc are
correctly saving. I am using cloud init to assign IP address
The following is the xml which i used for assigning IP
$xml_data = "
<action>
<vm>
<os>
<boot dev='cdrom'/>
</os>
<initialization>
<cloud_init>
<host>
<address>TestMachine</address>
</host>
<users>
<user>
<user_name>username</user_name>
<password>adminpassw</password>
</user>
</users>
<network_configuration>
<nics>
<nic>
<name>eth0</name>
<boot_protocol>none</boot_protocol>
<network>
<ip address='x.x.x.x' netmask='255.255.0.0'
gateway='x.x.x.x'/>
</network>
<on_boot>true</on_boot>
</nic>
</nics>
<dns>
<servers>
<host>
<address>8.8.8.8</address>
</host>
</servers>
</dns>
</network_configuration>
</cloud_init>
</initialization>
</vm>
</action>";
The above xml is called with the start function of API. IP is assigned from
the ovirt portal and the issue is only when assigning it from the REST API.
If anyone knows could you please check if any issues with the it ?
10 years, 4 months
oVirt All-In-One instructions for presentation?
by Greg Sheremeta
Hi,
I submitted a tutorial proposal to LISA '14 called "Hands-on with oVirt," but it was rejected. However, we can still get oVirt in front of people if we rework it as a "lab."
Basically a lab is just a one or two sheet set of instructions that would describe to someone how to test out oVirt All-In-One in the LISA lab.
I know there have been demos of oVirt all-in-one at other conferences. Does anyone have a list of presentation-friendly instructions that he/she could share?
Thanks!
Greg
PS -- Actually -- the 'demo' doesn't have to be all-in-one, but I was thinking that would be easiest given the unknown lab hardware at LISA. If the lab is very powerful, I suppose attendees could try to setup separate nodes. I'll try to find out lab details.
Greg Sheremeta
Red Hat, Inc.
Sr. Software Engineer, RHEV
Cell: 919-807-1086
gshereme(a)redhat.com
10 years, 4 months