[ovirt-users] The bumpy road to Ceph

2016-03-09 Thread Bond, Darryl
We intend to migrate off our small Openstack/Ceph cluster to oVirt as it is a 
better fit for our organisation.


We wanted to run oVirt backed on to Ceph storage for quite some time. We waited 
for the 3.6 development to take it's course and started testing last year.

The kolla cinder container implementation changed fundamentally in the middle 
of the oVirt release process which broke the oVirt 'official' cinder 
implementation.


We had tested oVirt using our Openstack cinder so we knew it basically worked 
but we didn't want to mix the oVirt and Openstack volumes, ie put oVirt into 
it's own ceph pool.

We waited and waited for the Kolla container ...


There didn't seem to be any end in sight, so we chose the following 
configuration:

- Hosted engine on Centos 7.2 with gluster storage

- Cinder/Keystone VM on Centos 7.2 using RDO and cinder 'liberty' kept in the 
same gluster store as the engine and managed by the engine.

- Used the oVirt engine Postgres database as the Cinder/Keystone store so we 
didn't introduce more dependencies with MySQL that Kolla required.

(New user and database for the cinder store. Backups exported separate 
to the engine backups)


It's early days yet but here are some observations:

- It works very well integrated with oVirt from the point of view of building 
and managing new VM's

- Snapshots and cloning use ceph's features

- No simple means to move Vm disks to and from other storage domains.

- Not impossible though, it means that you have to delete and import ceph RBD's 
behind both oVirt and Cinder. It is fairly dangerous as I haven't found a 
simple way to get the rbd volume name with vdsClient other than 'vdsClient 
list' running VM's. Openstack at least publishes the volume name (UUID) in the 
gui, oVirt does not.

- Successfully imported VM images from both Openstack and VMWare.

- There is a hard dependency between oVirt and Cinder when starting VM's but 
does not require Cinder to run VMs. Strange really, when the volume name could 
be stored in oVirt when the volume is created rather than query cinder for each 
start.


Where to from here.

Hosting Cinder/Keystone in containers on the engine VM makes sense.

We are going to roll our own container(s), given the data will be in the engine 
Postgres database it should be possible to transition in a clean fassion.




Darryl






The contents of this electronic message and any attachments are intended only 
for the addressee and may contain legally privileged, personal, sensitive or 
confidential information. If you are not the intended addressee, and have 
received this email, any transmission, distribution, downloading, printing or 
photocopying of the contents of this message or attachments is strictly 
prohibited. Any legal privilege or confidentiality attached to this message and 
attachments is not waived, lost or destroyed by reason of delivery to any 
person other than intended addressee. If you have received this message and are 
not the intended addressee you should notify the sender by return email and 
destroy all copies of the message and any attachments. Unless expressly 
attributed, the views expressed in this email do not necessarily represent the 
views of the company.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Admin lockout

2016-03-09 Thread Nir Soffer
On Wed, Mar 9, 2016 at 11:39 PM, Clint Boggio  wrote:
> That worked like a charm. I'll add that to my cheat sheet.

Maybe you like to host your cheet sheet on ovirt.org?
https://github.com/ovirt/ovirt-site

Nir

>
> Thank you for your help !
>
> On Mar 9, 2016, at 3:00 PM, Douglas Landgraf  wrote:
>
> Hi Clint,
>
> On Wed, Mar 9, 2016 at 2:52 PM, Clint Boggio  wrote:
>>
>>  I had a keyboard problem and entered the wrong password for
>> admin@internal enough times to finally lock the account.
>>How do I recover from this ?
>>OVirt engine 3.6.2
>
>
>
> You might try from engine machine:
>
> # ovirt-aaa-jdbc-tool user unlock admin
>
> More info:
> http://www.ovirt.org/develop/release-management/features/infra/aaa-jdbc/
>
>
>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>
>
>
>
> --
> Cheers
> Douglas
>
>
> ___
> 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] Admin lockout

2016-03-09 Thread Clint Boggio
That worked like a charm. I'll add that to my cheat sheet.

Thank you for your help !

> On Mar 9, 2016, at 3:00 PM, Douglas Landgraf  wrote:
> 
> Hi Clint,
> 
>> On Wed, Mar 9, 2016 at 2:52 PM, Clint Boggio  wrote:
>>  I had a keyboard problem and entered the wrong password for admin@internal 
>> enough times to finally lock the account.
>>How do I recover from this ?
>>OVirt engine 3.6.2
> 
> 
> You might try from engine machine:
> 
> # ovirt-aaa-jdbc-tool user unlock admin
> 
> More info:
> http://www.ovirt.org/develop/release-management/features/infra/aaa-jdbc/
> 
> 
>  
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
> 
> 
> 
> -- 
> Cheers
> Douglas
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Adding servers after hosted ending servers fail due to incorrect mount options in vdsm

2016-03-09 Thread Nir Soffer
On Wed, Mar 9, 2016 at 11:22 PM, Bond, Darryl  wrote:
> Yes, your last example is the one we are shooting for:
> One DC multiple clusters, one being the hosted engine cluster all sharing the 
> same storage, which has to include the hosted engine gluster storage.
> The remainder of the storage will be mainly in cinder/ceph

Please share your experience with cinder/ceph, we like to get feedback about it.
(probably in another thread)

