How to set priority for HA VM via Python SDK ?
by TranceWorldLogic .
Hi,
I want to set priority of Highly Available VM as High via python SDK.
I provided information as shown below:
vm = self.vms_service.add(
vm = types.Vm (
high_availability = types.HighAvailability(
enabled = True,
priority = 1,
),
),
)
As see above priority we have to provide as number but in GUI we can choose
drop down menu as ("LOW", "MID" and "HIGH").
I wan to set priority as "HIGH", which integer value I have to set in
priority ?
I tried with 1 and 3 it shows "LOW" in both cases.
Please help me.
Thanks,
~Rohit
7 years, 8 months
Interest in contributing to oVirt
by Konrad Djimeli
Hello,
My name is Konrad Djimeli a third year Computer Science Student at the
University of Buea, Cameroon. I am interested in contributing to oVirt
and I would like to work on the Google Summer of Code project
"ovirt4cli". I am very comfortable working with Python and I have
experience working with web services like REST.
Please I would appreciate any suggestion on how to get started and to
better familiarize myself with the project.
Thanks
Konrad
http://djimeli.me/
7 years, 8 months
no vm.conf?
by Michael Kleinpaste
Hello all,
I wanted to adjust the hosted-engine VM to use a little less CPU and
memory. However, none of my hosts have the vm.conf file
in /etc/ovirt-hosted-engine-ha/ as instructions say it should be. Has the
process for changing the hosted-engine VM settings been changed with 4.1?
--
*Michael Kleinpaste*
Senior Systems Administrator
SharperLending, LLC.
www.SharperLending.com
Michael.Kleinpaste(a)SharperLending.com
(509) 324-1230 Fax: (509) 324-1234
7 years, 8 months
Lost our HostedEngineVM
by Matt Emma
--_000_DM5PR2001MB1884F384577C85E3DE0FF816963D0DM5PR2001MB1884_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
We're in a bit of a panic mode, so excuse any shortness.
We had a storage failure. We rebooted a VMHost that had the hostedengine VM=
- The HostedENgine did not try to move to the other hosts. We've since res=
tored storage and we are able to successfully restart the paused VMs. We kn=
ow the HostedEngine's VM ID is there a way we can force load it from the mo=
unted storage?
-Matt
--_000_DM5PR2001MB1884F384577C85E3DE0FF816963D0DM5PR2001MB1884_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">We’re in a bit of a panic mode, so excuse any =
shortness. <o:p>
</o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">We had a storage failure. We rebooted a VMHost that =
had the hostedengine VM - The HostedENgine did not try to move to the other=
hosts. We’ve since restored storage and we are able to successfully =
restart the paused VMs. We know the HostedEngine’s
VM ID is there a way we can force load it from the mounted storage? <o:p><=
/o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">-Matt <o:p></o:p></p>
</div>
</body>
</html>
--_000_DM5PR2001MB1884F384577C85E3DE0FF816963D0DM5PR2001MB1884_--
7 years, 8 months
OSSEC reporting hidden processes
by Charles Kozler
Hi -
I am wondering why OSSEC would be reporting hidden processes on my ovirt
nodes? I run OSSEC across the infrastructure and multiple ovirt clusters
have assorted nodes that will report a process is running but does not have
an entry in /proc and thus "possible rootkit" alert is fired
I am well aware that I do not have rootkits on these systems but am
wondering what exactly inside ovirt is causing this to trigger? Or any
ideas? Below is sample alert. All my google-fu turns up is that a process
would have to **try** to hide itself from /proc, so curious what this is
inside ovirt. Thanks!
-------------
OSSEC HIDS Notification.
2017 Mar 20 11:54:47
Received From: (ovirtnode2.mydomain.com2) any->rootcheck
Rule: 510 fired (level 7) -> "Host-based anomaly detection event
(rootcheck)."
Portion of the log(s):
Process '24574' hidden from /proc. Possible kernel level rootkit.
--END OF NOTIFICATION
------------
7 years, 8 months
Cloud init guide
by Endre Karlson
Is there a guide to how to use cloud-init with ubuntu on ovirt?
7 years, 8 months
How to Feature Request
by FERNANDO FREDIANI
Where is the best place to put feature requests ? Bugzilla with priority
'unspecified' or 'low' or anywhere else ?
Thanks
Fernando
7 years, 8 months
Re: [ovirt-users] Adding posix compliant FS
by Fred Rolland
Please send Vdsm log.
Thanks
On Fri, Mar 17, 2017 at 8:46 PM, carl langlois <crl.langlois(a)gmail.com>
wrote:
> Hi,
>
> The link that you send is for NFS strorage but i am trying to add a POSIX
> compliant.
>
> [image: Inline image 1]
>
>
>
>
> when i press okey it mount the disk to :
>
> [root@ovhost4 ~]# ls -al /rhev/data-center/mnt/_dev_dm-4/
> total 28
> drwxr-xr-x. 4 vdsm kvm 4096 Mar 16 12:12 .
> drwxr-xr-x. 6 vdsm kvm 4096 Mar 17 13:35 ..
> drwxr-xr-x. 2 vdsm kvm 16384 Mar 16 11:42 lost+found
> drwxr-xr-x. 4 vdsm kvm 4096 Mar 16 12:12 .Trash-0
>
>
> and doing a touch with vdsm user work
>
> [root@ovhost4 ~]# sudo -u vdsm touch /rhev/data-center/mnt/_dev_dm-4/test
> [root@ovhost4 ~]# ls -al /rhev/data-center/mnt/_dev_dm-4/
> total 28
> drwxr-xr-x. 4 vdsm kvm 4096 Mar 17 13:44 .
> drwxr-xr-x. 6 vdsm kvm 4096 Mar 17 13:35 ..
> drwxr-xr-x. 2 vdsm kvm 16384 Mar 16 11:42 lost+found
> -rw-r--r--. 1 vdsm kvm 0 Mar 17 13:44 test
> drwxr-xr-x. 4 vdsm kvm 4096 Mar 16 12:12 .Trash-0
>
>
> But it fail with a general exception error and the storage does not exist
> in ovirt
>
> any help would be appreciated.
>
>
> Which log you need to see?
>
> Thanks
>
>
>
> Le jeu. 16 mars 2017 17:02, Fred Rolland <frolland(a)redhat.com> a écrit :
>
>> Hi,
>>
>> Can you check if the folder permissions are OK ?
>> Check [1] for more details.
>>
>> Can you share more of the log ?
>>
>>
>> [1] https://www.ovirt.org/documentation/how-to/troubleshooting/t
>> roubleshooting-nfs-storage-issues/
>>
>> On Thu, Mar 16, 2017 at 7:49 PM, carl langlois <crl.langlois(a)gmail.com>
>> wrote:
>>
>> Hi Guys,
>>
>> I am trying to add a posix FS on one of my host. Ovirt in actually
>> mounting it but fail with "Error while executing action Add Storage
>> Connection: General Exception"
>>
>> If i look in the vdsm.log i cant see
>>
>> sonrpc.Executor/7::DEBUG::2017-03-16 12:39:28,248::fileUtils::209::Storage.fileUtils::(createdir)
>> Creating directory: /rhev/data-center/mnt/_dev_dm-3 mode: None
>> jsonrpc.Executor/7::DEBUG::2017-03-16 12:39:28,248::fileUtils::218::Storage.fileUtils::(createdir)
>> Using existing directory: /rhev/data-center/mnt/_dev_dm-3
>> jsonrpc.Executor/7::INFO::2017-03-16 12:39:28,248::mount::226::storage.Mount::(mount)
>> mounting /dev/dm-3 at /rhev/data-center/mnt/_dev_dm-3
>> jsonrpc.Executor/7::DEBUG::2017-03-16 12:39:28,270::utils::871::storage.Mount::(stopwatch)
>> /rhev/data-center/mnt/_dev_dm-3 mounted: 0.02 seconds
>> jsonrpc.Executor/7::ERROR::2017-03-16 12:39:28,271::hsm::2403::Storage.HSM::(connectStorageServer)
>> Could not connect to storageServer
>> Traceback (most recent call last):
>> File "/usr/share/vdsm/storage/hsm.py", line 2400, in
>> connectStorageServer
>> conObj.connect()
>> File "/usr/share/vdsm/storage/storageServer.py", line 242, in connect
>> self.getMountObj().getRecord().fs_file)
>> File "/usr/lib/python2.7/site-packages/vdsm/storage/mount.py", line
>> 260, in getRecord
>> (self.fs_spec, self.fs_file))
>> OSError: [Errno 2] Mount of `/dev/dm-3` at `/rhev/data-center/mnt/_dev_dm-3`
>> does not exist
>>
>>
>> any help would be appreciated.
>>
>> Thanks
>>
>> CL
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>>
7 years, 8 months
The Hosted Engine Storage Domain doesn't exist. It should be imported into the setup.
by Paolo Margara
Hi list,
I'm working on a system running on oVirt 3.6 and the Engine is reporting
the warning "The Hosted Engine Storage Domain doesn't exist. It should
be imported into the setup." repeatedly in the Events tab into the Admin
Portal.
I've read into the list that Hosted Engine Storage Domain should be
imported automatically into the setup during the upgrade to 3.6
(original setup was on 3.5), but this not happened while the
HostedEngine is correctly visible into the VM tab after the upgrade.
The Hosted Engine Storage Domain is on a dedicated gluster volume but
considering that, if I remember correctly, oVirt 3.5 at that time did
not support gluster as a backend for the HostedEngine at that time I had
installed the engine using gluster's NFS server using
'localhost:/hosted-engine' as a mount point.
Currently on every nodes I can read into the log of the
ovirt-hosted-engine-ha agent the following lines:
MainThread::INFO::2017-03-17
14:04:17,773::hosted_engine::462::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
Current state EngineUp (score: 3400)
MainThread::INFO::2017-03-17
14:04:17,774::hosted_engine::467::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
Best remote host virtnode-0-1 (id: 2
, score: 3400)
MainThread::INFO::2017-03-17
14:04:27,956::hosted_engine::613::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_vdsm)
Initializing VDSM
MainThread::INFO::2017-03-17
14:04:28,055::hosted_engine::658::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
Connecting the storage
MainThread::INFO::2017-03-17
14:04:28,078::storage_server::218::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
Connecting storage server
MainThread::INFO::2017-03-17
14:04:28,278::storage_server::222::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
Connecting storage server
MainThread::INFO::2017-03-17
14:04:28,398::storage_server::230::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
Refreshing the storage domain
MainThread::INFO::2017-03-17
14:04:28,822::hosted_engine::685::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
Preparing images
MainThread::INFO::2017-03-17
14:04:28,822::image::126::ovirt_hosted_engine_ha.lib.image.Image::(prepare_images)
Preparing images
MainThread::INFO::2017-03-17
14:04:29,308::hosted_engine::688::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
Reloading vm.conf from the
shared storage domain
MainThread::INFO::2017-03-17
14:04:29,309::config::206::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config::(refresh_local_conf_file)
Trying to get a fresher copy
of vm configuration from the OVF_STORE
MainThread::WARNING::2017-03-17
14:04:29,567::ovf_store::104::ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore::(scan)
Unable to find OVF_STORE
MainThread::ERROR::2017-03-17
14:04:29,691::config::235::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config::(refresh_local_conf_file)
Unable to get vm.conf from O
VF_STORE, falling back to initial vm.conf
...and the following lines into the logfile engine.log inside the Hosted
Engine:
2017-03-16 07:36:28,087 INFO
[org.ovirt.engine.core.bll.ImportHostedEngineStorageDomainCommand]
(org.ovirt.thread.pool-8-thread-38) [236d315c] Lock Acquired to object
'EngineLock:{exclusiveLocks='[]', sharedLocks='null'}'
2017-03-16 07:36:28,115 WARN
[org.ovirt.engine.core.bll.ImportHostedEngineStorageDomainCommand]
(org.ovirt.thread.pool-8-thread-38) [236d315c] CanDoAction of action
'ImportHostedEngineStorageDomain' failed for user SYSTEM. Reasons:
VAR__ACTION__ADD,VAR__TYPE__STORAGE__DOMAIN,ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST
2017-03-16 07:36:28,116 INFO
[org.ovirt.engine.core.bll.ImportHostedEngineStorageDomainCommand]
(org.ovirt.thread.pool-8-thread-38) [236d315c] Lock freed to object
'EngineLock:{exclusiveLocks='[]', sharedLocks='null'}'
How can I safely import the Hosted Engine Storage Domain into my setup?
In this situation is safe to upgrade to oVirt 4.0?
Greetings,
Paolo
7 years, 8 months