Re: [ovirt-users] How to configure Cloud-init in Guest OS ?

2017-03-16 Thread TranceWorldLogic .
Thanks Juan for helping me.

~Rohit

On Fri, Mar 17, 2017 at 12:51 AM, Juan Hernández 
wrote:

> On 03/16/2017 04:09 PM, TranceWorldLogic . wrote:
> > Hi,
> >
> >
> > I am trying to create file using same API, as shown below:
> > --
> > scontent="Hello World !!"
> >
> > vm_service.start(
> > use_cloud_init=True,
> > vm = types.Vm(
> > initialization=types.Initialization(
> > cloud_init=types.CloudInit(
> > files=[types.File(name="/root/hello.conf",
> > content=scontent, type="PLAINTEXT")],
> > ),
> > ),
> > ),
> > )
> > 
> >
> > Can someone help me to understand ? why it is not working.
> > Or Is that variable "cloud_init=" not handled in ovirt ?
> >
>
> That may have been the initial design of the feature, but it doesn't
> currently work. That 'files' element isn't used at all. The recommended
> way to create a file is using the custom script, as explained in this
> example:
>
>
> https://github.com/oVirt/ovirt-engine-sdk/blob/master/
> sdk/examples/start_vm_with_cloud_init.py#L48-L57
>
> The use of 'types.CloudInit' is also disencouraged, use directly the
> attributes of 'types.Initialization', as explained here:
>
>
> https://github.com/oVirt/ovirt-engine-sdk/blob/master/
> sdk/examples/start_vm_with_cloud_init.py#L59-L86
>
> >
> >
> > On Thu, Mar 16, 2017 at 7:33 PM, Juan Hernández  > > wrote:
> >
> > On 03/16/2017 02:22 PM, TranceWorldLogic . wrote:
> > > Hi,
> > >
> > > I am trying to use cloud-int to provide some text file in guest OS
> as
> > > mention in below link. (tried using sdk)
> > > But it is not working.
> > > http://www.ovirt.org/develop/release-management/features/
> cloud/cloud-init-integration/
> >  cloud/cloud-init-integration/>
> > >
> >
> > What SDK are you using? I guess that the Python SDK. Did you try this
> > example:
> >
> >
> > https://github.com/oVirt/ovirt-engine-sdk/blob/master/
> sdk/examples/start_vm_with_cloud_init.py
> >  sdk/examples/start_vm_with_cloud_init.py>
> >
> > > 1> Do I need to do some configure cloud-init in Guest OS ?
> > > -> I hav just install cloud-init package in my 2 guest
> > >   For centos 6.8 => yum install cloud-init
> > >   For ubuntu 14.05 => apt-get install cloud-init
> > >
> >
> > That should be eough, at least in CentOS. Not sure about Ubuntu.
> >
> > Note that you are using a quite old version of CentOS, so you may
> also
> > be using an old or buggy version of cloud-init. Did you try with
> latest
> > CentOS 7?
> >
> > > 2> Do cloud-init permanently write network configuration in
> ifconfig
> > > file(Centos) or interface file (ubuntu)?
> > >
> >
> > It does, in CentOS. Not sure about Ubuntu.
> >
> >
> >
> >
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt-shell -- cannot even get started

2017-03-16 Thread Juan Hernández
On 03/16/2017 09:48 PM, Phil Meyer wrote:
> This is either some very obscure syntax, or it may not be working.
> 
> Difficult to tell, since the error message seems to be generic:
> 
> ...
> 
>    ERROR
> =
> "https://engine-tst/ovirt-engine/api"; is invalid url format, valid
> format is http[s]://server:port/path, where path is usually
> "ovirt-engine/api" or, for older versions of the engine, just "api".
>  
> 
> ...
> 
> That error is reported no matter where it is run from, and no matter what
> 
> combination of manual or automated interaction is used.
> 
> 
> It should not be this hard.
> 
> 42 different combinations were tried.
> 
> 
> In one instance when using localhost as the hostname, it actually asked for
> 
> the certificate first, and then gave me the same error as above.
> 
> 
> Lets just say that the command line was very familiar to me when Larry Wall
> 
> wrote the Configure script (that was before the GNU configure scripts).
> 
> 
> A strait up actual example that works would be nice, or an explanation of
> 
> prerequisites, if there are any.  None are stated.
> 
> 
> There is lots of mention of port numbers, but no actual port numbers
> suggested.
> 
> Does not the ovirt-shell talk to the web server at port 443 if https is
> specified?
> 
> 
> The lsof command does not show any listeners that seem likely as a cli
> interface:
> 
> -> sudo lsof  -i | grep -i listen
> systemd   1root   42u  IPv6   9030  0t0  TCP
> *:sunrpc (LISTEN)
> systemd   1root   43u  IPv4   9031  0t0  TCP
> *:sunrpc (LISTEN)
> ovirt-ima   582root5u  IPv4   9196  0t0  TCP *:54323
> (LISTEN)
> ovirt-web   954   ovirt4u  IPv4  14915  0t0  TCP
> *:synchronet-db (LISTEN)
> httpd   959root4u  IPv6  18622  0t0  TCP *:http
> (LISTEN)
> httpd   959root6u  IPv6  18630  0t0  TCP *:https
> (LISTEN)
> sshd962 ovirt-vmconsole3u  IPv4  17902  0t0  TCP
> *:EtherNet/IP-1 (LISTEN)
> sshd962 ovirt-vmconsole4u  IPv6  17904  0t0  TCP
> *:EtherNet/IP-1 (LISTEN)
> sshd   1048root3u  IPv4  19474  0t0  TCP *:ssh
> (LISTEN)
> sshd   1048root4u  IPv6  19477  0t0  TCP *:ssh
> (LISTEN)
> postgres   1237postgres3u  IPv4  19552  0t0  TCP
> *:postgres (LISTEN)
> postgres   1237postgres4u  IPv6  19553  0t0  TCP
> *:postgres (LISTEN)
> java   3042   ovirt  371u  IPv6  20711  0t0  TCP
> localhost:8702 (LISTEN)
> java   3042   ovirt  389u  IPv6  24722  0t0  TCP
> localhost:8706 (LISTEN)
> 
> 
> And yes, the unfamiliar ones were tried. :)
> 
> 
> The last straw was when a packet sniffer failed to capture ANY traffic
> related to these
> 
> attempts.  Apparently the ovirt-shell command fails before even
> attempting a connection.
> 

This is a bug in the CLI:

  Invalid URL format when there are no dots in the host name
  https://bugzilla.redhat.com/1186365

The problem is that the CLI tries to verify the validity of the URL, and
it expects at least one dot in the host name:

  engine-tst.something

It was decided to not fix that bug because the CLI is deprecated since
version 4.0 of the engine, and will be removed in version 4.2.

As a workaround, try to use a fully qualified host name, which will most
probably include a dot anyhow. And you will need that fully qualified
host name anyhow, if you want to safely verify the certificate of the
server. See the bug for details. Alternatively you can use the IP
address directly.

As I said, the CLI is deprecated, so if you are starting from scratch,
I'd suggest you avoid it completely. Use one of the Ansible modules:

  https://docs.ansible.com/ansible/list_of_cloud_modules.html#ovirt

Or one of the SDKs:

  Python:
  https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk

  Ruby:
  https://github.com/oVirt/ovirt-engine-sdk-ruby/tree/master/sdk

  Java:
  https://github.com/oVirt/ovirt-engine-java/tree/master/sdk

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM switched off when migration for host maintenance fails

2017-03-16 Thread Eduardo Mayoral
Hi, Michal, thank you for your interest.

Is it reproducible? 

No. This is actually the first time that I have seen this behaviour, and a 
colleague of mine is developing a script for automatic patching of the hosts, 
so we are putting them into maintenance very frequently in the last few days.


It sounds similar to https://bugzilla.redhat.com/show_bug.cgi?id=1426727 but 
it’s not exactly that
Can you confirm you’re not using QoS/Quota? 

Yes, I can confirm we are not using QoS / Quota. Quota is disabled for the 
datacenter and there are no QoS policies defined.

Does the VM fail the same way when you migrate it manually?

No, I just did it several times and it migrated just fine.

If not, can you please reproduce with Move to Maintenance flow and narrow it 
down - timeframe, exact VM, corresponding engine and vdsm and qemu logs?

I will try to do this, but it will take some time, I will get back with the 
results next week.

Best regards!

Eduardo Mayoral Jimeno (emayo...@arsys.es)
Administrador de sistemas. Departamento de Plataformas. Arsys internet.
+34 941 620 145 ext. 5153

On 16/03/17 20:00, Michal Skrivanek wrote:
> Hi,
> Is it reproducible?
> It sounds similar to https://bugzilla.redhat.com/show_bug.cgi?id=1426727 but 
> it’s not exactly that
> Can you confirm you’re not using QoS/Quota?
> Does the VM fail the same way when you migrate it manually?
> If not, can you please reproduce with Move to Maintenance flow and narrow it 
> down - timeframe, exact VM, corresponding engine and vdsm and qemu logs?
>
> Thanks,
> michal
>
>> On 16 Mar 2017, at 12:17, Eduardo Mayoral  wrote:
>>
>> OK, then,
>>
>> Please find the vdsm logs for both source and destination attached.
>>
>> Eduardo Mayoral Jimeno (emayo...@arsys.es
>> )
>> Administrador de sistemas. Departamento de Plataformas. Arsys internet.
>> +34 941 620 145 ext. 5153
>>
>> On 16/03/17 12:13, Yaniv Kaul wrote:
>>> Please share on the mailing list - I might not get to look at them.
>>> It's not too big.
>>> Y.
>>>
>>> On Thu, Mar 16, 2017 at 1:06 PM, Eduardo Mayoral  wrote:
>>> Sure! Please find the logs attached. I do not mind sharing them on the 
>>> mailing list, but I feel they are probably too big.
>>>  Eduardo Mayoral Jimeno (emayo...@arsys.es
>>> )
>>> Administrador de sistemas. Departamento de Plataformas. Arsys internet.
>>>
>>> +34 941 620 145 ext. 5153
>>> On 16/03/17 11:58, Yaniv Kaul wrote:

 On Thu, Mar 16, 2017 at 12:56 PM, Eduardo Mayoral  
 wrote:
 Hi,

 An interesting thing just happened on my oVirt deployment.

 While setting a host for maintenance, one of the VMs running on that
 host failed to migrate. Then ovirt-engine for some reason turned the VM
 off. Here are the relevant log lines from engine.log:




 2017-03-16 09:56:23,324Z INFO
 [org.ovirt.engine.core.bll.MigrateVmCommand] (default task-60)
 [61a52216] Lock Acquired to object
 'EngineLock:{exclusiveLocks='[422663a9-d712-4992-7c81-165b2976073e=>>> ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED$VmName
 entorno127.arsysdesarrollo.lan>]', sharedLocks='null'}'
 2017-03-16 09:56:23,957Z INFO
 [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
 (default task-60) [61a52216] EVENT_ID:
 VM_MIGRATION_START_SYSTEM_INITIATED(67), Correlation ID: 61a52216, Job
 ID: fbc5e0d7-4618-4ca8-b7a7-0fd9a43f490f, Call Stack: null, Custom Event
 ID: -1, Message: Migration initiated by system (VM:
 entorno127.arsysdesarrollo.lan, Source: llkk594.arsyslan.es,
 Destination: llkk593.arsyslan.es, Reason: Host preparing for maintenance).
 2017-03-16 09:56:26,818Z INFO
 [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
 (DefaultQuartzScheduler10) [7c6c403b-0a82-47aa-aeb4-57fbe06e20e1] VM
 '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
 was unexpectedly detected as 'MigratingTo' on VDS
 '43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es) (expected on
 '11a82467-afa4-4e4e-bd92-3383082d0a5e')
 2017-03-16 09:56:42,149Z INFO
 [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
 (DefaultQuartzScheduler10) [fac8ade9-a867-4ff7-aac5-912f78cc3bb5] VM
 '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
 was unexpectedly detected as 'MigratingTo' on VDS
 '43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es) (expected on
 '11a82467-afa4-4e4e-bd92-3383082d0a5e')
 2017-03-16 09:56:54,755Z INFO
 [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
 (DefaultQuartzScheduler3) [54fa9a1b-fddb-4812-b5d2-06cf92834709] VM
 '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
 moved from 'MigratingFrom' --> 'Down'
 2017-03-16 09:56:54,755Z INFO
 [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
 (DefaultQuartzScheduler3) [54fa9a1b-fddb-4812-b5d2-06cf92834709] Handing
 over VM
 '422663a9-d712-4992-7c81-165b297

Re: [ovirt-users] how to attach lvm device to VM ?

2017-03-16 Thread Fred Rolland
What you are trying to do is not supported in oVirt.
You cannot have local disks unless all the DC is configured with local
storage.

Like you mentioned, the engine and VDSM are not aware of this disk and
therefore no operation are supported (snapshot, copy, move...)

On Thu, Mar 16, 2017 at 3:41 PM, TranceWorldLogic . <
tranceworldlo...@gmail.com> wrote:

> Hi,
>
> I have created LVM partition in host.
> I don't want that partition to act as storage domain in ovirt, but I want
> to attach that partition to VM.
>
> So I used virsh command to attach device to VM and it was successfully
> attached (block device as raw type).
> But when I tried to take snapshot of VM from Ovirt, it fail to get
> snapshot.
>
> I think it may be due to vdsm as it is not aware of newly attached lvm
> device.
>
> Can someone help me to know another way to attach device to VM in Ovirt?
> I tried with vdsClient but not got idea or command that will attach device
> to VM.
>
> Thanks,
> ~Rohit
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Adding posix compliant FS

2017-03-16 Thread Fred Rolland
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/troubleshooting-nfs-storage-issues/

On Thu, Mar 16, 2017 at 7:49 PM, carl langlois 
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@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Serious Trouble - Lost Domains

2017-03-16 Thread JC Clark

Thank you again for the response.

I have been able to import some of my orphaned storage domains, and the 
important one that contained all of the group policy desktop and 
document data for the entire school, has been safely recovered and back 
online.


I was getting an error because when I imported the domains, they were 
not mounting.  This was due to an improperly configured firewall.  I am 
still scavenging for some lost VM's today, it appears that some were not 
imported properly.


Thank you for your assistance.


On 03/16/2017 02:10 AM, Fred Rolland wrote:

Here are the feature page for importing storage domain : [1]

Can you provide more information on the error when you tried to import ?

[1] 
https://www.ovirt.org/develop/release-management/features/storage/importstoragedomain/


On Tue, Mar 14, 2017 at 1:46 PM, JC Clark > wrote:


Thank you for your response.

My storage is NFS storage.

I will try with "qemu-img info" ..
  
I made an attempt to import the domain and I got an error.  I will attempt to replicate tonight.


Do I have to alter any of the metafiles when importing?  I seemed to 
remember it didn't like to import another data center's domain.


Sincerely JC


Date: Tue, 14 Mar 2017 10:16:17 +0100
From: Arman Khalatyan 
To: JC Clark 
Cc: users 
Subject: Re: [ovirt-users] Serious Trouble - Lost Domains
Message-ID:


Content-Type: text/plain; charset="utf-8"

What kind of storage are you using?
If you check images with "qemu-img info" are you able to see the
filesystems?
Can you simply import the domain unto the new ovirt?

Am 14.03.2017 9:59 vorm. schrieb "JC Clark" 
:


Dear Fellows and Fellettes,

I am having serious disaster problems.  After a power transformer outside
the building literally exploded,  surged and fried the motherboard to the
main SPM domain computer in my Ovirt 4.0 system. After getting the computer
working again with a new mother board.  I managed to basically loose
integrity of the old engine.  I have rebuilt the engine.

I have backups of the old engine and 4 data domains an ISO domain and an
export domain which appear to not be damaged. They are all accessible from
the CL.
  I had to create a new host and SPM.  How do I get the floating domains
into the new Engine?

I have 1 storage container (85GB) I must get back.  MUST GET BACK!!

I really appreciate you reading my sob story.  Hope you can help..

Thank You much


___
Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users



-- next part --
An HTML attachment was scrubbed...

URL:



-- 
Warm Regards,
  
JC Clark

IT Director
Mount Carmel School
Saipan, CNMI
(670) 235-6272   office
(670) 483-8684   cell

___ Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users
 


--
Warm Regards,
 
JC Clark

IT Director
Mount Carmel School
Saipan, CNMI
(670) 235-6272 office
(670) 483-8684 cell
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] ovirt-shell -- cannot even get started

2017-03-16 Thread Phil Meyer
This is either some very obscure syntax, or it may not be working.

Difficult to tell, since the error message seems to be generic:

...

   ERROR
=
"https://engine-tst/ovirt-engine/api"; is invalid url format, valid
format is http[s]://server:port/path, where path is usually
"ovirt-engine/api" or, for older versions of the engine, just "api".
 

...

That error is reported no matter where it is run from, and no matter what

combination of manual or automated interaction is used.


It should not be this hard.

42 different combinations were tried.


In one instance when using localhost as the hostname, it actually asked for

the certificate first, and then gave me the same error as above.


Lets just say that the command line was very familiar to me when Larry Wall

wrote the Configure script (that was before the GNU configure scripts).


A strait up actual example that works would be nice, or an explanation of

prerequisites, if there are any.  None are stated.


There is lots of mention of port numbers, but no actual port numbers
suggested.

Does not the ovirt-shell talk to the web server at port 443 if https is
specified?


The lsof command does not show any listeners that seem likely as a cli
interface:

-> sudo lsof  -i | grep -i listen
systemd   1root   42u  IPv6   9030  0t0  TCP
*:sunrpc (LISTEN)
systemd   1root   43u  IPv4   9031  0t0  TCP
*:sunrpc (LISTEN)
ovirt-ima   582root5u  IPv4   9196  0t0  TCP *:54323
(LISTEN)
ovirt-web   954   ovirt4u  IPv4  14915  0t0  TCP
*:synchronet-db (LISTEN)
httpd   959root4u  IPv6  18622  0t0  TCP *:http
(LISTEN)
httpd   959root6u  IPv6  18630  0t0  TCP *:https
(LISTEN)
sshd962 ovirt-vmconsole3u  IPv4  17902  0t0  TCP
*:EtherNet/IP-1 (LISTEN)
sshd962 ovirt-vmconsole4u  IPv6  17904  0t0  TCP
*:EtherNet/IP-1 (LISTEN)
sshd   1048root3u  IPv4  19474  0t0  TCP *:ssh
(LISTEN)
sshd   1048root4u  IPv6  19477  0t0  TCP *:ssh
(LISTEN)
postgres   1237postgres3u  IPv4  19552  0t0  TCP
*:postgres (LISTEN)
postgres   1237postgres4u  IPv6  19553  0t0  TCP
*:postgres (LISTEN)
java   3042   ovirt  371u  IPv6  20711  0t0  TCP
localhost:8702 (LISTEN)
java   3042   ovirt  389u  IPv6  24722  0t0  TCP
localhost:8706 (LISTEN)


And yes, the unfamiliar ones were tried. :)


The last straw was when a packet sniffer failed to capture ANY traffic
related to these

attempts.  Apparently the ovirt-shell command fails before even
attempting a connection.



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] OVS switch type for hosted-engine