> with for export/ISO domains.
> Our initial attempt was to attach the new non-hosted engine server to a new 
> cluster but we also tried to add it to the same cluster as the hosted engines 
> with the same result. It just seems to remove the complication of the second 
> cluster to try to get it working in the hosted engine cluster.
>
> Darryl
>
> 
> From: Nir Soffer 
> Sent: Wednesday, 9 March 2016 9:50 PM
> To: Bond, Darryl; users; Simone Tiraboschi; Roy Golan; Maor Lipchuk
> Subject: Re: [ovirt-users] Adding servers after hosted ending servers fail 
> due to incorrect mount options in vdsm
>
> On Wed, Mar 9, 2016 at 11:48 AM, Bond, Darryl  wrote:
>> Nir,
>> The run and protect was the line above, I have included it above the rest.
>> My comments about not creating a extra data centre agree with yours. I want:
>> 1 data centre which includes:
>> 1 set of storage domains
>
> What do you mean by "set of storage domains?"
>
>> 3 hosted engine ha hosts
>> 4 extra hosts
>
> I don't know about hosted engine limitations, but generally a host can be only
> part of one DC and cluster.
>
> So you can have 3 hosts serving as hosted engine nodes, with their own
> storage, used only for hosted engine, and you can have another DC for
> vms, using other storage domains.
>
> Or you can have one DC, with all the storage domains, and several clusters,
> one for hosted engine nodes, and one for compute nodes for other vms.
> In this case all the nodes will have to connect to all storage domains.
>
> Pick the setup that fits your needs.
>
>>
>> I cannot activate an additional (non ha) host as it errors mounting the 
>> gluster hosted engine domain as it does not pass the -t glusterfs. I don't 
>> really care if they didn't (as it is only there for the hosted-engine ha 
>> hosts) but that does not seem possible.
>> 
>> From: Nir Soffer 
>> Sent: Wednesday, 9 March 2016 6:17 PM
>> To: Bond, Darryl; Ala Hino
>> Cc: users@ovirt.org
>> Subject: Re: [ovirt-users] Adding servers after hosted ending servers fail 
>> due to incorrect mount options in vdsm
>>
>> On Wed, Mar 9, 2016 at 7:54 AM, Bond, Darryl  wrote:
>>> I have a 3 node 3.6.3 hosted engine cluster (Default) with a number of VMs. 
>>> The hosted engine is stored on gluster.
>>>
>>> Adding an additional server to the Default cluster that isn't a 
>>> hosted-engine ha server fails.
>>>
>>> Looking at the vdsm.log, the host attempts to mount the gluster as NFS with 
>>> the gluster options which fails.
>>>
>>>
>>
>> Please add the logs above the log you posted, with the string "Run and
>> protect, connectStorageServer"
>>
>> This log contains the arguments received from engine, revealing what
>> is going on.
>> jsonrpc.Executor/4::INFO::2016-03-09 
>> 16:05:02,002::logUtils::48::dispatcher::(wrapper) Run and protect: 
>> connectStorageServer(domType=7, 
>> spUUID=u'0001-0001-0001-0001-0229', conList=[{u'id': 
>> u'19fb9b3b-79c1-48e8-9300-d0d52ddce7b1', u'connection': 
>> u'ovirt36-h1:/hosted-engine', u'iqn': u'', u'user': u'', u'tpgt': u'1', 
>> u'password': '', u'port': u''}], options=None)
>>
>
> There must be vfs_type parameter here, with the value "glusterfs".
>
> Kind of redundant since we have a domType=7, which is glusterfs, but this is 
> the
> current API, and we must keep it for backward compatibility.
>
> The owner of the code sending this value should take a look.
>
> Nir
>
>>> jsonrpc.Executor/6::DEBUG::2016-03-09 
>>> 15:10:01,022::fileUtils::143::Storage.fileUtils::(createdir) Creating 
>>> directory: /rhev/data-center/mnt/glusterSD/ovirt36-h1:_hosted-engine mode: 
>>> None
>>> jsonrpc.Executor/6::DEBUG::2016-03-09 
>>> 15:10:01,022::storageServer::357::Storage.StorageServer.MountConnection::(_get_backup_servers_option)
>>>  Using bricks: ['ovirt36-h1', 'ovirt36-h2', 'ovirt36-h3']
>>> jsonrpc.Executor/6::DEBUG::2016-03-09 
>>> 15:10:01,022::mount::229::Storage.Misc.excCmd::(_runcmd) /usr/bin/taskset 
>>> --cpu-list 0-11 /usr/bin/sudo -n /usr/bin/systemd-run --scope 
>>> --slice=vdsm-glusterfs /usr/bin/mount -o 
>>> backup-volfile-servers=ovirt36-h2:ovirt36-h3 ovirt36-h1:/hosted-engine 
>>> /rhev/data-center/mnt/glusterSD/ovirt36-h1:_hosted-engine (cwd None)
>>
>> -t glusterfs is missing here
>>
>> This line can be generated only by the GlusterfFSConnection, used when
>> connecting
>> to gluster storage domain, but this connection type ads the "glustefs" type.
>>
>>> jsonrpc.Executor/6::ERROR::2016-03-09 
>>> 15:10:01,04

Re: [ovirt-users] Admin lockout

2016-03-09 Thread Douglas Landgraf
Hi Clint,

On Wed, Mar 9, 2016 at 2:52 PM, Clint Boggio  wrote:

>  I had a keyboard problem and entered the wrong password for admin@internal
> enough times to finally lock the account.
>How do I recover from this ?
>OVirt engine 3.6.2
>


You might try from engine machine:

# ovirt-aaa-jdbc-tool user unlock admin

More info:
http://www.ovirt.org/develop/release-management/features/infra/aaa-jdbc/




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



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


Re: [ovirt-users] Fwd: Re: Slow after add 2 Nic

2016-03-09 Thread Brett I. Holcomb
I'm running oVirt on a host that is a VMware Workstation guest as a
test before I replace my ESXi server.  I started with one NIC and let
oVirt get setup.  Then I added another NIC to my ovirt Host via VMware.
 My primary NIC was my site management network 10.0.xx.0/24.  The
second NIC was in 10.0.yy.0/24  I then used the web portal to create a
logical network.  After that I tied the logical network to the physical
card.  If needed you can add a VLAN tag to the logical network and set
up your switch to handle it.  oVirt handled setting up all the ifcfg
files for me.  I'm not where i can pull up my test system or I'd give
you more detail.  I'm in the process of replacing ESXi with oVirt so my
 server is down and i'm having to run everything on Windows with VMware
