Adding user to internalz with webadmin?
by Juhani Rautiainen
Hi!
How do you add users to internalz with webadmin? I mean there is add a
button in Administration->Users which opens 'Add Users and
Groups'-window . Windows has 'Add'- and 'Add and close'- buttons in
the bottom. Just can't figure out how they work. Pushing either of
those Add-buttons just closes the window.
-Juhani
5 years, 9 months
Tracking down high writes in GlusterFS volume
by Jayme
Running an oVirt 4.3 HCI 3-way replica cluster with SSD backed storage.
I've noticed that my SSD writes (smart Total_LBAs_Written) are quite high
on one particular drive. Specifically I've noticed one volume is much much
higher total bytes written than others (despite using less overall space).
My volume is writing over 1TB of data per day (by my manual calculation,
and with glusterfs profiling) and wearing my SSDs quickly, how can I best
determine which VM or process is at fault here?
There are 5 low use VMs using the volume in question. I'm attempting to
track iostats on each of the vm's individually but so far I'm not seeing
anything obvious that would account for 1TB of writes per day that the
gluster volume is reporting.
5 years, 9 months
Add compute nodes offline
by xilazz@126.com
Hi, when I add compute nodes, I do not intend to add compute nodes to the engine controller without connecting to the external network:
An error has occurred during installation of Host node5.test.com: Failed to execute stage 'Environment customization': Cannot retrieve metalink for repository:
Please verify its path and try again. Do I need to manually download some offline packages in this case?
5 years, 9 months
Python-SDK4- Issue following links
by Don Dupuis
Hi
I am trying to write some code to update the names of existing vnicprofiles
in ovirt-4.2. The problem I am having is trying to follow the links to the
vnicprofiles. Below is web info that I am trying to get:
<network
href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4"
id="740cae1f-c49f-4563-877a-5ce173e83be4"><name>ovirtmgmt</name><description>LOOKING</description><comment/><link
href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/permissions"
rel="permissions"/><link
href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/vnicprofiles"
rel="vnicprofiles"/><link
href="/ovirt-engine/api/networks/740cae1f-c49f-4563-877a-5ce173e83be4/networklabels"
rel="networklabels"/><mtu>0</mtu><stp>false</stp><usages><usage>vm</usage></usages><vlan
id="4050"/><data_center
href="/ovirt-engine/api/datacenters/1d00d32b-abdc-43cd-b990-257aaf01d514"
id="1d00d32b-abdc-43cd-b990-257aaf01d514"/></network>
Below is the code that I am trying to do the same thing and I want to
follow the vnicprofiles link to get to the actual data that I want to
change:
#!/usr/bin/env python
import logging
import time
import string
import sys
import os
import MySQLdb
import ovirtsdk4 as sdk
import ovirtsdk4.types as types
#logging.basicConfig(level=logging.DEBUG, filename='/tmp/addhost.log')
### Variables to be used ###
#NUMANODE = 3
#MEM = 20
GB = 1024 * 1024 * 1024
#MEMORY = MEM * GB
GB = 1024 * 1024 * 1024
URL = 'https://host/ovirt-engine/api'
CAFILE = '/etc/pki/ovirt-engine/ca.pem'
USERNAME = 'admin@internal'
PASSWORD = 'password'
HOSTNAME = 'rvs06'
connection = sdk.Connection(
url=URL,
username=USERNAME,
password=PASSWORD,
# ca_file='ca.pem',
debug='True',
insecure='True',
# log=logging.getLogger(),
)
#dcs_service = connection.system_service().data_centers_service()
#dc = dcs_service.list(search='cluster=%s-local' % HOSTNAME)[0]
#network = dcs_service.service(dc.id).networks_service()
networks_service = connection.system_service().networks_service()
network = networks_service.list(
search='name=ovirtmgmt and datacenter=%s-local' % HOSTNAME) [0]
print ("Network name is %s" % network.name)
print ("Network id is %s" % network.id)
vnic = connection.follow_link(network.vnicprofiles)
connection.close()
Below is the output of my code:
./update-vnic.py
Network name is ovirtmgmt
Network id is 740cae1f-c49f-4563-877a-5ce173e83be4
Traceback (most recent call last):
File "./update-vnic.py", line 46, in <module>
vnic = connection.follow_link(network.vnicprofiles)
AttributeError: 'Network' object has no attribute 'vnicprofiles'
The network name and network id is correct. Any help would be appreciated
on what I am missing or what I am doing wrong. The actual updating of the
name with code isn't written yet as I can't get past this part.
Thanks
Don
5 years, 9 months
Unrecognized message received error when ISO domain is put in Maintenance
by Wood Peter
Hi all,
We are running oVirt 4.1.1 on engine and nodes. The ISO storage domain is
NFS. Everything has been working great for years.
Now I need to move the ISO and Export domains to a different storage server.
When I put the ISO domain in maintenance the Master domain and the Export
domain start flipping active-non active. The Events tab in the Web UI shows
this message scrolling every 30 sec. or so:
"Datacenter is being initialized. Please wait for initialization to
complete"
... but it never completes.
It also starts cycling the SPM assignment from one node to another.
As soon as I activate back the ISO domain everything calms down and no more
errors are recorded in the logs.
In engine.log I see this "Unrecognized message received" error:
2019-02-25 19:45:20,467-08 ERROR
[org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
Unable to process messages Unrecognized message received
2019-02-25 19:45:20,481-08 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(DefaultQuartzScheduler6) [76363b98] EVENT_ID:
IRS_BROKER_COMMAND_FAILURE(10,803), Correlation ID: null, Call Stack: null,
Custom E
vent ID: -1, Message: VDSM command GetStoragePoolInfoVDS failed:
Unrecognized message received
2019-02-25 19:45:20,481-08 ERROR
[org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]
(DefaultQuartzScheduler6) [76363b98] ERROR,
org.ovirt.engine.core.vdsbroker.irsbroker.GetStoragePoolInfoVDSCommand,
exception: VDSGenericExce
ption: VDSNetworkException: Unrecognized message received , log id: 1635c439
2019-02-25 19:45:20,481-08 ERROR
[org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]
(DefaultQuartzScheduler6) [76363b98] Exception:
org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException:
VDSGenericException: VDSNetwor
kException: Unrecognized message received
In vdsm.log on the nodes I see this:
2019-02-25 19:45:29,817-0800 ERROR (upgrade/b5b7a10) [storage.StoragePool]
Unhandled exception (utils:371)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 368, in
wrapper
return f(*a, **kw)
File "/usr/lib/python2.7/site-packages/vdsm/concurrent.py", line 180, in
run
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/storage/securable.py", line
79, in wrapper
return method(self, *args, **kwargs)
File "/usr/share/vdsm/storage/sp.py", line 232, in _upgradePoolDomain
self._finalizePoolUpgradeIfNeeded()
File "/usr/lib/python2.7/site-packages/vdsm/storage/securable.py", line
77, in wrapper
raise SecureError("Secured object is not in safe state")
SecureError: Secured object is not in safe state
And I believe that after that error it moves the SPM to another host, gets
the same error and continues moving it to the next host and so on.
I really need to move the ISO and Export domains to a different storage
server.
Any idea what is causing this or how to fix it?
Appreciate any help.
Thanks,
-- Peter
5 years, 9 months
/boot partition of oVirt node missing after reboot
by andy.law@hactlsolutions.com
I've installed oVirt Node 4.2 on one of my servers. Recently I've upgraded the kernel version to 3.10.0-957.5.1.el7.x86_64.
After such update, I've rebooted the server to take effect and then the /boot partition cannot be recognized. The server then enters emergency mode and I've tried to run the command blkid but I cannot find the uuid of /boot and /boot/efi.
Before reboot:
# blkid
/dev/mapper/onn-var_crash: UUID="2aa920d6-c2d2-4313-8df1-8be16a5718ae" TYPE="ext4"
/dev/mapper/3600508b1001cede21ec59eb753184259p3: UUID="Vy9K1K-e4uI-oM73-blSV-eU29-FnZP-3FIh4Y" TYPE="LVM2_member" PARTUUID="57cfd006-60d0-4826-8f58-6d11d4e1cb94"
/dev/mapper/3600508b1001cede21ec59eb753184259p1: SEC_TYPE="msdos" UUID="7408-0A3B" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="56cadb64-9099-4ec8-9c0c-94596c80b2a9"
/dev/mapper/3600508b1001cede21ec59eb753184259p2: UUID="3e920048-3b2e-4c09-b507-c9debe7d98f0" TYPE="ext4" PARTUUID="9ee53bdd-3051-443b-960f-9801d7245d33"
/dev/mapper/onn-ovirt--node--ng--4.2.7.1--0.20181219.0+1: UUID="111ed68a-a7e8-4b17-8add-5c8fd9035bbc" TYPE="ext4"
/dev/mapper/onn-swap: UUID="0fcbdcfe-92da-43d4-a773-ef6f7dac0556" TYPE="swap"
/dev/mapper/onn-var_log_audit: UUID="48531956-48cc-4faa-9dfc-e7baaab89b3b" TYPE="ext4"
/dev/mapper/onn-var_log: UUID="15c57452-0333-4a9a-a8e6-220155e819b3" TYPE="ext4"
/dev/mapper/onn-var: UUID="772613a5-be4f-4044-8b95-c846852f5421" TYPE="ext4"
/dev/mapper/onn-tmp: UUID="1ee263bf-9dcb-46e8-92f7-f21a8c87eeb5" TYPE="ext4"
/dev/mapper/onn-home: UUID="738d2e6f-d7e0-4d3a-acc0-6db1392a0222" TYPE="ext4"
/dev/sdc: UUID="e2pRkW-V1Vd-XxqK-5PBK-5Vtb-8Mgr-YjgB1M" TYPE="LVM2_member"
/dev/mapper/360060e80122ed80050402ed800000a00: UUID="e2pRkW-V1Vd-XxqK-5PBK-5Vtb-8Mgr-YjgB1M" TYPE="LVM2_member"
/dev/sdd: UUID="WlBAsN-q2YR-vYGL-Syx4-HJ30-CbVk-v2Q7yt" TYPE="LVM2_member"
/dev/mapper/360060e80122ed80050402ed800000a01: UUID="WlBAsN-q2YR-vYGL-Syx4-HJ30-CbVk-v2Q7yt" TYPE="LVM2_member"
/dev/sde: UUID="e2pRkW-V1Vd-XxqK-5PBK-5Vtb-8Mgr-YjgB1M" TYPE="LVM2_member"
/dev/sdf: UUID="WlBAsN-q2YR-vYGL-Syx4-HJ30-CbVk-v2Q7yt" TYPE="LVM2_member"
/dev/mapper/c0d0ef19--826b--44d7--a380--658adb915964-master: UUID="a409bf9f-63b6-42ac-8759-038f1bc3337f" TYPE="ext3"
/dev/mapper/e399fd7f--c884--4e3d--89cf--7d8ddae16058-master: UUID="887319bd-d3e4-4dfe-9f8c-3e4ee2498ccb" SEC_TYPE="ext2" TYPE="ext3"
/dev/mapper/3600508b1001cede21ec59eb753184259: PTTYPE="gpt"
/dev/sdb: PTTYPE="gpt"
/dev/mapper/c0d0ef19--826b--44d7--a380--658adb915964-a72e9370--0649--4e6f--b10a--1015b6b2134f: PTTYPE="dos"
#cat /etc/fstab
/dev/onn/ovirt-node-ng-4.2.7.1-0.20181219.0+1 / ext4 defaults,discard 1 1
UUID=3e920048-3b2e-4c09-b507-c9debe7d98f0 /boot ext4 defaults 1 2
UUID=7408-0A3B /boot/efi vfat umask=0077,shortname=winnt 0 0
/dev/mapper/onn-home /home ext4 defaults,discard 1 2
/dev/mapper/onn-tmp /tmp ext4 defaults,discard 1 2
/dev/mapper/onn-var /var ext4 defaults,discard 1 2
/dev/mapper/onn-var_log /var/log ext4 defaults,discard 1 2
/dev/mapper/onn-var_log_audit /var/log/audit ext4 defaults,discard 1 2
/dev/mapper/onn-swap swap swap defaults 0 0
Any ideas what caused this?
5 years, 9 months
Stuck completing last step of 4.3 upgrade
by Jayme
Environment setup:
3 Host HCI GlusterFS setup. Identical hosts, Dell R720s w/ Intel E5-2690
CPUs
1 default data center (4.2 compat)
1 default cluster (4.2 compat)
Situation: I recently upgraded my three node HCI cluster from Ovirt 4.2 to
4.3. I did so by first updating the engine to 4.3 then upgrading each
ovirt-node host to 4.3 and rebooting.
Currently engine and all hosts are running 4.3 and all is working fine.
To complete the upgrade I need to update cluster compatibility to 4.3 and
then data centre to 4.3. This is where I am stuck.
The CPU type on cluster is "Intel SandyBridge IBRS Family". This option is
no longer available if I select 4.3 compatibility. Any other option chosen
such as SandyBridge IBRS SSBD will not allow me to switch to 4.3 as all
hosts must be in maintenance mode (which is not possible w/ self hosted
engine).
I saw another post about this where someone else followed steps to create a
second cluster on 4.3 with new CPU type then move one host to it, start
engine on it then perform other steps to eventually get to 4.3
compatibility.
I tried to add a 4.3 cluster with gluster service and put one of my hosts
in to maintenance mode but could not move it to the new cluster, it gave me
an error about the host having gluster service. If I try to import gluster
config in cluster add UI it fails in engine log with
"SERVER_ALREADY_EXISTS_IN_ANOTHER_CLUSTER"
My question is, what is the proper procedure for me to complete upgrading
my three node HCI environment to 4.3 cluster compatibility along with
changing CPU type?
Do I really need to create a second cluster and move host(s) to it? If so
how can I move an existing host with running gluster service to a new
cluster?
Thanks in advance!
5 years, 9 months