engine-setup fails to upgrade postgresql
by Michael Watters
After installing the ovirt 4.2 repository and running engine-setup the
upgrade script fails with an error as shown below.
[ ERROR ] Postgresql client version is '9.5.9', whereas the version on
'localhost' is '9.2.23'. Please use a PostgreSQL server of version '9.5.9'.
Please note the following required changes in postgresql.conf
on 'localhost':
postgresql.conf is usually in /var/lib/pgsql/data,
/var/opt/rh/rh-postgresql95/lib/pgsql/data, or somewhere under
/etc/postgresql* . You have to restart PostgreSQL after making these
changes.
Engine database host []:
The setup script is supposed to take care of this automatically however
it fails before even attempting to upgrade postgres. Does anybody know
how to work around this?
6 years, 5 months
gdeploy hosted engine failed but host says it is up what now?
by william.dossett@gmail.com
Hi,
Ovirt 4.2.3
I gdeplyed deployed glusterfs which seems to have gone well and then on to the hosted engine... which seemed to be going well, but then the ovirt engine did not come online...
[ INFO ] TASK [Wait for the engine to come up on the target VM]
[ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 120, "changed": true, "cmd": ["hosted-engine", "--vm-status", "--json"], "delta": "0:00:00.225200", "end": "2018-06-09 15:15:24.434531", "rc": 0, "start": "2018-06-09 15:15:24.209331", "stderr": "", "stderr_lines": [], "stdout": "{\"1\": {\"conf_on_shared_storage\": true, \"live-data\": true, \"extra\": \"metadata_parse_version=1\\nmetadata_feature_version=1\\ntimestamp=17346 (Sat Jun 9 15:15:19 2018)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=17346 (Sat Jun 9 15:15:19 2018)\\nconf_on_shared_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\", \"hostname\": \"usbou-rhev01.pbi.global.pvt\", \"host-id\": 1, \"engine-status\": {\"reason\": \"failed liveliness check\", \"health\": \"bad\", \"vm\": \"up\", \"detail\": \"Up\"}, \"score\": 3400, \"stopped\": false, \"maintenance\": false, \"crc32\": \"e3c31ac3\", \"local_conf_timestamp\": 17346, \"host-ts\": 17346}, \"global_maintenance\": false}", "stdout_lines": ["{\"1\": {\"conf_on_shared_storage\": true, \"live-data\": true, \"extra\": \"metadata_parse_version=1\\nmetadata_feature_version=1\\ntimestamp=17346 (Sat Jun 9 15:15:19 2018)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=17346 (Sat Jun 9 15:15:19 2018)\\nconf_on_shared_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\", \"hostname\": \"usbou-rhev01.pbi.global.pvt\", \"host-id\": 1, \"engine-status\": {\"reason\": \"failed liveliness check\", \"health\": \"bad\", \"vm\": \"up\", \"detail\": \"Up\"}, \"score\": 3400, \"stopped\": false, \"maintenance\": false, \"crc32\": \"e3c31ac3\", \"local_conf_timestamp\": 17346, \"host-ts\": 17346}, \"global_maintenance\": false}"]}
When I look at the host now it says Hosted Engine is running on the host, Hosted engine is up, but I can not ping it, ssh to it or open the console on the VM.
I am pretty new to this setup so would appreciate any steps I can take to move this forward.
Thanks
Bill
6 years, 5 months
Latency and Bandwidth for Disk level statistics
by Hari Prasanth Loganathan
Hi Team,
I have created a VM using oVirt, which is in UP state now.
1) I opened the guest console using oVirt
2) I want to get the statistics for disk so I tried to create and write
some content in the file (say test.txt) in loop to increase the latency and
bandwidth in disk.
3) I observed that CPU in VM statistics is increased to 100 % (This is a
good news since I expected this also)
But when I looked into the disk level statistics using the following
API, I observe the data value as '0' always.
https://172.30.X.X/ovirt-engine/api/disks/3bc267c0-a797-4e98-8ae9-2176716...
{
"statistic": [
{
"kind": "gauge",
"type": "decimal",
"unit": "bytes_per_second",
"values": {
"value": [
{
"datum": 0
}
]
},
"disk": {
"href":
"/ovirt-engine/api/disks/3bc267c0-a797-4e98-8ae9-217671649287",
"id": "3bc267c0-a797-4e98-8ae9-217671649287"
},
"name": "data.current.read",
"description": "Read data rate",
"href":
"/ovirt-engine/api/disks/3bc267c0-a797-4e98-8ae9-217671649287/statistics/33b9212b-f9cb-3fd0-b364-248fb61e1272",
"id": "33b9212b-f9cb-3fd0-b364-248fb61e1272"
},
{
"kind": "gauge",
"type": "decimal",
"unit": "bytes_per_second",
"values": {
"value": [
{
"datum": 0
}
]
},
"disk": {
"href":
"/ovirt-engine/api/disks/3bc267c0-a797-4e98-8ae9-217671649287",
"id": "3bc267c0-a797-4e98-8ae9-217671649287"
},
"name": "data.current.write",
"description": "Write data rate",
"href":
"/ovirt-engine/api/disks/3bc267c0-a797-4e98-8ae9-217671649287/statistics/2f23addd-4ebd-3d82-a449-c28778bc33eb",
"id": "2f23addd-4ebd-3d82-a449-c28778bc33eb"
}
]
}
*How can I increase the disk statistics using the VM Guest console?*
*Any help is much appreciated.*
Thanks,
Hari
6 years, 5 months
Hosted Engine: brick size...is this a bug?
by femi adegoke
I have now done the oVirt 4.2.3.1 install at least 5 times, no, I don't consider myself any kind of expert.
Even though the HE uses less than 10gb of space for some reason the install will fail if the brick is less than 58gb.
Why is that?
Look at this error:
[ ERROR ] Error: Fault reason is "Operation Failed". Fault detail is "[Problem while trying to mount target]".
HTTP response code is 400.
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Fault reason is \"Operation Failed\".
Fault detail is \"[Problem while trying to mount target]\". HTTP response code is 400."}
The size of the brick was set at 50gb:
[lv1]
action=create
vgname=gluster_vg1
lvname=engine_lv
lvtype=thick
size=50GB
mount=/gluster_bricks/engine
Solution:
Edit size to 60gb, re-run & voila, all is good.
Is this a bug or maybe it's a problem with the way I'm doing things.
6 years, 5 months
oVirt Version 4.2.3.5-1.el7.centos cannot change password from user (Bad Request)
by Alejandro Cortina
Hi there,
I have created a new user from hosted engine by:
ovirt-aaa-jdbc-tool user add test_user --attribute=description='test user'
--attribute=firstName=test_user
ovirt-aaa-jdbc-tool user password-reset test_user --password=pass:changeme
then I try to login and I get the message:
*Unable to log in because the password has expired. Change the password to
proceed. *
When I click "Change the password" the browser redirects to:
https://FQDN/ovirt-engine/sso/%s
and I get
*Bad RequestYour browser sent a request that this server could not
understand.*
Last time I tried with 4.2.1 and it was working with no issues.
Cheers,
Alex
6 years, 5 months
Snapshotting Oracle 11g on oVirt
by Vinícius Ferrão
Hello,
I’m planning to install Oracle 11g on a VM inside oVirt. I already knew about the licensing hell of running Oracle 11g on a virtualized environment.
The question is about snapshotting Oracle 11gb when the VM is running. Is this supported? For example, on VMware and XenServer there’s the quiesce option to make the filesystem, with a little help from the guest agent, to be in an a good state for snapshots. But in oVirt, how this is handled? If supported, which operating systems are compatible with the feature?
Thanks,
6 years, 5 months
Ovirt 4.2 SDK - Way to add files with CloudInit()
by atripathi@hypergrid.com
Hi.
I am using Ovirt 4.2 Java SDK.
Quick query, can we add additional files to ~openstack/content and modify meta_data.json to point these files. I can see we can add files to
.cloudInit(cloudInit().files(files))
But API ignores it .. I checked it on /var/log/ovirt-engine/engine.log as well as the img created and attached with VM
Reference - Cloudinit version support such files
cat meta_data.json
{"files": [{"path": "/etc/injected_files", "content_path": "/content/0000"}, {"path": "/etc/trove/conf.d/guest_info.conf", "content_path": "/content/0001"}, {"path": "/etc/trove/conf.d/trove-guestagent.conf", "content_path": "/content/0002"}],
reference https://bugs.launchpad.net/cloud-init/+bug/1602373
6 years, 5 months