Workstation and Windows is being pouty.
On Wed, 2016-03-09 at 21:12 +0100, Taste-Of-IT wrote:
> Hello,
> any help for using 2 nics in 2 networks?
> 
> thx
> 
>  Originalnachricht 
> Betreff: Re: [ovirt-users] Slow after add 2 Nic
> Datum: 2016-03-08 11:33
> Von: Taste-Of-IT 
> An: oVirt Userlist 
> 
> Hello,
> i simply add the nic and i think CentOS configure these by itself.
> Ok, i 
> can change that. Short to my intentions. I want to use nic1 for my
> lan 
> and nic2 for the wan route into the internet. in ovirt i want to
> install 
> a firewall and configure both nics, nic for lan and nic2 for wan. in
> the 
> other vm's i want to install only nic1 as bridge and configure the 
> firwall as gateway which also service the dhcp. at all it must be
> safe 
> that the vms cant break out of this and go around the firewall. so as
> i 
> understand i would do this:
> - set in centos nic1 as default gatway wich has 192.168.0.1 as
> gateway
> - set in centos nic2 without default route
> - add in ovirt a new network / nic
> - create the vm for the firwall and assign nic1 and nic2
> - in the other vms i would only assign nic1
> 
> is that the way to do or what do you think?
> thx
> Taste
> 
> Am 2016-03-08 09:45, schrieb Yaniv Kaul:
> > Most likely (we've had something like that in FOSDEM) issue with
> > DNS
> > resolving. 
> > Make sure all IP addresses are correctly resolved.
> > Y.
> > 
> > On Tue, Mar 8, 2016 at 12:44 AM, Taste-Of-IT 
> > e>
> > wrote:
> > 
> > > Hello,
> > > i have a question about adding a second Nic. After adding a
> > > second
> > > one the WebGUI and oVirt is very slow. The situation is as
> > > follow.
> > > Each nic has its own network and are seperated from each other.
> > > nic1
> > > - 192.168.0.x for internal and nic2 192.168.1.x through the wan.
> > > if
> > > i use trace from the client i call the WebGUI, it goes over
> > > 192.168.0.x, the right way. but if i trace the engine self on
> > > localhost with its hostname it goes over 192.168.1.x, the wrong
> > > way
> > > and takes longer.
> > > 
> > > i am not sure if its an ovirt problem or from hostsystem centos,
> > > but i didnt find any solution.
> > > 
> > > # ip route show
> > > default via 192.168.0.3 dev ovirtmgmt
> > > default via 192.168.1.1 dev enp0s29u1u2c2  proto static  metric
> > > 100
> > > 169.254.0.0/16 [1] dev ovirtmgmt  scope link  metric 1006
> > > 192.168.0.0/24 [2] dev ovirtmgmt  proto kernel  scope link  src
> > > 192.168.0.153
> > > 192.168.1.0/24 [3] dev enp0s29u1u2c2  proto kernel  scope link 
> > > src 192.168.1.2  metric 100
> > > 
> > > thx for help
> > > Taste
> > > ___
> > > Users mailing list
> > > Users@ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/users [4]
> > 
> > 
> > 
> > Links:
> > --
> > [1] http://169.254.0.0/16
> > [2] http://192.168.0.0/24
> > [3] http://192.168.1.0/24
> > [4] 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


[ovirt-users] Fwd: Re: Slow after add 2 Nic

2016-03-09 Thread Taste-Of-IT

Hello,
any help for using 2 nics in 2 networks?

thx

 Originalnachricht 
Betreff: Re: [ovirt-users] Slow after add 2 Nic
Datum: 2016-03-08 11:33
Von: Taste-Of-IT 
An: oVirt Userlist 

Hello,
i simply add the nic and i think CentOS configure these by itself. Ok, i 
can change that. Short to my intentions. I want to use nic1 for my lan 
and nic2 for the wan route into the internet. in ovirt i want to install 
a firewall and configure both nics, nic for lan and nic2 for wan. in the 
other vm's i want to install only nic1 as bridge and configure the 
firwall as gateway which also service the dhcp. at all it must be safe 
that the vms cant break out of this and go around the firewall. so as i 
understand i would do this:

- set in centos nic1 as default gatway wich has 192.168.0.1 as gateway
- set in centos nic2 without default route
- add in ovirt a new network / nic
- create the vm for the firwall and assign nic1 and nic2
- in the other vms i would only assign nic1

is that the way to do or what do you think?
thx
Taste

Am 2016-03-08 09:45, schrieb Yaniv Kaul:

Most likely (we've had something like that in FOSDEM) issue with DNS
resolving. 
Make sure all IP addresses are correctly resolved.
Y.

On Tue, Mar 8, 2016 at 12:44 AM, Taste-Of-IT 
wrote:


Hello,
i have a question about adding a second Nic. After adding a second
one the WebGUI and oVirt is very slow. The situation is as follow.
Each nic has its own network and are seperated from each other. nic1
- 192.168.0.x for internal and nic2 192.168.1.x through the wan. if
i use trace from the client i call the WebGUI, it goes over
192.168.0.x, the right way. but if i trace the engine self on
localhost with its hostname it goes over 192.168.1.x, the wrong way
and takes longer.

i am not sure if its an ovirt problem or from hostsystem centos,
but i didnt find any solution.

# ip route show
default via 192.168.0.3 dev ovirtmgmt
default via 192.168.1.1 dev enp0s29u1u2c2  proto static  metric
100
169.254.0.0/16 [1] dev ovirtmgmt  scope link  metric 1006
192.168.0.0/24 [2] dev ovirtmgmt  proto kernel  scope link  src
192.168.0.153
192.168.1.0/24 [3] dev enp0s29u1u2c2  proto kernel  scope link 
src 192.168.1.2  metric 100

thx for help
Taste
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users [4]




Links:
--
[1] http://169.254.0.0/16
[2] http://192.168.0.0/24
[3] http://192.168.1.0/24
[4] 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


[ovirt-users] Admin lockout

2016-03-09 Thread Clint Boggio
 I had a keyboard problem and entered the wrong password for admin@internal 
enough times to finally lock the account.
   How do I recover from this ?
   OVirt engine 3.6.2
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] changing vm's product serial

2016-03-09 Thread Nathanaël Blanchet

thank you, it's ok for the python script!
another simple way I found is with ovirt-shell:
ovirt-shell -E "update vm name --serial_number-value $(uuidgen)"

anyway we need not to simply reboot, but stop and start the vm so as to 
this change take effect


Le 09/03/2016 12:35, Juan Hernández a écrit :

On 03/08/2016 04:57 PM, Nathanaël Blanchet wrote:

Hi all,

We've been using templates for months before we realized that "ocs
report" used Serial Number given into "demidecode -t system" to identify
a VM as unique.
This Serial Number is located into
/sys/devices/virtual/dmi/id/product_serial,  and we'd really want each
vm to have its own Serial Number instead of the template's one.
We tried to generate a new id with uuidgen, but it can't be written into
the product_serial file.
Is there a simple way to do such a thing?
Thank you.


You can change the serial number of the VM via the GUI:

   Vms -> Edit -> System -> Provide custom serial number

There you can specify that the VM should have as serial number the id of
the host, the id of the VM, or a custom serial number.

You can do the same with the API. For example, to set a custom serial
number for a specific VM using the Python SDK you can do something like
this:

---8<---
#!/usr/bin/python

from ovirtsdk.api import API
from ovirtsdk.xml import params

# Connect to the server:
api = API(
 url="https://engine.example.com/ovirt-engine/api";,
 username="admin@internal",
 password="...",
 ca_file="/etc/pki/ovirt-engine/ca.pem",
 debug=False,
)

# Find the VM:
vm = api.vms.get(name="myvm")

# Set a custom serial number:
vm.set_serial_number(
 params.SerialNumber(
 policy="custom",
 value="yourserial",
 )
)
vm.update()

# Disconnect:
api.disconnect()
--->8---



--
Nathanaël Blanchet

Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5   
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr

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


Re: [ovirt-users] User cannot add a disk to a VM - permission error

2016-03-09 Thread Will Dennis
Thanks, that worked...

-Original Message-
From: Ondra Machacek [mailto:omach...@redhat.com] 
Sent: Wednesday, March 09, 2016 2:31 AM
To: Will Dennis; users
Subject: Re: [ovirt-users] User cannot add a disk to a VM - permission error

On 03/09/2016 05:02 AM, Will Dennis wrote:
> Trying to understand the oVirt user permissions system… I have a user who I 
> have granted the “PowerUserRole” role to, with the role description being 
> “User Role, allowed to create VMs, Templates and Disks.”
>
> When I log into the User Portal with this user, I try to create a VM with a 
> disk, but when I click the OK button, I get the message, “Cannot add Virtual 
> Machine Disk. The user doesn’t have permissions to attach Disk Profile to the 
> Disk.
>
> What other permission(s) do I need to grant this user in order to have it be 
> able to create VMs?

See this bz[1]. You should also have 'DiskProfileUser' role on storagedomain 
where you want to create disk.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1209505

>
> ___
> 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] Logs Error

2016-03-09 Thread Francesco Romani
- Original Message -
> From: "Francesco Romani" 
> To: "Budur Nagaraju" 
> Cc: "users" 
> Sent: Monday, February 8, 2016 11:43:49 AM
> Subject: Re: [ovirt-users] Logs Error
> 
> - Original Message -
> > From: "Budur Nagaraju" 
> > To: "users" 
> > Sent: Monday, February 8, 2016 10:00:36 AM
> > Subject: [ovirt-users] Logs Error
> > 
> > 
> > 
> > Getting below logs for some reason, in the engine
> 
> Hi!
> Can please file a bug about it?

