Obtain dynamic inventory onto local machine using ovirt4.py for self-hosted engine
by 03ce007@gmail.com
I have successfully deployed self-hosted-engine (4.2) on centos (7.4) server.
the server address is ovirt where the self-hosted engine running on it has fdqn as engine.ovirt. I have ovirt,ini configured on server acan run the ovirt4.py from the server to obtain the vms in groups. But I want to control the vms using ansible from my macbook and run ansible playbooks locally.
so I have downloaded the ovirt.ini and ovirt4.py from server and tried running it, but had no success.
Is there something special needs setting up for 'self-hosted-ovirt-engine' as oppose to vanilla ovirt-engine which will allow me to control vms from my macbook?
thanks.
6 years, 6 months
oVirt upgrade node from 4.1.9 to 4.2.3
by rcasebier@adicio.com
My engine is upgraded and running 4.2.3. I am testing out upgrading my first local storage node. I installed the 4.2 release repo and ran a yum update. I had to manually install the following packages form CentOS (yum install udisks2 lshw iotop libvirt-daemon-config-network virt-install python-prettytable) for some reason these dependencies did not exist in the oVirt repo's. I was able to run yum update after fixing this issue and my host was installed with 4.2.3. After a reboot, it failed to boot, the host failed to start the login service and the authorization manager. Has anyone run into this issue?
6 years, 6 months
Using remote viewer outside lan
by Aziz
Hi all,
I am able to access my VMs from LAN using remote Viewer, however this is
not working from outside LAN, my setup is as follow:
1. Controller in a separate HW machine
2. Host in a server
When checking the console.vv file, I see that it includes the local IP
address of the host + port 5900. Is there a way to force ovirt to generate
a console.vv file with public IP port when the user tries to connect from
Internet and another file with lan IP when the user tries to connect from
LAN.
Any hint on how to set this feature up ?
Best regards
6 years, 6 months
Second host deployment fails on self-hosted-engine
by 03ce007@gmail.com
I have self-hosted-engine (4.2) deployed successfully on cento (7.4) server.
The physical server has 'ovirt' as hostname and the self-hosted engineVM deployed and running on it has 'engine.ovirt' as fdqn.
I want to deploy another host on engineVM and I am using pre-baked oVirt.Infra role example playbook that has two host defined. But when I run it against the engineVM it fails with 'Connecting to host via SSH has failed' error. Below is the snippet from engine.log
Failed to establish session with host 'host2': SSH connection timed out connecting to 'root(a)1.2.3.6'
Validation of action 'AddVds' failed for user admin@internal-authz. Reasons: VAR__ACTION__ADD,VAR__TYPE__HOST,$server 1.2.3.6,VDS_CANNOT_CONNECT_TO_SERVER
I thought, the example playbook should run and deploy two hosts on already deployed engineVM. Do i need to update the example playbook?
6 years, 6 months
Hosted Engine Setup Erro
by Sakhi Hadebe
Hi,
I am new to ansible and tring to deploy an ovrt cluster with gluster. I am
following this documentation
https://www.ovirt.org/blog/2018/02/up-and-running-with-ovirt-4-2-and-glus...,
although the screenshots are not exactly the same. Gluster successfully
deployed.
Below is what is insatlled on my OvirtNodes:
1. ansible --version
ansible 2.5.3
config file = /etc/ansible/ansible.cfg
2. glusterfs 3.12.9
3. oVirtNode 4.2.3
4. CentOS Linux release 7.4.1708 (Core)
During the hosted engine setup it throws the ERROR below:
[ INFO ] TASK [Prepare CIDR for "virbr0"]
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The task includes an
option with an undefined variable. The error was: 'dict object' has no
attribute 'ipv4'\n\nThe error appears to have been in
'/usr/share/ovirt-hosted-engine-setup/ansible/bootstrap_local_vm.yml': line
50, column 7, but may\nbe elsewhere in the file depending on the exact
syntax problem.\n\nThe offending line appears to be:\n\n tags: [
'skip_ansible_lint' ]\n - name: Prepare CIDR for \"{{ virbr_default
}}\"\n ^ here\nWe could be wrong, but this one looks like it might be
an issue with\nmissing quotes. Always quote template expression brackets
when they\nstart a value. For instance:\n\n with_items:\n - {{ foo
}}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing
ansible-playbook
I have tried to use quotes on line 50 in the bootstrap_local_vm.yml file,
it didn't work.
Please help, I have been stuck on this almost the whole day.
--
Regards,
Sakhi Hadebe
Engineer: South African National Research Network (SANReN)Competency
Area, Meraka, CSIR
Tel: +27 12 841 2308 <+27128414213>
Fax: +27 12 841 4223 <+27128414223>
Cell: +27 71 331 9622 <+27823034657>
Email: sakhi(a)sanren.ac.za <shadebe(a)csir.co.za>
6 years, 6 months
ovirt and gluster disk config
by william.dossett@gmail.com
Hey, been a few years since I looked at ovirt. 3 years probably and at the time I was looking for compute and storage all in one -and was advised not to basically. So Hyperconvergence is now a thing and want to try it out. I was looking at the blog - up and running with ovirt 4.1, but it seems that is mostly for a lab setup. I've got some real hardware I am going to try this out on as a PoC, 5 Dell R720s with 12 TB raw storage in each. Just wondered if there was a guide to the hardware setup of my storage that I am missing? Should I configure the storage as hardware RAID before I start installing the Nodes? I did setup glusterfs cluster 3 years ago as well but memory fails me on how I had the RAID controller setup if at all.
Thanks
6 years, 6 months
attempting to upgrade ovirt host which fails.
by Edward Clay
Hello, Today I began upgrading my ovirt 4.1 to 4.2 by updating the engine following the steps in the 4.2 readme. This went well and the upgrade completed. What I've run into is I have attempted to install the ovirt release 4.2 on the host and then ran a yum upgrade on it while in maintenance mode. I rebooted the system and can put the host into active mode but in the ovirt compute host screen is showing that updates are available. No mater what I do to tell it to check for updates it still shows available updates. If I install updates they fail. I see events like the following in the graphical interface.
Check for available updates on host host1 was completed successfully with message 'found updates for packages ovirt-host'.
Host host1 was switched to Maintenance mode
Host host1 upgrade was started
Failed to upgrade Host host1
How can I resolve this issue?
Edward Clay
Systems Administrator
The Hut Group<http://www.thehutgroup.com/>
Tel:
Email: edward.clay(a)uk2group.com<mailto:edward.clay@uk2group.com>
For the purposes of this email, the "company" means The Hut Group Limited, a company registered in England and Wales (company number 6539496) whose registered office is at Fifth Floor, Voyager House, Chicago Avenue, Manchester Airport, M90 3DQ and/or any of its respective subsidiaries.
Confidentiality Notice
This e-mail is confidential and intended for the use of the named recipient only. If you are not the intended recipient please notify us by telephone immediately on +44(0)1606 811888 or return it to us by e-mail. Please then delete it from your system and note that any use, dissemination, forwarding, printing or copying is strictly prohibited. Any views or opinions are solely those of the author and do not necessarily represent those of the company.
Encryptions and Viruses
Please note that this e-mail and any attachments have not been encrypted. They may therefore be liable to be compromised. Please also note that it is your responsibility to scan this e-mail and any attachments for viruses. We do not, to the extent permitted by law, accept any liability (whether in contract, negligence or otherwise) for any virus infection and/or external compromise of security and/or confidentiality in relation to transmissions sent by e-mail.
Monitoring
Activity and use of the company's systems is monitored to secure its effective use and operation and for other lawful business purposes. Communications using these systems will also be monitored and may be recorded to secure effective use and operation and for other lawful business purposes.
hgvyjuv
6 years, 6 months
Shameless networking question
by Peter Harman
Ovirt Community,
First off: thank you - these emails have helped me to get Ovirt running. I barely know what I am doing but learning quickly.
I am trying to do a network separation and confusing myself. I have two physical networks (10.10.x.x/16 and 192.168.1.x/24) my ovirt management is bridged on 10.10.x.x. My (currently single) Hosts have at least one physical NIC connecting to each network. I am trying to get to the point there the VMs are on the 192.168.1.x network and the 10.10.x.x network. The goal is to join the VMs to a AD domain on 192.168.1.x but keep access as limited as possible to the 10.10.x.x network.
I've been on a googlethon over the past few days and still don't understand the best practice - or even a working practice - to accomplish this goal.
Peter Harman - Systems and Safety Cordinator | Homeyer Precision Manufacturing
[Description: C:\Users\gruether\AppData\Local\Temp\Temp1_Homeyer Logo (2).zip\Homeyer Logo\Homeyer Logo.jpg]
16051 State Hwy 47, Marthasville, MO 63357| E pharman(a)homeyertool.com |<mailto:pharman@homeyertool.com%20%7C> P 636.433.2244 | F 636.433.5257
6 years, 6 months
How to delete leftover of a failed live storage migration disk
by Gianluca Cecchi
Hello,
I had an error during live storage migration of a disk.
The destination image was created but the process was not completed,
because of a bug in the original version of sw.
Then I updated sw but if I try to run again the move of the same disk to
the same destination storage domain I get
VDSM command HSMGetAllTasksStatusesVDS failed: Cannot create Logical
Volume: ('679c0725-75fb-4af7-bff1-7c447c5d789c',
'd2a89b5e-7d62-4695-96d8-b762ce52b379')
On destination storage domain, that is empty, from web admin gui I see only
the 2 OVF_STORE disks.
From OS point of view using lvs I see the leftover LV that oVirt complains
not able to create (I suppose because already existent due to the former
error)
# lvs
679c0725-75fb-4af7-bff1-7c447c5d789c/d2a89b5e-7d62-4695-96d8-b762ce52b379
LV VG
Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
d2a89b5e-7d62-4695-96d8-b762ce52b379 679c0725-75fb-4af7-bff1-7c447c5d789c
-wi------- 55.00g
I know that I should use the "vdsClient -s 0 deleteVolume " command from
the SPM host.
the syntax should be
# vdsClient -s 0 deleteVolume --help
Error using command: list index out of range
deleteVolume
<sdUUID> <spUUID> <imgUUID> <volUUID>,...,<volUUID> <postZero> [<force>]
Deletes an volume if its a leaf. Else returns error
I have difficulties to do the exact mapping of the various elements.
Is it right what below?
sdUUID --> VG name
spUUID I can retrieve using:
# vdsClient -s 0 getStorageDomainInfo 679c0725-75fb-4af7-bff1-7c447c5d789c
uuid = 679c0725-75fb-4af7-bff1-7c447c5d789c
type = ISCSI
vguuid = nkoZA2-nQOu-oeXX-Phpa-moqh-FWuR-AFAh4B
metadataDevice = 36589cfc0000006dd999f5618bf759d3f
state = OK
version = 4
role = Master
vgMetadataDevice = 36589cfc0000006dd999f5618bf759d3f
class = Data
pool = ['5af30d59-004c-02f2-01c9-0000000000b8']
name = ISCSI_400G
so spUUID is the pool --> 5af30d59-004c-02f2-01c9-0000000000b8 in my case ?
for imgUUID I don't know a command to retrieve.
in my case the target storage domain (ISCSI_400G) in this moment is the
master one and I can see it under /rhev/data-center/mnt/blockSD/
and so I find
# ll
/rhev/data-center/mnt/blockSD/679c0725-75fb-4af7-bff1-7c447c5d789c/images/
total 4
drwxr-xr-x. 2 vdsm kvm 4096 May 10 15:39
530b3e7f-4ce4-4051-9cac-1112f5f9e8b5
So it seems to me in my case imgUUID is 530b3e7f-4ce4-4051-9cac-1112f5f9e8b5
But even if it is right in my particular case, how can I get in general?
volUUID ? Is it the LV name corresponding, so in my case
d2a89b5e-7d62-4695-96d8-b762ce52b379
?
The result of the vdsCLient command should be the removal of LV also?
Thanks in advance for any insight or link to details...
Gianluca
6 years, 6 months