[ovirt-users] Testing openstack inside ovirt environment

2016-03-05 Thread Gianluca Cecchi
Hello,
Up to now I only tested openstack on physical hw.
I would like to make some tests in a virtual environment.
Not considering at the moment cinder and glance integrations provided by
oVirt but full openstack itself.
Are nestedvt and macspoof vdsm hooks the only requirement I should care
about to be able to go?
Also, supposing I go with a preliminar pre-test of openstack in virtual
environment using plain qemu/kvm with virt-manager, it's clear to me how to
enable the nested kvm for the host, but what should be the commands to give
on host side so that the openstack instances will be able to communicate
with the outside world (the commands that in ovirt I presume are run by
the  macspoof vdsm hook).
Thanks in advance,
Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Promiscuous Mode

2016-03-05 Thread Christopher Young
That may work for me.  I'll look into it.  This is going to be a
production environment (I had previously been running OVirt for over a
year with success, but my hypervisors were standard EL7 servers vs.
OVirtnode/RHEV-H) so I'm looking for the most "official", clean
solution.

I will open a ticket with RH on that one, but if anyone knows of an
alternative or any reason why I should do something different, please
let me know.

Many thanks,

Chris

On Sat, Mar 5, 2016 at 4:47 PM, combuster  wrote:
> I haven't tried it, but here is a guide on how to add a hook to ovirt-node:
>
> http://www.ovirt.org/develop/developer-guide/vdsm/hook/qemucmdline/
>
>
> On 03/05/2016 09:48 PM, Christopher Young wrote:
>>
>> Question:
>>
>> There is no yum functionality on ovirt-node/RHEV-H, so how does one go
>> about this in that scenario?
>>
>> On Sat, Mar 5, 2016 at 3:32 PM, combuster  wrote:
>>>
>>> It's great to know that it's working.
>>>
>>> Best of luck Clint.
>>>
>>>
>>> On 03/05/2016 09:09 PM, cl...@theboggios.com wrote:

 On 2016-03-05 13:34, combuster wrote:
>
> Correct procedure would be:
>
> 1. On each of your ovirt nodes run:
>
> yum install vdsm-hook-macspoof
>
> 2. On the engine run:
>
> sudo engine-config -s "UserDefinedVMProperties=macspoof=^(true|false)$"
>
> 3. Edit OpenVPN virtual machine settings and add a custom property
> containing macspoof keyword and set the value "true" for it.
>
> If you want to remove filtering for a single interface, then replace
> steps 2 and 3 as outlined in the README.
>
> Kind regards,
>
> Ivan
>
> On 03/05/2016 08:21 PM, cl...@theboggios.com wrote:
>>
>> On 2016-03-05 13:13, combuster wrote:
>>>
>>> Ignore the link (minor accident while pasting). Yum will download the
>>> appropriate one from the repos.
>>>
>>> On 03/05/2016 08:09 PM, combuster wrote:
>>>
 Just the hook rpm (vdsm-hook-macspoof [1]).

 Ivan

 On 03/05/2016 08:02 PM, Christopher Young wrote:

 I had a related question on this.

 When it comes to ovirt-node or rhev-h, is there anything required to
 be installed on the hypervisor hosts themselves?

 Thanks,

 Chris
 On Mar 5, 2016 1:47 PM, "combuster"  wrote:
 Hi Clint, you might want to check the macspoof hook features here:

 https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof [2]

 This should override arp/spoofing filtering, that might be the
 cause of your issues with OpenVPN setup (first guess).

 On 03/05/2016 07:30 PM, Clint Boggio wrote:
 I am deploying an OpenVPN server in my OVirt environment and I've
 come to a dead stop with the developer support on a topic related to
 OVirt configuration.

 The developer wants me to put the VM's underlying NIC into
 promiscuous mode.

 I've seen this in a VMware environment and I know what they are
 asking me to do, and I'm wondering if there is a clear way to do
 this in my OVirt environment.

 I found "port mirroring" but no "promiscuous mode"

 Cheers and thank you !
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users [3]

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users [3]
>>>
>>>
>>>
>>>
>>> Links:
>>> --
>>> [1]
>>>
>>>
>>> http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/noarch/vdsm-hook-macspoof-4.16.10-0.el7.noarch.rpm
>>> [2] https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof
>>> [3] http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>>
>> Thank you very much. Reading the README it appears that there is a
>> series of commands to run on the engine to make the options to remove
>> filtering from the vNIC, or the whole VM available. What purpose is
>> filled
>> by the two scripts that are included in the git, and where do I put
>> them so
>> that they will be utilized if that's even necessary ?



 Ivan, because of YOU, I get me weekend back ! It works and OVPN is up
 and
 running.

 Thank you SO MUCH !
>>>
>>>
>>> ___
>>> 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] Fresh install failing (Hosted Engine)

2016-03-05 Thread Jonathan Sherman
I want to extend my lab and am trying an install using the hosted engine,
but the install is failing for me:

References used for install:
https://glennsnead.wordpress.com/2016/02/28/ovirt-3-6-installation/
http://community.redhat.com/blog/2014/10/up-and-running-with-ovirt-3-5/

Setup:
Minimal install of CentOS Linux release 7.2.1511 (Core)
Using DHCP with static address (tried without DHCP with same issue)
yum upgrade

Installed packages:
yum localinstall -y
http://resources.ovirt.org/pub/yum-repo/ovirt-release36.rpm
yum install -y ovirt-hosted-engine-setup screen glusterfs-server nfs-utils
vdsm-gluster system-storage-manager mailx

rebooted

Tried hosted-engine --deploy, but it errors out.  I followed various logs
and I _think_ it's failing related to vdsm-tool restore-nets.  I could use
some guidance on this to help track down what's happening and how to fix.

(Note:  I'd very much prefer using the hosted engine vs. another option for
my lab, so I'm willing to put in the time to figure this out.  Thanks for
any assistance!)

Install error:
[root@ovirt01 network-scripts]# hosted-engine --deploy
[ INFO  ] Stage: Initializing
[ INFO  ] Generating a temporary VNC password.
[ INFO  ] Stage: Environment setup
  Continuing will configure this host for serving as hypervisor and
create a VM where you have to install the engine afterwards.
  Are you sure you want to continue? (Yes, No)[Yes]:
  Configuration files: []
  Log file:
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160305194655-o29y86.log
  Version: otopi-1.4.1 (otopi-1.4.1-1.el7.centos)
[ INFO  ] Hardware supports virtualization
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup
[ ERROR ] Failed to execute stage 'Environment setup': Failed to start
service 'vdsmd'
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file
'/var/lib/ovirt-hosted-engine-setup/answers/answers-20160305194703.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Hosted Engine deployment failed: this system is not reliable,
please check the issue, fix and redeploy
  Log file is located at
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160305194655-o29y86.log

--
vdsm-tool restore-nets output:

[root@ovirt01 etc]# /usr/bin/vdsm-tool restore-nets
Traceback (most recent call last):
  File "/usr/share/vdsm/vdsm-restore-net-config", line 429, in 
restore(args)
  File "/usr/share/vdsm/vdsm-restore-net-config", line 387, in restore
_restore_sriov_numvfs()
  File "/usr/share/vdsm/vdsm-restore-net-config", line 82, in