Hi again,

sorry for the quite long delay; meantime I managed to file a bug,

https://bugzilla.redhat.com/show_bug.cgi?id=1307048

and work on a candidate patch.

https://gerrit.ovirt.org/#/c/53341/

But I can't reproduce this on 3.6.5 the way I thought, it seems
something's missing.

Could you please add some details to help me reproduce this issue?


Thanks!

-- 
Francesco Romani
RedHat Engineering Virtualization R & D
Phone: 8261328
IRC: fromani
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Storage Issues

2016-03-09 Thread Nir Soffer
On Wed, Mar 9, 2016 at 12:21 PM, Budur Nagaraju  wrote:
> Is there any other option apart from this ? as I will be keep adding
> multiple LUNS ,it would not be easier to move the the templates every time.

You can use block storage, and have a storage domain using up to 10 LUNs.

Put the templates on this storage domain, and add LUNs when you need more
storage.

Note that block storage domain has a limit on number of volumes, our current
recommendation is 350 volumes. This means 350 disks without snapshots, or
if you use snapshots, 350 / number of snapshots.

Nir

>
> Thanks,
> Nagaraju
>
> On Mon, Mar 7, 2016 at 3:33 PM, Idan Shaby  wrote:
>>
>> In this case, you can create the vm's template on the other storage
>> domain, and then the new vm's disks will also be created on that domain.
>>
>>
>> Regards,
>> Idan
>>
>> On Mon, Mar 7, 2016 at 10:00 AM, Budur Nagaraju  wrote:
>>>
>>> But the users will be deploying the vms from the template and users are
>>> not have Admin permissions to choose the storage .
>>> is there a way to resolve this issue ?
>>>
>>> On Mon, Mar 7, 2016 at 1:21 PM, Idan Shaby  wrote:

 Hi Nagaraju,

 When you create a vm disk, you can specify on which storage domain to
 create it.
 Once you chose a storage domain, it will not change unless you move the
 disk yourself.
 I guess that disks are created on your first domain by default since it
 is shown as the first domain in the list of storage domains (in the New
 Virtual Disk window).
 So next time you create a disk, choose the other domain and you'll get
 what you need.
 Also, you can move the current vm disks - navigate to the Virtual
 Machines tab, click on the vm, navigate to the Disks sub tab, click on the
 disk and then click on move.


 Regards,
 Idan

 On Mon, Mar 7, 2016 at 5:32 AM, Budur Nagaraju 
 wrote:
>
> HI
>
> I have configured two storage Lun through NFS one is Master which is
> having capacity of 2TB and the other is having 1TB.
>
> Now the issue when ever user deploy a vm automatically vm is getting
> deployed in master lun which is running out of HDD space and the vm is not
> getting deployed in the other Lun ,is there any setting to do that vm 
> should
> get deployed in other LUN ?
>
> Thanks,
> Nagaraju
>
> ___
> 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] Adding servers after hosted ending servers fail due to incorrect mount options in vdsm

2016-03-09 Thread Nir Soffer
On Wed, Mar 9, 2016 at 11:48 AM, Bond, Darryl  wrote:
> Nir,
> The run and protect was the line above, I have included it above the rest.
> My comments about not creating a extra data centre agree with yours. I want:
> 1 data centre which includes:
> 1 set of storage domains

What do you mean by "set of storage domains?"

> 3 hosted engine ha hosts
> 4 extra hosts

I don't know about hosted engine limitations, but generally a host can be only
part of one DC and cluster.

So you can have 3 hosts serving as hosted engine nodes, with their own
storage, used only for hosted engine, and you can have another DC for
vms, using other storage domains.

Or you can have one DC, with all the storage domains, and several clusters,
one for hosted engine nodes, and one for compute nodes for other vms.
In this case all the nodes will have to connect to all storage domains.

Pick the setup that fits your needs.

>
> I cannot activate an additional (non ha) host as it errors mounting the 
> gluster hosted engine domain as it does not pass the -t glusterfs. I don't 
> really care if they didn't (as it is only there for the hosted-engine ha 
> hosts) but that does not seem possible.
> 
> From: Nir Soffer 
> Sent: Wednesday, 9 March 2016 6:17 PM
> To: Bond, Darryl; Ala Hino
> Cc: users@ovirt.org
> Subject: Re: [ovirt-users] Adding servers after hosted ending servers fail 
> due to incorrect mount options in vdsm
>
> On Wed, Mar 9, 2016 at 7:54 AM, Bond, Darryl  wrote:
>> I have a 3 node 3.6.3 hosted engine cluster (Default) with a number of VMs. 
>> The hosted engine is stored on gluster.
>>
>> Adding an additional server to the Default cluster that isn't a 
>> hosted-engine ha server fails.
>>
>> Looking at the vdsm.log, the host attempts to mount the gluster as NFS with 
>> the gluster options which fails.
>>
>>
>
> Please add the logs above the log you posted, with the string "Run and
> protect, connectStorageServer"
>
> This log contains the arguments received from engine, revealing what
> is going on.
> jsonrpc.Executor/4::INFO::2016-03-09 
> 16:05:02,002::logUtils::48::dispatcher::(wrapper) Run and protect: 
> connectStorageServer(domType=7, 
> spUUID=u'0001-0001-0001-0001-0229', conList=[{u'id': 
> u'19fb9b3b-79c1-48e8-9300-d0d52ddce7b1', u'connection': 
> u'ovirt36-h1:/hosted-engine', u'iqn': u'', u'user': u'', u'tpgt': u'1', 
> u'password': '', u'port': u''}], options=None)
>

There must be vfs_type parameter here, with the value "glusterfs".

Kind of redundant since we have a domType=7, which is glusterfs, but this is the
current API, and we must keep it for backward compatibility.

The owner of the code sending this value should take a look.

Nir