2017-03-16 Thread Devin A. Bougie
Is it possible to setup a hosted engine using the OVS switch type instead of 
Legacy?  If it's not possible to start out as OVS, instructions for switching 
from Legacy to OVS after the fact would be greatly appreciated.

Many thanks,
Devin
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to configure Cloud-init in Guest OS ?

2017-03-16 Thread Juan Hernández
On 03/16/2017 04:09 PM, TranceWorldLogic . wrote:
> Hi,
> 
> 
> I am trying to create file using same API, as shown below:
> --
> scontent="Hello World !!"
> 
> vm_service.start(
> use_cloud_init=True,
> vm = types.Vm(
> initialization=types.Initialization(
> cloud_init=types.CloudInit(
> files=[types.File(name="/root/hello.conf",
> content=scontent, type="PLAINTEXT")],
> ),
> ),
> ),
> )
> 
> 
> Can someone help me to understand ? why it is not working.
> Or Is that variable "cloud_init=" not handled in ovirt ?
> 

That may have been the initial design of the feature, but it doesn't
currently work. That 'files' element isn't used at all. The recommended
way to create a file is using the custom script, as explained in this
example:


https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/start_vm_with_cloud_init.py#L48-L57

The use of 'types.CloudInit' is also disencouraged, use directly the
attributes of 'types.Initialization', as explained here:


https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/start_vm_with_cloud_init.py#L59-L86

> 
> 
> On Thu, Mar 16, 2017 at 7:33 PM, Juan Hernández  > wrote:
> 
> On 03/16/2017 02:22 PM, TranceWorldLogic . wrote:
> > Hi,
> >
> > I am trying to use cloud-int to provide some text file in guest OS as
> > mention in below link. (tried using sdk)
> > But it is not working.
> > 
> http://www.ovirt.org/develop/release-management/features/cloud/cloud-init-integration/
> 
> 
> >
> 
> What SDK are you using? I guess that the Python SDK. Did you try this
> example:
> 
> 
> 
> https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/start_vm_with_cloud_init.py
> 
> 
> 
> > 1> Do I need to do some configure cloud-init in Guest OS ?
> > -> I hav just install cloud-init package in my 2 guest
> >   For centos 6.8 => yum install cloud-init
> >   For ubuntu 14.05 => apt-get install cloud-init
> >
> 
> That should be eough, at least in CentOS. Not sure about Ubuntu.
> 
> Note that you are using a quite old version of CentOS, so you may also
> be using an old or buggy version of cloud-init. Did you try with latest
> CentOS 7?
> 
> > 2> Do cloud-init permanently write network configuration in ifconfig
> > file(Centos) or interface file (ubuntu)?
> >
> 
> It does, in CentOS. Not sure about Ubuntu.
> 
> 
> 
> 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virtio-scsi drive order?

2017-03-16 Thread Michal Skrivanek

> On 16 Mar 2017, at 11:12, Yaniv Kaul  wrote:
> 
> 
> 
> On Thu, Mar 16, 2017 at 11:56 AM, Martin Polednik  > wrote:
> On 16/03/17 08:23 +0100, gflwqs gflwqs wrote:
> Hi list!
> When we upgraded our ovirt environment to 4.1 we get the virtio-scsi
> interface as default for virtual disks.
> We have seen a difference in drive order from when we used the virtio
> interface.
> 
> Before when we added disks the order of the drives were set by which order
> the disks was created.
> So if i had 1 disk as os disk it became vda and added a 50 GB disk that
> disk became vdb and then added another 8GB disk that became vdc.
> 
> But now when i add two additional disks with the virtio-scsi interface like
> the above when i reboot the vm the 50GB disk become sdc and the 8GB disk
> become sdb even that i created the 50GB disk first?
> How is the order decided in the virtio-scsi interface?
> What can i do to ensure that the disks come in the order that i create them?
> 
> Regards
> Christian
> 
> Could you post the XML (virsh -r list, note the domain
> number and virsh -r dumpxml $domainnumber) before and after adding the
> disks? Need to see whether there are also any iothreads or anything
> else.
> 
> It doesn't matter - the order of disk discovery on the SCSI bus (by udev?) is 
> quite random.
> You must use /dev/disk/by-id/scsi-…

well, it may in case we are actually doing something wrong with controllers or 
iothreads due to recent changes in that area.

> 
> Y.
>  
> 
> Thanks,
> mpolednik
> 
> 
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users 
> 
> 
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users 
> 
> 
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users 
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM switched off when migration for host maintenance fails

2017-03-16 Thread Michal Skrivanek
Hi,
Is it reproducible?
It sounds similar to https://bugzilla.redhat.com/show_bug.cgi?id=1426727 but 
it’s not exactly that
Can you confirm you’re not using QoS/Quota?
Does the VM fail the same way when you migrate it manually?
If not, can you please reproduce with Move to Maintenance flow and narrow it 
down - timeframe, exact VM, corresponding engine and vdsm and qemu logs?

Thanks,
michal

> On 16 Mar 2017, at 12:17, Eduardo Mayoral  wrote:
> 
> OK, then,
> 
> Please find the vdsm logs for both source and destination attached.
> 
> Eduardo Mayoral Jimeno (emayo...@arsys.es
> )
> Administrador de sistemas. Departamento de Plataformas. Arsys internet.
> +34 941 620 145 ext. 5153
> 
> On 16/03/17 12:13, Yaniv Kaul wrote:
>> Please share on the mailing list - I might not get to look at them.
>> It's not too big.
>> Y.
>> 
>> On Thu, Mar 16, 2017 at 1:06 PM, Eduardo Mayoral  wrote:
>> Sure! Please find the logs attached. I do not mind sharing them on the 
>> mailing list, but I feel they are probably too big.
>>  Eduardo Mayoral Jimeno (emayo...@arsys.es
>> )
>> Administrador de sistemas. Departamento de Plataformas. Arsys internet.
>> 
>> +34 941 620 145 ext. 5153
>> On 16/03/17 11:58, Yaniv Kaul wrote:
>>> 
>>> 
>>> On Thu, Mar 16, 2017 at 12:56 PM, Eduardo Mayoral  wrote:
>>> Hi,
>>> 
>>> An interesting thing just happened on my oVirt deployment.
>>> 
>>> While setting a host for maintenance, one of the VMs running on that
>>> host failed to migrate. Then ovirt-engine for some reason turned the VM
>>> off. Here are the relevant log lines from engine.log:
>>> 
>>> 
>>> 
>>> 
>>> 2017-03-16 09:56:23,324Z INFO
>>> [org.ovirt.engine.core.bll.MigrateVmCommand] (default task-60)
>>> [61a52216] Lock Acquired to object
>>> 'EngineLock:{exclusiveLocks='[422663a9-d712-4992-7c81-165b2976073e=>> ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED$VmName
>>> entorno127.arsysdesarrollo.lan>]', sharedLocks='null'}'
>>> 2017-03-16 09:56:23,957Z INFO
>>> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
>>> (default task-60) [61a52216] EVENT_ID:
>>> VM_MIGRATION_START_SYSTEM_INITIATED(67), Correlation ID: 61a52216, Job
>>> ID: fbc5e0d7-4618-4ca8-b7a7-0fd9a43f490f, Call Stack: null, Custom Event
>>> ID: -1, Message: Migration initiated by system (VM:
>>> entorno127.arsysdesarrollo.lan, Source: llkk594.arsyslan.es,
>>> Destination: llkk593.arsyslan.es, Reason: Host preparing for maintenance).
>>> 2017-03-16 09:56:26,818Z INFO
>>> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
>>> (DefaultQuartzScheduler10) [7c6c403b-0a82-47aa-aeb4-57fbe06e20e1] VM
>>> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
>>> was unexpectedly detected as 'MigratingTo' on VDS
>>> '43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es) (expected on
>>> '11a82467-afa4-4e4e-bd92-3383082d0a5e')
>>> 2017-03-16 09:56:42,149Z INFO
>>> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
>>> (DefaultQuartzScheduler10) [fac8ade9-a867-4ff7-aac5-912f78cc3bb5] VM
>>> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
>>> was unexpectedly detected as 'MigratingTo' on VDS
>>> '43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es) (expected on
>>> '11a82467-afa4-4e4e-bd92-3383082d0a5e')
>>> 2017-03-16 09:56:54,755Z INFO
>>> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
>>> (DefaultQuartzScheduler3) [54fa9a1b-fddb-4812-b5d2-06cf92834709] VM
>>> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
>>> moved from 'MigratingFrom' --> 'Down'
>>> 2017-03-16 09:56:54,755Z INFO
>>> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
>>> (DefaultQuartzScheduler3) [54fa9a1b-fddb-4812-b5d2-06cf92834709] Handing
>>> over VM
>>> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
>>> to Host '43f43ec5-e51d-400d-8569-261c98382e3a'. Setting VM to status
>>> 'MigratingTo'
>>> 2017-03-16 09:56:58,160Z INFO
>>> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
>>> (DefaultQuartzScheduler4) [dd4ea7bb-85bc-410e-9a8f-357c28d85d1c] VM
>>> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
>>> is running in db and not running on VDS
>>> '43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es)
>>> 2017-03-16 09:56:58,161Z INFO
>>> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
>>> (DefaultQuartzScheduler4) [dd4ea7bb-85bc-410e-9a8f-357c28d85d1c] add VM
>>> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
>>> to rerun treatment
>>>   turn to maintenance while VMs are still running on it.(VM:
>>> entorno127.arsysdesarrollo.lan, Source: llkk594.arsyslan.es,
>>> Destination: llkk593.arsyslan.es).
>>> 2017-03-16 09:56:59,193Z INFO
>>> [org.ovirt.engine.core.bll.MigrateVmCommand]
>>> (org.ovirt.thread.pool-7-thread-27) [14d40a88] Lock freed to object
>>> 'EngineLock:{exclusiveLocks='[422663a9-d712-4992-7c81-165b2976073e=>> ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED$VmName
>>> entorno127.arsysdesarrollo.lan>]