_restore_sriov_numvfs
sriov_devices = _get_sriov_devices()
  File "/usr/share/vdsm/vdsm-restore-net-config", line 54, in
_get_sriov_devices
devices = hostdev.list_by_caps()
  File "/usr/share/vdsm/hostdev.py", line 175, in list_by_caps
libvirt_devices = _get_devices_from_libvirt()
  File "/usr/share/vdsm/hostdev.py", line 160, in _get_devices_from_libvirt
for device in libvirtconnection.get().listAllDevices(0))
  File "/usr/share/vdsm/hostdev.py", line 160, in 
for device in libvirtconnection.get().listAllDevices(0))
  File "/usr/share/vdsm/hostdev.py", line 107, in _parse_device_params
devXML = etree.fromstring(device_xml)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1300, in XML
parser.feed(text)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in
_raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 4,
column 13
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 219, in main
return tool_command[cmd]["command"](*args)
  File "/usr/lib/python2.7/site-packages/vdsm/tool/restore_nets.py", line
41, in restore_command
exec_restore(cmd)
  File "/usr/lib/python2.7/site-packages/vdsm/tool/restore_nets.py", line
54, in exec_restore
raise EnvironmentError('Failed to restore the persisted networks')
EnvironmentError: Failed to restore the persisted networks
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] set up of fibre channel storage problem

2016-03-05 Thread Campbell McLeay
Hi Nir,

I'd removed the partitions earlier with parted, but I guess it had
left a signature there, so I did as you suggested and that resolved
the issue.

Many thanks!

-Cam

On 5 March 2016 at 22:45, Nir Soffer  wrote:
> On Sun, Mar 6, 2016 at 12:36 AM, Campbell McLeay
>  wrote:
>> Hi,
>>
>> I've set up a node in a cluster which I would l like to use the
>> attached fibre channel disks as storage. The ovirt version is 3.6 and
>> both hosts (engine and node) are running Scientific 7.2. When I select
>> the fibre channel option in the ovirt manager GUI from the drop down
>> menu in the storage section, it shows the target disks on the node
>> host (actually symlinks named as 34 character IDs which I assume are
>> created by multipathd, which point to the actual device in /dev such
>> as /dev/dm-3). 'multipath -ll' shows the devices up and running:
>>
>> 36f01faf000e5fd6407d255820b3d dm-1 DELL,MD36xxf
>> size=5.7T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
>> |-+- policy='service-time 0' prio=14 status=active
>> | `- 8:0:0:3 sdi 8:128 active ready running
>> `-+- policy='service-time 0' prio=9 status=enabled
>>   `- 1:0:0:3 sde 8:64  active ready running
>> 36f01faf000e5fd5b09fc52cc8a5b dm-2 DELL,MD36xxf
>> size=9.0T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
>> |-+- policy='service-time 0' prio=14 status=active
>> | `- 1:0:0:0 sdb 8:16  active ready running
>> `-+- policy='service-time 0' prio=9 status=enabled
>>   `- 8:0:0:0 sdf 8:80  active ready running
>> 36f01faf000e5fd64078752cd9374 dm-0 DELL,MD36xxf
>> size=9.0T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
>> |-+- policy='service-time 0' prio=14 status=active
>> | `- 8:0:0:1 sdg 8:96  active ready running
>> `-+- policy='service-time 0' prio=9 status=enabled
>>   `- 1:0:0:1 sdc 8:32  active ready running
>> 36f01faf000e5fd5b0a5a55820464 dm-3 DELL,MD36xxf
>> size=5.7T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
>> |-+- policy='service-time 0' prio=14 status=active
>> | `- 1:0:0:2 sdd 8:48  active ready running
>> `-+- policy='service-time 0' prio=9 status=enabled
>>   `- 8:0:0:2 sdh 8:112 active ready running
>>
>> When I select those IDs, it says 'The following LUNs are in use' (does
>> it perhaps mean by multipath?), and to 'Approve operation', which I
>> do, but it then fails with:
>>
>> "Error while executing action New SAN Storage Domain: Physical device
>> initialization failed. Please check that the device is empty and
>> accessible by the host."
>
> This usually means the devices has partitions table, and lvm would not 
> overwrite
> the device.
>
> You can check this by inspecting the devices with fdisk.
>
> If you are sure that the devices are not used, you can wipe the start
> of the devices
> like this:
>
> dd if=/dev/zero of=/dev/mapper/36f01faf000e5fd6407d255820b3d bs=1M count=1
>
> After that, you should be able to select the device for a storage domain.
>
> Nir
>
>>
>> The storage is not mounted and is not being used by any other host.
>> The error from the engine log is:
>>
>> -8<--
>>
>> 2016-03-05 21:50:47,326 INFO
>> [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) []
>> Stage: Termination
>> 2016-03-05 21:51:21,460 INFO
>> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand]
>> (default task-167) [] START, GetDeviceListVDSCommand(HostName =
>> kvm-ldn-02, GetDeviceListVDSCommandParameters:{runAsync='true',
>> hostId='d44741f9-00c9-45d2-a76d-9ea5bd2893e0', storageType='FCP',
>> checkStatus='true', lunIds='[36f01faf000e5fd6407d255820b3d]'}),
>> log id: 67073545
>> 2016-03-05 21:51:22,966 INFO
>> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand]
>> (default task-167) [] FINISH, GetDeviceListVDSCommand, return:
>> [LUNs:{id='36f01faf000e5fd6407d255820b3d', physicalVolumeId='',
>> volumeGroupId='', serial='SDELL_MD36xxf_3BD000S', lunMapping='3',
>> vendorId='DELL', productId='MD36xxf', lunConnections='[]',
>> deviceSize='5865', pvSize='0', vendorName='DELL',
>> pathsDictionary='[sde=true, sdi=true]', pathsCapacity='[sde=5865,
>> sdi=5865]', lunType='FCP', status='Used', diskId='null',
>> diskAlias='null', storageDomainId='null', storageDomainName='null'}],
>> log id: 67073545
>> 2016-03-05 21:51:26,917 INFO
>> [org.ovirt.engine.core.bll.storage.AddSANStorageDomainCommand]
>> (default task-172) [71343e04] Running command:
>> AddSANStorageDomainCommand internal: false. Entities affected :  ID:
>> aaa0----123456789aaa Type: SystemAction group
>> CREATE_STORAGE_DOMAIN with role type ADMIN
>> 2016-03-05 21:51:26,935 INFO
>> [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand]
>> (default task-172) [71343e04] START, CreateVGVDSCommand(HostName =
>> kvm-ldn-02, CreateVGVDSCommandParameters:{runAsync='true',
>> hostId='d44741f9-00c9-45d2-a76d-9ea5bd2893e0',
>> 

Re: [ovirt-users] set up of fibre channel storage problem

2016-03-05 Thread Nir Soffer
On Sun, Mar 6, 2016 at 12:36 AM, Campbell McLeay
 wrote:
> Hi,
>
> I've set up a node in a cluster which I would l like to use the
> attached fibre channel disks as storage. The ovirt version is 3.6 and
> both hosts (engine and node) are running Scientific 7.2. When I select
> the fibre channel option in the ovirt manager GUI from the drop down
> menu in the storage section, it shows the target disks on the node
> host (actually symlinks named as 34 character IDs which I assume are
> created by multipathd, which point to the actual device in /dev such
> as /dev/dm-3). 'multipath -ll' shows the devices up and running:
>
> 36f01faf000e5fd6407d255820b3d dm-1 DELL,MD36xxf
> size=5.7T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
> |-+- policy='service-time 0' prio=14 status=active
> | `- 8:0:0:3 sdi 8:128 active ready running
> `-+- policy='service-time 0' prio=9 status=enabled
>   `- 1:0:0:3 sde 8:64  active ready running
> 36f01faf000e5fd5b09fc52cc8a5b dm-2 DELL,MD36xxf
> size=9.0T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
> |-+- policy='service-time 0' prio=14 status=active
> | `- 1:0:0:0 sdb 8:16  active ready running
> `-+- policy='service-time 0' prio=9 status=enabled
>   `- 8:0:0:0 sdf 8:80  active ready running
> 36f01faf000e5fd64078752cd9374 dm-0 DELL,MD36xxf
> size=9.0T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
> |-+- policy='service-time 0' prio=14 status=active
> | `- 8:0:0:1 sdg 8:96  active ready running
> `-+- policy='service-time 0' prio=9 status=enabled
>   `- 1:0:0:1 sdc 8:32  active ready running
> 36f01faf000e5fd5b0a5a55820464 dm-3 DELL,MD36xxf
> size=5.7T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
> |-+- policy='service-time 0' prio=14 status=active
> | `- 1:0:0:2 sdd 8:48  active ready running
> `-+- policy='service-time 0' prio=9 status=enabled
>   `- 8:0:0:2 sdh 8:112 active ready running
>
> When I select those IDs, it says 'The following LUNs are in use' (does
> it perhaps mean by multipath?), and to 'Approve operation', which I
> do, but it then fails with:
>
> "Error while executing action New SAN Storage Domain: Physical device
> initialization failed. Please check that the device is empty and
> accessible by the host."

This usually means the devices has partitions table, and lvm would not overwrite
the device.

You can check this by inspecting the devices with fdisk.

If you are sure that the devices are not used, you can wipe the start
of the devices
like this:

dd if=/dev/zero of=/dev/mapper/36f01faf000e5fd6407d255820b3d bs=1M count=1

After that, you should be able to select the device for a storage domain.

Nir

>
> The storage is not mounted and is not being used by any other host.
> The error from the engine log is:
>
> -8<--
>
> 2016-03-05 21:50:47,326 INFO
> [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) []
> Stage: Termination
> 2016-03-05 21:51:21,460 INFO
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand]
> (default task-167) [] START, GetDeviceListVDSCommand(HostName =
> kvm-ldn-02, GetDeviceListVDSCommandParameters:{runAsync='true',
> hostId='d44741f9-00c9-45d2-a76d-9ea5bd2893e0', storageType='FCP',
> checkStatus='true', lunIds='[36f01faf000e5fd6407d255820b3d]'}),
> log id: 67073545
> 2016-03-05 21:51:22,966 INFO
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand]
> (default task-167) [] FINISH, GetDeviceListVDSCommand, return:
> [LUNs:{id='36f01faf000e5fd6407d255820b3d', physicalVolumeId='',
> volumeGroupId='', serial='SDELL_MD36xxf_3BD000S', lunMapping='3',
> vendorId='DELL', productId='MD36xxf', lunConnections='[]',
> deviceSize='5865', pvSize='0', vendorName='DELL',
> pathsDictionary='[sde=true, sdi=true]', pathsCapacity='[sde=5865,
> sdi=5865]', lunType='FCP', status='Used', diskId='null',
> diskAlias='null', storageDomainId='null', storageDomainName='null'}],
> log id: 67073545
> 2016-03-05 21:51:26,917 INFO
> [org.ovirt.engine.core.bll.storage.AddSANStorageDomainCommand]
> (default task-172) [71343e04] Running command:
> AddSANStorageDomainCommand internal: false. Entities affected :  ID:
> aaa0----123456789aaa Type: SystemAction group
> CREATE_STORAGE_DOMAIN with role type ADMIN
> 2016-03-05 21:51:26,935 INFO
> [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand]
> (default task-172) [71343e04] START, CreateVGVDSCommand(HostName =
> kvm-ldn-02, CreateVGVDSCommandParameters:{runAsync='true',
> hostId='d44741f9-00c9-45d2-a76d-9ea5bd2893e0',
> storageDomainId='65fd9f6a-5674-43b2-99d7-18741be5943d',
> deviceList='[36f01faf000e5fd6407d255820b3d]', force='true'}), log
> id: 45c41848
> 2016-03-05 21:51:28,069 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand]
> (default task-172) [71343e04] Failed in 'CreateVGVDS' method
> 2016-03-05 21:51:28,073 ERROR
> 

