Re: [Users] Should vdsm from F18 nightly be cluster 3.3 compatible?

2013-05-22 Thread Sandro Bonazzola
Il 22/05/2013 02:24, Dax Kelson ha scritto:
 I'd like to try out ovirt with native glusterfs.

 I have ovirt-engine from nightly installed on a Fedora 18 box successfully.

 I'm trying to run Fedora 18 nodes with vdsm from nightly along with
 gluster 3.4 beta and libvirt and qemu-kvm from rebuild from F19 beta
 srpms.

 I'm using vdsm-4.10.3-10.fc18.x86_64

Hi,
Nightly VDSM that support 3.3 is vdsm-4.10.3-0.405.git67b59db.fc18.x86_64
you should run something like:

yum --disablerepo=* --enablerepo=ovirt-nightly distro-sync vdsm*
in order to have nightly vdsm.
I think there is a version numbering issue here.


 When I try adding that Fedora 18 node to ovirt it gives the error:

 Host station2 is compatible with versions (3.0,3.1,3.2) and cannot
 join Cluster GlusterFS which is set to version 3.3.

 Shouldn't the vdsm from nightly be 3.3 compatible?

 Anyway, I edited /usr/share/vdsm/dsaversion.py and added 3.3 to list,
 no more complaint but I'm not if that is actually going to work or
 not.

 Thoughts?

 Is there a better way for me to test out the new direct glusterfs api support?

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


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

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


[Users] centos6.3 i can not create snapshot when vm is runing

2013-05-22 Thread bigclouds
hi,
if ovirt all-in-one ISO support snapshot when vm is runing
 
thanks___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] How to use VM stateless mode?

2013-05-22 Thread Dafna Ron