Re: [ovirt-users] Error on Adding Host

2017-03-16 Thread FERNANDO FREDIANI

Final information about this.

I have re-installed the node with the ISO Release version (2017020112) 
and it now worked, both with SSH port 22 or changed. Therefore Node-NG 
ISO versions 2017030911 and 2017031104 don't work well with my Engine.


Despite it was still not able to fetch the fingerprint using running 
with a different port on SSH (and firewalld allowing the port) it was 
able to add the host normally and configure it correctly. Should I 
report it in bugzilla ?


Let me know if you need anything further about this.

Regards
Fernando


On 16/03/2017 11:53, FERNANDO FREDIANI wrote:


Hello Yedidyah and all

I bring you a slightly new information about this issue.

If I have the node SSH port changed to something else other than 22 it 
is unable to fetch the fingerprint. I changed it back to 22 and it 
worked to fetch the fingerprint but failed again when adding the host 
with the same error as before. (Yes I have allowed the port in the 
node firewall)


Before adding the host I have also cleaned both /root/.ssh/known_host 
and /var/lib/ovirt-engine/.ssh/known_hosts


Regards
Fernando


On 16/03/2017 10:17, FERNANDO FREDIANI wrote:
Well, that's pretty much what I found on most sites about this 
subject but still can't find anything that points to the error (find 
the related logs attached).


Please note that before adding the server the Engine is not able to 
fetch the fingerprint and thorws the following error in the log:


2017-03-16 09:57:14,998-03 ERROR 
[org.ovirt.engine.core.bll.GetServerSSHKeyFingerprintQuery] (default 
task-54) [223c2f69-6e84-4d5c-a29d-2f828fd9466e] Could not fetch 
fingerprint of host '': Failed to get the session.


The most relevant parts of the attached logs I could find were some 
things related to 'sharedLocks' and 'ACTION_TYPE_FAILED_OBJECT_LOCKED'.

And the error itself:

SSH error running command r...@host1.fqdn.abc.net:55000 
:'umask 0077; 
MYTMP="$(TMPDIR="${OVIRT_TMPDIR}" mktemp -d -t ovirt-XX)"; 
trap "chmod -R u+rwX \"${MYTMP}\" > /dev/null 2>&1; rm -fr 
\"${MYTMP}\" > /dev/null 2>&1" 0; tar --warning=no-timestamp -C 
"${MYTMP}" -x &&  "${MYTMP}"/ovirt-host-deploy 
DIALOG/dialect=str:machine DIALOG/customization=bool:True': Command 
returned failure code 1 during SSH session 
'r...@host1.fqdn.abc.net:55000 '
2017-03-16 09:58:25,505-03 ERROR 
[org.ovirt.engine.core.uutils.ssh.SSHDialog] 
(org.ovirt.thread.pool-6-thread-14) [3a4fb0da] Exception: 
java.io.IOException: Command returned failure code 1 during SSH 
session 'r...@host1.fqdn.abc.net:55000 
'


Fernando



On 16/03/2017 04:15, Yedidyah Bar David wrote:

On Thu, Mar 16, 2017 at 5:24 AM, FERNANDO FREDIANI
  wrote:

Hi folks.

I think I have been hit by the most annoying error you can get on 
oVirt.

I have removed a Host from Engine, re-installed it with the latest
ovirt-node-ng ISO, tried to add the freshly installed Host back to 
Engine

and got the following error:

"Command returned failure code 1 during SSH session"

The host has the same FQDN as before and I have cleaned the SSH 
from the
known_hosts file in the Engine before trying to add it on the web 
interface.


I have also tried this process with 2 different ISO files:
- ovirt-node-ng-installer-ovirt-4.1-pre-2017030911 
.iso
- ovirt-node-ng-installer-ovirt-4.1-pre-2017031104 
.iso


And the Engine is version 4.1.1.4-1

Have searched for this error and there are a lot of people affected 
but not

a single solution solves it.

Please give some light.

Please check/share /var/log/ovirt-engine/engine.log on the engine
machine.

Best,


Thanks
Fernando

___
Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users 












___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virt-manager not able to connect to my ovirt-instance

2017-03-16 Thread Alexander Wels
On Thursday, March 16, 2017 4:54:54 AM EDT John Joseph wrote:
> Thanks Paul,
> I have tried opening it using "remote-viewer", but I get error message as
> 
> "Unable to connect to the graphic server /tmp/mozilla_saji0/console.vvCould
> not connect to 192.168.59.95: No route to host" This has something to do
> with the permission than, route issues, because I can access the server
> through the browser as well as I can ping it also I have to see what
> permissions or port blocked at the ovirt server level Thanks
> Joseph John
> 
> 

Yes you should use the remote viewer. The manager itself is not running the 
VMs, the hosts are running the VMs. So what happens when you click on the 
console button is that it generates a .vv file which your browser then 
downloads. If you associate remote-viewer with the .vv files it will attempt 
to connect to the *HOST* running the VM. Now its entirely possible your 
network topology doesn't allow you to connect to the host, while the manager 
(engine) is allowed to connect to the host.

If this is the case you need to configure a proxy on the engine that forwards 
to the host. Since we don't know your topology we can't say much more. But in 
general your browser connects to the engine which shows you the admin UI. Then 
when you want to connect with a console to a VM, your computer (remote-viewer) 
tries to connect to the host.

The message you are seeing is telling me you can't connect to the host.

Alexander

> 
> On Thursday, 16 March 2017 12:32 PM, "Staniforth, Paul"
>  wrote:
> 
> 
>   You should use remote-viewer to connect to the console of the VM, it's in
> the same package and you should pass the connection details to it from the
> portal(the console.vv file gets created including the otp). Regards,   
> Paul S.
> 
> 
> On 16 Mar 2017 07:36, John Joseph  wrote:
> 
> Hi ,I was able to install ovirt, and I am able to create virtual machines
> and it is running fine, I can see the instance using browser But when I try
> connecting to the ovirt machine using virt-manager I am getting the
> following error
> 
> "Unable to connect to libvirt.
> authentication failed: authentication failed
> Verify that the 'libvirtd' daemon is running
> on the remote host."
> Through the browser I am able to see the virtual machines running, is there
> anything else for me to do, for allowing "Virtual Machine Manager" to work
> thanksJoseph John
> 
> 
> 
> 
> 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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virt-manager not able to connect to my ovirt-instance

2017-03-16 Thread Staniforth, Paul
You should use remote-viewer to connect to the console of the VM, it's in the 
same package and you should pass the connection details to it from the 
portal(the console.vv file gets created including the otp).

Regards,
Paul S.


On 16 Mar 2017 07:36, John Joseph  wrote:
Hi ,
I was able to install ovirt, and I am able to create virtual machines and it is 
running fine, I can see the instance using browser
But when I try connecting to the ovirt machine using virt-manager I am getting 
the following error

"Unable to connect to libvirt.
authentication failed: authentication failed
Verify that the 'libvirtd' daemon is running
on the remote host."

Through the browser I am able to see the virtual machines running, is there 
anything else for me to do, for allowing "Virtual Machine Manager" to work
thanks
Joseph John



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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] iSCSI and multipath deliberation

2017-03-16 Thread Pavel Gashev
Using this logic, oVirt should detect existing storages instead of 
attaching/mounting them. The same is for networks. A VM can be placed on any 
host that has required storage(s) and network(s) attached. Datacenters/clusters 
would be virtual things.

Pros:
* Flexibility for Linux admins, wider usage
* Less code. Less bugs.
Cons:
* You must be a Linux admin to maintain oVirt instances.
* It’s a step back in RHEV/oVirt functionality. I oVirt would lose users. 
RedHat would lose customers.


From:  on behalf of Marcin Kruk 

Date: Thursday, 16 March 2017 at 20:17
To: users 
Subject: [ovirt-users] iSCSI and multipath deliberation

In my opionion the main problem in configuration iscsi and multipath is that 
the ovirt developers try to start everything automaticaly during installation, 
and then during start services like vdsmd.
But during installation process adminstrator shoud choose the right multipath 
WWID identifier only.
And administrator should be responsible for setting multipath and iSCSI 
properly.
Otherwise ovirt installator does everything automaticaly in the universal way 
which is weak due to so many storage types.
Howgh :)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Adding posix compliant FS

2017-03-16 Thread carl langlois
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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] iSCSI and multipath deliberation

2017-03-16 Thread Marcin Kruk
In my opionion the main problem in configuration iscsi and multipath is
that the ovirt developers try to start everything automaticaly during
installation, and then during start services like vdsmd.
But during installation process adminstrator shoud choose the right
multipath WWID identifier only.
And administrator should be responsible for setting multipath and iSCSI
properly.
Otherwise ovirt installator does everything automaticaly in the universal
way which is weak due to so many storage types.
Howgh :)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Change repository from PRE to Release

2017-03-16 Thread FERNANDO FREDIANI

Ok Sandro, thanks for the feedback on this.

Regards,
Fernando


On 16/03/2017 13:32, Sandro Bonazzola wrote:



On Thu, Mar 16, 2017 at 2:52 PM, FERNANDO FREDIANI 
mailto:fernando.fredi...@upx.com>> wrote:


Hi again folks

I have been using the *ovirt-4.1-pre* and
*ovirt-4.1-pre-dependencies* repositories, but now that 4.1 is
stable I want to change it to *ovirt-release41*.

Is there any harm if I just install
http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm
 and
remove the other two 'pre' repositories from my /etc/yum.repos.d/
? Or is there anything I should be concerned when doing that ?


No harm, thanks for having tested pre releases!
I would wait until 4.1.1 is released just avoiding to get orphaned 
rpms since stable is still at 4.1.0 while pre is at 4.1.1 rc3 right now.


Thanks

Fernando


___
Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users





--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com 


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Change repository from PRE to Release

2017-03-16 Thread Sandro Bonazzola
On Thu, Mar 16, 2017 at 2:52 PM, FERNANDO FREDIANI <
fernando.fredi...@upx.com> wrote:

> Hi again folks
>
> I have been using the *ovirt-4.1-pre* and *ovirt-4.1-pre-dependencies*
> repositories, but now that 4.1 is stable I want to change it to
> *ovirt-release41*.
>
Is there any harm if I just install http://resources.ovirt.org/
> pub/yum-repo/ovirt-release41.rpm and remove the other two 'pre'
> repositories from my /etc/yum.repos.d/ ? Or is there anything I should be
> concerned when doing that ?
>

No harm, thanks for having tested pre releases!
I would wait until 4.1.1 is released just avoiding to get orphaned rpms
since stable is still at 4.1.0 while pre is at 4.1.1 rc3 right now.



> Thanks
>
> Fernando
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] OVirt new cluster host only logins on one iSCSI

2017-03-16 Thread Duarte Fernandes Rocha
Hi,

> How to find the relation between "list storagedomains" and "list
> storageconnections"?

To find out which storage connections a specific storage domain is using
you could do:

show storagedomain STORAGE_DOMAIN-ID 

or with curl  via REST API

curl --insecure --user user --request GET 
https://ovirt.host/ovirt-engine/api/storagedomains/STORAGE_DOMAIN_ID

But it does not give the storage connection ID, I used the 

storage-volume_group-logical_unit-address
storage-volume_group-logical_unit-portal

to match them with the storage connection...there might be a way but I
do not know :(

Regards,

-- 
Duarte Rocha 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Changing gateway ping address

2017-03-16 Thread Simone Tiraboschi
On Thu, Mar 16, 2017 at 1:23 PM, Sandro Bonazzola 
wrote:

>
>
> On Thu, Mar 16, 2017 at 9:38 AM, Sven Achtelik 
> wrote:
>
>> Hi Sandro,
>>
>> where can I find that answer file ? Running ovirt 4.1.
>>
>
> Things chaged a lot since 3.5, adding Simone and Martin since I can't
> remember if it's possible to set it from web ui now.
>

That answerfile is on the shared storage used for the hosted-engine storage
domain inside a configuration volume but, If I'm not wrong, the engine
fetches it when it imports the hosted-engine storage domain but it doesn't
periodically refresh it so I think that if you want to get it stably
changed also for future hosts you have to fix that value in the engine DB.



>
>
>
>>
>> Thank you,
>>
>> Sven
>>
>> -Ursprüngliche Nachricht-
>> Von: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] Im Auftrag
>> von Sandro Bonazzola
>> Gesendet: Freitag, 10. Juli 2015 09:26
>> An: Matteo ; users@ovirt.org
>> Betreff: Re: [ovirt-users] Changing gateway ping address
>>
>> Il 10/07/2015 09:08, Matteo ha scritto:
>> > Hi all,
>> >
>> > I need to change the gateway ping address, the one used by hosted
>> engine setup.
>> >
>> > Is ok to edit /etc/ovirt-hosted-engine/hosted-engine.conf on each
>> > node, update the gateway param with the new ip address and restart the
>> > agent&broker on each node?
>> >
>> > With a blind test seems ok, but need to understand if is the right
>> procedure.
>>
>> Yes it's ok.
>> You should also change it in the answer files so if you add new nodes it
>> will be set automatically.
>>
>>
>> >
>> > Thanks,
>> > Matteo
>> > ___
>> > Users mailing list
>> > Users@ovirt.org
>> > http://lists.ovirt.org/mailman/listinfo/users
>> >
>>
>>
>> --
>> Sandro Bonazzola
>> Better technology. Faster innovation. Powered by community collaboration.
>> See how it works at redhat.com
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>>
>
>
> --
> Sandro Bonazzola
> Better technology. Faster innovation. Powered by community collaboration.
> See how it works at redhat.com
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Change repository from PRE to Release