[ovirt-users] set up of fibre channel storage problem

2016-03-05 Thread Campbell McLeay
Hi,

I've set up a node in a cluster which I would l like to use the
attached fibre channel disks as storage. The ovirt version is 3.6 and
both hosts (engine and node) are running Scientific 7.2. When I select
the fibre channel option in the ovirt manager GUI from the drop down
menu in the storage section, it shows the target disks on the node
host (actually symlinks named as 34 character IDs which I assume are
created by multipathd, which point to the actual device in /dev such
as /dev/dm-3). 'multipath -ll' shows the devices up and running:

36f01faf000e5fd6407d255820b3d dm-1 DELL,MD36xxf
size=5.7T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
|-+- policy='service-time 0' prio=14 status=active
| `- 8:0:0:3 sdi 8:128 active ready running
`-+- policy='service-time 0' prio=9 status=enabled
  `- 1:0:0:3 sde 8:64  active ready running
36f01faf000e5fd5b09fc52cc8a5b dm-2 DELL,MD36xxf
size=9.0T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
|-+- policy='service-time 0' prio=14 status=active
| `- 1:0:0:0 sdb 8:16  active ready running
`-+- policy='service-time 0' prio=9 status=enabled
  `- 8:0:0:0 sdf 8:80  active ready running
36f01faf000e5fd64078752cd9374 dm-0 DELL,MD36xxf
size=9.0T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
|-+- policy='service-time 0' prio=14 status=active
| `- 8:0:0:1 sdg 8:96  active ready running
`-+- policy='service-time 0' prio=9 status=enabled
  `- 1:0:0:1 sdc 8:32  active ready running
36f01faf000e5fd5b0a5a55820464 dm-3 DELL,MD36xxf
size=5.7T features='2 pg_init_retries 50' hwhandler='1 rdac' wp=rw
|-+- policy='service-time 0' prio=14 status=active
| `- 1:0:0:2 sdd 8:48  active ready running
`-+- policy='service-time 0' prio=9 status=enabled
  `- 8:0:0:2 sdh 8:112 active ready running

When I select those IDs, it says 'The following LUNs are in use' (does
it perhaps mean by multipath?), and to 'Approve operation', which I
do, but it then fails with:

"Error while executing action New SAN Storage Domain: Physical device
initialization failed. Please check that the device is empty and
accessible by the host."

The storage is not mounted and is not being used by any other host.
The error from the engine log is:

-8<--

