Re: [ovirt-users] trying to test engine metrics, using ovirt-engine-metrics package

2017-06-03 Thread Yedidyah Bar David
On Sat, Jun 3, 2017 at 12:05 AM, Sergey Kulikov  wrote:
>
> Hi! I'm trying to deploy metrics in my ovirt test enviroment, configured 
> fluentd on dst host, configured
> /etc/ovirt-engine-metrics/config.yml , after that trying to execute:
> /usr/share/ovirt-engine-metrics/setup/ansible/configure_ovirt_hosts_for_metrics.sh
> 4 host are configured correctly (This is Centos 7.3 Hypervisors)
> 1 host fails (this is the only ovirt-node host)
> Error:
> fatal: []: FAILED! => {"changed": false, "failed": 
> true, "msg": "OSError: [Errno 0] Error\n"}
> After some digging into metrics ansible scripts I've found out, that it's 
> setting port permissions in selinux:
>
> on ok host it looks like:
> # semanage port -l | grep collectd_port_t
> collectd_port_tudp  8125, 25826
>
> on host with errors:
> # semanage port -l | grep collectd_port_t
> collectd_port_tudp  25826
>
> I've tried to set it manually with no luck:
> # semanage port -a -t collectd_port_t -p udp 8125
> libsemanage.semanage_module_info_set_name: Name 200 is invalid.
> OSError: Error
>
> maybe something is wrong in Ovirt-Node selinux, or it should be preconfigured 
> in node image?
> Is there anything I can try to fix it?

Not sure, adding Ryan.

I suggest to also open a bug about this and attach relevant logs.

Thanks and best regards,
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Building oVirt engine on Debian

2017-06-03 Thread Yedidyah Bar David
On Fri, Jun 2, 2017 at 7:07 AM, Leni Kadali Mutungi
 wrote:
> On 6/1/17, Leni Kadali Mutungi  wrote:
>> On 6/1/17, Yedidyah Bar David  wrote:
>>> The message:
>>>
>>> No handlers could be found for logger
>>> "ovirt.engine.ovirt_engine.configfile"
>>>
>>> is ugly, but harmless. It almost always appears in the setup log file.
>>> You are welcome to open a bug about it, though.
>>>
>>> Not sure what's the problem with engine-setup.
>>>
>>> Can you please provide the full output?
>>>
>>> Does it create a log file? Can you check/share that one too?
>>>
>> Apologies I was unable to re-run the engine-setup. So here is the full
>> output:
>> herabus@trojan:~$ ovirt_engine/bin/engine-setup
>> [ INFO  ] Stage: Initializing
>>   Setup was run under unprivileged user this will produce
>> development installation do you wish to proceed? (Yes, No) [No]: Yes
>> [ INFO  ] Stage: Environment setup
>>   Configuration files: []
>>   Log file:
>> /home/user/ovirt_engine/var/log/ovirt-engine/setup/ovirt-engine-setup-20170601195203-2d7fr3.log
>>   Version: otopi-1.7.0_master ()
>> [ INFO  ] Stage: Environment packages setup
>> [ INFO  ] Stage: Programs detection
>> [ INFO  ] Stage: Environment setup
>> [ INFO  ] Stage: Environment customization
>>
>>   --== PRODUCT OPTIONS ==--
>>
>>   Configure Engine on this host (Yes, No) [Yes]: Yes
>>   Configure WebSocket Proxy on this host (Yes, No) [Yes]: Yes
>>   Configure VM Console Proxy on this host (Yes, No) [Yes]: Yes
>>   Install ovirt-provider-ovn(Yes, No) [Yes]?:Yes
>>
>>   --== NETWORK CONFIGURATION ==--
>>
>>   Host fully qualified DNS name of this server
>> [trojan.dragon.org]: 127.0.1.1
>> [ ERROR ] Host name is not valid: 127.0.1.1 is an IP address and not a
>> FQDN. A FQDN is needed to be able to generate certificates correctly.
>>   Host fully qualified DNS name of this server
>> [trojan.dragon.org]: trojan.dragon.org
>> [ ERROR ] Host name is not valid: Command 'dig' is required but missing

Indeed - please install dig. I think this should work:

apt-get install -y dnsutils