2017-03-16 Thread Simone Tiraboschi
On Thu, Mar 16, 2017 at 2:52 PM, FERNANDO FREDIANI <
fernando.fredi...@upx.com> wrote:

> Hi again folks
>
> I have been using the *ovirt-4.1-pre* and *ovirt-4.1-pre-dependencies*
> repositories, but now that 4.1 is stable I want to change it to
> *ovirt-release41*.
>
> Is there any harm if I just install http://resources.ovirt.org/
> pub/yum-repo/ovirt-release41.rpm and remove the other two 'pre'
> repositories from my /etc/yum.repos.d/ ? Or is there anything I should be
> concerned when doing that ?
>

it's fine.
You can also run
  yum remove ovirt-release41-pre
just to avoid keeping a reference to that repos.


> Thanks
>
> Fernando
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to configure Cloud-init in Guest OS ?

2017-03-16 Thread TranceWorldLogic .
Hi,


I am trying to create file using same API, as shown below:
--
scontent="Hello World !!"

vm_service.start(
use_cloud_init=True,
vm = types.Vm(
initialization=types.Initialization(
cloud_init=types.CloudInit(
files=[types.File(name="/root/hello.conf",
content=scontent, type="PLAINTEXT")],
),
),
),
)


Can someone help me to understand ? why it is not working.
Or Is that variable "cloud_init=" not handled in ovirt ?

Thanks,
~Rohit



On Thu, Mar 16, 2017 at 7:33 PM, Juan Hernández  wrote:

> On 03/16/2017 02:22 PM, TranceWorldLogic . wrote:
> > Hi,
> >
> > I am trying to use cloud-int to provide some text file in guest OS as
> > mention in below link. (tried using sdk)
> > But it is not working.
> > http://www.ovirt.org/develop/release-management/features/
> cloud/cloud-init-integration/
> >
>
> What SDK are you using? I guess that the Python SDK. Did you try this
> example:
>
>
> https://github.com/oVirt/ovirt-engine-sdk/blob/master/
> sdk/examples/start_vm_with_cloud_init.py
>
> > 1> Do I need to do some configure cloud-init in Guest OS ?
> > -> I hav just install cloud-init package in my 2 guest
> >   For centos 6.8 => yum install cloud-init
> >   For ubuntu 14.05 => apt-get install cloud-init
> >
>
> That should be eough, at least in CentOS. Not sure about Ubuntu.
>
> Note that you are using a quite old version of CentOS, so you may also
> be using an old or buggy version of cloud-init. Did you try with latest
> CentOS 7?
>
> > 2> Do cloud-init permanently write network configuration in ifconfig
> > file(Centos) or interface file (ubuntu)?
> >
>
> It does, in CentOS. Not sure about Ubuntu.
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Fwd: [ovirt-devel] Loadbalancer.org Enterprise VA with oVirt(RHEV) 4.1

2017-03-16 Thread Sandro Bonazzola
Initially shared by Nir on devel mailing list

-- Forwarded message --
From: Nir Soffer 
Date: Thu, Mar 9, 2017 at 7:57 PM
Subject: [ovirt-devel] Loadbalancer.org Enterprise VA with oVirt(RHEV) 4.1
To: devel , Adam Litke , Ala Hino <
ah...@redhat.com>, amureini , Benny Zlotnik <
bzlot...@redhat.com>, Daniel Erez , Fred Rolland <
froll...@redhat.com>, Idan Shaby , Liron Aravot <
lara...@redhat.com>, Maor Lipchuk , "Nisan, Tal" <
tni...@redhat.com>, Shani Leviim 


User explains how cool is ovirt and image upload:
http://www.loadbalancer.org/blog/loadbalancer-org-
enterprise-va-with-ovirtrhev-4-1

Enjoy,
Nir
___
Devel mailing list
de...@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel



-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Error on Adding Host

2017-03-16 Thread FERNANDO FREDIANI
Hello Yedidyah and all

I bring you a slightly new information about this issue.

If I have the node SSH port changed to something else other than 22 it is
unable to fetch the fingerprint. I changed it back to 22 and it worked to
fetch the fingerprint but failed again when adding the host with the same
error as before. (Yes I have allowed the port in the node firewall)

Before adding the host I have also cleaned both /root/.ssh/known_host and
/var/lib/ovirt-engine/.ssh/known_hosts

Regards
Fernando

On 16/03/2017 10:17, FERNANDO FREDIANI wrote:

Well, that's pretty much what I found on most sites about this subject but
still can't find anything that points to the error (find the related logs
attached).

Please note that before adding the server the Engine is not able to fetch
the fingerprint and thorws the following error in the log:

2017-03-16 09:57:14,998-03 ERROR [org.ovirt.engine.core.bll.
GetServerSSHKeyFingerprintQuery] (default task-54)
[223c2f69-6e84-4d5c-a29d-2f828fd9466e]
Could not fetch fingerprint of host '': Failed to get the
session.

The most relevant parts of the attached logs I could find were some things
related to 'sharedLocks' and 'ACTION_TYPE_FAILED_OBJECT_LOCKED'.
And the error itself:

SSH error running command r...@host1.fqdn.abc.net:55000:'umask 0077;
MYTMP="$(TMPDIR="${OVIRT_TMPDIR}" mktemp -d -t ovirt-XX)"; trap
"chmod -R u+rwX \"${MYTMP}\" > /dev/null 2>&1; rm -fr \"${MYTMP}\" >
/dev/null 2>&1" 0; tar --warning=no-timestamp -C "${MYTMP}" -x &&
"${MYTMP}"/ovirt-host-deploy DIALOG/dialect=str:machine
DIALOG/customization=bool:True': Command returned failure code 1 during SSH
session 'r...@host1.fqdn.abc.net:55000'
2017-03-16 09:58:25,505-03 ERROR [org.ovirt.engine.core.uutils.ssh.SSHDialog]
(org.ovirt.thread.pool-6-thread-14) [3a4fb0da] Exception:
java.io.IOException: Command returned failure code 1 during SSH session '
r...@host1.fqdn.abc.net:55000'

Fernando



On 16/03/2017 04:15, Yedidyah Bar David wrote:

On Thu, Mar 16, 2017 at 5:24 AM, FERNANDO FREDIANI
  wrote:

Hi folks.

I think I have been hit by the most annoying error you can get on oVirt.
I have removed a Host from Engine, re-installed it with the latest
ovirt-node-ng ISO, tried to add the freshly installed Host back to Engine
and got the following error:

"Command returned failure code 1 during SSH session"

The host has the same FQDN as before and I have cleaned the SSH from the
known_hosts file in the Engine before trying to add it on the web
interface.

I have also tried this process with 2 different ISO files:
- ovirt-node-ng-installer-ovirt-4.1-pre-2017030911 <(201)%20703-0911>.iso
- ovirt-node-ng-installer-ovirt-4.1-pre-2017031104 <(201)%20703-1104>.iso

And the Engine is version 4.1.1.4-1

Have searched for this error and there are a lot of people affected but not
a single solution solves it.

Please give some light.

Please check/share /var/log/ovirt-engine/engine.log on the engine
machine.

Best,

Thanks
Fernando

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] [ANN] oVirt 4.1.1 Third Release Candidate

2017-03-16 Thread Sandro Bonazzola
The oVirt Project is pleased to announce the availability of the Third
Release Candidate of oVirt 4.1.1 for testing, as of March 16th, 2017

This is pre-release software. Please take a look at our community page[1]
to know how to ask questions and interact with developers and users.
All issues or bugs should be reported via oVirt Bugzilla[2].
This pre-release should not to be used in production.

This update is the third release candidate of the first in a series of
stabilization updates to the 4.1 series.
4.1.1 brings 35 enhancements and more than 390 bugfixes,
including more than 160 high or urgent
severity fixes, on top of oVirt 4.1 series

This release is available now for:
* Fedora 24 (tech preview)
* Red Hat Enterprise Linux 7.3 or later
* CentOS Linux (or similar) 7.3 or later

This release supports Hypervisor Hosts running:
* Red Hat Enterprise Linux 7.3 or later
* CentOS Linux (or similar) 7.3 or later
* Fedora 24 (tech preview)

See the release notes draft [3] for installation / upgrade instructions and
a list of new features and bugs fixed.

Notes:
- oVirt node and oVirt Live have been already built [4]
- oVirt Engine Appliance has been already built

Additional Resources:
* Read more about the oVirt 4.1.1 release highlights:
http://www.ovirt.org/release/4.1.1/
* Get more oVirt Project updates on Twitter: https://twitter.com/ovirt
* Check out the latest project news on the oVirt blog:
http://www.ovirt.org/blog/

[1] https://www.ovirt.org/community/
[2] https://bugzilla.redhat.com/enter_bug.cgi?classification=oVirt
[3] http://www.ovirt.org/release/4.1.1/
[4] http://resources.ovirt.org/pub/ovirt-4.1-pre/iso/

-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to configure Cloud-init in Guest OS ?

2017-03-16 Thread Juan Hernández
On 03/16/2017 02:22 PM, TranceWorldLogic . wrote:
> Hi,
> 
> I am trying to use cloud-int to provide some text file in guest OS as
> mention in below link. (tried using sdk)
> But it is not working.
> http://www.ovirt.org/develop/release-management/features/cloud/cloud-init-integration/
> 

What SDK are you using? I guess that the Python SDK. Did you try this
example:


https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/start_vm_with_cloud_init.py

> 1> Do I need to do some configure cloud-init in Guest OS ?
> -> I hav just install cloud-init package in my 2 guest
>   For centos 6.8 => yum install cloud-init
>   For ubuntu 14.05 => apt-get install cloud-init
> 

That should be eough, at least in CentOS. Not sure about Ubuntu.

Note that you are using a quite old version of CentOS, so you may also
be using an old or buggy version of cloud-init. Did you try with latest
CentOS 7?

> 2> Do cloud-init permanently write network configuration in ifconfig
> file(Centos) or interface file (ubuntu)?
> 

It does, in CentOS. Not sure about Ubuntu.

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Change repository from PRE to Release

2017-03-16 Thread FERNANDO FREDIANI

Hi again folks

I have been using the *ovirt-4.1-pre* and *ovirt-4.1-pre-dependencies* 
repositories, but now that 4.1 is stable I want to change it to 
*ovirt-release41*.


Is there any harm if I just install 
http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm and remove 
the other two 'pre' repositories from my /etc/yum.repos.d/ ? Or is there 
anything I should be concerned when doing that ?


Thanks

Fernando

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] how to attach lvm device to VM ?

2017-03-16 Thread TranceWorldLogic .
Hi,

I have created LVM partition in host.
I don't want that partition to act as storage domain in ovirt, but I want
to attach that partition to VM.

So I used virsh command to attach device to VM and it was successfully
attached (block device as raw type).
But when I tried to take snapshot of VM from Ovirt, it fail to get
snapshot.

I think it may be due to vdsm as it is not aware of newly attached lvm
device.

Can someone help me to know another way to attach device to VM in Ovirt?
I tried with vdsClient but not got idea or command that will attach device
to VM.

Thanks,
~Rohit
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] How to configure Cloud-init in Guest OS ?

2017-03-16 Thread TranceWorldLogic .
Hi,

I am trying to use cloud-int to provide some text file in guest OS as
mention in below link. (tried using sdk)
But it is not working.
http://www.ovirt.org/develop/release-management/features/cloud/cloud-init-integration/

1> Do I need to do some configure cloud-init in Guest OS ?
-> I hav just install cloud-init package in my 2 guest
  For centos 6.8 => yum install cloud-init
  For ubuntu 14.05 => apt-get install cloud-init

2> Do cloud-init permanently write network configuration in ifconfig
file(Centos) or interface file (ubuntu)?

Thanks,
~Rohit
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Error on Adding Host

2017-03-16 Thread FERNANDO FREDIANI
Well, that's pretty much what I found on most sites about this subject 
but still can't find anything that points to the error (find the related 
logs attached).


Please note that before adding the server the Engine is not able to 
fetch the fingerprint and thorws the following error in the log:


2017-03-16 09:57:14,998-03 ERROR 
[org.ovirt.engine.core.bll.GetServerSSHKeyFingerprintQuery] (default 
task-54) [223c2f69-6e84-4d5c-a29d-2f828fd9466e] Could not fetch 
fingerprint of host '': Failed to get the session.


The most relevant parts of the attached logs I could find were some 
things related to 'sharedLocks' and 'ACTION_TYPE_FAILED_OBJECT_LOCKED'.

And the error itself:

SSH error running command r...@host1.fqdn.abc.net:55000:'umask 0077; 
MYTMP="$(TMPDIR="${OVIRT_TMPDIR}" mktemp -d -t ovirt-XX)"; trap 
"chmod -R u+rwX \"${MYTMP}\" > /dev/null 2>&1; rm -fr \"${MYTMP}\" > 
/dev/null 2>&1" 0; tar --warning=no-timestamp -C "${MYTMP}" -x &&  
"${MYTMP}"/ovirt-host-deploy DIALOG/dialect=str:machine 
DIALOG/customization=bool:True': Command returned failure code 1 during 
SSH session 'r...@host1.fqdn.abc.net:55000'
2017-03-16 09:58:25,505-03 ERROR 
[org.ovirt.engine.core.uutils.ssh.SSHDialog] 
(org.ovirt.thread.pool-6-thread-14) [3a4fb0da] Exception: 
java.io.IOException: Command returned failure code 1 during SSH session 
'r...@host1.fqdn.abc.net:55000'


Fernando



On 16/03/2017 04:15, Yedidyah Bar David wrote:

On Thu, Mar 16, 2017 at 5:24 AM, FERNANDO FREDIANI
 wrote:

Hi folks.

I think I have been hit by the most annoying error you can get on oVirt.
I have removed a Host from Engine, re-installed it with the latest
ovirt-node-ng ISO, tried to add the freshly installed Host back to Engine
and got the following error:

"Command returned failure code 1 during SSH session"