2016-03-05 21:50:47,326 INFO
[org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) []
Stage: Termination
2016-03-05 21:51:21,460 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand]
(default task-167) [] START, GetDeviceListVDSCommand(HostName =
kvm-ldn-02, GetDeviceListVDSCommandParameters:{runAsync='true',
hostId='d44741f9-00c9-45d2-a76d-9ea5bd2893e0', storageType='FCP',
checkStatus='true', lunIds='[36f01faf000e5fd6407d255820b3d]'}),
log id: 67073545
2016-03-05 21:51:22,966 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand]
(default task-167) [] FINISH, GetDeviceListVDSCommand, return:
[LUNs:{id='36f01faf000e5fd6407d255820b3d', physicalVolumeId='',
volumeGroupId='', serial='SDELL_MD36xxf_3BD000S', lunMapping='3',
vendorId='DELL', productId='MD36xxf', lunConnections='[]',
deviceSize='5865', pvSize='0', vendorName='DELL',
pathsDictionary='[sde=true, sdi=true]', pathsCapacity='[sde=5865,
sdi=5865]', lunType='FCP', status='Used', diskId='null',
diskAlias='null', storageDomainId='null', storageDomainName='null'}],
log id: 67073545
2016-03-05 21:51:26,917 INFO
[org.ovirt.engine.core.bll.storage.AddSANStorageDomainCommand]
(default task-172) [71343e04] Running command:
AddSANStorageDomainCommand internal: false. Entities affected :  ID:
aaa0----123456789aaa Type: SystemAction group
CREATE_STORAGE_DOMAIN with role type ADMIN
2016-03-05 21:51:26,935 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand]
(default task-172) [71343e04] START, CreateVGVDSCommand(HostName =
kvm-ldn-02, CreateVGVDSCommandParameters:{runAsync='true',
hostId='d44741f9-00c9-45d2-a76d-9ea5bd2893e0',
storageDomainId='65fd9f6a-5674-43b2-99d7-18741be5943d',
deviceList='[36f01faf000e5fd6407d255820b3d]', force='true'}), log
id: 45c41848
2016-03-05 21:51:28,069 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand]
(default task-172) [71343e04] Failed in 'CreateVGVDS' method
2016-03-05 21:51:28,073 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(default task-172) [71343e04] Correlation ID: null, Call Stack: null,
Custom Event ID: -1, Message: VDSM kvm-ldn-02 command failed: Failed
to initialize physical device:
("[u'/dev/mapper/36f01faf000e5fd6407d255820b3d']",)
2016-03-05 21:51:28,073 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand]
(default task-172) [71343e04] Command
'org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand' return
value 'OneUuidReturnForXmlRpc:{status='StatusForXmlRpc [code=601,
message=Failed to initialize physical device:
("[u'/dev/mapper/36f01faf000e5fd6407d255820b3d']",)]'}'


Re: [ovirt-users] virt-v2v converting multi-disk

2016-03-05 Thread Richard W.M. Jones
Hi - let's keep all replies on the mailing list so the information
benefits everyone.

On Sat, Mar 05, 2016 at 12:21:51PM -0600, Clint Boggio wrote:
> 2. Ran your tool on the disk image with a destination of "." And
> your tool put it directly in without having to use network
> bandwidth.

The tool in this case is "import-to-ovirt", I guess (since they
already run on KVM it must be)?

> This procedure works the best as the legacy KVM environment is
> Ubuntu based and permissions problems keep me from massaging the
> disk images while they live in the firm grip of sudo hell that is
> Ubuntu.

> How will your import tool react to my procedure, in terms of the
> three disk images ?

import-to-ovirt can handle multiple disk images.  If the disk images
are part of a single guest, then you should specify them all in one
command line run, ie:

  sudo ./import-to-ovirt.pl disk1 disk2 disk3 mountpoint

If the disk images are independent guests then you must run
import-to-ovirt three times.

> Will I have to run it on all three images ?
>
> Will the tool "see" that the second and third images are siblings of
> the main first image I import and put them in the same place,
> perhaps appending them to each other as one big disk ?

No, you need to specify it by running import-to-ovirt once per guest.

> Or will I have to run the tool on the first disk, then somehow add
> the second two disks to the newly imported machine through the GUI ?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Multi-node cluster with local storage

2016-03-05 Thread Christophe TREFOIS
Hi Pavel,

We setup an extra NFS on one of the hosts, and setup as hosted-engine.

That way, it works for us.

Using Gluster 3-way with CTDB was our initial plan, but we moved away from it 
as it seems unnecassiry complicated.

Kind reagrds,

—
Christophe

Dr Christophe Trefois, Dipl.-Ing.
Technical Specialist / Post-Doc

UNIVERSITÉ DU LUXEMBOURG

LUXEMBOURG CENTRE FOR SYSTEMS BIOMEDICINE
Campus Belval | House of Biomedicine
6, avenue du Swing
L-4367 Belvaux
T: +352 46 66 44 6124
F: +352 46 66 44 6949
http://www.uni.lu/lcsb

[Facebook]  [Twitter] 
   [Google Plus] 
   [Linkedin] 
   [skype] 



This message is confidential and may contain privileged information.
It is intended for the named recipient only.
If you receive it in error please notify me and permanently delete the original 
message and any copies.




On 04 Mar 2016, at 07:46, Pavel Gashev 
> wrote:


Christophe,

Where is the engine running? Did you use one of NFSs for hosted-engine?

Thank you


From: Christophe TREFOIS 
>
Sent: Mar 4, 2016 2:09 AM
To: Pavel Gashev; users@ovirt.org
Subject: RE: Multi-node cluster with local storage

Hi,

We have all nodes like you (5 currently), and have them setup as NFS instead of 
local storage.

You have slight overhead because it's NFS, but not so much, and it allows you 
to migrate VMs and disks, even if it's a manual disk, eg no HA will be possible.

So yeah, to me, it's a good option given your setup.

Best,

> -Original Message-
> From: users-boun...@ovirt.org 
> [mailto:users-boun...@ovirt.org] On Behalf
> Of Pavel Gashev
> Sent: jeudi 3 mars 2016 21:44
> To: users@ovirt.org
> Subject: [ovirt-users] Multi-node cluster with local storage
>
> Hello,
>
> I'd like to ask community, what is the best way to use oVirt in the following
> hardware configuration:
>
> Three servers connected 1GB network. Each server - 32 threads, 256GB RAM,
> 4TB RAID.
>
> Please note that a local storage and an 1GB network is a typical hardware
> configuration for almost any dedicated hosting.
>
> Unfortunately, oVirt doesn't support multi-node local storage clusters.
> And Gluster/CEPH doesn't work well over 1G network. It looks like that the
> only way to use oVirt in a three-node cluster is to share local storages over
> NFS. At least it makes possible to migrate VMs and move disks among
> hardware nodes.
>
> Does somebody have such setup?
>
> Thanks
> ___
> 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] Promiscuous Mode

2016-03-05 Thread combuster

I haven't tried it, but here is a guide on how to add a hook to ovirt-node:

http://www.ovirt.org/develop/developer-guide/vdsm/hook/qemucmdline/

On 03/05/2016 09:48 PM, Christopher Young wrote:

Question:

There is no yum functionality on ovirt-node/RHEV-H, so how does one go
about this in that scenario?