>> jsonrpc.Executor/6::DEBUG::2016-03-09 
>> 15:10:01,022::fileUtils::143::Storage.fileUtils::(createdir) Creating 
>> directory: /rhev/data-center/mnt/glusterSD/ovirt36-h1:_hosted-engine mode: 
>> None
>> jsonrpc.Executor/6::DEBUG::2016-03-09 
>> 15:10:01,022::storageServer::357::Storage.StorageServer.MountConnection::(_get_backup_servers_option)
>>  Using bricks: ['ovirt36-h1', 'ovirt36-h2', 'ovirt36-h3']
>> jsonrpc.Executor/6::DEBUG::2016-03-09 
>> 15:10:01,022::mount::229::Storage.Misc.excCmd::(_runcmd) /usr/bin/taskset 
>> --cpu-list 0-11 /usr/bin/sudo -n /usr/bin/systemd-run --scope 
>> --slice=vdsm-glusterfs /usr/bin/mount -o 
>> backup-volfile-servers=ovirt36-h2:ovirt36-h3 ovirt36-h1:/hosted-engine 
>> /rhev/data-center/mnt/glusterSD/ovirt36-h1:_hosted-engine (cwd None)
>
> -t glusterfs is missing here
>
> This line can be generated only by the GlusterfFSConnection, used when
> connecting
> to gluster storage domain, but this connection type ads the "glustefs" type.
>
>> jsonrpc.Executor/6::ERROR::2016-03-09 
>> 15:10:01,042::hsm::2473::Storage.HSM::(connectStorageServer) Could not 
>> connect to storageServer
>> Traceback (most recent call last):
>>   File "/usr/share/vdsm/storage/hsm.py", line 2470, in connectStorageServer
>> conObj.connect()
>>   File "/usr/share/vdsm/storage/storageServer.py", line 236, in connect
>> six.reraise(t, v, tb)
>>   File "/usr/share/vdsm/storage/storageServer.py", line 228, in connect
>> self._mount.mount(self.options, self._vfsType, cgroup=self.CGROUP)
>>   File "/usr/share/vdsm/storage/mount.py", line 225, in mount
>> return self._runcmd(cmd, timeout)
>>   File "/usr/share/vdsm/storage/mount.py", line 241, in _runcmd
>> raise MountError(rc, ";".join((out, err)))
>> MountError: (32, ';Running scope as unit run-18808.scope.\nmount.nfs: an 
>> incorrect mount option was specified\n')
>>
>> I noticed the hosted-engine servers perform the same mount but pass the -t 
>> glusterfs correctly.
>>
>> A bug or am I doing something wrong??
>>
>> I do not want to create a new datacentre without the hosted engine storage 
>> as I want to use the same storage domains.
>
> Same storage domains? Maybe you mean same bricks?
>
> You cannot use the same storage

Re: [ovirt-users] changing vm's product serial

2016-03-09 Thread Juan Hernández
On 03/08/2016 04:57 PM, Nathanaël Blanchet wrote:
> Hi all,
> 
> We've been using templates for months before we realized that "ocs
> report" used Serial Number given into "demidecode -t system" to identify
> a VM as unique.
> This Serial Number is located into
> /sys/devices/virtual/dmi/id/product_serial,  and we'd really want each
> vm to have its own Serial Number instead of the template's one.
> We tried to generate a new id with uuidgen, but it can't be written into
> the product_serial file.
> Is there a simple way to do such a thing?
> Thank you.
> 

You can change the serial number of the VM via the GUI:

  Vms -> Edit -> System -> Provide custom serial number

There you can specify that the VM should have as serial number the id of
the host, the id of the VM, or a custom serial number.

You can do the same with the API. For example, to set a custom serial
number for a specific VM using the Python SDK you can do something like
this:

---8<---
#!/usr/bin/python

from ovirtsdk.api import API
from ovirtsdk.xml import params

# Connect to the server:
api = API(
url="https://engine.example.com/ovirt-engine/api";,
username="admin@internal",
password="...",
ca_file="/etc/pki/ovirt-engine/ca.pem",
debug=False,
)

# Find the VM:
vm = api.vms.get(name="myvm")

# Set a custom serial number:
vm.set_serial_number(
params.SerialNumber(
policy="custom",
value="yourserial",
)
)
vm.update()

# Disconnect:
api.disconnect()
--->8---

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 3.6.3.4 and VLAN are not friends

2016-03-09 Thread Fabrice Bacchella
The logs are in a private mail.

I'm starting with a simple configuration.

2 interfaces (eth0 and eth1, consistent network device naming is disabled). 
eth0 got it's IP from DHCP in the native VLAN, eth1 is not configured. No jumbo 
frame

So there is no IP and no configuration yet for the tagged VLAN, I will 
configure that latter, and any way I don't intent to give them IP on the hosts, 
I just want to bring networks to the virtual machine.


> Le 9 mars 2016 à 11:42, Petr Horacek  a écrit :
> 
> Hello Fabrice,
> 
> could you share /var/log/vdsm/vdsm.log and /var/log/vdsm/supervdsm.log
> logs from the host with us? How did you configure IP for tagged
> networks, did you use the same subnets?
> 
> Regards,
> Petr
> 
> 2016-03-09 10:56 GMT+01:00 Fabrice Bacchella :
>> I'm trying to bring some VLAN to ovirts hosts.
>> 
>> I have one native vlan and two tagged vlan.
>> 
>> When the tagged vlan are not configured in ovirt, I can add hosts easily. As 
>> soon as I add the two tagged one, every things run amok. New hosts network 
>> are broken, network configuration is untouched and the host is marked as non 
>> operationnal.

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


Re: [ovirt-users] ovirt 3.6.3.4 and VLAN are not friends

2016-03-09 Thread Petr Horacek
Hello Fabrice,

could you share /var/log/vdsm/vdsm.log and /var/log/vdsm/supervdsm.log
logs from the host with us? How did you configure IP for tagged
networks, did you use the same subnets?

Regards,
Petr

2016-03-09 10:56 GMT+01:00 Fabrice Bacchella :
> I'm trying to bring some VLAN to ovirts hosts.
>
> I have one native vlan and two tagged vlan.
>
> When the tagged vlan are not configured in ovirt, I can add hosts easily. As 
> soon as I add the two tagged one, every things run amok. New hosts network 
> are broken, network configuration is untouched and the host is marked as non 
> operationnal.
>
> In engine.log, I get:
>
> 2016-03-09 10:25:34,376 INFO  
> [org.ovirt.engine.core.vdsbroker.vdsbroker.HostSetupNetworksVDSCommand] 
> (default task-20) [da910e3] FINISH, HostSetupNetworksVDSCommand, log id: 
> 7c267202
> 2016-03-09 10:25:34,383 INFO  
> [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] 
> Connecting to nb0104.prod.exalead.com/10.83.17.27
> 2016-03-09 10:25:34,404 INFO  
> [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] 
> Connecting to nb0104.prod.exalead.com/10.83.17.27
> 2016-03-09 10:25:36,401 ERROR 
> [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
> [da910e3] Error: 
> org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException: Connection 
> issues during send request
> 2016-03-09 10:25:36,401 ERROR 
> [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
> [da910e3] Exception: java.util.concurrent.ExecutionException: 
> org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException: Connection 
> issues during send request
> at java.util.concurrent.FutureTask.report(FutureTask.java:122) 
> [rt.jar:1.7.0_95]
> at java.util.concurrent.FutureTask.get(FutureTask.java:202) 
> [rt.jar:1.7.0_95]
> at 
> org.ovirt.engine.core.vdsbroker.vdsbroker.FutureVDSCommand.get(FutureVDSCommand.java:72)
>  [vdsbroker.jar:]
>
> and a lot of them like that. I even get a :
> 2016-03-09 10:26:56,830 INFO  
> [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] 
> Connecting to nb0104.prod.exalead.com/10.83.17.27
> 2016-03-09 10:26:56,830 ERROR 
> [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) [] 
> Unable to process messages
> 2016-03-09 10:26:56,848 ERROR 
> [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
> [da910e3] Error: java.lang.NullPointerException
> 2016-03-09 10:26:56,848 ERROR 
> [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
> [da910e3] Exception: java.util.concurrent.ExecutionException: 
> java.lang.NullPointerException
> at java.util.concurrent.FutureTask.report(FutureTask.java:122) 
> [rt.jar:1.7.0_95]
> at java.util.concurrent.FutureTask.get(FutureTask.java:202) 
> [rt.jar:1.7.0_95]
> at 
> org.ovirt.engine.core.vdsbroker.vdsbroker.FutureVDSCommand.get(FutureVDSCommand.java:72)
>  [vdsbroker.jar:]
> at 
> org.ovirt.engine.core.bll.network.host.HostSetupNetworkPoller.poll(HostSetupNetworkPoller.java:30)
>  [bll.jar:]
> at 
> org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand.invokeSetupNetworksCommand(HostSetupNetworksCommand.java:423)
>  [bll.jar:]
> at 
> org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand.executeCommand(HostSetupNetworksCommand.java:256)
>  [bll.jar:]
> 
> Caused by: java.lang.NullPointerException
> at 
> org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.connect(ReactorClient.java:121)
>  [vdsm-jsonrpc-java-client.jar:]
> at 
> org.ovirt.vdsm.jsonrpc.client.JsonRpcClient.getClient(JsonRpcClient.java:114) 
> [vdsm-jsonrpc-java-client.jar:]
> at 
> org.ovirt.vdsm.jsonrpc.client.JsonRpcClient.call(JsonRpcClient.java:73) 
> [vdsm-jsonrpc-java-client.jar:]
> at 
> org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap.(FutureMap.java:87) 
> [vdsbroker.jar:]
> at 
> org.ovirt.engine.core.vdsbroker.jsonrpc.JsonRpcVdsServer$3.call(JsonRpcVdsServer.java:1016)
>  [vdsbroker.jar:]
> at 
> org.ovirt.engine.core.vdsbroker.jsonrpc.JsonRpcVdsServer$3.call(JsonRpcVdsServer.java:1012)
>  [vdsbroker.jar:]
> ...
> 2016-03-09 10:26:56,860 ERROR 
> [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
> [da910e3] Command 'PollVDSCommand(HostName = nb0104, 
> VdsIdVDSCommandParametersBase:{runAsync='true', 
> hostId='8aed4c69-3a1d-4f00-95c4-79bcd3596ef9'})' execution failed: 
> java.util.concurrent.ExecutionException: java.lang.NullPointerException
>
>
> And latter:
>
> 2016-03-09 10:37:28,635 WARN  
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
> (DefaultQuartzScheduler_Worker-22) [47d52cbc] Correlation ID: 47d52cbc, Job 
> ID: e1f27868-08c8-488a-b70c-7c9d8f06c08b, Call Stack: null, Custom Event ID: 
> -1, Message: Host nb0104 does not comply with the cluster Default networks, 

Re: [ovirt-users] Storage Issues

2016-03-09 Thread Budur Nagaraju
Is there any other option apart from this ? as I will be keep adding
multiple LUNS ,it would not be easier to move the the templates every time.

Thanks,
Nagaraju

On Mon, Mar 7, 2016 at 3:33 PM, Idan Shaby  wrote:

> In this case, you can create the vm's template on the other storage
> domain, and then the new vm's disks will also be created on that domain.
>
>
> Regards,
> Idan
>
> On Mon, Mar 7, 2016 at 10:00 AM, Budur Nagaraju  wrote:
>
>> But the users will be deploying the vms from the template and users are
>> not have Admin permissions to choose the storage .
>> is there a way to resolve this issue ?
>>
>> On Mon, Mar 7, 2016 at 1:21 PM, Idan Shaby  wrote:
>>
>>> Hi Nagaraju,
>>>
>>> When you create a vm disk, you can specify on which storage domain to
>>> create it.
>>> Once you chose a storage domain, it will not change unless you move the
>>> disk yourself.
>>> I guess that disks are created on your first domain by default since it
>>> is shown as the first domain in the list of storage domains (in the New
>>> Virtual Disk window).
>>> So next time you create a disk, choose the other domain and you'll get
>>> what you need.
>>> Also, you can move the current vm disks - navigate to the Virtual
>>> Machines tab, click on the vm, navigate to the Disks sub tab, click on the
>>> disk and then click on move.
>>>
>>>
>>> Regards,
>>> Idan
>>>
>>> On Mon, Mar 7, 2016 at 5:32 AM, Budur Nagaraju 
>>> wrote:
>>>
 HI

 I have configured two storage Lun through NFS one is Master which is
 having capacity of 2TB and the other is having 1TB.

 Now the issue when ever user deploy a vm automatically vm is getting
 deployed in master lun which is running out of HDD space and the vm is not
 getting deployed in the other Lun ,is there any setting to do that vm
 should get deployed in other LUN ?

 Thanks,
 Nagaraju

 ___
 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 3.6.3.4 and VLAN are not friends

2016-03-09 Thread Fabrice Bacchella
I'm trying to bring some VLAN to ovirts hosts.

I have one native vlan and two tagged vlan.

When the tagged vlan are not configured in ovirt, I can add hosts easily. As 
soon as I add the two tagged one, every things run amok. New hosts network are 
broken, network configuration is untouched and the host is marked as non 
operationnal.

In engine.log, I get:

2016-03-09 10:25:34,376 INFO  
[org.ovirt.engine.core.vdsbroker.vdsbroker.HostSetupNetworksVDSCommand] 
(default task-20) [da910e3] FINISH, HostSetupNetworksVDSCommand, log id: 
7c267202
2016-03-09 10:25:34,383 INFO  
[org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] 
Connecting to nb0104.prod.exalead.com/10.83.17.27
2016-03-09 10:25:34,404 INFO  
[org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] 
Connecting to nb0104.prod.exalead.com/10.83.17.27
2016-03-09 10:25:36,401 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
[da910e3] Error: org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException: 
Connection issues during send request
2016-03-09 10:25:36,401 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
[da910e3] Exception: java.util.concurrent.ExecutionException: 
org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException: Connection 
issues during send request
at java.util.concurrent.FutureTask.report(FutureTask.java:122) 
[rt.jar:1.7.0_95]
at java.util.concurrent.FutureTask.get(FutureTask.java:202) 
[rt.jar:1.7.0_95]
at 
org.ovirt.engine.core.vdsbroker.vdsbroker.FutureVDSCommand.get(FutureVDSCommand.java:72)
 [vdsbroker.jar:]

and a lot of them like that. I even get a :
2016-03-09 10:26:56,830 INFO  
[org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] 
Connecting to nb0104.prod.exalead.com/10.83.17.27
2016-03-09 10:26:56,830 ERROR [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] 
(SSL Stomp Reactor) [] Unable to process messages
2016-03-09 10:26:56,848 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
[da910e3] Error: java.lang.NullPointerException
2016-03-09 10:26:56,848 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
[da910e3] Exception: java.util.concurrent.ExecutionException: 
java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122) 
[rt.jar:1.7.0_95]
at java.util.concurrent.FutureTask.get(FutureTask.java:202) 
[rt.jar:1.7.0_95]
at 
org.ovirt.engine.core.vdsbroker.vdsbroker.FutureVDSCommand.get(FutureVDSCommand.java:72)
 [vdsbroker.jar:]
at 
org.ovirt.engine.core.bll.network.host.HostSetupNetworkPoller.poll(HostSetupNetworkPoller.java:30)
 [bll.jar:]
at 
org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand.invokeSetupNetworksCommand(HostSetupNetworksCommand.java:423)
 [bll.jar:]
at 
org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand.executeCommand(HostSetupNetworksCommand.java:256)
 [bll.jar:]

Caused by: java.lang.NullPointerException
at 
org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.connect(ReactorClient.java:121)
 [vdsm-jsonrpc-java-client.jar:]
at 
org.ovirt.vdsm.jsonrpc.client.JsonRpcClient.getClient(JsonRpcClient.java:114) 
[vdsm-jsonrpc-java-client.jar:]
at 
org.ovirt.vdsm.jsonrpc.client.JsonRpcClient.call(JsonRpcClient.java:73) 
[vdsm-jsonrpc-java-client.jar:]
at 
org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap.(FutureMap.java:87) 
[vdsbroker.jar:]
at 
org.ovirt.engine.core.vdsbroker.jsonrpc.JsonRpcVdsServer$3.call(JsonRpcVdsServer.java:1016)
 [vdsbroker.jar:]
at 
org.ovirt.engine.core.vdsbroker.jsonrpc.JsonRpcVdsServer$3.call(JsonRpcVdsServer.java:1012)
 [vdsbroker.jar:]
...
2016-03-09 10:26:56,860 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (default task-20) 
[da910e3] Command 'PollVDSCommand(HostName = nb0104, 
VdsIdVDSCommandParametersBase:{runAsync='true', 
hostId='8aed4c69-3a1d-4f00-95c4-79bcd3596ef9'})' execution failed: 
java.util.concurrent.ExecutionException: java.lang.NullPointerException


And latter:

2016-03-09 10:37:28,635 WARN  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(DefaultQuartzScheduler_Worker-22) [47d52cbc] Correlation ID: 47d52cbc, Job ID: 
e1f27868-08c8-488a-b70c-7c9d8f06c08b, Call Stack: null, Custom Event ID: -1, 
Message: Host nb0104 does not comply with the cluster Default networks, the 
following networks are missing on host: 'DMZ,Extranet,ovirtmgmt'

I try to finish the network configuration manuall, , but some time it works, 
sometime it fails. When it fails I get a timeout, and operations are not 
possible any more on the host.
I'm getting a:

Cannot setup Networks. Another Setup Networks process in progress on 
the host. Please try later after refreshing the host network capabilities.

In engine.log, I get:

2016-03-

Re: [ovirt-users] Configuring the SRIOV virsh device

2016-03-09 Thread Michael Burman
Hi again David)

In order to achieve such xml ^^ (the one you describing) you should first
of all prepare a proper 'Port Profile' on your UCS manager side.
- In your/from your example you should have 2 Port Profiles([1], [2])
configured in your cisco side(see -
http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/sw/vm_fex/kvm/gui/config_guide/2-1/b_GUI_KVM_VM-FEX_UCSM_Configuration_Guide_2_1/b_GUI_KVM_VM-FEX_UCSM_Configuration_Guide_2_1_chapter_010.html)


[1]  profile-ame1-test1
[2] profile-ame1-prep1

- This port profiles should associate with your service profiles(blades)

- If you have those port profiles on your ucs side and they well
configured, then you should follow the steps i suggested in the previous
e-mail -->

1) Run for example:
engine-config -s
CustomDeviceProperties="{type=interface;prop={ifacemacspoof=^(true|false)$;queues=[1-9][0-9]*;vmfex=^[a-zA-Z0-9_.-]{2,32}$;SecurityGroups=^(?:(?:[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12},
*)*[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}|)$}}" --cver=3.5