The host has the same FQDN as before and I have cleaned the SSH from the
known_hosts file in the Engine before trying to add it on the web interface.

I have also tried this process with 2 different ISO files:
- ovirt-node-ng-installer-ovirt-4.1-pre-2017030911.iso
- ovirt-node-ng-installer-ovirt-4.1-pre-2017031104.iso

And the Engine is version 4.1.1.4-1

Have searched for this error and there are a lot of people affected but not
a single solution solves it.

Please give some light.

Please check/share /var/log/ovirt-engine/engine.log on the engine
machine.

Best,


Thanks
Fernando

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users






2017-03-16 09:58:06,546-03 INFO  [org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand] (default task-56) [bd52ecbe-ed82-4626-8575-d5baba0e2f60] Running command: AddVdsCommand internal: false. Entities affected :  ID: f97c5bd6-18eb-402f-b5e7-61fcdaed5511 Type: ClusterAction group CREATE_HOST with role type ADMIN
2017-03-16 09:58:06,602-03 INFO  [org.ovirt.engine.core.bll.AddVdsSpmIdCommand] (default task-56) [36d7e262] Before acquiring and wait lock 'EngineLock:{exclusiveLocks='[2325e1a4-c702-469c-82eb-ff43baa06d44=]', sharedLocks='null'}'
2017-03-16 09:58:06,602-03 INFO  [org.ovirt.engine.core.bll.AddVdsSpmIdCommand] (default task-56) [36d7e262] Lock-wait acquired to object 'EngineLock:{exclusiveLocks='[2325e1a4-c702-469c-82eb-ff43baa06d44=]', sharedLocks='null'}'
2017-03-16 09:58:06,604-03 INFO  [org.ovirt.engine.core.bll.AddVdsSpmIdCommand] (default task-56) [36d7e262] Running command: AddVdsSpmIdCommand internal: true. Entities affected :  ID: b6d06eb1-6e54-42f2-b4e9-d855a90799ef Type: VDS
2017-03-16 09:58:06,645-03 INFO  [org.ovirt.engine.core.bll.AddVdsSpmIdCommand] (default task-56) [36d7e262] Lock freed to object 'EngineLock:{exclusiveLocks='[2325e1a4-c702-469c-82eb-ff43baa06d44=]', sharedLocks='null'}'
2017-03-16 09:58:06,649-03 INFO  [org.ovirt.engine.core.vdsbroker.RemoveVdsVDSCommand] (default task-56) [36d7e262] START, RemoveVdsVDSCommand(HostName = kvm01.mia1.upx.net.br, RemoveVdsVDSCommandParameters:{runAsync='true', hostId='b6d06eb1-6e54-42f2-b4e9-d855a90799ef'}), log id: 6f514ef9
2017-03-16 09:58:06,649-03 INFO  [org.ovirt.engine.core.vdsbroker.RemoveVdsVDSCommand] (default task-56) [36d7e262] FINISH, RemoveVdsVDSCommand, log id: 6f514ef9
2017-03-16 09:58:06,651-03 INFO  [org.ovirt.engine.core.vdsbroker.AddVdsVDSCommand] (default task-56) [36d7e262] START, AddVdsVDSCommand(HostName = kvm01.mia1.upx.net.br, AddVdsVDSCommandParameters:{runAsync='true', hostId='b6d06eb1-6e54-42f2-b4e9-d855a90799ef'}), log id: 113c68ae
2017-03-16 09:58:06,651-03 INFO  [org.ovirt.engine.core.vdsbroker.AddVdsVDSCommand] (default task-56) [36d7e262] AddVds - entered , starting logic to add VDS 'b6d06eb1-6e54-42f2-b4e9-d855a90799ef'
2017-03-16 09:58:06,652-03 INFO  [org.ovirt.engine.core.vdsbroker.AddVdsVDSCommand] (default task-56) [36d7e262] AddVds - VDS 'b6d06eb1-6e54-42f2-b4e9-d855a90799ef' was added, will try to add it to the resource manager
2017-03-16 09:58:06,652-03 INFO  [org.ovirt.engine.core.vdsbr

Re: [ovirt-users] OVirt new cluster host only logins on one iSCSI

2017-03-16 Thread Marcin Kruk
How to find the relation between "list storagedomains" and "list
storageconnections"?

2017-03-07 17:55 GMT+01:00 Duarte Fernandes Rocha :

> Hello,
>
>
>
> For anyone interested this is how I solved the problem.
>
>
>
> First, please note that as I mentioned earlier the OVirt documentation
> states that ALL the iscsi sessions/paths must be configured when adding the
> storage domain:
>
>
>
> http://www.ovirt.org/documentation/admin-guide/chap-Storage/
>
> Adding iSCSI Storage
>
> ...
>
> Important: If more than one path access is required, ensure to discover
> and log in to the target through all the required paths. Modifying a
> storage domain to add additional paths is currently not supported.
>
>
>
> So one way to fix this issue is:
>
>
>
> 1. Put the Storage domain under maintenance
>
> 2. Remove the storage domain from the datacenter (do not wipe/format)
>
> 3. Import storage domain using all the iscsi paths
>
>
>
> Another way that I think is better because it does not involve deleting
> the storage domain is to use the REST API and/or OVirt Shell.
>
>
>
> The storage domain must be in maintenance and the iscsi storage connection
> must exist. The upside is that the storage domain does not have to be
> deleted and imported which may not be easy if there are VMs using that
> storage domain.
>
>
>
> First we need to have the storage domain ID and the storage connection ID
> (this one I got using the first method on an empty LUN)
>
>
>
>
>
> [oVirt shell (connected)]# list storagedomains
>
>
>
> id : d591d9f0-.
>
> name : ISO_DOMAIN
>
> description: ISO_DOMAIN
>
>
>
> id : 7d30dff2-.
>
> name : LUN
>
> description: ISCSI LUN
>
>
>
>
>
> [oVirt shell (connected)]# list storageconnections
>
>
>
> id : b793b463-.
>
>
>
> id : 65300f39-
>
>
>
> [oVirt shell (connected)]# show storageconnection 65300f39-ac93-423a-9692-
> 15984f842ae2
>
>
>
> id : 65300f39-.
>
> address : ip.addr.x.x
>
> port : 3260
>
> target : iqn.1992-04
>
> type : iscsi
>
> username: username
>
>
>
> With this info make a POST request to the API using curl
>
>
>
> #!/bin/sh -ex
>
>
>
> # https://ovirt.addr/ovirt-engine/api/storagedomains/STORAGE-DOMAIN-ID/
> storageconnections
>
>
>
> url="https://ovirt.addr/ovirt-engine/api/storagedomains/521fcfdc-./
> storageconnections"
>
> User="admin at internal"
>
> password="*"
>
>
>
> curl \
>
> --insecure \
>
> --user "${user}:${password}" \
>
> --request POST \
>
> --header "Accept: application/xml" --header "Content-Type:
> application/xml" \
>
> --data '
>
> 
>
> 
>
> ' \
>
> "${url}"
>
>
>
> If there are easier/simpler ways please let me know =)
>
>
>
> --
>
> Duarte Fernandes Rocha 
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Changing gateway ping address

2017-03-16 Thread Sandro Bonazzola
On Thu, Mar 16, 2017 at 9:38 AM, Sven Achtelik 
wrote:

> Hi Sandro,
>
> where can I find that answer file ? Running ovirt 4.1.
>

Things chaged a lot since 3.5, adding Simone and Martin since I can't
remember if it's possible to set it from web ui now.




>
> Thank you,
>
> Sven
>
> -Ursprüngliche Nachricht-
> Von: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] Im Auftrag
> von Sandro Bonazzola
> Gesendet: Freitag, 10. Juli 2015 09:26
> An: Matteo ; users@ovirt.org
> Betreff: Re: [ovirt-users] Changing gateway ping address
>
> Il 10/07/2015 09:08, Matteo ha scritto:
> > Hi all,
> >
> > I need to change the gateway ping address, the one used by hosted engine
> setup.
> >
> > Is ok to edit /etc/ovirt-hosted-engine/hosted-engine.conf on each
> > node, update the gateway param with the new ip address and restart the
> > agent&broker on each node?
> >
> > With a blind test seems ok, but need to understand if is the right
> procedure.
>
> Yes it's ok.
> You should also change it in the answer files so if you add new nodes it
> will be set automatically.
>
>
> >
> > Thanks,
> > Matteo
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
>
>
> --
> Sandro Bonazzola
> Better technology. Faster innovation. Powered by community collaboration.
> See how it works at redhat.com
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virt-manager not able to connect to my ovirt-instance

2017-03-16 Thread Staniforth, Paul
Hello,

  The VM is running on one of your nodes/hosts and the client 
should be connecting to a port on that machine. The web portal is likely on the 
machine that has the oVirt Engine running on.






From: John Joseph 
Sent: 16 March 2017 08:54
To: Staniforth, Paul; users@ovirt.org
Subject: Re: [ovirt-users] virt-manager not able to connect to my ovirt-instance

Thanks Paul,
I have tried opening it using "remote-viewer", but I get error message as

"Unable to connect to the graphic server /tmp/mozilla_saji0/console.vv
Could not connect to 192.168.59.95: No route to host"

This has something to do with the permission than, route issues, because I can 
access the server through the browser as well as I can ping it also
I have to see what permissions or port blocked at the ovirt server level
Thanks
Joseph John



On Thursday, 16 March 2017 12:32 PM, "Staniforth, Paul" 
 wrote:


You should use remote-viewer to connect to the console of the VM, it's in the 
same package and you should pass the connection details to it from the 
portal(the console.vv file gets created including the otp).

Regards,
Paul S.


On 16 Mar 2017 07:36, John Joseph  wrote:
Hi ,
I was able to install ovirt, and I am able to create virtual machines and it is 
running fine, I can see the instance using browser
But when I try connecting to the ovirt machine using virt-manager I am getting 
the following error

"Unable to connect to libvirt.
authentication failed: authentication failed
Verify that the 'libvirtd' daemon is running
on the remote host."

Through the browser I am able to see the virtual machines running, is there 
anything else for me to do, for allowing "Virtual Machine Manager" to work
thanks
Joseph John



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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] upgrade 3.5 to 3.6 auto import storage domain failed

2017-03-16 Thread Simone Tiraboschi
On Thu, Mar 16, 2017 at 11:33 AM, Резников А.А. 
wrote:

> 16.03.2017 12:05, Simone Tiraboschi пишет:
>
> grep host_id /etc/ovirt-hosted-engine/hosted-engine.conf
>
>
>
>  vds_spm_id | vds_name
> +--
>   1| h1new.lan
>   2| h2new.lan
>
> [root@h1 /]# grep host_id /etc/ovirt-hosted-engine/hosted-engine.conf
> host_id=3
>
> [root@h2 /]# grep host_id /etc/ovirt-hosted-engine/hosted-engine.conf
> host_id=4
>
> *Funny, the host id does not match.*
>
> It seems I understand what wrong. In the past, I had two hosts of the
> cluster with id 1 and 2, after i delete them.
> Simon, what is the correct decision? Change vds_spm_id in the engine base
> or fix host_id in "/etc/ovirt-hosted-engine/hosted-engine.conf"?
>

It's really the same, probably it's easier to edit
 /etc/ovirt-hosted-engine/hosted-engine.conf on the two hosts since it's
just a text file.
Please take care that you have to stop all the monitoring domain task in
vdsm and remove all the existing sanlock locks.
Probably the easiest option is to set the host (you can do it one host at
at time keeping running VMs include the engine one on the other) in
maintenance mode from the engine, edit
/etc/ovirt-hosted-engine/hosted-engine.conf
to reflect the spm_id you have in the engine DB and then reboot the host to
ensure that all the locks are gone.

Since 4.0 we cannot hit this kind of issue anymore since the hosted-engine
hosts (but the bootstrap one) should be deployed from the engine and this
ensure that the spm_id is always in sync.



> Thanks, Alex.
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM switched off when migration for host maintenance fails

2017-03-16 Thread Yaniv Kaul
On Thu, Mar 16, 2017 at 12:56 PM, Eduardo Mayoral  wrote:

> Hi,
>
> An interesting thing just happened on my oVirt deployment.
>
> While setting a host for maintenance, one of the VMs running on that
> host failed to migrate. Then ovirt-engine for some reason turned the VM
> off. Here are the relevant log lines from engine.log:
>
>
>
>
> 2017-03-16 09:56:23,324Z INFO
> [org.ovirt.engine.core.bll.MigrateVmCommand] (default task-60)
> [61a52216] Lock Acquired to object
> 'EngineLock:{exclusiveLocks='[422663a9-d712-4992-7c81-165b2976073e= ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED$VmName
> entorno127.arsysdesarrollo.lan>]', sharedLocks='null'}'
> 2017-03-16 09:56:23,957Z INFO
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (default task-60) [61a52216] EVENT_ID:
> VM_MIGRATION_START_SYSTEM_INITIATED(67), Correlation ID: 61a52216, Job
> ID: fbc5e0d7-4618-4ca8-b7a7-0fd9a43f490f, Call Stack: null, Custom Event
> ID: -1, Message: Migration initiated by system (VM:
> entorno127.arsysdesarrollo.lan, Source: llkk594.arsyslan.es,
> Destination: llkk593.arsyslan.es, Reason: Host preparing for maintenance).
> 2017-03-16 09:56:26,818Z INFO
> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
> (DefaultQuartzScheduler10) [7c6c403b-0a82-47aa-aeb4-57fbe06e20e1] VM
> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
> was unexpectedly detected as 'MigratingTo' on VDS
> '43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es) (expected on
> '11a82467-afa4-4e4e-bd92-3383082d0a5e')
> 2017-03-16 09:56:42,149Z INFO
> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
> (DefaultQuartzScheduler10) [fac8ade9-a867-4ff7-aac5-912f78cc3bb5] VM
> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
> was unexpectedly detected as 'MigratingTo' on VDS
> '43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es) (expected on
> '11a82467-afa4-4e4e-bd92-3383082d0a5e')
> 2017-03-16 09:56:54,755Z INFO
> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
> (DefaultQuartzScheduler3) [54fa9a1b-fddb-4812-b5d2-06cf92834709] VM
> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
> moved from 'MigratingFrom' --> 'Down'
> 2017-03-16 09:56:54,755Z INFO
> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
> (DefaultQuartzScheduler3) [54fa9a1b-fddb-4812-b5d2-06cf92834709] Handing
> over VM
> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
> to Host '43f43ec5-e51d-400d-8569-261c98382e3a'. Setting VM to status
> 'MigratingTo'
> 2017-03-16 09:56:58,160Z INFO
> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
> (DefaultQuartzScheduler4) [dd4ea7bb-85bc-410e-9a8f-357c28d85d1c] VM
> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
> is running in db and not running on VDS
> '43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es)
> 2017-03-16 09:56:58,161Z INFO
> [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
> (DefaultQuartzScheduler4) [dd4ea7bb-85bc-410e-9a8f-357c28d85d1c] add VM
> '422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
> to rerun treatment
>   turn to maintenance while VMs are still running on it.(VM:
> entorno127.arsysdesarrollo.lan, Source: llkk594.arsyslan.es,
> Destination: llkk593.arsyslan.es).
> 2017-03-16 09:56:59,193Z INFO
> [org.ovirt.engine.core.bll.MigrateVmCommand]
> (org.ovirt.thread.pool-7-thread-27) [14d40a88] Lock freed to object
> 'EngineLock:{exclusiveLocks='[422663a9-d712-4992-7c81-165b2976073e= ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED$VmName
> entorno127.arsysdesarrollo.lan>]', sharedLocks='null'}'
>
> Now, I understand an VM migration may fail for a number of reasons, but
> in that case, shouldn't the VM keep running on the source host? I do not
> quite understand what happened here or how to avoid it in the future.
>

Can you share vdsm logs from both source and destination?
Y.


>
> Best regards,
>
> --
> Eduardo Mayoral Jimeno (emayo...@arsys.es)
> Administrador de sistemas. Departamento de Plataformas. Arsys internet.
> +34 941 620 145 ext. 5153
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] VM switched off when migration for host maintenance fails