On Sat, Mar 5, 2016 at 3:32 PM, combuster  wrote:

It's great to know that it's working.

Best of luck Clint.


On 03/05/2016 09:09 PM, cl...@theboggios.com wrote:

On 2016-03-05 13:34, combuster wrote:

Correct procedure would be:

1. On each of your ovirt nodes run:

yum install vdsm-hook-macspoof

2. On the engine run:

sudo engine-config -s "UserDefinedVMProperties=macspoof=^(true|false)$"

3. Edit OpenVPN virtual machine settings and add a custom property
containing macspoof keyword and set the value "true" for it.

If you want to remove filtering for a single interface, then replace
steps 2 and 3 as outlined in the README.

Kind regards,

Ivan

On 03/05/2016 08:21 PM, cl...@theboggios.com wrote:

On 2016-03-05 13:13, combuster wrote:

Ignore the link (minor accident while pasting). Yum will download the
appropriate one from the repos.

On 03/05/2016 08:09 PM, combuster wrote:


Just the hook rpm (vdsm-hook-macspoof [1]).

Ivan

On 03/05/2016 08:02 PM, Christopher Young wrote:

I had a related question on this.

When it comes to ovirt-node or rhev-h, is there anything required to
be installed on the hypervisor hosts themselves?

Thanks,

Chris
On Mar 5, 2016 1:47 PM, "combuster"  wrote:
Hi Clint, you might want to check the macspoof hook features here:

https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof [2]

This should override arp/spoofing filtering, that might be the
cause of your issues with OpenVPN setup (first guess).

On 03/05/2016 07:30 PM, Clint Boggio wrote:
I am deploying an OpenVPN server in my OVirt environment and I've
come to a dead stop with the developer support on a topic related to
OVirt configuration.

The developer wants me to put the VM's underlying NIC into
promiscuous mode.

I've seen this in a VMware environment and I know what they are
asking me to do, and I'm wondering if there is a clear way to do
this in my OVirt environment.

I found "port mirroring" but no "promiscuous mode"

Cheers and thank you !
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users [3]

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




Links:
--
[1]

http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/noarch/vdsm-hook-macspoof-4.16.10-0.el7.noarch.rpm
[2] https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof
[3] http://lists.ovirt.org/mailman/listinfo/users



Thank you very much. Reading the README it appears that there is a
series of commands to run on the engine to make the options to remove
filtering from the vNIC, or the whole VM available. What purpose is filled
by the two scripts that are included in the git, and where do I put them so
that they will be utilized if that's even necessary ?



Ivan, because of YOU, I get me weekend back ! It works and OVPN is up and
running.

Thank you SO MUCH !


___
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] Promiscuous Mode

2016-03-05 Thread Christopher Young
Question:

There is no yum functionality on ovirt-node/RHEV-H, so how does one go
about this in that scenario?

On Sat, Mar 5, 2016 at 3:32 PM, combuster  wrote:
> It's great to know that it's working.
>
> Best of luck Clint.
>
>
> On 03/05/2016 09:09 PM, cl...@theboggios.com wrote:
>>
>> On 2016-03-05 13:34, combuster wrote:
>>>
>>> Correct procedure would be:
>>>
>>> 1. On each of your ovirt nodes run:
>>>
>>> yum install vdsm-hook-macspoof
>>>
>>> 2. On the engine run:
>>>
>>> sudo engine-config -s "UserDefinedVMProperties=macspoof=^(true|false)$"
>>>
>>> 3. Edit OpenVPN virtual machine settings and add a custom property
>>> containing macspoof keyword and set the value "true" for it.
>>>
>>> If you want to remove filtering for a single interface, then replace
>>> steps 2 and 3 as outlined in the README.
>>>
>>> Kind regards,
>>>
>>> Ivan
>>>
>>> On 03/05/2016 08:21 PM, cl...@theboggios.com wrote:

 On 2016-03-05 13:13, combuster wrote:
>
> Ignore the link (minor accident while pasting). Yum will download the
> appropriate one from the repos.
>
> On 03/05/2016 08:09 PM, combuster wrote:
>
>> Just the hook rpm (vdsm-hook-macspoof [1]).
>>
>> Ivan
>>
>> On 03/05/2016 08:02 PM, Christopher Young wrote:
>>
>> I had a related question on this.
>>
>> When it comes to ovirt-node or rhev-h, is there anything required to
>> be installed on the hypervisor hosts themselves?
>>
>> Thanks,
>>
>> Chris
>> On Mar 5, 2016 1:47 PM, "combuster"  wrote:
>> Hi Clint, you might want to check the macspoof hook features here:
>>
>> https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof [2]
>>
>> This should override arp/spoofing filtering, that might be the
>> cause of your issues with OpenVPN setup (first guess).
>>
>> On 03/05/2016 07:30 PM, Clint Boggio wrote:
>> I am deploying an OpenVPN server in my OVirt environment and I've
>> come to a dead stop with the developer support on a topic related to
>> OVirt configuration.
>>
>> The developer wants me to put the VM's underlying NIC into
>> promiscuous mode.
>>
>> I've seen this in a VMware environment and I know what they are
>> asking me to do, and I'm wondering if there is a clear way to do
>> this in my OVirt environment.
>>
>> I found "port mirroring" but no "promiscuous mode"
>>
>> Cheers and thank you !
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users [3]
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users [3]
>
>
>
>
> Links:
> --
> [1]
>
> http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/noarch/vdsm-hook-macspoof-4.16.10-0.el7.noarch.rpm
> [2] https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof
> [3] http://lists.ovirt.org/mailman/listinfo/users



 Thank you very much. Reading the README it appears that there is a
 series of commands to run on the engine to make the options to remove
 filtering from the vNIC, or the whole VM available. What purpose is filled
 by the two scripts that are included in the git, and where do I put them so
 that they will be utilized if that's even necessary ?
>>
>>
>>
>> Ivan, because of YOU, I get me weekend back ! It works and OVPN is up and
>> running.
>>
>> Thank you SO MUCH !
>
>
> ___
> 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] Promiscuous Mode

2016-03-05 Thread combuster

It's great to know that it's working.

Best of luck Clint.

On 03/05/2016 09:09 PM, cl...@theboggios.com wrote:

On 2016-03-05 13:34, combuster wrote:

Correct procedure would be:

1. On each of your ovirt nodes run:

yum install vdsm-hook-macspoof

2. On the engine run:

sudo engine-config -s "UserDefinedVMProperties=macspoof=^(true|false)$"

3. Edit OpenVPN virtual machine settings and add a custom property
containing macspoof keyword and set the value "true" for it.

If you want to remove filtering for a single interface, then replace
steps 2 and 3 as outlined in the README.

Kind regards,

Ivan

On 03/05/2016 08:21 PM, cl...@theboggios.com wrote:

On 2016-03-05 13:13, combuster wrote:

Ignore the link (minor accident while pasting). Yum will download the
appropriate one from the repos.

On 03/05/2016 08:09 PM, combuster wrote:


Just the hook rpm (vdsm-hook-macspoof [1]).

Ivan

On 03/05/2016 08:02 PM, Christopher Young wrote:

I had a related question on this.

When it comes to ovirt-node or rhev-h, is there anything required to
be installed on the hypervisor hosts themselves?