no. I don't think its related to the template itself.
when you're creating the vm is it with clone copy or a thin provision 
copy (it's in the allocation tab of the vm)?

Thanks,
Dafna



On 05/21/2013 06:31 PM, lofyer wrote:
Thanks, I'm using fedora18 with latest updates and ovirt from latest 
source code.

And I've tried five or six VMs created from the same template.
Should I try making another template or what?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



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


Re: [Users] Fwd: Nagios monitoring plugin check_rhev3 1.2 released

2013-05-22 Thread Itamar Heim

 Original Message 
Subject: [Users] Nagios monitoring plugin check_rhev3 1.2 released
Date: Thu, 16 May 2013 16:31:24 +0200
From: René Koch r.k...@ovido.at
To: users Users@ovirt.org

I'm happy to announce version 1.2 of check_rhev3.

check_rhev3 is a monitoring plugin for Icinga/Nagios and it's forks,
which is
used to monitor datacenters, clusters, hosts, vms, vm pools and storage
domains
of Red Hat Enterprise Virtualization (RHEV) and oVirt virtualization
environments.

The download locations are
   * https://labs.ovido.at/download/check_rhev3/check_rhev3-1.2.tar.gz
   *
https://labs.ovido.at/download/check_rhev3/nagios-plugins-rhev3-1.2-1.el6.i686.rpm

   *
https://labs.ovido.at/download/check_rhev3/nagios-plugins-rhev3-1.2-1.el6.x86_64.rpm


For further information on how to install this plugin visit:
   https://github.com/ovido/check_rhev3/wiki/Installation-Documentation

A detailed usage documentation can be found here:
https://github.com/ovido/check_rhev3/wiki/Usage-Documentation


Changelog:

- General:
-   Moved project to github: https://github.com/ovido/check_rhev3

- New features:
-   Verify RHEV-M certificate
-   Allow authentication sessions for authentication in RHEV = 3.1 and
oVirt = 3.1
-   Use option -n nic to check a specific nic

- Bugs fixed:
-   Performance data issue with check_multi


If you have any questions or ideas, please drop me an email: ​
r.k...@ovido.at.

Thank you for using check_rhev3.





Hi Rene,

we deployed the plugin and noticed its flooding the event log with login 
events for the user its using via the REST API.
can you please add persistent session to the REST API calls so login 
will happen only once and won't flood the log?


http://www.ovirt.org/Features/RESTSessionManagement

Thanks,
   Itamar

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


Re: [Users] error install on centos

2013-05-22 Thread Itamar Heim

On 05/22/2013 12:53 PM, Paco qw wrote:

Hello everyone.
Ovirt install on Centos 6.2
Run engine-setup and get the error.


Installing:
Configuring oVirt Engine... [ DONE ]
Configuring JVM...  [ DONE ]
Creating CA...  [ DONE ]
Updating ovirt-engine service...[ DONE ]
Setting Database Configuration...   [ DONE ]
Setting Database Security...[ DONE ]
Creating Database... [ ERROR ]
Database creation failed
Please check log file
/var/log/ovirt-engine/engine-setup_2011_11_24_05_36_26.log for more
information

In log engine-db-install

#engine db installer log file on rhevm8.lab.topsonline.ru
http://rhevm8.lab.topsonline.ru
[engine-db-install] verifying required rpms are installed.
postgresql-server-8.4.9-1.el6_1.1.x86_64
postgresql-8.4.9-1.el6_1.1.x86_64
postgresql-libs-8.4.9-1.el6_1.1.x86_64
[engine-db-install] verifying postgres service exists.
[engine-db-install] init postgres db.
[engine-db-install] psgql db already been initialized.
[engine-db-install] changing authentication scheme from peer to ident.
[engine-db-install] changing authentication scheme from ident to trust.
[engine-db-install] stop postgres service.
Stopping postgresql service: [  OK  ]
[engine-db-install] starting postgres service.
Starting postgresql service: [  OK  ]
[engine-db-install] validating that postgres service is running...retry 1
  ?column?
--
 1
(1 row)

[engine-db-install] checking if engine db exists already..
psql: FATAL:  database engine does not exist
[engine-db-install] engine not installed.
[engine-db-install] updating db admin credentials
DROP ROLE
CREATE ROLE
[engine-db-install] creating engine db on postgres.
/usr/share/ovirt-engine/dbscripts ~
/usr/share/ovirt-engine/dbscripts /usr/share/ovirt-engine/dbscripts
Creating the database: engine
dropdb: database removal failed: ERROR:  database engine does not exist
user name is: engine
Creating tables...
Creating functions...
Creating common functions...
Inserting data  ...
Inserting pre-defined roles ...
Running upgrade scripts...
upgrade script detected a change in Config, View or Stored Procedure...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script upgrade/pre_upgrade/_config.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script upgrade/pre_upgrade/0010_custom.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/pre_upgrade/0020_add_comment_col_to_schema_version.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/pre_upgrade/0030_add_materialized_views_table.sql ...
Dropping materialized views...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0010_add_group_ids_to_users.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0030_change_storage_format_type_to_str.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0040_change_vm_dynamic_vm_ip_type.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0050_make_blank_template_pulic.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script upgrade/03_00_0060_add_group_everyone.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0100_add_device_size_to_luns.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0120_add_update_date_to_vm_templates.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0130_change_dwh_history_timekeeping_date_type.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script upgrade/03_00_0150_update_roles.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script upgrade/03_00_0180_add_guest_disk_size.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script upgrade/03_00_0190_add_latency_vm_disks.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0220_add_MaxAuditLogMessageLength_to_config.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0260_change_app_list_type_to_text.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0270_change_users_group_ids_field_to_text.sql ...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script
upgrade/03_00_0280_change_blank_template_default_display_type_to_spice.sql
...
./dbfunctions.sh: line 199: file: command not found
Running  upgrade sql script 

Re: [Users] Fwd: Nagios monitoring plugin check_rhev3 1.2 released

2013-05-22 Thread Koch (ovido)

On Wed, 2013-05-22 at 14:59 +0300, Itamar Heim wrote:
   Original Message 
  Subject: [Users] Nagios monitoring plugin check_rhev3 1.2 released
  Date: Thu, 16 May 2013 16:31:24 +0200
  From: René Koch r.k...@ovido.at
  To: users Users@ovirt.org
 
  I'm happy to announce version 1.2 of check_rhev3.
 
  check_rhev3 is a monitoring plugin for Icinga/Nagios and it's forks,
  which is
  used to monitor datacenters, clusters, hosts, vms, vm pools and storage
  domains
  of Red Hat Enterprise Virtualization (RHEV) and oVirt virtualization
  environments.
 
  The download locations are
 * https://labs.ovido.at/download/check_rhev3/check_rhev3-1.2.tar.gz
 *
  https://labs.ovido.at/download/check_rhev3/nagios-plugins-rhev3-1.2-1.el6.i686.rpm
 
 *
  https://labs.ovido.at/download/check_rhev3/nagios-plugins-rhev3-1.2-1.el6.x86_64.rpm
 
 
  For further information on how to install this plugin visit:
 https://github.com/ovido/check_rhev3/wiki/Installation-Documentation
 
  A detailed usage documentation can be found here:
  https://github.com/ovido/check_rhev3/wiki/Usage-Documentation
 
 
  Changelog:
 
  - General:
  -   Moved project to github: https://github.com/ovido/check_rhev3
 
  - New features:
  -   Verify RHEV-M certificate
  -   Allow authentication sessions for authentication in RHEV = 3.1 and
  oVirt = 3.1
  -   Use option -n nic to check a specific nic
 
  - Bugs fixed:
  -   Performance data issue with check_multi
 
 
  If you have any questions or ideas, please drop me an email: ​
  r.k...@ovido.at.
 
  Thank you for using check_rhev3.
 
 
 
 
 Hi Rene,
 
 we deployed the plugin and noticed its flooding the event log with login 
 events for the user its using via the REST API.
 can you please add persistent session to the REST API calls so login 
 will happen only once and won't flood the log?
 
 http://www.ovirt.org/Features/RESTSessionManagement


It's one of the features in the latest version (1.2):

 -o, --cookie
Use cookie based authenticated sessions (requires RHEV = 3.1)


I implemented it in the following way:
- Plugin checks if file with session cookie exists (per default
in /var/tmp)
- If not: login with username and password (that's why you need to
specify auth pair or authfile) and fetch JSESSIONID
-- Writes ID into session cookie file
- If cookie file is found: login using JSESSIONID and ignore username
and password. So you can change username/password and login will still
work.
- If login using session ID fails and cookie file exists, it will be
deleted and a login with username and password is tried the next time
the plugin is executed

If you start the script with -vvv you can see if login is down with auth
session or with username/password...

I didn't test it with oVirt 3.2 (yet), but works fine in RHEV 3.1.


Regards,
René




 
 Thanks,
 Itamar
 
 Thanks,
Itamar

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


Re: [Users] error install on centos

2013-05-22 Thread Paco qw
[root@rhevm8 ~]# rpm -qa|grep 'grep\|coreutils'
policycoreutils-python-2.0.83-19.18.el6.x86_64
coreutils-libs-8.4-16.el6.x86_64
coreutils-8.4-16.el6.x86_64
grep-2.6.3-2.el6.x86_64
policycoreutils-2.0.83-19.18.el6.x86_64



2013/5/22 j.astr...@netbulae.eu

 Hi,

 Line 199 of the dbfunctions.sh script is:

isShellScript=$(file $execFile | grep shell | wc -l)

 So can you check if grep and wc are installed?

 rpm -qa|grep 'grep\|coreutils'

 --
 Kind regards,

 Jorick Astrego
 Netbulae B.V.
 Site:  http://www.netbulae.eu



 From:Paco qw qw.iamp...@gmail.com
 To:users@ovirt.org
 Date:05/22/2013 11:53
 Subject:[Users] error install on centos
 Sent by:users-boun...@ovirt.org
 --



 Hello everyone.
 Ovirt install on Centos 6.2
 Run engine-setup and get the error.


 Installing:
 Configuring oVirt Engine... [ DONE ]
 Configuring JVM...  [ DONE ]
 Creating CA...  [ DONE ]
 Updating ovirt-engine service...[ DONE ]
 Setting Database Configuration...   [ DONE ]
 Setting Database Security...[ DONE ]
 Creating Database... [ ERROR ]
 Database creation failed
 Please check log file
 /var/log/ovirt-engine/engine-setup_2011_11_24_05_36_26.log for more
 information

 In log engine-db-install

 #engine db installer log file on 
 *rhevm8.lab.topsonline.ru*http://rhevm8.lab.topsonline.ru/

 [engine-db-install] verifying required rpms are installed.
 postgresql-server-8.4.9-1.el6_1.1.x86_64
 postgresql-8.4.9-1.el6_1.1.x86_64
 postgresql-libs-8.4.9-1.el6_1.1.x86_64
 [engine-db-install] verifying postgres service exists.
 [engine-db-install] init postgres db.
 [engine-db-install] psgql db already been initialized.
 [engine-db-install] changing authentication scheme from peer to ident.
 [engine-db-install] changing authentication scheme from ident to trust.
 [engine-db-install] stop postgres service.
 Stopping postgresql service: [  OK  ]
 [engine-db-install] starting postgres service.
 Starting postgresql service: [  OK  ]
 [engine-db-install] validating that postgres service is running...retry 1
  ?column?
 --
 1
 (1 row)

 [engine-db-install] checking if engine db exists already..
 psql: FATAL:  database engine does not exist
 [engine-db-install] engine not installed.
 [engine-db-install] updating db admin credentials
 DROP ROLE
 CREATE ROLE
 [engine-db-install] creating engine db on postgres.
 /usr/share/ovirt-engine/dbscripts ~
 /usr/share/ovirt-engine/dbscripts /usr/share/ovirt-engine/dbscripts
 Creating the database: engine
 dropdb: database removal failed: ERROR:  database engine does not exist
 user name is: engine
 Creating tables...
 Creating functions...
 Creating common functions...
 Inserting data  ...
 Inserting pre-defined roles ...
 Running upgrade scripts...
 upgrade script detected a change in Config, View or Stored Procedure...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/pre_upgrade/_config.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/pre_upgrade/0010_custom.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/pre_upgrade/0020_add_comment_col_to_schema_version.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/pre_upgrade/0030_add_materialized_views_table.sql ...
 Dropping materialized views...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/03_00_0010_add_group_ids_to_users.sql
 ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0030_change_storage_format_type_to_str.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0040_change_vm_dynamic_vm_ip_type.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0050_make_blank_template_pulic.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/03_00_0060_add_group_everyone.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/03_00_0100_add_device_size_to_luns.sql
 ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0120_add_update_date_to_vm_templates.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0130_change_dwh_history_timekeeping_date_type.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/03_00_0150_update_roles.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script 

[Users] Resize storage domain

2013-05-22 Thread Eduardo Ramos

Hi all!

I have an iscsi domain based on a HP Lefthand cluster. Using HP tool, I 
resized the iscsi volume without problem. On the SPM host, with fdisk -l 
/dev/sdb, I saw the new size, ok.


But now, How do I do ovirt engine see the new size?

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


Re: [Users] error install on centos

2013-05-22 Thread Jim Kinney
The error indicates the 'file' command is not found.

rpm -qa | grep file

On my 6.4 install, I have file-5.04-15.el6.x86_64




On Wed, May 22, 2013 at 10:31 AM, j.astr...@netbulae.eu wrote:

 Hi,

 Line 199 of the dbfunctions.sh script is:

isShellScript=$(file $execFile | grep shell | wc -l)

 So can you check if grep and wc are installed?

 rpm -qa|grep 'grep\|coreutils'

 --
 Kind regards,

 Jorick Astrego
 Netbulae B.V.
 Site:  http://www.netbulae.eu



 From:Paco qw qw.iamp...@gmail.com
 To:users@ovirt.org
 Date:05/22/2013 11:53
 Subject:[Users] error install on centos
 Sent by:users-boun...@ovirt.org
 --



 Hello everyone.
 Ovirt install on Centos 6.2
 Run engine-setup and get the error.


 Installing:
 Configuring oVirt Engine... [ DONE ]
 Configuring JVM...  [ DONE ]
 Creating CA...  [ DONE ]
 Updating ovirt-engine service...[ DONE ]
 Setting Database Configuration...   [ DONE ]
 Setting Database Security...[ DONE ]
 Creating Database... [ ERROR ]
 Database creation failed
 Please check log file
 /var/log/ovirt-engine/engine-setup_2011_11_24_05_36_26.log for more
 information

 In log engine-db-install

 #engine db installer log file on 
 *rhevm8.lab.topsonline.ru*http://rhevm8.lab.topsonline.ru/

 [engine-db-install] verifying required rpms are installed.
 postgresql-server-8.4.9-1.el6_1.1.x86_64
 postgresql-8.4.9-1.el6_1.1.x86_64
 postgresql-libs-8.4.9-1.el6_1.1.x86_64
 [engine-db-install] verifying postgres service exists.
 [engine-db-install] init postgres db.
 [engine-db-install] psgql db already been initialized.
 [engine-db-install] changing authentication scheme from peer to ident.
 [engine-db-install] changing authentication scheme from ident to trust.
 [engine-db-install] stop postgres service.
 Stopping postgresql service: [  OK  ]
 [engine-db-install] starting postgres service.
 Starting postgresql service: [  OK  ]
 [engine-db-install] validating that postgres service is running...retry 1
  ?column?
 --
 1
 (1 row)

 [engine-db-install] checking if engine db exists already..
 psql: FATAL:  database engine does not exist
 [engine-db-install] engine not installed.
 [engine-db-install] updating db admin credentials
 DROP ROLE
 CREATE ROLE
 [engine-db-install] creating engine db on postgres.
 /usr/share/ovirt-engine/dbscripts ~
 /usr/share/ovirt-engine/dbscripts /usr/share/ovirt-engine/dbscripts
 Creating the database: engine
 dropdb: database removal failed: ERROR:  database engine does not exist
 user name is: engine
 Creating tables...
 Creating functions...
 Creating common functions...
 Inserting data  ...
 Inserting pre-defined roles ...
 Running upgrade scripts...
 upgrade script detected a change in Config, View or Stored Procedure...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/pre_upgrade/_config.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/pre_upgrade/0010_custom.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/pre_upgrade/0020_add_comment_col_to_schema_version.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/pre_upgrade/0030_add_materialized_views_table.sql ...
 Dropping materialized views...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/03_00_0010_add_group_ids_to_users.sql
 ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0030_change_storage_format_type_to_str.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0040_change_vm_dynamic_vm_ip_type.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0050_make_blank_template_pulic.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/03_00_0060_add_group_everyone.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/03_00_0100_add_device_size_to_luns.sql
 ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0120_add_update_date_to_vm_templates.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script
 upgrade/03_00_0130_change_dwh_history_timekeeping_date_type.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/03_00_0150_update_roles.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 Running  upgrade sql script upgrade/03_00_0180_add_guest_disk_size.sql ...
 ./dbfunctions.sh: line 199: file: command not found
 

Re: [Users] centos6.3 i can not create snapshot when vm is runing

2013-05-22 Thread Jason Brooks



- Original Message -

From: bigclouds bigclo...@163.com
To: users@ovirt.org
Sent: Wednesday, May 22, 2013 3:26:23 AM
Subject: [Users] centos6.3 i can not create snapshot when vm is runing

hi,
if ovirt all-in-one ISO support snapshot when vm is runing


I believe that this feature requires a newer version of qemu than what 
ships with centos6.3 -- in the past I've rebuilt a qemu from Fedora to 
get this feature working on CentOS.


Jason



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


[Users] Active Directory Groups

2013-05-22 Thread Thomas Scofield
I was attempting to assign some permissions to Active Directory groups and
ran into an issue where groups with spaces or the # sign in them.  The
engine log contained messages like these

2013-05-22 08:39:35,228 WARN  [org.ovirt.engine.core.bll.SearchQuery]
(ajp--127.0.0.1-8702-134) ResourceManager::searchBusinessObjects -
erroneous search text - ADGROUP: name=#Virtual Engineering
2013-05-22 08:39:35,228 WARN  [org.ovirt.engine.core.bll.SearchQuery]
(ajp--127.0.0.1-8702-46) ResourceManager::searchBusinessObjects - erroneous
search text - ADUSER: allnames=#Virtual Engineering

The group name is valid.  The example above contains both the space and #,
but trying groups with just a space and others with just a # also fail.  I
was able to successfully add groups that contained characters and -.  Has
anyone else had an issue like this?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Active Directory Groups

2013-05-22 Thread Yair Zaslavsky
I don't remember encountering such an issue, but probably never checked. 
a. What is the search string you're passing in order to get the users/groups? 
b. From quick look at the code - looks like this is at the step of initializing 
the data that will be queried - that is, before sending the AD query. 

Eli - looks like this is from the SeachQuery.InitQueryData - can you elaborate 
here? 

- Original Message -

 From: Thomas Scofield tscofi...@gmail.com
 To: users users@ovirt.org
 Sent: Thursday, May 23, 2013 4:06:29 AM
 Subject: [Users] Active Directory Groups

 I was attempting to assign some permissions to Active Directory groups and
 ran into an issue where groups with spaces or the # sign in them. The engine
 log contained messages like these

 2013-05-22 08:39:35,228 WARN [org.ovirt.engine.core.bll.SearchQuery]
 (ajp--127.0.0.1-8702-134) ResourceManager::searchBusinessObjects - erroneous
 search text - ADGROUP: name=#Virtual Engineering
 2013-05-22 08:39:35,228 WARN [org.ovirt.engine.core.bll.SearchQuery]
 (ajp--127.0.0.1-8702-46) ResourceManager::searchBusinessObjects - erroneous
 search text - ADUSER: allnames=#Virtual Engineering

 The group name is valid. The example above contains both the space and #, but
 trying groups with just a space and others with just a # also fail. I was
 able to successfully add groups that contained characters and -. Has anyone
 else had an issue like this?

 ___
 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