2017-03-16 Thread Eduardo Mayoral
Hi,

An interesting thing just happened on my oVirt deployment.

While setting a host for maintenance, one of the VMs running on that
host failed to migrate. Then ovirt-engine for some reason turned the VM
off. Here are the relevant log lines from engine.log:




2017-03-16 09:56:23,324Z INFO 
[org.ovirt.engine.core.bll.MigrateVmCommand] (default task-60)
[61a52216] Lock Acquired to object
'EngineLock:{exclusiveLocks='[422663a9-d712-4992-7c81-165b2976073e=]', sharedLocks='null'}'
2017-03-16 09:56:23,957Z INFO 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(default task-60) [61a52216] EVENT_ID:
VM_MIGRATION_START_SYSTEM_INITIATED(67), Correlation ID: 61a52216, Job
ID: fbc5e0d7-4618-4ca8-b7a7-0fd9a43f490f, Call Stack: null, Custom Event
ID: -1, Message: Migration initiated by system (VM:
entorno127.arsysdesarrollo.lan, Source: llkk594.arsyslan.es,
Destination: llkk593.arsyslan.es, Reason: Host preparing for maintenance).
2017-03-16 09:56:26,818Z INFO 
[org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
(DefaultQuartzScheduler10) [7c6c403b-0a82-47aa-aeb4-57fbe06e20e1] VM
'422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
was unexpectedly detected as 'MigratingTo' on VDS
'43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es) (expected on
'11a82467-afa4-4e4e-bd92-3383082d0a5e')
2017-03-16 09:56:42,149Z INFO 
[org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
(DefaultQuartzScheduler10) [fac8ade9-a867-4ff7-aac5-912f78cc3bb5] VM
'422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
was unexpectedly detected as 'MigratingTo' on VDS
'43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es) (expected on
'11a82467-afa4-4e4e-bd92-3383082d0a5e')
2017-03-16 09:56:54,755Z INFO 
[org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
(DefaultQuartzScheduler3) [54fa9a1b-fddb-4812-b5d2-06cf92834709] VM
'422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
moved from 'MigratingFrom' --> 'Down'
2017-03-16 09:56:54,755Z INFO 
[org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
(DefaultQuartzScheduler3) [54fa9a1b-fddb-4812-b5d2-06cf92834709] Handing
over VM
'422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
to Host '43f43ec5-e51d-400d-8569-261c98382e3a'. Setting VM to status
'MigratingTo'
2017-03-16 09:56:58,160Z INFO 
[org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
(DefaultQuartzScheduler4) [dd4ea7bb-85bc-410e-9a8f-357c28d85d1c] VM
'422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
is running in db and not running on VDS
'43f43ec5-e51d-400d-8569-261c98382e3a'(llkk593.arsyslan.es)
2017-03-16 09:56:58,161Z INFO 
[org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer]
(DefaultQuartzScheduler4) [dd4ea7bb-85bc-410e-9a8f-357c28d85d1c] add VM
'422663a9-d712-4992-7c81-165b2976073e'(entorno127.arsysdesarrollo.lan)
to rerun treatment
  turn to maintenance while VMs are still running on it.(VM:
entorno127.arsysdesarrollo.lan, Source: llkk594.arsyslan.es,
Destination: llkk593.arsyslan.es).
2017-03-16 09:56:59,193Z INFO 
[org.ovirt.engine.core.bll.MigrateVmCommand]
(org.ovirt.thread.pool-7-thread-27) [14d40a88] Lock freed to object
'EngineLock:{exclusiveLocks='[422663a9-d712-4992-7c81-165b2976073e=]', sharedLocks='null'}'

Now, I understand an VM migration may fail for a number of reasons, but
in that case, shouldn't the VM keep running on the source host? I do not
quite understand what happened here or how to avoid it in the future.

Best regards,

-- 
Eduardo Mayoral Jimeno (emayo...@arsys.es)
Administrador de sistemas. Departamento de Plataformas. Arsys internet.
+34 941 620 145 ext. 5153

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Event History for a VM

2017-03-16 Thread Sven Achtelik
Hi All,

I would need to have an Event-History of our VMs for auditing purposes that is 
able to go back until the moment the VM was created/imported. I found the 
Events Tab in the VM view and found that this is not showing everything to the 
moment of creation. Things that are important for me would be any change in 
CPUs or Host that the VM is pinned to. Are the Events stored in the Engine DB 
and can I read them in any way ? Is there a value that needs to be changed in 
order to keep all Events for a VM ?

Thank you for helping,

Sven

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Ovirt 4.1 USB Api problems

2017-03-16 Thread Michal Skrivanek

> On 16 Mar 2017, at 11:38, Adolfo  wrote:
> 
> Hi,
> 
> I don't know if this is the correct place for this question (i hope it is  
> ;-) ).
> 
> We are trying to make "enable USB support" work with a machine created from 
> python ovirtsdk4 api,
> 
> here is the code:
> 
>cluster = ovirt.types.Cluster(id=six.binary_type(clusterId))
>template = ovirt.types.Template(id=six.binary_type(templateId))
>if usbType in ('native', 'legacy'):
>usb = ovirt.types.Usb(enabled=True, 
> type=ovirt.types.UsbType.NATIVE if usbType == 'native' else 
> ovirt.types.UsbType.LEGACY)

legacy is no longer supported in 4.0 (and not needed/useful since 3.6 already)

>else:
>usb = ovirt.types.Usb(enabled=False)
> 
>memoryPolicy = ovirt.types.MemoryPolicy(guaranteed=guaranteedMB * 
> 1024 * 1024)
>par = ovirt.types.Vm(name=name, cluster=cluster, 
> template=template, description=comments,
> type=ovirt.types.VmType.DESKTOP, memory=memoryMB * 1024 * 1024, 
> memory_policy=memoryPolicy,
>usb=usb)  # display=display,
> 
>return api.system_service().vms_service().add(par).id
> 
> 
> The cuestion is that the machines gets correctly created, but when we try to 
> start the machine, we get an this error (extract from vdsm):
> 
> Traceback (most recent call last):
>  File "/usr/share/vdsm/virt/vm.py", line 552, in _startUnderlyingVm
>self._run()
>  File "/usr/share/vdsm/virt/vm.py", line 1994, in _run
>self._connection.createXML(domxml, flags),
>  File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 123, 
> in wrapper
>ret = f(*args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 941, in wrapper
>return func(inst, *args, **kwargs)
>  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3784, in createXML
>if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
> libvirtError: Error XML: Duplicate USB controllers with index 0
> 
> The question is, that if to this machine we have created, from administration 
> interface, remove an add support for usb, the machine works, and the 
> generated XML differs:
> 
> This is the difference we have found:
> 
> < 
> <  type="pci" />
> < 
> 40a38
> >  > type="pci" />
> 
> The "<" are from the non working (created from API call), and the ">" are 
> same machine after disabling and enabling again "usb support".
> 
> Is this a bug?, if not, ¿How is supposed to be enabled USB support from API 
> on VM  Creation?,
> 
> By the way, the equivalent code for oVirt 3.x was working without problems, 
> the problems arises from 4.0 onwards.

Sounds like bug, adding Jakub

> 
> 
> Sorry for the inconveniences, and thank in advance for any help,
> 
> 
> Adolfo Gómez
> 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Ovirt 4.1 USB Api problems

2017-03-16 Thread Adolfo

Hi,

I don't know if this is the correct place for this question (i hope it 
is  ;-) ).


We are trying to make "enable USB support" work with a machine created 
from python ovirtsdk4 api,


here is the code:

cluster = ovirt.types.Cluster(id=six.binary_type(clusterId))
template = ovirt.types.Template(id=six.binary_type(templateId))
if usbType in ('native', 'legacy'):
usb = ovirt.types.Usb(enabled=True, 
type=ovirt.types.UsbType.NATIVE if usbType == 'native' else 
ovirt.types.UsbType.LEGACY)

else:
usb = ovirt.types.Usb(enabled=False)

memoryPolicy = 
ovirt.types.MemoryPolicy(guaranteed=guaranteedMB * 1024 * 1024)
par = ovirt.types.Vm(name=name, cluster=cluster, 
template=template, description=comments,
type=ovirt.types.VmType.DESKTOP, memory=memoryMB * 1024 * 1024, 
memory_policy=memoryPolicy,

usb=usb)  # display=display,

return api.system_service().vms_service().add(par).id


The cuestion is that the machines gets correctly created, but when we 
try to start the machine, we get an this error (extract from vdsm):


Traceback (most recent call last):
  File "/usr/share/vdsm/virt/vm.py", line 552, in _startUnderlyingVm
self._run()
  File "/usr/share/vdsm/virt/vm.py", line 1994, in _run
self._connection.createXML(domxml, flags),
  File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", 
line 123, in wrapper

ret = f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 941, in 
wrapper

return func(inst, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3784, in 
createXML
if ret is None:raise libvirtError('virDomainCreateXML() failed', 
conn=self)

libvirtError: Error XML: Duplicate USB controllers with index 0

The question is, that if to this machine we have created, from 
administration interface, remove an add support for usb, the machine 
works, and the generated XML differs:


This is the difference we have found:

< 
< slot="0x01" type="pci" />

< 
40a38
> slot="0x02" type="pci" />


The "<" are from the non working (created from API call), and the ">" 
are same machine after disabling and enabling again "usb support".


Is this a bug?, if not, ¿How is supposed to be enabled USB support from 
API on VM  Creation?,


By the way, the equivalent code for oVirt 3.x was working without 
problems, the problems arises from 4.0 onwards.



Sorry for the inconveniences, and thank in advance for any help,


Adolfo Gómez

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] upgrade 3.5 to 3.6 auto import storage domain failed

2017-03-16 Thread Резников А . А .

16.03.2017 12:05, Simone Tiraboschi пишет:

grep host_id /etc/ovirt-hosted-engine/hosted-engine.conf



 vds_spm_id | vds_name
+--
  1| h1new.lan
  2| h2new.lan

[root@h1 /]# grep host_id /etc/ovirt-hosted-engine/hosted-engine.conf
host_id=3

[root@h2 /]# grep host_id /etc/ovirt-hosted-engine/hosted-engine.conf
host_id=4

/Funny, the host id does not match./

It seems I understand what wrong. In the past, I had two hosts of the 
cluster with id 1 and 2, after i delete them.
Simon, what is the correct decision? Change vds_spm_id in the engine 
base or fix host_id in "/etc/ovirt-hosted-engine/hosted-engine.conf"?


Thanks, Alex.

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virtio-scsi drive order?

2017-03-16 Thread Yaniv Kaul
On Thu, Mar 16, 2017 at 11:56 AM, Martin Polednik 
wrote:

> On 16/03/17 08:23 +0100, gflwqs gflwqs wrote:
>
>> Hi list!
>> When we upgraded our ovirt environment to 4.1 we get the virtio-scsi
>> interface as default for virtual disks.
>> We have seen a difference in drive order from when we used the virtio
>> interface.
>>
>> Before when we added disks the order of the drives were set by which order
>> the disks was created.
>> So if i had 1 disk as os disk it became vda and added a 50 GB disk that
>> disk became vdb and then added another 8GB disk that became vdc.
>>
>> But now when i add two additional disks with the virtio-scsi interface
>> like
>> the above when i reboot the vm the 50GB disk become sdc and the 8GB disk
>> become sdb even that i created the 50GB disk first?
>> How is the order decided in the virtio-scsi interface?
>> What can i do to ensure that the disks come in the order that i create
>> them?
>>
>> Regards
>> Christian
>>
>
> Could you post the XML (virsh -r list, note the domain
> number and virsh -r dumpxml $domainnumber) before and after adding the
> disks? Need to see whether there are also any iothreads or anything
> else.
>

It doesn't matter - the order of disk discovery on the SCSI bus (by udev?)
is quite random.
You must use /dev/disk/by-id/scsi-...

Y.


>
> Thanks,
> mpolednik
>
>
> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virtio-scsi drive order?

2017-03-16 Thread Martin Polednik

On 16/03/17 08:23 +0100, gflwqs gflwqs wrote:

Hi list!
When we upgraded our ovirt environment to 4.1 we get the virtio-scsi
interface as default for virtual disks.
We have seen a difference in drive order from when we used the virtio
interface.