Thanks,

Chris
On Mar 5, 2016 1:47 PM, "combuster"  wrote:
Hi Clint, you might want to check the macspoof hook features here:

https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof [2]

This should override arp/spoofing filtering, that might be the
cause of your issues with OpenVPN setup (first guess).

On 03/05/2016 07:30 PM, Clint Boggio wrote:
I am deploying an OpenVPN server in my OVirt environment and I've
come to a dead stop with the developer support on a topic related to
OVirt configuration.

The developer wants me to put the VM's underlying NIC into
promiscuous mode.

I've seen this in a VMware environment and I know what they are
asking me to do, and I'm wondering if there is a clear way to do
this in my OVirt environment.

I found "port mirroring" but no "promiscuous mode"

Cheers and thank you !
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users [3]

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




Links:
--
[1]
http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/noarch/vdsm-hook-macspoof-4.16.10-0.el7.noarch.rpm 
[2] https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof

[3] http://lists.ovirt.org/mailman/listinfo/users



Thank you very much. Reading the README it appears that there is a 
series of commands to run on the engine to make the options to 
remove filtering from the vNIC, or the whole VM available. What 
purpose is filled by the two scripts that are included in the git, 
and where do I put them so that they will be utilized if that's even 
necessary ?



Ivan, because of YOU, I get me weekend back ! It works and OVPN is up 
and running.


Thank you SO MUCH !


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


Re: [ovirt-users] Promiscuous Mode

2016-03-05 Thread clint

On 2016-03-05 13:34, combuster wrote:

Correct procedure would be:

1. On each of your ovirt nodes run:

yum install vdsm-hook-macspoof

2. On the engine run:

sudo engine-config -s "UserDefinedVMProperties=macspoof=^(true|false)$"

3. Edit OpenVPN virtual machine settings and add a custom property
containing macspoof keyword and set the value "true" for it.

If you want to remove filtering for a single interface, then replace
steps 2 and 3 as outlined in the README.

Kind regards,

Ivan

On 03/05/2016 08:21 PM, cl...@theboggios.com wrote:

On 2016-03-05 13:13, combuster wrote:

Ignore the link (minor accident while pasting). Yum will download the
appropriate one from the repos.

On 03/05/2016 08:09 PM, combuster wrote:


Just the hook rpm (vdsm-hook-macspoof [1]).

Ivan

On 03/05/2016 08:02 PM, Christopher Young wrote:

I had a related question on this.

When it comes to ovirt-node or rhev-h, is there anything required to
be installed on the hypervisor hosts themselves?

Thanks,

Chris
On Mar 5, 2016 1:47 PM, "combuster"  wrote:
Hi Clint, you might want to check the macspoof hook features here:

https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof [2]

This should override arp/spoofing filtering, that might be the
cause of your issues with OpenVPN setup (first guess).

On 03/05/2016 07:30 PM, Clint Boggio wrote:
I am deploying an OpenVPN server in my OVirt environment and I've
come to a dead stop with the developer support on a topic related to
OVirt configuration.

The developer wants me to put the VM's underlying NIC into
promiscuous mode.

I've seen this in a VMware environment and I know what they are
asking me to do, and I'm wondering if there is a clear way to do
this in my OVirt environment.

I found "port mirroring" but no "promiscuous mode"

Cheers and thank you !
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users [3]

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




Links:
--
[1]
http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/noarch/vdsm-hook-macspoof-4.16.10-0.el7.noarch.rpm 
[2] https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof

[3] http://lists.ovirt.org/mailman/listinfo/users



Thank you very much. Reading the README it appears that there is a 
series of commands to run on the engine to make the options to remove 
filtering from the vNIC, or the whole VM available. What purpose is 
filled by the two scripts that are included in the git, and where do I 
put them so that they will be utilized if that's even necessary ?



Ivan, because of YOU, I get me weekend back ! It works and OVPN is up 
and running.


Thank you SO MUCH !
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Promiscuous Mode

2016-03-05 Thread combuster

Correct procedure would be:

1. On each of your ovirt nodes run:

yum install vdsm-hook-macspoof

2. On the engine run:

sudo engine-config -s "UserDefinedVMProperties=macspoof=^(true|false)$"

3. Edit OpenVPN virtual machine settings and add a custom property 
containing macspoof keyword and set the value "true" for it.


If you want to remove filtering for a single interface, then replace 
steps 2 and 3 as outlined in the README.


Kind regards,

Ivan

On 03/05/2016 08:21 PM, cl...@theboggios.com wrote:

On 2016-03-05 13:13, combuster wrote:

Ignore the link (minor accident while pasting). Yum will download the
appropriate one from the repos.

On 03/05/2016 08:09 PM, combuster wrote:


Just the hook rpm (vdsm-hook-macspoof [1]).

Ivan

On 03/05/2016 08:02 PM, Christopher Young wrote:

I had a related question on this.

When it comes to ovirt-node or rhev-h, is there anything required to
be installed on the hypervisor hosts themselves?

Thanks,

Chris
On Mar 5, 2016 1:47 PM, "combuster"  wrote:
Hi Clint, you might want to check the macspoof hook features here:

https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof [2]

This should override arp/spoofing filtering, that might be the
cause of your issues with OpenVPN setup (first guess).

On 03/05/2016 07:30 PM, Clint Boggio wrote:
I am deploying an OpenVPN server in my OVirt environment and I've
come to a dead stop with the developer support on a topic related to
OVirt configuration.

The developer wants me to put the VM's underlying NIC into
promiscuous mode.

I've seen this in a VMware environment and I know what they are
asking me to do, and I'm wondering if there is a clear way to do
this in my OVirt environment.

I found "port mirroring" but no "promiscuous mode"

Cheers and thank you !
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users [3]

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




Links:
--
[1]
http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/noarch/vdsm-hook-macspoof-4.16.10-0.el7.noarch.rpm 


[2] https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof
[3] http://lists.ovirt.org/mailman/listinfo/users



Thank you very much. Reading the README it appears that there is a 
series of commands to run on the engine to make the options to remove 
filtering from the vNIC, or the whole VM available. What purpose is 
filled by the two scripts that are included in the git, and where do I 
put them so that they will be utilized if that's even necessary ?


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


[ovirt-users] Tracking asynchronous tasks results in Python SDK

2016-03-05 Thread James Michels
Greetings

How can I track asynchronous tasks with python sdk? For instance, I want to
copy a disk so I use:

   dcdisk = api.disks.get(id='...')
   act = params.Action(storage_domain=api.storagedomains.get(name='...'))
   action = dcdisk.copy(act)

I get a params.Action object. Now how can I know which ID has the new
copied disk?

Thank you

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


Re: [ovirt-users] Promiscuous Mode

2016-03-05 Thread clint

On 2016-03-05 13:13, combuster wrote:

Ignore the link (minor accident while pasting). Yum will download the
appropriate one from the repos.

On 03/05/2016 08:09 PM, combuster wrote:


Just the hook rpm (vdsm-hook-macspoof [1]).

Ivan

On 03/05/2016 08:02 PM, Christopher Young wrote:

I had a related question on this.

When it comes to ovirt-node or rhev-h, is there anything required to
be installed on the hypervisor hosts themselves?

Thanks,