>>   Host fully qualified DNS name of this server
>> [trojan.dragon.org]: 127.0.1.1
>> [ ERROR ] Host name is not valid: 127.0.1.1 is an IP address and not a
>> FQDN. A FQDN is needed to be able to generate certificates correctly.
>>   Host fully qualified DNS name of this server
>> [trojan.dragon.org]: ^C[ ERROR ] Failed to execute stage 'Environment
>> customization': SIG2
>> [ INFO  ] Stage: Clean up
>>   Log file is located at
>> /home/user/ovirt_engine/var/log/ovirt-engine/setup/ovirt-engine-setup-20170601195203-2d7fr3.log
>> [ INFO  ] Generating answer file
>> '/home/user/ovirt_engine/var/lib/ovirt-engine/setup/answers/20170601195425-setup.conf'
>> [ INFO  ] Stage: Pre-termination
>> [ INFO  ] Stage: Termination
>> [ ERROR ] Execution of setup failed
>>
>> Attached is the log file. I hope that's alright.
> Apologies again. I attached the conf file. Attached is the log file.
>
> --
> - Warm regards
> Leni Kadali Mutungi



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


[ovirt-users] oVirt gluster sanlock issue

2017-06-03 Thread Abi Askushi
Hi All,

I have installed successfully several times oVirt (version 4.1) with 3
nodes on top glusterfs.

This time, when trying to configure the same setup, I am facing the
following issue which doesn't seem to go away. During installation i get
the error:

Failed to execute stage 'Misc configuration': Cannot acquire host id:
(u'a5a6b0e7-fc3f-4838-8e26-c8b4d5e5e922', SanlockException(22, 'Sanlock
lockspace add failure', 'Invalid argument'))

The only different in this setup is that instead of standard partitioning i
have GPT partitioning and the disks have 4K block size instead of 512.

The /var/log/sanlock.log has the following lines:

2017-06-03 19:21:15+0200 23450 [943]: s9 lockspace
ba6bd862-c2b8-46e7-b2c8-91e4a5bb2047:250:/rhev/data-center/mnt/_var_lib_ovirt-hosted-engin-setup_tmptjkIDI/ba6bd862-c2b8-46e7-b2c8-91e4a5bb2047/dom_md/ids:0
2017-06-03 19:21:36+0200 23471 [944]: s9:r5 resource
ba6bd862-c2b8-46e7-b2c8-91e4a5bb2047:SDM:/rhev/data-center/mnt/_var_lib_ovirt-hosted-engine-setup_tmptjkIDI/ba6bd862-c2b8-46e7-b2c8-91e4a5bb2047/dom_md/leases:1048576
for 2,9,23040
2017-06-03 19:21:36+0200 23471 [943]: s10 lockspace
a5a6b0e7-fc3f-4838-8e26-c8b4d5e5e922:250:/rhev/data-center/mnt/glusterSD/10.100.100.1:
_engine/a5a6b0e7-fc3f-4838-8e26-c8b4d5e5e922/dom_md/ids:0
2017-06-03 19:21:36+0200 23471 [23522]: a5a6b0e7 aio collect RD
0x7f59b8c0:0x7f59b8d0:0x7f59b0101000 result -22:0 match res
2017-06-03 19:21:36+0200 23471 [23522]: read_sectors delta_leader offset
127488 rv -22 /rhev/data-center/mnt/glusterSD/10.100.100.1:
_engine/a5a6b0e7-fc3f-4838-8e26-c8b4d5e5e922/dom_md/ids
2017-06-03 19:21:37+0200 23472 [930]: s9 host 250 1 23450
88c2244c-a782-40ed-9560-6cfa4d46f853.v0.neptune
2017-06-03 19:21:37+0200 23472 [943]: s10 add_lockspace fail result -22

And /var/log/vdsm/vdsm.log says:

2017-06-03 19:19:38,176+0200 WARN  (jsonrpc/3)
[storage.StorageServer.MountConnection] Using user specified
backup-volfile-servers option (storageServer:253)
2017-06-03 19:21:12,379+0200 WARN  (periodic/1) [throttled] MOM not
available. (throttledlog:105)
2017-06-03 19:21:12,380+0200 WARN  (periodic/1) [throttled] MOM not
available, KSM stats will be missing. (throttledlog:105)
2017-06-03 19:21:14,714+0200 WARN  (jsonrpc/1)
[storage.StorageServer.MountConnection] Using user specified
backup-volfile-servers option (storageServer:253)
2017-06-03 19:21:15,515+0200 ERROR (jsonrpc/4) [storage.initSANLock] Cannot
initialize SANLock for domain a5a6b0e7-fc3f-4838-8e26-c8b4d5e5e922
(clusterlock:238)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/storage/clusterlock.py", line
234, in initSANLock
sanlock.init_lockspace(sdUUID, idsPath)
SanlockException: (107, 'Sanlock lockspace init failure', 'Transport
endpoint is not connected')
2017-06-03 19:21:15,515+0200 WARN  (jsonrpc/4)
[storage.StorageDomainManifest] lease did not initialize successfully
(sd:557)
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/sd.py", line 552, in initDomainLock
self._domainLock.initLock(self.getDomainLease())
  File "/usr/lib/python2.7/site-packages/vdsm/storage/clusterlock.py", line
271, in initLock
initSANLock(self._sdUUID, self._idsPath, lease)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/clusterlock.py", line
239, in initSANLock
raise se.ClusterLockInitError()
ClusterLockInitError: Could not initialize cluster lock: ()
2017-06-03 19:21:37,867+0200 ERROR (jsonrpc/2) [storage.StoragePool] Create
pool hosted_datacenter canceled  (sp:655)
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/sp.py", line 652, in create
self.attachSD(sdUUID)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/securable.py", line
79, in wrapper
return method(self, *args, **kwargs)
  File "/usr/share/vdsm/storage/sp.py", line 971, in attachSD
dom.acquireHostId(self.id)
  File "/usr/share/vdsm/storage/sd.py", line 790, in acquireHostId
self._manifest.acquireHostId(hostId, async)
  File "/usr/share/vdsm/storage/sd.py", line 449, in acquireHostId
self._domainLock.acquireHostId(hostId, async)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/clusterlock.py", line
297, in acquireHostId
raise se.AcquireHostIdFailure(self._sdUUID, e)
AcquireHostIdFailure: Cannot acquire host id:
(u'a5a6b0e7-fc3f-4838-8e26-c8b4d5e5e922', SanlockException(22, 'Sanlock
lockspace add failure', 'Invalid argument'))
2017-06-03 19:21:37,870+0200 ERROR (jsonrpc/2) [storage.StoragePool] Domain
ba6bd862-c2b8-46e7-b2c8-91e4a5bb2047 detach from MSD
ba6bd862-c2b8-46e7-b2c8-91e4a5bb2047 Ver 1 failed. (sp:528)
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/sp.py", line 525, in __cleanupDomains
self.detachSD(sdUUID)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/securable.py", line
79, in wrapper
return method(self, *args, **kwargs)
  File "/usr/share/vdsm/storage/sp.py", line 1046, in detachSD
raise se.CannotDetachMasterStorageDomain(sdUUID)

[ovirt-users] Nginx reverse proxy

2017-06-03 Thread Petrica Pitineag
I have a physical server that hosts an all-in-one ovirt system.
At the time there are only a handful of VMs but I plan to expand
(both the number of VMs and the number of physical servers).
As I use this for developing / testing various ideas (web apps) I sometimes
need to have access directly to VMs from the internet (ports like 80, 443,
sometimes others).
What I would like is to install a reverse proxy (nginx) in DMZ and get rid
of port forwarding system.

My question is: is there any way (ovirt, plugin, 3rd party solution) that,
when a VM is created, automatically creates the required entries in the
reverse proxy so that a preselected +/- customizable list of ports are
forwarded to the new VM?

Example (where example.com is a preconfigured domain, site3 was the
hostname the user entered, 192.168.0.3 is the IP allocated by the DHCP):

server {
  listen 127.0.0.1:443 ssl;
  server_name site3.example.com;

  include common.conf;

  location / {
proxy_pass http://192.168.0.3:80;
  }
}

And, as a followup: is there a way avoid manually creating an entry
in the zone editor on registar's website?

Thanks,

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