Before when we added disks the order of the drives were set by which order
the disks was created.
So if i had 1 disk as os disk it became vda and added a 50 GB disk that
disk became vdb and then added another 8GB disk that became vdc.

But now when i add two additional disks with the virtio-scsi interface like
the above when i reboot the vm the 50GB disk become sdc and the 8GB disk
become sdb even that i created the 50GB disk first?
How is the order decided in the virtio-scsi interface?
What can i do to ensure that the disks come in the order that i create them?

Regards
Christian


Could you post the XML (virsh -r list, note the domain
number and virsh -r dumpxml $domainnumber) before and after adding the
disks? Need to see whether there are also any iothreads or anything
else.

Thanks,
mpolednik


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] upgrade 3.5 to 3.6 auto import storage domain failed

2017-03-16 Thread Simone Tiraboschi
On Thu, Mar 16, 2017 at 9:45 AM, Резников А.А. 
wrote:

> 15.03.2017 14:17, Резников А.А. пишет:
>
> 15.03.2017 10:35, Simone Tiraboschi пишет:
>
>
>
> On Wed, Mar 15, 2017 at 6:24 AM, Резников А.А. 
> wrote:
>
>> 14.03.2017 11:40, Резников А.А. пишет:
>>
>>> Hi list!
>>>
>>> During the upgrade ovirt from 3.5 to 3.6, I get errors:
>>> "VDSM command failed: Can not acquire host id:
>>> (u'8905c9ac-d892-478d-8346-63b8fa1c5763 ', SanlockException (22,'
>>> Sanlock lockspace add failure ',' Invalid argument '))",
>>> "Failed to attach Storage Domain hosted_storage to Data Center Default.
>>> (User: SYSTEM)",
>>> "Failed to import the Hosted Engine Storage Domain".
>>>
>>> Thus in my data storage nfs OVF_STORE disks do not appear.
>>>
>>> The following messages appear in vdsm.log:
>>>
>>> Thread-2806 :: DEBUG :: 2017-03-14 10: 40: 29,569 :: task :: 827 ::
>>> Storage.TaskManager.Task: :( resourceAcquired) Task =
>>> `cd294427-d6fa-454b-9289-6660ad228c8f`: : _resourcesAcquired:
>>> Storage.8905c9ac-d8
>>> 92-478d-8346-63b8fa1c5763 (shared)
>>> Thread-2806 :: DEBUG :: 2017-03-14 10: 40: 29,569 :: task :: 993 ::
>>> Storage.TaskManager.Task :: (_ decref) Task = 
>>> `cd294427-d6fa-454b-9289-6660ad228c8f`:
>>> : Ref 1 aborting False
>>> Thread-2806 :: ERROR :: 2017-03-14 10: 40: 29,569 :: task :: 866 ::
>>> Storage.TaskManager.Task :: (_ setError) Task =
>>> `cd294427-d6fa-454b-9289-6660ad228c8f`: : Unexpected error
>>> Traceback (most recent last call last):
>>>   File "/usr/share/vdsm/storage/task.py", line 873, in _run
>>> Return fn (* args, ** kargs)
>>>   File "/usr/share/vdsm/logUtils.py", line 49, in wrapper
>>> Res = f (* args, ** kwargs)
>>>   File "/usr/share/vdsm/storage/hsm.py", line 3315, in getImagesList
>>> Images = dom.getAllImages ()
>>>   File "/usr/share/vdsm/storage/fileSD.py", line 373, in getAllImages
>>> Self.getPools () [0],
>>> IndexError: list index out of range
>>>
>>
>> 3 ', Clearing records.
>>>
>>>
>>> Does anyone have any idea how this can be fixed?
>>>
>>> Thanks, Alex.
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>> Any body help me?
>>
>>
> It was an old bug but it should be fine now:
> https://bugzilla.redhat.com/show_bug.cgi?id=1276650
>
> Could you please report the version of ovirt-hosted-engine-ha and vdsm you
> are currently using?
>
>
>>
>> Thanks, Alex.
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>
>
> On all host:
> ovirt-hosted-engine-ha-1.3.5.7-1.el7.centos.noarch
> vdsm-4.17.32-1.el7.noarch
> and CentOS Linux release 7.3.1611 (Core)
>
> Thanks, Alex.
>
>
> how to fix this bug?
>

Could you please execute this command on the engine VM
sudo -u postgres psql engine -c "SELECT vds_spm_id_map.vds_spm_id,
vds.vds_name FROM vds_spm_id_map, vds WHERE vds_spm_id_map.vds_id =
vds.vds_id;"

and ensure that, on all your hosted-engine host, the spm_id values you see
there matches the value you get with
 grep host_id /etc/ovirt-hosted-engine/hosted-engine.conf



>
> Thanks, Alex.
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virt-manager not able to connect to my ovirt-instance

2017-03-16 Thread John Joseph
Thanks Paul, 
I have tried opening it using "remote-viewer", but I get error message as 

"Unable to connect to the graphic server /tmp/mozilla_saji0/console.vvCould not 
connect to 192.168.59.95: No route to host"
This has something to do with the permission than, route issues, because I can 
access the server through the browser as well as I can ping it also 
I have to see what permissions or port blocked at the ovirt server level
Thanks 
Joseph John 

 

On Thursday, 16 March 2017 12:32 PM, "Staniforth, Paul" 
 wrote:
 

  You should use remote-viewer to connect to the console of the VM, it's in the 
same package and you should pass the connection details to it from the 
portal(the console.vv file gets created including the otp).
Regards,        Paul S.


On 16 Mar 2017 07:36, John Joseph  wrote:

Hi ,I was able to install ovirt, and I am able to create virtual machines and 
it is running fine, I can see the instance using browser
But when I try connecting to the ovirt machine using virt-manager I am getting 
the following error

"Unable to connect to libvirt.
authentication failed: authentication failed
Verify that the 'libvirtd' daemon is running
on the remote host."
Through the browser I am able to see the virtual machines running, is there 
anything else for me to do, for allowing "Virtual Machine Manager" to work
thanksJoseph John 




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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] upgrade 3.5 to 3.6 auto import storage domain failed

2017-03-16 Thread Резников А . А .

15.03.2017 14:17, Резников А.А. пишет:

15.03.2017 10:35, Simone Tiraboschi пишет:



On Wed, Mar 15, 2017 at 6:24 AM, Резников А.А. 
mailto:reznikov...@soskol.com>> wrote:


14.03.2017 11:40, Резников А.А. пишет:

Hi list!

During the upgrade ovirt from 3.5 to 3.6, I get errors:
"VDSM command failed: Can not acquire host id:
(u'8905c9ac-d892-478d-8346-63b8fa1c5763 ', SanlockException
(22,' Sanlock lockspace add failure ',' Invalid argument '))",
"Failed to attach Storage Domain hosted_storage to Data
Center Default. (User: SYSTEM)",
"Failed to import the Hosted Engine Storage Domain".

Thus in my data storage nfs OVF_STORE disks do not appear.

The following messages appear in vdsm.log:

Thread-2806 :: DEBUG :: 2017-03-14 10 :
40: 29,569 :: task :: 827 :: Storage.TaskManager.Task: :(
resourceAcquired) Task =
`cd294427-d6fa-454b-9289-6660ad228c8f`: : _resourcesAcquired:
Storage.8905c9ac-d8
92-478d-8346-63b8fa1c5763 (shared)
Thread-2806 :: DEBUG :: 2017-03-14 10 :
40: 29,569 :: task :: 993 :: Storage.TaskManager.Task :: (_
decref) Task = `cd294427-d6fa-454b-9289-6660ad228c8f`: : Ref
1 aborting False
Thread-2806 :: ERROR :: 2017-03-14 10 :
40: 29,569 :: task :: 866 :: Storage.TaskManager.Task :: (_
setError) Task = `cd294427-d6fa-454b-9289-6660ad228c8f`: :
Unexpected error
Traceback (most recent last call last):
  File "/usr/share/vdsm/storage/task.py", line 873, in _run
Return fn (* args, ** kargs)
  File "/usr/share/vdsm/logUtils.py", line 49, in wrapper
Res = f (* args, ** kwargs)
  File "/usr/share/vdsm/storage/hsm.py", line 3315, in
getImagesList
Images = dom.getAllImages ()
  File "/usr/share/vdsm/storage/fileSD.py", line 373, in
getAllImages
Self.getPools () [0],
IndexError: list index out of range


3 ', Clearing records.


Does anyone have any idea how this can be fixed?

Thanks, Alex.


___
Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users



Any body help me?


It was an old bug but it should be fine now:
https://bugzilla.redhat.com/show_bug.cgi?id=1276650

Could you please report the version of ovirt-hosted-engine-ha and 
vdsm you are currently using?



Thanks, Alex.

___
Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users





On all host:
ovirt-hosted-engine-ha-1.3.5.7-1.el7.centos.noarch
vdsm-4.17.32-1.el7.noarch
and CentOS Linux release 7.3.1611 (Core)

Thanks, Alex.



how to fix this bug?

Thanks, Alex.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Changing gateway ping address

2017-03-16 Thread Sven Achtelik
Hi Sandro, 

where can I find that answer file ? Running ovirt 4.1. 

Thank you, 

Sven

-Ursprüngliche Nachricht-
Von: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] Im Auftrag von 
Sandro Bonazzola
Gesendet: Freitag, 10. Juli 2015 09:26
An: Matteo ; users@ovirt.org
Betreff: Re: [ovirt-users] Changing gateway ping address

Il 10/07/2015 09:08, Matteo ha scritto:
> Hi all,
> 
> I need to change the gateway ping address, the one used by hosted engine 
> setup.
> 
> Is ok to edit /etc/ovirt-hosted-engine/hosted-engine.conf on each 
> node, update the gateway param with the new ip address and restart the 
> agent&broker on each node?
> 
> With a blind test seems ok, but need to understand if is the right procedure.

Yes it's ok.
You should also change it in the answer files so if you add new nodes it will 
be set automatically.


> 
> Thanks,
> Matteo
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 


--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt 4.1 Dashboard

2017-03-16 Thread Shirly Radco
Hi,

I will try and find what causes this issue and fix it.
We usually encounter this issue when the environment is not in utc (we
recommend utc).


--

Shirly Radco

BI Software Engineer
Red Hat Israel Ltd.


On Wed, Mar 15, 2017 at 1:02 PM, Andrea Ghelardi <
andrea.ghela...@iongroup.com> wrote:

> Cheers J
>
> @Shirley: being this the second report of the same issue, probably there
> is really a bug/problem somewhere?
>
> AG
>
>
>
> *From:* users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] *On
> Behalf Of *Arsène Gschwind
> *Sent:* Wednesday, March 15, 2017 8:22 AM
> *To:* Shirly Radco 
> *Cc:* users 
> *Subject:* Re: [ovirt-users] oVirt 4.1 Dashboard
>
>
>
> Hi,
>
> When creating the bug report I've found a similar bug
> https://bugzilla.redhat.com/show_bug.cgi?id=1414379. I've tried the
> provided solution and it did work for me, now the Dashboard shows
> everything.
>
> Thanks a lot for your help.
>
> Regards,
> Arsène
>
>
>
> On 03/13/2017 08:26 PM, Shirly Radco wrote:
>
> Hi,
>
>
>
> Please open a bug so we can better track you issue.
>
> As far as I can see from the screenshot the dwh does collect the samples,
> but do not aggregate it to hourly tables.
>
> 1. I see that you installed the full dwh. Did it work correctly in the
> past? Did you use the reports and was able to use them?
>
> 2. Please attach the ovirt_engine_history db dump and the dwh log and
> screenshot to the bug and state the versions of the engine and dwh.
>
>
>
>  Best regards,
>
>
> --
>
> Shirly Radco
>
> BI Software Engineer
>
> Red Hat Israel Ltd.
>
>
>
> On Mon, Mar 13, 2017 at 2:12 PM, Arsène Gschwind <
> arsene.gschw...@unibas.ch> wrote:
>
> Hi,
>
> I'm wondering if you could identify something. I've investigate on my side
> but couldn't find any problem but for some reason it seams DWH is not
> collecting data.
>
> Thanks a lot for any hint/help
>
> Rgds,
> Arsène
>
>
>
> On 03/07/2017 11:04 AM, Arsène Gschwind wrote:
>
> Please find files attached
>
>
>
> On 03/07/2017 10:48 AM, Shirly Radco wrote:
>
> Hi,
>
>
>
> Please attach ovirt-engine-dwh logs and a screenshot.
>
>
> Best regards,
>
> Shirly Radco
>
> BI Software Engineer
>
> Red Hat Israel Ltd.
>
> 34 Jerusalem Road
>
> Building A, 4th floor
>
> Ra'anana, Israel 4350109
>
>
>
> On Tue, Mar 7, 2017 at 11:41 AM, Arsène Gschwind <
> arsene.gschw...@unibas.ch> wrote:
>
> Please find engine.log attached
>
>
>
> On 03/07/2017 10:06 AM, Oved Ourfali wrote:
>
>
>
>
>
> On Tue, Mar 7, 2017 at 10:57 AM, Arsène Gschwind <
> arsene.gschw...@unibas.ch> wrote:
>
> Hi,
>
> I've update our oVirt installation 3.6 --> 4.0 --> 4.1, everything went
> smooth except update some of the hosts which i could update after several
> hour playing around.
>
> We greatly appreciate the dashboard in 4.1 but we see the information
> missing:
>
>1. On the cluster block in the upper part we see the amount of
>clusters but no Status (N/A)
>
>
>
> The reason there is no status there is that in oVirt there is no cluster
> status (look at the cluster main-tab, for example).
>
> We only have statuses for objects like DCs, Hosts, VMs, SDs (well, maybe
> we have for some more, but not clusters...).
>
> We decided to include clusters in the inventory part anyway, for user
> visibility, and provide access to the clusters main tab by pressing the
> link.
>
>
>
>
>
>
>1. On the lower part at "Cluster Utilization" and "Storage
>Utilization" we don't have any information at all.
>
> Where does this information come from? DWH service is up and running
>
> The inventory part is taken from the engine.
>
> All the rest is taken from DWH.
>
> You can start with sharing the engine logs here.
>
> Shirly - any other logs or information you think is required?
>
>
>
>
>
> Where do I have have to investigate further to find out what is
> missing/not working?
>
> Let me know if you need further information.
>
> Rgds,
> Arsène
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] host node non-operational