Chris
On Mar 5, 2016 1:47 PM, "combuster"  wrote:
Hi Clint, you might want to check the macspoof hook features here:

https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof [2]

This should override arp/spoofing filtering, that might be the
cause of your issues with OpenVPN setup (first guess).

On 03/05/2016 07:30 PM, Clint Boggio wrote:
I am deploying an OpenVPN server in my OVirt environment and I've
come to a dead stop with the developer support on a topic related to
OVirt configuration.

The developer wants me to put the VM's underlying NIC into
promiscuous mode.

I've seen this in a VMware environment and I know what they are
asking me to do, and I'm wondering if there is a clear way to do
this in my OVirt environment.

I found "port mirroring" but no "promiscuous mode"

Cheers and thank you !
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users [3]

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




Links:
--
[1]
http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/noarch/vdsm-hook-macspoof-4.16.10-0.el7.noarch.rpm
[2] https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof
[3] http://lists.ovirt.org/mailman/listinfo/users



Thank you very much. Reading the README it appears that there is a 
series of commands to run on the engine to make the options to remove 
filtering from the vNIC, or the whole VM available. What purpose is 
filled by the two scripts that are included in the git, and where do I 
put them so that they will be utilized if that's even necessary ?

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


Re: [ovirt-users] Promiscuous Mode

2016-03-05 Thread combuster
Ignore the link (minor accident while pasting). Yum will download the 
appropriate one from the repos.


On 03/05/2016 08:09 PM, combuster wrote:
Just the hook rpm (vdsm-hook-macspoof 
).


Ivan

On 03/05/2016 08:02 PM, Christopher Young wrote:


I had a related question on this.

When it comes to ovirt-node or rhev-h, is there anything required to 
be installed on the hypervisor hosts themselves?


Thanks,

Chris

On Mar 5, 2016 1:47 PM, "combuster"  wrote:

Hi Clint, you might want to check the macspoof hook features here:

https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof

This should override arp/spoofing filtering, that might be the
cause of your issues with OpenVPN setup (first guess).

On 03/05/2016 07:30 PM, Clint Boggio wrote:

I am deploying an OpenVPN server in my OVirt environment and
I've come to a dead stop with the developer support on a
topic related to OVirt configuration.

The developer wants me to put the VM's underlying NIC into
promiscuous mode.

I've seen this in a VMware environment and I know what they
are asking me to do, and I'm wondering if there is a clear
way to do this in my OVirt environment.

I found "port mirroring" but no "promiscuous mode"

Cheers and thank you !
___
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] Promiscuous Mode

2016-03-05 Thread combuster
Just the hook rpm (vdsm-hook-macspoof 
).


Ivan

On 03/05/2016 08:02 PM, Christopher Young wrote:


I had a related question on this.

When it comes to ovirt-node or rhev-h, is there anything required to 
be installed on the hypervisor hosts themselves?


Thanks,

Chris

On Mar 5, 2016 1:47 PM, "combuster" > wrote:


Hi Clint, you might want to check the macspoof hook features here:

https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof

This should override arp/spoofing filtering, that might be the
cause of your issues with OpenVPN setup (first guess).

On 03/05/2016 07:30 PM, Clint Boggio wrote:

I am deploying an OpenVPN server in my OVirt environment and
I've come to a dead stop with the developer support on a topic
related to OVirt configuration.

The developer wants me to put the VM's underlying NIC into
promiscuous mode.

I've seen this in a VMware environment and I know what they
are asking me to do, and I'm wondering if there is a clear way
to do this in my OVirt environment.

I found "port mirroring" but no "promiscuous mode"

Cheers and thank you !
___
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] Promiscuous Mode

2016-03-05 Thread Christopher Young
I had a related question on this.

When it comes to ovirt-node or rhev-h, is there anything required to be
installed on the hypervisor hosts themselves?

Thanks,

Chris
On Mar 5, 2016 1:47 PM, "combuster"  wrote:

> Hi Clint, you might want to check the macspoof hook features here:
>
> https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof
>
> This should override arp/spoofing filtering, that might be the cause of
> your issues with OpenVPN setup (first guess).
>
> On 03/05/2016 07:30 PM, Clint Boggio wrote:
>
>> I am deploying an OpenVPN server in my OVirt environment and I've come to
>> a dead stop with the developer support on a topic related to OVirt
>> configuration.
>>
>> The developer wants me to put the VM's underlying NIC into promiscuous
>> mode.
>>
>> I've seen this in a VMware environment and I know what they are asking me
>> to do, and I'm wondering if there is a clear way to do this in my OVirt
>> environment.
>>
>> I found "port mirroring" but no "promiscuous mode"
>>
>> Cheers and thank you !
>> ___
>> 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] Promiscuous Mode

2016-03-05 Thread combuster

Hi Clint, you might want to check the macspoof hook features here:

https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof

This should override arp/spoofing filtering, that might be the cause of 
your issues with OpenVPN setup (first guess).


On 03/05/2016 07:30 PM, Clint Boggio wrote:

I am deploying an OpenVPN server in my OVirt environment and I've come to a 
dead stop with the developer support on a topic related to OVirt configuration.

The developer wants me to put the VM's underlying NIC into promiscuous mode.

I've seen this in a VMware environment and I know what they are asking me to 
do, and I'm wondering if there is a clear way to do this in my OVirt 
environment.

I found "port mirroring" but no "promiscuous mode"

Cheers and thank you !
___
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] Promiscuous Mode

2016-03-05 Thread Clint Boggio
I am deploying an OpenVPN server in my OVirt environment and I've come to a 
dead stop with the developer support on a topic related to OVirt configuration.

The developer wants me to put the VM's underlying NIC into promiscuous mode.

I've seen this in a VMware environment and I know what they are asking me to 
do, and I'm wondering if there is a clear way to do this in my OVirt 
environment.

I found "port mirroring" but no "promiscuous mode"

Cheers and thank you !
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Command 'org.ovirt.engine.core.bll.hostdev.RefreshHostDevicesCommand' failed: Failed managing transaction

2016-03-05 Thread Martin Perina
Hi,

please submit a bug for it and attach complete engine and vdsm logs.

Thanks

Martin Perina

