Best way to update dns config of ovirt node
by Gianluca Cecchi
Hello,
supposing to have ovirt-ng node 4.2.6 and that ovirtmgmt config regarding
DNS servers has to be updated, what is the correct way to proceed?
Thanks,
Gianluca
6 years, 1 month
Re: vm names export
by Budur Nagaraju
Hi ,
Have done the below modification in the script and getting the error,can
you please help to fix the issue?
Script :
[root@cephc ovirt-scripts]# vi get_vm_names
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import ovirtsdk4 as sdk
import ovirtsdk4.types as types
logging.basicConfig(level=logging.DEBUG, filename='example.log')
connection = sdk.Connection(
url='https://pscloud.bnglab.psecure.net/ovirt-engine/api ',
username='admin@internal',
password='password',
insecure=True,
# ca_file='/etc/pki/ovirt-engine/ca.pem',
debug=True,
log=logging.getLogger(),
)
vms_service = connection.system_service().vms_service()
vms = vms_service.list()
for vm in vms:
print("%s: %s" % (vm.name, vm.id))
connection.close()
~
=======================================================================================
Error:
[root@cephc ovirt-scripts]# python get_vm_names
Traceback (most recent call last):
File "get_vm_names", line 22, in <module>
vms = vms_service.list()
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py", line
34154, in list
return self._internal_get(headers, query, wait)
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 202,
in _internal_get
context = self._connection.send(request)
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/__init__.py", line
370, in send
return self.__send(request)
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/__init__.py", line
388, in __send
self.authenticate()
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/__init__.py", line
381, in authenticate
self._sso_token = self._get_access_token()
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/__init__.py", line
617, in _get_access_token
sso_response = self._get_sso_response(self._sso_url, post_data)
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/__init__.py", line
702, in _get_sso_response
self._check_content_type(self.__JSON_CONTENT_TYPE_RE, 'JSON',
header_lines)
File "/usr/lib64/python2.7/site-packages/ovirtsdk4/__init__.py", line
889, in _check_content_type
raise Error(msg)
ovirtsdk4.Error: The response content type 'text/html;charset=UTF-8' isn't
the expected JSON. Is the path '/ovirt-engine/api ' included in the 'url'
parameter correct? The typical one is '/ovirt-engine/api'
[root@cephc ovirt-scripts]#
Thanks,
Nagaraju
On Mon, Sep 24, 2018 at 11:49 PM Valentin Bajrami <
valentin.bajrami(a)target-holding.nl> wrote:
> Hi Budur,
>
> You can add insecure=True for unsigned certificates. See example
>
> connection = sdk.Connection(
> url='https://pscloud.bnglab.psecure.net/ovirt-engine/api ',
> username='admin@internal',
> password='password',
> insecure=True,
> ca_file= '/etc/pki/ovirt-engine/ca.pem',
> debug=True,
> log=logging.getLogger()
> )
>
>
> On 9/24/18 5:08 PM, Budur Nagaraju wrote:
>
> Below is the script and getting error while executing.
>
>
> #!/usr/bin/env python
> # -*- coding: utf-8 -*-
>
> import logging
> import ovirtsdk4 as sdk
> import ovirtsdk4.types as types
>
> logging.basicConfig(level=logging.DEBUG, filename='example.log')
>
> connection = sdk.Connection(
> url='https://pscloud.bnglab.psecure.net/ovirt-engine/api ',
> username='admin@internal',
> password='password',
> ca_file= '/etc/pki/ovirt-engine/ca.pem',
> debug=True,
> log=logging.getLogger(),
> )
>
> vms_service = connection.system_service().vms_service()
>
> vms = vms_service.list()
>
> for vm in vms:
> print("%s: %s" % (vm.name, vm.id))
> connection.close()
> =================================================
>
>
> [root@cephc ovirt-scripts]# python get_vm_names
> Traceback (most recent call last):
> File "get_vm_names", line 16, in <module>
> log=logging.getLogger(),
> File "/usr/lib64/python2.7/site-packages/ovirtsdk4/__init__.py", line
> 307, in __init__
> raise Error('The CA file \'%s\' doesn\'t exist' % ca_file)
> ovirtsdk4.Error: The CA file '/etc/pki/ovirt-engine/ca.pem' doesn't exist
> [root@cephc ovirt-scripts]#
>
> On Mon, Sep 24, 2018 at 8:20 PM Staniforth, Paul <
> P.Staniforth(a)leedsbeckett.ac.uk> wrote:
>
>> Hi Nagaraju,
>>
>> I meant not signed by a trusted CA, when you install
>> oVirt it signs the certificates with it's own local CA, you can download it
>> the CA certificate for your engine from
>> https://your.engine.address/ovirt-engine/ it you are running the
>> program on your engine machine I think it's in /etc/pki/ovirt-engine/ca.pem
>>
>>
>> Regards,
>>
>> Paul S.
>> ------------------------------
>> *From:* Budur Nagaraju <nbudoor(a)gmail.com>
>> *Sent:* 24 September 2018 12:20
>> *To:* Staniforth, Paul
>> *Cc:* users
>> *Subject:* Re: [ovirt-users] Re: vm names export
>>
>> Am not using any self signed certificate, it was the default certificate
>> installed at the time of ovirt-engine installation , do I need to comment
>> for that also ?
>> Tried commenting the line but still facing issues.
>>
>> On Mon, Sep 24, 2018 at 4:28 PM Staniforth, Paul <
>> P.Staniforth(a)leedsbeckett.ac.uk> wrote:
>>
>>> Hi Nagaraju,
>>>
>>> if you are using the self-signed certificate have
>>> you downloaded your CA certificate, if you are using a certificate from a
>>> trusted CA then you should comment or remove the CA file line.
>>>
>>>
>>> Regards,
>>>
>>> Paul S.
>>> ------------------------------
>>> *From:* Budur Nagaraju <nbudoor(a)gmail.com>
>>> *Sent:* 24 September 2018 11:16
>>> *To:* Sandro Bonazzola
>>> *Cc:* users
>>> *Subject:* [ovirt-users] Re: vm names export
>>>
>>>
>>> Have tried the below URL , getting the below error
>>>
>>> Script:
>>>
>>>
>>> https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/list_v...
>>>
>>> Error:
>>>
>>> https://pastebin.com/EnJqA2Tr
>>>
>>> Thanks,
>>> Nagaraju
>>>
>>> On Fri, Sep 21, 2018 at 8:50 PM Sandro Bonazzola <sbonazzo(a)redhat.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> Il giorno ven 21 set 2018 alle ore 17:16 Budur Nagaraju <
>>>> nbudoor(a)gmail.com> ha scritto:
>>>>
>>>>> Hi
>>>>>
>>>>> I didn't understand, could you please help me on that ?
>>>>>
>>>>
>>>> I was asking Ondra to follow up on your question
>>>>
>>>>
>>>>>
>>>>> Thanks,
>>>>> Nagaraju
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Sep 21, 2018 at 8:28 PM Sandro Bonazzola <sbonazzo(a)redhat.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> Il giorno gio 20 set 2018 alle ore 09:23 Budur Nagaraju <
>>>>>> nbudoor(a)gmail.com> ha scritto:
>>>>>>
>>>>>>>
>>>>>>> HI
>>>>>>>
>>>>>>> We have deployed vms in oVirt , is there a way to export the vm
>>>>>>> names along with owner names ? any script which would help ?
>>>>>>>
>>>>>>
>>>>>> Ondra?
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Nagaraju
>>>>>>> _______________________________________________
>>>>>>> Users mailing list -- users(a)ovirt.org
>>>>>>> To unsubscribe send an email to users-leave(a)ovirt.org
>>>>>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>>>>>>> oVirt Code of Conduct:
>>>>>>> https://www.ovirt.org/community/about/community-guidelines/
>>>>>>> List Archives:
>>>>>>> https://lists.ovirt.org/archives/list/users@ovirt.org/message/4GC4RHEQBVG...
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> SANDRO BONAZZOLA
>>>>>>
>>>>>> MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV
>>>>>>
>>>>>> Red Hat EMEA <https://www.redhat.com/>
>>>>>>
>>>>>> sbonazzo(a)redhat.com
>>>>>> <https://red.ht/sig>
>>>>>> <https://www.redhat.com/en/events/red-hat-open-source-day-italia?sc_cid=70...>
>>>>>>
>>>>>
>>>>
>>>> --
>>>>
>>>> SANDRO BONAZZOLA
>>>>
>>>> MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV
>>>>
>>>> Red Hat EMEA <https://www.redhat.com/>
>>>>
>>>> sbonazzo(a)redhat.com
>>>> <https://red.ht/sig>
>>>> <https://www.redhat.com/en/events/red-hat-open-source-day-italia?sc_cid=70...>
>>>>
>>> To view the terms under which this email is distributed, please go to:-
>>> http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
>>>
>> To view the terms under which this email is distributed, please go to:-
>> http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
>>
>
> _______________________________________________
> Users mailing list -- users(a)ovirt.org
> To unsubscribe send an email to users-leave(a)ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/Z33J5NEDYWL...
>
> --
> Met vriendelijke groeten,
>
> Valentin Bajrami
> Target Holding
>
>
6 years, 2 months
Hiring RHV Data Protection Product Manager
by Boaz Michaely
Hi all,
A small community as we are, I hope this is the right place to reach out.
I'm looking for a PM to join my team in Framingham, MA , focusing on Trilio data protection for RHV.
Appreciate any references.
Thanks
Boaz
mailto:boaz.michaely@trilio.io
6 years, 2 months
Few questions for seasoned oVirt experts
by brad.riemann@cloud5.com
Hello Everyone,
I'm new to oVirt so I was hoping I could pick the brains of those that may have been around the product longer than myself.
To start, I am leveraging oVirt 4.2, so all questions will be centered around them.
1. I am looking to utilize the ovirt engine for managing potentially thousands of datacenters, has anyone experienced large scale deployments or many-multi datacenter installations all managed under the same engine? FWIW: There will only be 1-2 servers per datacenter, with one cluster and 5-10 vNic assignments per cluster.
2. Has anyone dealt with the auto registration/approval process with oVirt engine? I'm finding various documentation from different generations of oVirt, but haven't felt comfortable with what i've found since my instance doesn't seem to have features that i'm reading about.
My goal is to ship servers to a site with a basic image and when it boots up it reaches out to our ovirt engine, in turn I can automate a validation of pending approval requests based on host criteria, i'm just struggling to figure out if the automatic registration is even a thing in the latest version.
thank you in advance, I appreciate any feedback on the matter.
-Brad
6 years, 2 months
vm names export
by Budur Nagaraju
HI
We have deployed vms in oVirt , is there a way to export the vm names along
with owner names ? any script which would help ?
Thanks,
Nagaraju
6 years, 2 months
VLAN Trunk interface with OVN provider (ovirt HE 4.2.6.4-1.el7)
by Davide Butti
Hello; I'm having some hard time getting my oVirt cluster back to work, after the last update to 4.2.6.
One thing that does not work anymore is VLAN Trunks; before the update, the cluster was running in OVS mode, and I could define logical networks without VLAN tag; then, networks packets got forwarded to the guest as "tagged".
Right now version 4.2.6 won't allow me to assign the (OVS) Logical network to the guest NICs anymore, but it insists that I use a vNIC profile from an external provider.
First question: Is this expected? Must I really work with externally provided networks only?
Anyway, for the vNIC interfaces that only carry untagged traffic, I was able to define an external OVN network, connect it to the corresponding "Data center Network", and everything works as it did before. But the "trick" does not work for "trunk" interfaces that should carry VLAN tagged traffic.
So to the second (main) question? How is this to be solved? Is there a way to define a VLAN trunk under OVN? Or is there a way to pickup a Data Center logical network to attach to the vNIC as we did before?
Thanks in advance for your help!
6 years, 2 months
Cannot configure local storage, network issue?
by Callum Smith
Dear All,
I'lm getting this problem when trying to add local storage from the node:
Cannot edit Host. Moving a host to a cluster with different management network is not allowed. That might cause connectivity loss.
The cluster the host is in uses a different default network to the default cluster - is this the problem?
Regards,
Callum
--
Callum Smith
Research Computing Core
Wellcome Trust Centre for Human Genetics
University of Oxford
e. callum(a)well.ox.ac.uk<mailto:callum@well.ox.ac.uk>
6 years, 2 months
Hosted Engine - Unable to connect after deployment.
by Jeremy Tourville
I have a new installation of ovirt hyperconverged single node using glusterfs. I was able to run gdeploy and then use the web interface to run the self hosted engine setup. Ovirt node is running 4.2.5.1. If I go to localhost>ovirt machines tab from my node I see a message in the upper right corner saying "ovirt login in progress" with spinning icon after putting in the credentials. After a minute or less I am redirected to -
https://engine.cyber-range.lan/ovirt-engine/web-ui/authorizedRedirect.jsp...
where the web page says- "the connection has timed out."
"The server at engine.cyber-range.lan is taking too long to respond." I also notice I no longer have the option to choose VNC or console because the web page keeps on attempting to reconnect. When I tried to connect using a console with virt-viewer it errored out on me. (I didn't make note of the message)
Virtualization>hosted engine tab reports that my hosted engine is up. This is further confirmed by CLI #hosted-engine --check-liveliness. On occasion though, CLI reports HE is not up. If I try to ssh to HE sometimes I can connect, but it is VERY slow to do so. Once I connect it often appears to freeze or be very slow to enter any input commands to the HE. HE is effectively useless.
I get frequent log messages in the console- "ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine ERROR Engine VM has bad health status, timeout in 300 seconds"
This is a new setup, so I haven't lost anything if I need to start over. What do you suggest? Is there an easy way to recover or should I reinstall HE? Thanks for your advice!
6 years, 2 months
Problem disks snapshots
by Marcelo Leandro
Hello,
I am have a problem, after try delete um live snapshot I had this msg:
General command validation failure.
In snapshot disks in tab of storage the disk show ilegal.
show consult databases:
engine=# select snapshot_id,snapshot_type,status,description from snapshots
wher
e vm_id='1b48deed-5579-46d9-ac39-58bd96c266b5';
snapshot_id | snapshot_type | status |
descr
iption
--------------------------------------+---------------+--------+----------------
-----------------
848797d5-8b50-4ce1-941a-493c6ea3febd | NEXT_RUN | OK | Next Run
config
uration snapshot
75c120c8-6da6-4fbe-a5e0-1199238b37dc | REGULAR | OK | Backup da
VM
75aa791f-8b6e-4022-b80e-7fc82e6ece00 | ACTIVE | OK | Active VM
(3 rows)
engine=# select
image_guid,parentid,imagestatus,vm_snapshot_id,volume_type,volum
e_format,active from images where
image_group_id='e0f60213-15e6-4910-9d13-c4f4dc
ac337e';
image_guid |
parentid | i
magestatus | vm_snapshot_id | volume_type |
volume_format
| active
--------------------------------------+--------------------------------------+--
-----------+--------------------------------------+-------------+---------------
+--------
46e2faf7-316e-4d15-bfb6-21d135837c41 |
00000000-0000-0000-0000-000000000000 |
4 | 75c120c8-6da6-4fbe-a5e0-1199238b37dc | 2
| 4
| f
3f9bf716-6410-431c-9133-d910f13d5cb6 |
00000000-0000-0000-0000-000000000000 |
1 | 75aa791f-8b6e-4022-b80e-7fc82e6ece00 | 2
| 4
| t
(2 rows)
someone help me?
6 years, 2 months