- Restart your ovirt-engine service
- with --cver=3.5 you can specify your cluster version level. ^^
- If you don't want that it will overwrite your current attributes, you
have to send them all as well(like on my example above). ^^

2) Install vdsm-hook-vmfex-dev on your server(if you don't using vdsm
version 3.6, the vmfex hook isn't installed by default)

3) In ovirt engine you can verify that host have the hooks installed under
'Hosts' main tab - > 'Host Hooks' sub tab
You should see there: a) before_device_migrate_destination b)
before_device_create c) before_nic_hotplug

4) Create new network and edit the vNIC profile.
Choose from the CustomDeviceProperties the 'vmfex' key(like in your
example) and in the right field enter your Port Profile id/name(the one
that is configured on your UCS side)

- 'Networks' main tab(create network) >> 'vNIC Profiles' sub tab(edit the
profile and add the 'vmfex' key), so it would look like:
vmfex = profile-ame1-test1
and/or
vmfex = profile-ame1-prep1

5) Go to 'Setup Networks' sub tab under 'Hosts' main tab --> attach the
network with the vmfex profile to NIC on host(drag it), it should be the
additional NIC, not the one that the management network attached to.

6) Create VM or use exist one, create/add new vNIC to the VM with the vmfex
profile

7) Run VM

If your port profile configured properly you should see the proper xml,
like you described above ^^ -->