- Original Message -
> From: ov...@timmi.org
> To: users@ovirt.org
> Sent: Friday, March 4, 2016 9:47:24 PM
> Subject: [ovirt-users] Command 
> 'org.ovirt.engine.core.bll.hostdev.RefreshHostDevicesCommand' failed: Failed 
> managing
> transaction
> 
> Hi oVirt List,
> 
> I have a oVirt Setup which includes two host. The first host is also
> running the oVirt engine.
> Today I installed a couple VMs on the second host from USB without any
> issue. Now I tried to perform this also on the first host but it looks
> like the USB is not accessible.
> 
> I'm able to add the device to the host but I can see the following
> message in the engine.log which does not look correct.
> 
> I'm running oVirt 3.6.3
> 
> Best regards
> Christoph
> 
> 
> 2016-03-04 21:42:13,037 ERROR
> [org.ovirt.engine.core.bll.hostdev.RefreshHostDevicesCommand]
> (org.ovirt.thread.pool-8-thread-17) [4307f9bc] Command
> 'org.ovirt.engine.core.bll.hostdev.RefreshHostDevicesCommand' failed:
> Failed managing transaction
> 2016-03-04 21:42:13,037 ERROR
> [org.ovirt.engine.core.bll.hostdev.RefreshHostDevicesCommand]
> (org.ovirt.thread.pool-8-thread-17) [4307f9bc] Exception:
> java.lang.RuntimeException: Failed managing transaction
>  at
> org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:232)
> [utils.jar:]
>  at
> org.ovirt.engine.core.bll.hostdev.RefreshHostDevicesCommand.executeCommand(RefreshHostDevicesCommand.java:121)
> [bll.jar:]
>  at
> org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1215)
> [bll.jar:]
>  at
> org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1359)
> [bll.jar:]
>  at
> org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1982)
> [bll.jar:]
>  at
> org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:174)
> [utils.jar:]
>  at
> org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:116)
> [utils.jar:]
>  at
> org.ovirt.engine.core.bll.CommandBase.execute(CommandBase.java:1396)
> [bll.jar:]
>  at
> org.ovirt.engine.core.bll.CommandBase.executeAction(CommandBase.java:378)
> [bll.jar:]
>  at org.ovirt.engine.core.bll.Backend.runAction(Backend.java:480)
> [bll.jar:]
>  at
> org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:462) [bll.jar:]
>  at
> org.ovirt.engine.core.bll.Backend.runInternalAction(Backend.java:672)
> [bll.jar:]
>  at sun.reflect.GeneratedMethodAccessor345.invoke(Unknown Source)
> [:1.8.0_71]
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [rt.jar:1.8.0_71]
>  at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_71]
>  at
> org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
>  at
> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
>  at
> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)
> [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
>  at
> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)
> [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
>  at
> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
> [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
>  at
> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
>  at
> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
> [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
>  at
> 

Re: [ovirt-users] Storage migration: Preallocation forced on destination

2016-03-05 Thread Nir Soffer
On Sat, Mar 5, 2016 at 10:52 AM, Pavel Gashev  wrote:
> On 05/03/16 02:23, "Nir Soffer"  wrote:
>
>>On Sat, Mar 5, 2016 at 12:19 AM, Pavel Gashev  wrote:
>>> I think it's hard to calculate the additional space for cow format without 
>>> analysing raw image. It's better to allocate enough space, and then 
>>> decrease it after qemu-img convert.
>>
>>We use 10% as a rough estimate for additional space when converting
>>from raw to qcow format. Sure it will waste some space, but it is good
>>enough.
>>
>>How to you plan to check the used size on the destination lv?
>
> "qemu-img check" reports image end offset. Also it has --output=json option.
>
> # qemu-img check --output=json 
> /rhev/data-center/0002-0002-0002-0002-02db/2e9250bd-5cf3-40c2-8e85-1e31d4c4d779/images/bc4c68be-0bb0-436a-b18d-014d9ae4e580/9b63d90e-cb1e-4a30-a0b6-0b80fa201f8d
> {
> "image-end-offset": 14648672256,
> "total-clusters": 524288,
> "check-errors": 0,
> "allocated-clusters": 223439,
> "filename": 
> "/rhev/data-center/0002-0002-0002-0002-02db/2e9250bd-5cf3-40c2-8e85-1e31d4c4d779/images/bc4c68be-0bb0-436a-b18d-014d9ae4e580/9b63d90e-cb1e-4a30-a0b6-0b80fa201f8d",
> "format": "qcow2",
> "fragmented-clusters": 6
> }

Right, actually we are already doing this after cold merge,
- 
https://github.com/oVirt/vdsm/blob/d87d031ea52eb76aab29cd0c55d7f3b5f0743ccd/vdsm/storage/blockVolume.py#L581
- 
https://github.com/oVirt/vdsm/blob/d87d031ea52eb76aab29cd0c55d7f3b5f0743ccd/vdsm/storage/image.py#L1262

We should start doing this after moving and copying thin disks, and after
live mege.

With live merge, we make sure that the base volume is large enough to
include all data from the top volume. This does overallocation and having
automatic shrinking after that can be nice.

>>> Also please consider qcow compat=1.1 as default disk format both for file 
>>> and block storages.
>>
>>This will make your disk incompatible with old ovirt versions on el6.
>>In storage domain format v3
>>we are using comapt=0.10.
>>
>>We plan to move to compat=1.1 in 4.0.
>
> Too long to wait :) Currently it's hardcoded. It would be great, if it was 
> configurable via /etc/vdsm/vdsm.conf at least. It would allow early adopt 
> compat=1.1 in el7 environments.

Good idea, If you file a bug and send a patch it will be available in
the next release.

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


Re: [ovirt-users] Storage migration: Preallocation forced on destination

2016-03-05 Thread Pavel Gashev
On 05/03/16 02:23, "Nir Soffer"  wrote:

>On Sat, Mar 5, 2016 at 12:19 AM, Pavel Gashev  wrote:
>> I think it's hard to calculate the additional space for cow format without 
>> analysing raw image. It's better to allocate enough space, and then decrease 
>> it after qemu-img convert.
>
>We use 10% as a rough estimate for additional space when converting
>from raw to qcow format. Sure it will waste some space, but it is good
>enough.
>
>How to you plan to check the used size on the destination lv?

"qemu-img check" reports image end offset. Also it has --output=json option.

# qemu-img check --output=json 
/rhev/data-center/0002-0002-0002-0002-02db/2e9250bd-5cf3-40c2-8e85-1e31d4c4d779/images/bc4c68be-0bb0-436a-b18d-014d9ae4e580/9b63d90e-cb1e-4a30-a0b6-0b80fa201f8d
 
{
"image-end-offset": 14648672256,
"total-clusters": 524288,
"check-errors": 0,
"allocated-clusters": 223439,
"filename": 
"/rhev/data-center/0002-0002-0002-0002-02db/2e9250bd-5cf3-40c2-8e85-1e31d4c4d779/images/bc4c68be-0bb0-436a-b18d-014d9ae4e580/9b63d90e-cb1e-4a30-a0b6-0b80fa201f8d",
"format": "qcow2",
"fragmented-clusters": 6
}


>> Please note that while disk moving keeps disk format, disk copying changes 
>> format. So when you copy a thin provisioned disk to iSCSI storage it's being 
>> converted to cow. The issue is that size of converted lv still looks like 
>> preallocated. You can decrease it manually via lvchange, or you can move it 
>> to a file based storage and back. Moving disks keeps disk format, but fixes 
>> its size.
>
>Yes, this seems to be the way to work around this issue currently:
>1. Copy to the disk to block storage - will convert it to qcow format
>on preallocated lv
>2. Move disk from block storage to file storage
>3. Move disk back to block storage

Yes. This is how I've moved my stuff from M$ NFS to iSCSI. Note this works well 
since 3.6.3 only, see https://bugzilla.redhat.com/1304405

>> Also please consider qcow compat=1.1 as default disk format both for file 
>> and block storages.
>
>This will make your disk incompatible with old ovirt versions on el6.
>In storage domain format v3
>we are using comapt=0.10.
>
>We plan to move to compat=1.1 in 4.0.

Too long to wait :) Currently it's hardcoded. It would be great, if it was 
configurable via /etc/vdsm/vdsm.conf at least. It would allow early adopt 
compat=1.1 in el7 environments.



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