2017-03-16 Thread Yedidyah Bar David
On Wed, Mar 15, 2017 at 5:45 PM, Angel R. Gonzalez
 wrote:
> Hello,
> I've installed a engine server and 2 host nodes. After install the 2 nodes
> I've configured a nfs domain storage in the first node. After few minutes,
> the second host is down and I dont put it online.
>
> The log in the engine show:
>>Host node2 cannot access the Storage Domain(s) nfsexport_node1 attached to
>> the Data Center Labs. Setting Host state to Non-Operational.
>
> The nfsexport Storage Domain Format is V4, but in the /etc/nfsmount.conf
> Defaultproto=tcp
> Defaultvers=3
> Nfsvers=3
>
> Also I've added the line
> NFS4_SUPPORT="no"
> to /etc/sysconfig/nfs file
>
> The node1's iptables rules are:
>
> ACCEPT all  --  anywhere anywhere state RELATED,ESTABLISHED
> ACCEPT icmp --  anywhere anywhere
> ACCEPT all  --  anywhere anywhere
> ACCEPT tcp  --  anywhere anywhere tcp dpt:54321
> ACCEPT tcp  --  anywhere anywhere tcp dpt:54322
> ACCEPT tcp  --  anywhere anywhere tcp dpt:sunrpc
> ACCEPT udp  --  anywhere anywhere udp dpt:sunrpc
> ACCEPT tcp  --  anywhere anywhere tcp dpt:ssh
> ACCEPT udp  --  anywhere anywhere udp dpt:snmp
> ACCEPT tcp  --  anywhere anywhere tcp dpt:websm
> ACCEPT tcp  --  anywhere anywhere tcp dpt:16514
> ACCEPT tcp  --  anywhere anywhere multiport dports
> rockwell-csp2
> ACCEPT tcp  --  anywhere anywhere multiport dports rfb:6923
> ACCEPT tcp  --  anywhere anywhere multiport dports
> 49152:49216
> ACCEPT tcp  --  anywhere anywhere tcp dpt:nfs
> ACCEPT udp  --  anywhere anywhere udp dpt:nfs
> ACCEPT tcp  --  anywhere anywhere tcp dpt:mountd
> ACCEPT udp  --  anywhere anywhere udp dpt:mountd
> REJECT all  --  anywhere anywhere reject-with
> icmp-host-prohibited
>
> And the output of showmount -e command in a terminal of node1 is:
>>/nfs/data *
>
> But the output of showmount -e node1 in a terminal of node2 is
>>clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No
>> route to host)
>
> Any help?

Sounds like a general NFS issue, nothing specific to oVirt.

You might want to use normal debugging means - tcpdump, strace, google :-), etc.

I think your last error is because you need the portmapper port (111) open.
You should see this easily with tcpdump or strace.

Also please note that it's not considered a good idea to use one of the
hosts as an nfs server, although some people happily do that. See also:

https://lwn.net/Articles/595652/

Best,

>
> Thanks you in advance.
>
> Ángel González
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users



-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirtmgmt bridge creation fails 100% during hosted-engine 4.1 install

2017-03-16 Thread Edward Haas
Hello Ian,

Please share your vdsm.log, supervdsm.log and Engine logs from the time you
had this failure.
(please specify the date/time you started the process so we can know where
to look in the log)

Thanks,
Edy.


On Tue, Mar 14, 2017 at 6:31 AM, Ian Neilsen  wrote:

> re:bug 2 - confirmed - ovirtmgmt bridge is not created during initial
> deploy of second host.
> Workaround - maintenance 2nd host --> re-establish bond network from
> backup files or manually, systemctl restart network --> engine gui -->
> second host --> network --> add in ovirtmgmt bridge
>
> Seems to work and allows the bridge to be created without hassle.
>
>
>
> On 14 March 2017 at 12:48, Ian Neilsen  wrote:
>
>> Guys
>>
>> Bug 1:
>> I have run the ovirt 4.1 installation many times now and everytime
>> through the deploy the ovirtmgmt bridge fails at ifup when used in
>> conjunction with bonded nic's
>>
>> The deploy process stops when it cannot raise the bridge ifup. To fix, a
>> systemctl restart network works and I can start deploy again. ifup will not
>> work.
>>
>> 2 questions:
>> Do you want me to raise a bug for this. I'll get my logs to a place where
>> you can access them.
>> Has anyone got a scrip to create the ovirtmgmt bridge? Is there anything
>> special I need to know if I create it manually on my bonded nic's.
>>
>> Bug 2:
>> During hosted deploy on second node,via gui, the ovirtmgt bridge fails to
>> create necessary files and deletes other ifcfg files in the process. Bridge
>> creation stops as it seems to be missing ifcfg files necessary. Again nics
>> are bonded. manual creation is needed to fix the deploy mess.
>>
>> Yet to confirm this one, am about to try now. Will let you know.
>>
>> Systems:
>> Centos7.3,
>> ovirt 4.1,
>> gluster 3.10.0
>> vdsm-4.19.4-1.el7.centos.x86_64
>> kernel 3.10.0-514.10.2.el7.x86_64
>>
>> --
>> Ian Neilsen
>>
>> Mobile: 0424 379 762
>> Linkedin: http://au.linkedin.com/in/ianneilsen
>> Twitter : ineilsen
>>
>
>
>
> --
> Ian Neilsen
>
> Mobile: 0424 379 762
> Linkedin: http://au.linkedin.com/in/ianneilsen
> Twitter : ineilsen
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virtio-scsi drive order?

2017-03-16 Thread Yaniv Kaul
On Mar 16, 2017 9:23 AM, "gflwqs gflwqs"  wrote:

Hi list!
When we upgraded our ovirt environment to 4.1 we get the virtio-scsi
interface as default for virtual disks.
We have seen a difference in drive order from when we used the virtio
interface.

Before when we added disks the order of the drives were set by which order
the disks was created.
So if i had 1 disk as os disk it became vda and added a 50 GB disk that
disk became vdb and then added another 8GB disk that became vdc.

But now when i add two additional disks with the virtio-scsi interface like
the above when i reboot the vm the 50GB disk become sdc and the 8GB disk
become sdb even that i created the 50GB disk first?
How is the order decided in the virtio-scsi interface?
What can i do to ensure that the disks come in the order that i create them?


Based on their id on the scsi bus. Use /dev/disk-by-id or so and not sdX
which might change.
Y.


Regards
Christian

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] virt-manager not able to connect to my ovirt-instance

2017-03-16 Thread John Joseph
Hi ,I was able to install ovirt, and I am able to create virtual machines and 
it is running fine, I can see the instance using browser 
But when I try connecting to the ovirt machine using virt-manager I am getting 
the following error 

"Unable to connect to libvirt.
authentication failed: authentication failed
Verify that the 'libvirtd' daemon is running
on the remote host."
Through the browser I am able to see the virtual machines running, is there 
anything else for me to do, for allowing "Virtual Machine Manager" to work 
thanksJoseph John 


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] virtio-scsi drive order?

2017-03-16 Thread gflwqs gflwqs
Hi list!
When we upgraded our ovirt environment to 4.1 we get the virtio-scsi
interface as default for virtual disks.
We have seen a difference in drive order from when we used the virtio
interface.

Before when we added disks the order of the drives were set by which order
the disks was created.
So if i had 1 disk as os disk it became vda and added a 50 GB disk that
disk became vdb and then added another 8GB disk that became vdc.

But now when i add two additional disks with the virtio-scsi interface like
the above when i reboot the vm the 50GB disk become sdc and the 8GB disk
become sdb even that i created the 50GB disk first?
How is the order decided in the virtio-scsi interface?
What can i do to ensure that the disks come in the order that i create them?

Regards
Christian
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Error on Adding Host

2017-03-16 Thread Yedidyah Bar David
On Thu, Mar 16, 2017 at 5:24 AM, FERNANDO FREDIANI
 wrote:
> Hi folks.
>
> I think I have been hit by the most annoying error you can get on oVirt.
> I have removed a Host from Engine, re-installed it with the latest
> ovirt-node-ng ISO, tried to add the freshly installed Host back to Engine
> and got the following error:
>
> "Command returned failure code 1 during SSH session"
>
> The host has the same FQDN as before and I have cleaned the SSH from the
> known_hosts file in the Engine before trying to add it on the web interface.
>
> I have also tried this process with 2 different ISO files:
> - ovirt-node-ng-installer-ovirt-4.1-pre-2017030911.iso
> - ovirt-node-ng-installer-ovirt-4.1-pre-2017031104.iso
>
> And the Engine is version 4.1.1.4-1
>
> Have searched for this error and there are a lot of people affected but not
> a single solution solves it.
>
> Please give some light.

Please check/share /var/log/ovirt-engine/engine.log on the engine
machine.

Best,

>
> Thanks
> Fernando
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt 4.1.0 - Gluster - Hosted Engine deploy howto

2017-03-16 Thread Yedidyah Bar David
On Thu, Mar 16, 2017 at 12:32 AM, NUNIN Roberto
 wrote:
> Hi kasturi
>
>   >>  Hosted Engine tab is visible only after hosted_storage and
> hosted_engine vm is imported to the >>cluster. Once the first node is
> installed, you will need to create a storage domain of vmstore or >>data
> volume .
>
> Data storage domain is already created and activated. I've also created one
> test VM, up & running.
>
>
>>>Once one of these storage domains are created, hosted_storage and
>>> Hosted_engine vm is >>imported automatically. After this you will be able to
>>> see Hosted Engine tab in the New hosts >>dialog box.
>
> This is the strange behavior, as wrote in my previous, hosted_storage is
> still locked and hosted engine VM is visible only as number of VM, but is
> not visible selecting the host where it is running.

Please check/share these:

From engine vm: /var/log/ovirt-engine/engine.log

From the host: /var/log/vdsm/vdsm.log, /var/log/ovirt-hosted-engine-ha/agent.log

Thanks and best regards,

>
>>>Thanks
>>>kasturi
>
> Thanks
> Roberto
>
>
> On 03/15/2017 11:09 PM, NUNIN Roberto wrote:
>
> Hi
>
>
>
> Our test environment:
>
>
>
> oVirt Engine : 4.1.0.3-1-el7.centos
>
>
>
> Gluster replica 3 with bricks on all nodes.
>
>
>
> 6 nodes :
>
>
>
> OS Version: RHEL - 7 - 3.1611.el7.centos
>
> Kernel Version: 3.10.0 - 514.10.2.el7.x86_64
>
> KVM Version: 2.6.0 - 28.el7_3.3.1
>
> LIBVIRT Version: libvirt-2.0.0-10.el7_3.5
>
> VDSM Version: vdsm-4.19.4-1.el7.centos
>
> GlusterFS Version: glusterfs-3.8.9-1.el7
>
>
>
> I have successfully added all the nodes to the default cluster.
>
> Now I need to activate all the remainder 5 hosts for the hosted engine, but
> I haven’t the tab “Hosted Engine” in the Host properties, so I can’t deploy
> HE via web UI.
>
>
>
> Using command line, I have an error :
>
>
>
> 2017-03-15 16:58:48 ERROR otopi.plugins.gr_he_setup.storage.storage
> storage._abortAdditionalHosts:189 Setup of additional hosts using this
> software is not allowed anymore. Please use the engine web interface to
> deploy any additional hosts.
>
> RuntimeError:Setup of additional hosts using this software is not allowed
> anymore. Please use the engine web interface to deploy any additional hosts.
>
> 2017-03-15 16:58:48 ERROR otopi.context context._executeMethod:151 Failed to
> execute stage 'Environment customization': Setup of additional hosts using
> this software is not allowed anymore. Please use the engine web interface to
> deploy any additional hosts.
>
> 2017-03-15 16:58:48 DEBUG otopi.context context.dumpEnvironment:770 ENV
> BASE/exceptionInfo=list:'[(,
> RuntimeError('Setup of additional hosts using this software is not allowed
> anymore. Please use the engine web interface to deploy any additional
> hosts.',), )]'
>
> 2017-03-15 16:58:48 DEBUG otopi.context context.dumpEnvironment:770 ENV
> BASE/exceptionInfo=list:'[(,
> RuntimeError('Setup of additional hosts using this software is not allowed
> anymore. Please use the engine web interface to deploy any additional
> hosts.',), )]'
>
>
>
> The hosted_storage is still locked.
>
>
>
> How to enable the “Hosted Engine” Host property in the web UI or to force
> deploy via CLI ?
>
>
>
> If logs are needed, please let me know which one. Attached agent-ha.log
> (from first node) and ovirt-hosted-engine-setup.log (from host where attempt
> to deploy hosted-engine via CLI).
>
>
>
> Apart this, seems that the test environment is working as expected (Gluster
> ok, installed VM ok).
>
>
>
> TIA
>
>
>
>
>
>
>
> Roberto
>
>
>
>
>
>
> 
>
> Questo messaggio e' indirizzato esclusivamente al destinatario indicato e
> potrebbe contenere informazioni confidenziali, riservate o proprietarie.
> Qualora la presente venisse ricevuta per errore, si prega di segnalarlo
> immediatamente al mittente, cancellando l'originale e ogni sua copia e
> distruggendo eventuali copie cartacee. Ogni altro uso e' strettamente
> proibito e potrebbe essere fonte di violazione di legge.
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you have
> received it in error, please notify the sender immediately, deleting the
> original and all copies and destroying any hard copies. Any other use is
> strictly prohibited and may be unlawful.
>
>
> ___Users mailing
> listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
>
>
>
> 
>
> Questo messaggio e' indirizzato esclusivamente al destinatario indicato e
> potrebbe contenere informazioni confidenziali, riservate o proprietarie.
> Qualora la presente venisse ricevuta per errore, si prega di segnalarlo
> immediatamente al mittente, cancellando l'originale e ogni sua copia e
> distruggendo eventuali copie cartacee. Ogni altro uso e' strettamente
> proibito e potrebbe essere fonte di violazione di legge.
>
> This message is for the designated recipient onl