Good luck and kind regards,
Michael B


On Wed, Mar 9, 2016 at 8:49 AM, David LeVene 
wrote:

> Hey All,
>
>
>
> Still trying to work through this VMFEX stuff, and I know what I want the
> file to look like at the end.. but not sure how to achieve it from the doco
> written here
>
>
>
> http://www.ovirt.org/develop/developer-guide/vdsm/hook/vmfex/
>
> and
>
>
> http://www.ovirt.org/develop/release-management/features/network/ucs-integration/
>
>
>
> Currently my device looks like this
>
>
>
> # virsh -r net-dumpxml vdsm-SRIOV
>
> 
>
>   vdsm-SRIOV
>
>  
>
>   
>
> 
>
>
>
>
>
> I want it looking like this, then the networking will be as it should be!
>
> A port group would be a vNIC Profile from the looks of things…
>
>
>
>   vdsm-SRIOV
>
>   
> ß defined as a passthrough device, not a bridge
>
> 
>
> 
>
> 
>
> 
>
> <   .. list of interfaces available to it which would need to be manually
> inputted as a hook>
>
>   
>
>   
>
> 
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
> 
>
>   
>
> 
>
>
>
>
>
> Cheers
>
> David
> This email and any attachments may contain confidential and proprietary
> information of Blackboard that is for the sole use of the intended
> recipient. If you are not the intended recipient, disclosure, copying,
> re-distribution or other use of any of this information is strictly
> prohibited. Please immediately notify the sender and delete this
> transmission if you received this email in error.
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 
Michael Burman
RedHat Israel, RHEV-M QE Network Team

Mobile: 054-5355725
IRC: mburman
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Adding servers after hosted ending servers fail due to incorrect mount options in vdsm

2016-03-09 Thread Simone Tiraboschi
On Wed, Mar 9, 2016 at 9:17 AM, Nir Soffer  wrote:

> On Wed, Mar 9, 2016 at 7:54 AM, Bond, Darryl  wrote:
> > I have a 3 node 3.6.3 hosted engine cluster (Default) with a number of
> VMs. The hosted engine is stored on gluster.
> >
> > Adding an additional server to the Default cluster that isn't a
> hosted-engine ha server fails.
> >
> > Looking at the vdsm.log, the host attempts to mount the gluster as NFS
> with the gluster options which fails.
> >
> >
>
> Please add the logs above the log you posted, with the string "Run and
> protect, connectStorageServer"
>
> This log contains the arguments received from engine, revealing what
> is going on.
>
> > jsonrpc.Executor/6::DEBUG::2016-03-09
> 15:10:01,022::fileUtils::143::Storage.fileUtils::(createdir) Creating
> directory: /rhev/data-center/mnt/glusterSD/ovirt36-h1:_hosted-engine mode:
> None
> > jsonrpc.Executor/6::DEBUG::2016-03-09
> 15:10:01,022::storageServer::357::Storage.StorageServer.MountConnection::(_get_backup_servers_option)
> Using bricks: ['ovirt36-h1', 'ovirt36-h2', 'ovirt36-h3']
> > jsonrpc.Executor/6::DEBUG::2016-03-09
> 15:10:01,022::mount::229::Storage.Misc.excCmd::(_runcmd) /usr/bin/taskset
> --cpu-list 0-11 /usr/bin/sudo -n /usr/bin/systemd-run --scope
> --slice=vdsm-glusterfs /usr/bin/mount -o
> backup-volfile-servers=ovirt36-h2:ovirt36-h3 ovirt36-h1:/hosted-engine
> /rhev/data-center/mnt/glusterSD/ovirt36-h1:_hosted-engine (cwd None)
>
> -t glusterfs is missing here
>
>
Could it related to the auto-import feature?
Did it correctly recognized the hosted-engine storage domain as a gluster
one?
Adding Roy here.



> This line can be generated only by the GlusterfFSConnection, used when
> connecting
> to gluster storage domain, but this connection type ads the "glustefs"
> type.
>
> > jsonrpc.Executor/6::ERROR::2016-03-09
> 15:10:01,042::hsm::2473::Storage.HSM::(connectStorageServer) Could not
> connect to storageServer
> > Traceback (most recent call last):
> >   File "/usr/share/vdsm/storage/hsm.py", line 2470, in
> connectStorageServer
> > conObj.connect()
> >   File "/usr/share/vdsm/storage/storageServer.py", line 236, in connect
> > six.reraise(t, v, tb)
> >   File "/usr/share/vdsm/storage/storageServer.py", line 228, in connect
> > self._mount.mount(self.options, self._vfsType, cgroup=self.CGROUP)
> >   File "/usr/share/vdsm/storage/mount.py", line 225, in mount
> > return self._runcmd(cmd, timeout)
> >   File "/usr/share/vdsm/storage/mount.py", line 241, in _runcmd
> > raise MountError(rc, ";".join((out, err)))
> > MountError: (32, ';Running scope as unit run-18808.scope.\nmount.nfs: an
> incorrect mount option was specified\n')
> >
> > I noticed the hosted-engine servers perform the same mount but pass the
> -t glusterfs correctly.
> >
> > A bug or am I doing something wrong??
> >
> > I do not want to create a new datacentre without the hosted engine
> storage as I want to use the same storage domains.
>
> Same storage domains? Maybe you mean same bricks?
>
> You cannot use the same storage domain from different DC. You can
> create new gluster volume
> using the same bricks.
>
> Nir
> ___
> 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 servers after hosted ending servers fail due to incorrect mount options in vdsm

2016-03-09 Thread Nir Soffer
On Wed, Mar 9, 2016 at 7:54 AM, Bond, Darryl  wrote:
> I have a 3 node 3.6.3 hosted engine cluster (Default) with a number of VMs. 
> The hosted engine is stored on gluster.
>
> Adding an additional server to the Default cluster that isn't a hosted-engine 
> ha server fails.
>
> Looking at the vdsm.log, the host attempts to mount the gluster as NFS with 
> the gluster options which fails.
>
>

Please add the logs above the log you posted, with the string "Run and
protect, connectStorageServer"

This log contains the arguments received from engine, revealing what
is going on.

> jsonrpc.Executor/6::DEBUG::2016-03-09 
> 15:10:01,022::fileUtils::143::Storage.fileUtils::(createdir) Creating 
> directory: /rhev/data-center/mnt/glusterSD/ovirt36-h1:_hosted-engine mode: 
> None
> jsonrpc.Executor/6::DEBUG::2016-03-09 
> 15:10:01,022::storageServer::357::Storage.StorageServer.MountConnection::(_get_backup_servers_option)
>  Using bricks: ['ovirt36-h1', 'ovirt36-h2', 'ovirt36-h3']
> jsonrpc.Executor/6::DEBUG::2016-03-09 
> 15:10:01,022::mount::229::Storage.Misc.excCmd::(_runcmd) /usr/bin/taskset 
> --cpu-list 0-11 /usr/bin/sudo -n /usr/bin/systemd-run --scope 
> --slice=vdsm-glusterfs /usr/bin/mount -o 
> backup-volfile-servers=ovirt36-h2:ovirt36-h3 ovirt36-h1:/hosted-engine 
> /rhev/data-center/mnt/glusterSD/ovirt36-h1:_hosted-engine (cwd None)

-t glusterfs is missing here

This line can be generated only by the GlusterfFSConnection, used when
connecting
to gluster storage domain, but this connection type ads the "glustefs" type.

> jsonrpc.Executor/6::ERROR::2016-03-09 
> 15:10:01,042::hsm::2473::Storage.HSM::(connectStorageServer) Could not 
> connect to storageServer
> Traceback (most recent call last):
>   File "/usr/share/vdsm/storage/hsm.py", line 2470, in connectStorageServer
> conObj.connect()
>   File "/usr/share/vdsm/storage/storageServer.py", line 236, in connect
> six.reraise(t, v, tb)
>   File "/usr/share/vdsm/storage/storageServer.py", line 228, in connect
> self._mount.mount(self.options, self._vfsType, cgroup=self.CGROUP)
>   File "/usr/share/vdsm/storage/mount.py", line 225, in mount
> return self._runcmd(cmd, timeout)
>   File "/usr/share/vdsm/storage/mount.py", line 241, in _runcmd
> raise MountError(rc, ";".join((out, err)))
> MountError: (32, ';Running scope as unit run-18808.scope.\nmount.nfs: an 
> incorrect mount option was specified\n')
>
> I noticed the hosted-engine servers perform the same mount but pass the -t 
> glusterfs correctly.
>
> A bug or am I doing something wrong??
>
> I do not want to create a new datacentre without the hosted engine storage as 
> I want to use the same storage domains.

Same storage domains? Maybe you mean same bricks?

You cannot use the same storage domain from different DC. You can
create new gluster volume
using the same bricks.

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