1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-23 17:34:17 +03:00
Commit Graph

581 Commits

Author SHA1 Message Date
Adolfo Gómez
fa2335efd4 * Finished create/edit methods
* Added delete method
* a little more refactoring ( ofc :-) )
Need to debug a bit more this, and probably make some adaptions for models that do not serializes objects
2013-11-26 03:42:46 +00:00
Adolfo Gómez
63da672f30 * Adapted transactions on db to new django 1.6 model, much more versatile.
Removed all "autocommit, commit_on_success and commit_manually", and replaced with "transaction.atomic" calls. Of course, with code refinement in some parts to adapt to this new situation

* Added Changing Some table types from MyISAM to Mysql after migrations are done ALWAYS. This is not too slow, and will ensure that the database supports transactions where they are needed
2013-11-25 17:34:13 +00:00
Adolfo Gómez
8c04c88d86 A bit of refactoring with api, gui, etc...
solved some problems with PUT methods (need to solve a few ones anyway)
Create authenticator now works, but needs more elaboration
lots of changes i event remember.. :-)
2013-11-25 03:01:58 +00:00
Adolfo Gómez
a52e8dc548 * Added form validations (more work will be needed probably for numerics for example) 2013-11-23 22:39:07 +00:00
Adolfo Gómez
b7bfecf87c * Fixed Datatables tools width
* Refactoring of API (again...)
2013-11-22 11:33:54 +00:00
Adolfo Gómez
ceecb0823d Fixed read only "generic model editing" properties.
Also forgot in previous commits, i changed the template engine to Handlebars. Its much "versatile", and we need a bit of flexibility (such as conditionals, loops, etc...)
2013-11-22 02:33:06 +00:00
Adolfo Gómez
de4a9ff291 Advanced a lot with "generic model editing" 2013-11-22 02:22:41 +00:00
Adolfo Gómez
004e060aaf * Added modal to gui
* Advanced a bit with edition of components
2013-11-21 13:19:13 +00:00
Adolfo Gómez
127c36f364 * Added template "preload" ability
* Added caching templates as "compiled" templates
* moved table description panel to template
2013-11-21 11:01:30 +00:00
Adolfo Gómez
dbd4531376 Better pannels 2013-11-21 02:22:41 +00:00
Adolfo Gómez
17b20ab684 A cuople more fixes && refactoring 2013-11-20 11:31:23 +00:00
Adolfo Gómez
4b2eae58b1 Added gui basic elements
refactoring of existint javascript
translations of buttons moved to better place
added css class that will made button text dissapear for smaller displays
2013-11-20 11:09:30 +00:00
Adolfo Gómez
6144eb2f6a Fixing some js, started form renterer 2013-11-20 09:14:27 +00:00
Adolfo Gómez
2bf0c3e59a * Fixed a bunch of javascript things
* Added "gui" method to api, so we can get a description of what fields are needed for an specific item.
Added REST capacity to process gui requests
Updated translations
2013-11-20 03:16:56 +00:00
Adolfo Gómez
805b225552 I had 3d buttons not working (clicks events not fired). After a while of looking for why, i realized that in fact the button was moving, and the event was not fired sometimes for this reason.
So i have created a little "fix" on tools.js, where we use mousedown && mouse up events (on button & parent) to "simulate" a click over an static button.

Also, i have included a way of blocking UI (using jquery.blockUI plugin), so user know when something is going on.. 

hard work resolving the 3d buttons "bug" :-)
2013-11-19 11:26:27 +00:00
Adolfo Gómez
dbb4466c46 Advancing, but have a few probles with "cool 3d buttons". When pressed, many times click event seems not to be fired... O.o 2013-11-19 01:27:47 +00:00
Adolfo Gómez
67a691768e added "cute" 3d buttons :-) 2013-11-18 02:54:05 +00:00
Adolfo Gómez
96937a397c added xls, but i'm going to evolve it fast 2013-11-17 22:48:34 +00:00
Adolfo Gómez
47be643eac * Added responsive tables to admin
* Added language selection over REST API
* Added "renderers" so we can add icons or whatever to cells before rendering
* Lots of improvements
2013-11-17 03:48:05 +00:00
Adolfo Gómez
6bb538d941 * Finished (almost) details of master tables
* Added templating engine based on John Resig - http://ejohn.org/,
* Added capacity to scroll to make tables visible
* Added users detail view for authenticators
* added server template serving
2013-11-15 23:45:05 +00:00
Adolfo Gómez
d2cf0f6846 2013-11-15 21:14:46 +00:00
Adolfo Gómez
2615b5fca4 Added "details" to REST for children of certain elements (such as authenticators-->users, user services --> publications, cache, assignations, groups, transports, etc... 2013-11-15 16:04:51 +00:00
Adolfo Gómez
bf83de2f5e * Web Admin work
* Improved visualization & use of Generic Table for data visualization
2013-11-15 14:02:53 +00:00
Adolfo Gómez
e59ac8078d 2013-11-15 10:33:51 +00:00
Adolfo Gómez
caf250daa3 2013-11-15 10:33:21 +00:00
Adolfo Gómez
841580afda 2013-11-15 10:32:49 +00:00
Adolfo Gómez
0a0772a7c6 Advancing admin (in fact already playing around with components, but made some advances.. :-) ) 2013-11-14 17:02:30 +00:00
Adolfo Gómez
d68822eaf7 Advancing with very basic aspects of administration/REST api 2013-11-14 11:17:07 +00:00
Adolfo Gómez
6e0511add3 Updated checkbrowser to recognize ie, new ie (11), opera, safari, firefox & webkit based browsers 2013-11-13 22:52:14 +00:00
Adolfo Gómez
ae9f3c7e78 Some translations, and javascript catalog fixed so it gets correctly generated on each lang (and do not caches it) 2013-11-13 19:00:19 +00:00
Adolfo Gómez
89d27cbcd5 Playing around with administration interface, selecting components that seems to match what i'm looking for... :-) 2013-11-13 17:21:48 +00:00
Adolfo Gómez
59e9f65241 2013-11-12 01:10:03 +00:00
Adolfo Gómez
81d64162f4 Start the work over admin interface (Dashboard) in parallel with REST api 2013-11-12 01:09:17 +00:00
Adolfo Gómez
495ab90cc2 * Updated to django 1.6
* Ensured that, an user when has logged in from interface, has access to REST
The access will be restricted by user permissions of course (this is, simple user will have access to its services, preferences and little more... :-)) This part anyway, is not done yet
2013-11-11 20:08:23 +00:00
Adolfo Gómez
47dff34637 Started a REST api for UDS.
The idea is provide third party access to UDS, and try to use this as an starting point to make an web based administration, so we can deprecate .net administration tool (it is becoming an annoyance... :-) ), and web based admin is always more accesible than thin client admin
2013-11-11 19:38:23 +00:00
Adolfo Gómez
2bda255c2a * added popover on small names
* moved deployed services names under lauchn button
2013-11-09 09:11:15 +00:00
Adolfo Gómez
bfed62d833 * Basic htm5 template done
* Updated translations & texts
2013-11-08 14:40:52 +00:00
Adolfo Gómez
2b68a119e1 * Basic htm5 template done
* Updated translations & texts
2013-11-08 14:11:45 +00:00
Adolfo Gómez
7bbf86117b Updated templates, and started to simplify templates structure 2013-11-08 13:33:17 +00:00
Adolfo Gómez
aa2e532843 Advancing on html5 basic theme 2013-11-08 12:18:10 +00:00
Adolfo Gómez
fcc7bffb2e Advancing on html5 basic theme 2013-11-08 12:17:51 +00:00
Adolfo Gómez
b5aa6cd4b8 2013-11-08 11:31:39 +00:00
Adolfo Gómez
9dd35ebf1e * Fixed Html5RDP (guacamole) transport so it works on iphone/ipad (os now are recognized)
* Added css for using bootstrap on html5 part of UDS
2013-11-08 09:26:11 +00:00
Adolfo Gómez
aba57d8400 * Added support for Android OS
* Updated HTML5 part a bit
* Added printing support for guacamole
2013-11-05 22:00:12 +00:00
Adolfo Gómez
5fd0436ab6 Fixed a bit login form
trying things with services display
2013-11-05 11:15:42 +00:00
Adolfo Gómez
5cf101d3c8 Advancing on migrationg to HTML5
* Adding themes to UDS
2013-11-05 01:20:39 +00:00
Adolfo Gómez
36429e0443 2013-11-04 16:15:19 +00:00
Adolfo Gómez
e6d7944e2f * Started migration of user interface to HTML5, using bootstrap 2013-11-04 15:59:59 +00:00
Adolfo Gómez
15d7ca7a4b Updated sample settings to include new django var (for wsgi)
Updated NX Transport to show new url for downloading
Updated NX Tunneled Transport to show new url for downloading

Added a new configruation TAB, NX, that allows to change the download urls for MAC and Windows/Linux.
2013-10-18 08:20:48 +00:00
Adolfo Gómez
ea784bfeef Sorted alphabetically Services 2013-10-16 11:45:17 +00:00
Adolfo Gómez
fb463dee73 Updated so fixed credentials are correctly got 2013-10-16 11:32:16 +00:00
Adolfo Gómez
15011dea95 Added applet value to indicate permissions needed by applet 2013-10-16 10:48:01 +00:00
Adolfo Gómez
c7941017b5 Updated jars to include permissions on manifest 2013-10-16 10:43:02 +00:00
Adolfo Gómez
c5b3656d38 Integrated 1.2u1 with audio support selection 2013-10-02 03:05:39 +00:00
Adolfo Gómez
eda93e0be2 * Added by default to ignore certificates to RDP 2013-10-02 02:48:05 +00:00
Adolfo Gómez
a08b114aee Fixed a bug on utf conversión 2013-09-25 08:29:55 +00:00
Adolfo Gómez
79048a4271 Advancing on clustererd services providers 2013-09-20 05:56:43 +00:00
Adolfo Gómez
efb614ff10 Added new possible state for services: Balancing.
This state will only be triggered if a service can't be balanced if it is "in use"
2013-09-17 13:26:44 +00:00
Adolfo Gómez
650c13067d Removed caching of API connections to oVirt. Now it's opened/closed every time needed because this has given some problems.
Anyway, has to implement in a near future using REST a own api, because oVirt API does not work too "fine"
2013-09-17 12:47:15 +00:00
Adolfo Gómez
f220cf3651 * A couple of cosmetic changes :-) 2013-09-11 13:26:31 +00:00
Adolfo Gómez
46990f6b64 * added "extended" log for debug to insert operation into delayed tasks queue
* Created a delayed task thread that, is inserted after a publication is success, to remove "in use machine" after the configured time
* Advancing with clustering control
* Inserted "Cluster" tab into configuration, with required params
* Removed "display" param from ovirt
2013-09-11 13:24:32 +00:00
Adolfo Gómez
50b7a55be5 Started adding Automatic Cluster services support, so we can simplify using services as ProxMox, HyperV, ESXi (without VC), etc... as Providers.
This clusters are special type of providers, where that providers contains several nodes, and do not provide automatic placement of machines, etc...
2013-09-06 12:51:01 +00:00
Adolfo Gómez
81b1646458 Back to work :-)
* Fixed Domain part of credentials for HTML5RDP
* Fixed Domain part of credentials for RDP
* Fixed Domain part of credentials for Tunneler RDP
2013-09-02 10:45:21 +00:00
Adolfo Gómez
0b2e38a85d * Fixed a bug on oVirt
* Added devel support for "notify ready from os manager"
2013-07-05 11:06:33 +00:00
Adolfo Gómez
eb9993f607 Added "isDirty" to base module, so we can avoid "serializations" under some circunstances (work in progress, right now this does nothing) 2013-06-27 09:12:53 +00:00
Adolfo Gómez
5dbacb629b A couple of bug fixes on ovirt publication 2013-06-26 11:05:32 +00:00
Adolfo Gómez
c61ee0f72c 2013-06-26 10:15:11 +00:00
Adolfo Gómez
eea75c1736 2013-06-26 10:14:34 +00:00
Adolfo Gómez
0303fbf910 Fixed a possible bug with the use of the IP authenticator. Now it checks that the username "ip" is the same as request.ip 2013-06-25 15:42:05 +00:00
Adolfo Gómez
2cc81d2b8b Fixed a possible bug with the use of the IP authenticator. Now it checks that the username "ip" is the same as request.ip 2013-06-25 15:40:20 +00:00
Adolfo Gómez
9b99b8f1bd * Added "development" method for user machines
* Fixed publications clean up on new publication & session expiration
* Added "forgotten" unicode method to DeployedPublication
2013-06-20 09:03:50 +00:00
Adolfo Gómez
32d951a43c 2013-06-19 10:58:34 +00:00
Adolfo Gómez
7ca448d926 Fixed a bug in UserServiceManager that on "checkForRemoval" it reloads the User Service, and looses the referenced passed in.
This makes that when the service must be removed, and a reference was passed in that was also saved later, the service was not marked correctly for removal.
2013-06-19 10:49:40 +00:00
Adolfo Gómez
4ee51ac268 Fixed duplicated configuration key (in fact, two different keys that means same thing... :-) ) 2013-06-19 10:02:40 +00:00
Adolfo Gómez
8d9b825237 * Added new global config var for time elapsed before services in use for old publications are removed
* Added support for removal of services from old publications in use once a configured time is elapsed
2013-06-19 08:33:15 +00:00
Adolfo Gómez
b2b747a099 Fixed length of username & groupname fields of regex ldap authenticator 2013-06-10 08:08:30 +00:00
Adolfo Gómez
ed69006a84 Fixed smartcard redirection on linux (forgot to add parameter in case of smartcards). Thanks to Virginio for reporting :-) 2013-06-04 14:07:47 +00:00
Adolfo Gómez
c733822caf * Updated jar to fix smartcards redirection on linux 2013-05-30 12:10:24 +00:00
Adolfo Gómez
d47823bbd2 * Fixed a bug that made deployed services from services that do not need publication appear as much times as valid groups for that deployed service
* Removed annoying exception logging (user creation for internaldb when user already exists, but error is managed so it do no have to be logged)
* Minor aesthetic fix on User class
* Fixed name generators so if it consumes all range, an exception is generated
* Fixed ovirt linked vm so it treats no more names error
* Fixed user modify operation, so if user is derived Groups are not saved (they will be got from parent user)
2013-05-16 10:37:33 +00:00
Adolfo Gómez
9642392d7c Fixed rdesktop folders redirection (signed jar only) 2013-05-14 17:39:20 +00:00
Adolfo Gómez
a4cc0a47f2 Updated so, when a parent is deleted, all children are also deleted. 2013-05-14 12:16:33 +00:00
Adolfo Gómez
2271f73714 Fixed internal db with different user for each ip 2013-05-14 12:10:02 +00:00
Adolfo Gómez
6270119d2b Fixed groups on internal auth 2013-05-14 11:54:51 +00:00
Adolfo Gómez
1c31e01199 Location of Windows folder was Harcoded previously. Now it is fixed (thanks to Virginio) 2013-05-13 16:34:03 +00:00
Adolfo Gómez
bb6929d9c8 * Added Python 3 unicode to UserService
* Fixed user service to ignore empty forms (forms without extra fields)
* Updated service provider to unicode for Physical Machines
2013-04-25 04:49:30 +00:00
Adolfo Gómez
207eba5d7a 2013-04-24 15:15:56 +00:00
Adolfo Gómez
91799b6175 Typo on StatsCollector 2013-04-24 08:06:40 +00:00
Adolfo Gómez
f3338ee264 * Added check to getInt, so if invalid value is found it returns the default, and, if default is also invalid, returns -1.
* Added log of the exception (error log)
2013-04-24 04:39:15 +00:00
Adolfo Gómez
849ddb7512 * Some fixes to spanish translations 2013-04-22 04:25:15 +00:00
Adolfo Gómez
b51d918881 * Added new "Security" setting, so we can set up trusted sources for requests.
* Secured access from Tunneler to Broker. Now pam & html5 requests can only be done from trusted sources. (They will not work only from trusted hosts)
* Upgraded jars for transports to fix Mac NX functionallity
2013-04-20 03:46:03 +00:00
Adolfo Gómez
9029c5e12c HTML Tunnel source check done 2013-04-18 21:36:32 +00:00
Adolfo Gómez
a7da230b0a * Added checking of autorun global config to be checked each time we need it
* Updated translations
2013-04-18 21:15:44 +00:00
Adolfo Gómez
c2a5b9ee50 * Fixed connection unicode compatibility
* Fixed Internal DB auth literal
* Fixed sample settings to include "request" logger
2013-04-18 10:10:31 +00:00
Adolfo Gómez
5538caa9bb * More default unicode literals
* Added support for new network input methods
* Fixed ip auth to support network input methods
* Added support for new network input & modification to transport networks
* Fixed some anoying warnings :-)
* Upgraded required administration client version to 1.2
*
2013-04-17 08:36:13 +00:00
Adolfo Gómez
0bf1f510dd * Some code cleanup
* Added unicode_literals to more modules & tested it
2013-04-17 00:09:48 +00:00
Adolfo Gómez
616300decb * Added all network recognition cases
* Added test to network recognition (should have started to do Unit tests a long ago, but... :-) )
2013-04-16 10:05:42 +00:00
Adolfo Gómez
72f485647b Fixed little bug on internaldb 2013-04-08 03:11:57 +00:00
Adolfo Gómez
6bd242bb9d * Added so we can access requests from anywhere without having to pass it
* Added So we can transform user names on login
* Added the posibility to give a different user to each internal db user based on the source (IP or reversed ip)
* Added "ignore and notify" invalid serialized data. This is so we can migrate "all" modules to auto serialization/deserialization
2013-04-08 03:11:00 +00:00
Adolfo Gómez
3140dd0bca * Added new module "net" under uds.core.util
* Moved out some method from models to net
* Started a generic network validation/retrieval function
* Added security to html5 guacamole proxy to UDS, allowing to restrict requests for credentials from an IP
* Including "from __future__ import unicode_literals" (step forward python 3)
2013-04-03 02:54:35 +00:00
Adolfo Gómez
062337edd8 Added HTML5 RDP connector (and it works!!) using guacamole as tunneler 2013-03-20 20:01:20 +00:00
Adolfo Gómez
366de542a7 Fixed (c) noticed of transport (was not BSD 3-clauses) 2013-03-20 18:44:06 +00:00
Adolfo Gómez
67073b43c1 Removed old & unusable test 2013-03-20 08:49:22 +00:00
Adolfo Gómez
8308890329 Minor fixes 2013-03-20 08:29:22 +00:00
Adolfo Gómez
c9da25bed8 Replaced "len" with a more proper way (using hasValidGroups method) 2013-03-20 08:23:54 +00:00
Adolfo Gómez
f8c7026fcc Replaced "len" with a more proper way (using hasValidGroups method) 2013-03-19 15:09:53 +00:00
Adolfo Gómez
10843cbca2 now getValidGroups returns a generator, not a list, so it does not have len :-) 2013-03-19 15:00:30 +00:00
Adolfo Gómez
6aa67c80a3 2013-03-14 12:25:47 +00:00
Adolfo Gómez
7a9b4ee454 * added storeValue & recoverValue to a deployed service
* Fixed log manager so repeated logs do not get logged by default (avoid duplicate log entries)
* Extracted "notifyRestraing" to a method, so it's easier to find/modify it :-)
2013-03-14 10:01:35 +00:00
Adolfo Gómez
38ced4fea9 * Fixed so unexpected errors now get logged
* Added order by so fields are get in order from db
2013-03-12 13:29:02 +00:00
Adolfo Gómez
70cb226c8c * Fixed some bugs related to meta groups
* Fixed a typo on WinDomainOsManager
* Fixed a typo on Authenticator creation by xmlrpc
2013-03-12 00:12:12 +00:00
Adolfo Gómez
de9124707e Added ALLOWED_HOSTS = ‘*’ to sample django settings. Every one can configure this at his own :-) 2013-03-11 14:33:19 +00:00
Adolfo Gómez
092b3bcbce Removed needing of restart for KEEP_INFO_TIME 2013-03-08 11:05:40 +00:00
Adolfo Gómez
3041e9d2cd Commented out parameters for auth (r they necessary?) 2013-03-08 10:05:33 +00:00
Adolfo Gómez
8558223518 * Added isOfType() to Service & Provider
* Continuing with "from __future__"...
* Added stamp to uniques ids, so we can purge them by date in some cases (Contention)
* DB Migrations to meta groups mixed with stamp of unique id
* Added more logs to some componets
* Added de posibility to authCallback to logout user with redirect
2013-03-08 05:31:21 +00:00
Adolfo Gómez
794b86563b Redoing migration 13 2013-03-07 13:19:46 +00:00
Adolfo Gómez
8eaec2c535 Right now, added de posibility to transfer a mac or name from an user service to an service.
This gives the posibility to to an user service to "reserve" (for now, indefinitely, but will add an "stamp" field to uniqueid database so we can clean up them from time to time) a mac or an name, so other deployed services do not uses them anymore.

One example of this is when a VM gets in error, and machine gets renamed. The mac is them reserved so no more machines clashes with this one reserved.
2013-03-06 15:41:09 +00:00
Adolfo Gómez
552e8b680b * Updated translations 2013-03-06 07:17:46 +00:00
Adolfo Gómez
1f987d1f4f * Updated translations 2013-03-06 07:12:07 +00:00
Adolfo Gómez
47be733839 * Fixed a few tooltips that has incorrect text (copy&paste) :-) 2013-03-06 07:06:48 +00:00
Adolfo Gómez
5554885593 * Globalconfig setting for number of fails in restrain time before a service is restrained
* Added a couple of needed methods to Storage (so it can pickle and store/retrieve in one step)
* Hanged cleaner implemented, seems to work now
* Restrained service is logged on deployed service as WARN not as arror
* Fixed service view so it accepts meta groups
2013-03-06 04:10:27 +00:00
Adolfo Gómez
dd45014231 * added log capability to deployed user services implementations
* Added log when service is restrained
2013-03-05 18:14:59 +00:00
Adolfo Gómez
56f4db54dd * Added comments that if a meta group is empty, all users belong to this meta group
* Fixed a bug where all HiddenFields where not serializable. Now we can mark a hidden field as serializable (on UserInterface)
* Added push_front to StateQueue
* Changed UniqueIDGenerator so first returns lower values
* Added Service as a log source
* Added state_date when services are marked for removal
* Code cleanup
2013-03-05 17:22:11 +00:00
Adolfo Gómez
96ca4f4f14 * Started meta groups part, and in a very advanced stage yet :-) (has to do lots of tests before it's ready for production 2013-03-05 02:23:39 +00:00
Adolfo Gómez
aec33ae933 * Started meta groups part, and in a very advanced stage yet :-) (has to do lots of tests before it's ready for production 2013-03-05 02:22:10 +00:00
Adolfo Gómez
477151bf24 * Started UDS part of guacamole transport
* Added support for group editing
* Fixed a bug, where the "state_date" is not updated when moved from cache to assigned
2013-03-04 21:46:09 +00:00
Adolfo Gómez
38b03f22c0 2013-03-04 08:33:12 +00:00
Adolfo Gómez
bcb91b72ac Fixed a bug on services movement between cache levels, that make broker loose their control 2013-03-01 14:55:39 +00:00
Adolfo Gómez
6be8a54af3 * Added label access to Form Field (admin)
* Added Cache purge method for owners
* Added improved LDAP Regex Auth
* Added to only process USABLE machines at worker for never getted machines
* Added check for port on server for tunnelers
2013-02-28 20:45:54 +00:00
Adolfo Gómez
3d6d478aed * Activated worker so we can automatically remove certain services (those assigned but not in use).
To do this, the os Manager must inform if it can "process" unused machines (assigned but not in use). If the os manager wants this, there is a background worker,
  that works every 10 minutes by default,that will pass every service in that state since more than the last execution of the background worker.
  With this, for example, linux and windows os managers, will set this if we mark the action on logout as "remove", and every machine assigned and not in use, for a os manager
  marked as "remove", will be removed automatically.
  
Has to test this extensively!!! :-)
2013-02-27 18:16:16 +00:00
Adolfo Gómez
eedef4aa11 * Added so we can:
- Disable "global login" page, where all authenticators appears in the list
  - Associate an authenticator with an smallName, that can be even the name of the host. Using this, we can access to different authenticators groups using:
    * Different host names (that matches against the smallNames and filters them)
    * Using the URL http:.../login/[smallName], same as before
* Added "force" parameters to getBool and getInt in Config class
* Fixed xmlrpc view so it works with Django 1.5
2013-02-27 11:44:58 +00:00
Adolfo Gómez
765730ed47 * Removed unique index from small name 2013-02-27 11:23:09 +00:00
Adolfo Gómez
ea4f44a9ae * Upgraded to work with Django 1.5
* Refactorized Configurations load
* Added "small_name" to authentications, so we can access an specifig auth directly by using url
* Upgraded templates to correctly work with 1.5
2013-02-27 09:55:54 +00:00
Adolfo Gómez
bce792254d * Disabled unused checked until more work is done in this direction
* Updated default threads for schedulers and delayed tasks runners
2013-02-19 07:06:16 +00:00
Adolfo Gómez
6507ddbf14 * Fixed scheduled task registration, so uds.core.workers contained scheduled tasks are autoregistered
* Added scheduled task for checking assigned & never used services, so we can remove them
* Added scheduled task for statistics tables housekeeping (cleans old data & optimizes table if this can be done)
* Added the a friendly description at Job, (for autoregistering)
2013-02-19 06:54:41 +00:00
Adolfo Gómez
7bf1f2eb2f * Tested that is removed 2013-02-15 12:20:51 +00:00
Adolfo Gómez
77a363e350 done ad machine removal 2013-02-15 10:30:21 +00:00
Adolfo Gómez
140be8fc27 * Fixing up a couple of minor things
* Adding checking of ldap of domain controller for machine removal on service release
2013-02-15 03:34:53 +00:00
Adolfo Gómez
88939f9dc0 More about stats 2013-02-13 09:23:47 +00:00
Adolfo Gómez
8552337c8d Updated translations 2013-02-12 15:03:48 +00:00
Adolfo Gómez
35b2713b11 * Added first stats collector 2013-02-12 14:57:57 +00:00
Adolfo Gómez
d1d2a1cbe8 * Added basic charting to server (used nowhere right now, but it's now available :-), posiblily used in a future when adding REST api)
* Added basic counter stats retrieval to xmlrpc api (for charts on administration client)
2013-02-11 17:54:29 +00:00
Adolfo Gómez
8a35b7bd69 Doing first charts tests 2013-02-11 10:24:47 +00:00
Adolfo Gómez
6a49943c67 Advancing on stats. Added basic counter statistics storage/retrieval 2013-02-11 08:53:07 +00:00
Adolfo Gómez
dbd5ec2549 Config is starting to grow (not much in fact), but i have added a couple of indexes over the fields that we use for lookup 2013-02-11 06:48:48 +00:00
Adolfo Gómez
c967d877d6 Removed from admin global config typos vars 2013-02-11 06:40:13 +00:00
Adolfo Gómez
29db540883 2013-02-11 06:34:36 +00:00
Adolfo Gómez
e8367041c1 * Fixed a typo on new isRestrained method at models
* Fixed a couple GlobalConfig var name that also has a typo
* Updated migration to include a new index on state_date for user services (new isRestrained method on DeployedServices lookups by this field)
2013-02-11 06:26:59 +00:00
Adolfo Gómez
2a95cbd4b9 * More about stats
* Added a fix for "broken" Deployed Services that could prevent broker from updating cache of other deployed services if one gets "inoperable". Now we have added a "Restrain" policy, where if a service has 3 or more deploy errors in less than ten minutes, it will be ignored for cache updating until this policy is not satisfied.
2013-02-11 06:08:28 +00:00
Adolfo Gómez
837e9a6b6a Finished one part of stats (adding counters and querying them) 2013-02-07 14:54:52 +00:00
Adolfo Gómez
e9ff77728f Working on stats (making efficient to query over a group of several millions of stats) 2013-02-07 13:52:37 +00:00
Adolfo Gómez
cebb7df457 Working on stats (making efficient to query over a group of several millions of stats) 2013-02-07 11:19:46 +00:00
Adolfo Gómez
516bd7eeb0 * Adding stats, charts, ...
* Refactoring some packages also
2013-02-07 08:37:54 +00:00
Adolfo Gómez
1f218a4f96 * Adding logs to users & authenticators 2013-02-01 10:08:49 +00:00
Adolfo Gómez
0a6f18f1cc * Adding logs to users & authenticators 2013-02-01 09:41:38 +00:00
Adolfo Gómez
a740207b8e Added log for all initial loggable objects
Added removing logs at object destroy (models)
2013-01-31 14:24:29 +00:00
Adolfo Gómez
a1f72833a4 Fixed WinDomainOSManager 2013-01-30 17:44:24 +00:00
Adolfo Gómez
99c2a829b6 Updated 2013-01-30 16:50:47 +00:00
Adolfo Gómez
fc92b3edaa * Updated log system to manage it though a manager
* Updated default settings so tables are created using myisam (for speed) by default
* Updated model to remove doLog from UserService
* Added log manager
* Added log config parameter
* Updated components so they use the new log manager
* Updated virt client so if it can't connect, it raise an exception and do not initializes ovirt cached connection
* Updated plugin detect
* Added xmlrpc methods to access UserService logs
2013-01-28 09:51:38 +00:00
Adolfo Gómez
462cfe9391 Fixed log so source is better described. 2013-01-10 16:37:44 +00:00
Adolfo Gómez
59b4f27ca7 Fixed "created" field on machine log (from Date to DateTime... my mistake :-) ) 2013-01-10 16:22:19 +00:00
Adolfo Gómez
2af9e04343 * Added Log lovel str as constants
* Updated so services are keeped at least 10 after marked for removal
* Update os manager so it logs user in/out events (probably will remove this after testing log from actor directly...)
2012-12-19 12:33:13 +00:00
Adolfo Gómez
c1dd63a7a7 * Updated nxtransport to match new actor
* Updated UserServiceCleaner to wait a bit before trying to remove "removable" services (so we avoid most connections errors)
2012-12-19 12:09:15 +00:00
Adolfo Gómez
ff609a39e8 * Added support to existing transports to notify ip/hostname of client connected to service
* Added support to administration interface to show this data
2012-12-14 11:43:20 +00:00
Adolfo Gómez
ece44a266d * Adding support for "connection source information" to services
* Adding support for logging inside services
2012-12-12 12:42:40 +00:00
Adolfo Gómez
10f22fb1e8 Advancing logging 2012-12-12 12:18:55 +00:00
Adolfo Gómez
d75422c96f * Added a "needed" comment on USerServiceManager
* Cached "modfinder" results
* Added "early" loading of dispatchers, so they can register (for example) Configuration Parameters, etc..
2012-12-05 09:09:33 +00:00
Adolfo Gómez
63d0f6e470 Fixed a bug with creation of assigned services for services without publication 2012-12-04 11:29:37 +00:00
Adolfo Gómez
baecf526a1 Checking how we can allow some TCs to use UDS as broker, i have detected some of them that asks for credentials when listing the machines. As UDS uses credentials to access the machine at the time the user access it (at time of listing, maybe that even the service is not created for that user), we can't provide credentials BEFORE assigning the machine.
In order to allow this kind of TCs to use UDS, we have implemented a mechanism that allows to know if a deployed service (or an service) transforms the credentials and, if so, the dispatcher for that TC can "skip" those services with that kind of os manager.
2012-12-03 10:42:18 +00:00
Adolfo Gómez
2716707952 Fixing up core so we can provide some kind of access using Thin Clients or Software clients not using web & html 2012-12-03 09:43:12 +00:00
Adolfo Gómez
74fa2c28a2 2012-12-03 09:13:09 +00:00
Adolfo Gómez
7d53be3383 Added "Experimental" to oVirt Name and Description on Interface (till enought tests are done) 2012-11-30 10:19:14 +00:00
Adolfo Gómez
d6b65a7e88 More test over oVirt, and added "Memory for Virtual Machine" and "Physical memory guaranteed" as parameters on oVirtService 2012-11-30 10:08:23 +00:00
Adolfo Gómez
06bdc36645 Removed unused imports... 2012-11-28 09:51:19 +00:00
Adolfo Gómez
8fe268a1f1 * Updated translations (definitions at least)
* Added translations to Spanish
2012-11-28 09:29:23 +00:00
Adolfo Gómez
ff955738b1 Replaced "translatable" by "_", so messages localization is easier... (my blame this was this way ;-)) 2012-11-28 09:05:33 +00:00
Adolfo Gómez
3decdf3d9e Now, on deseralization, sets values of "new fields" (those added to class AFTER a serialization) to defaults one. (So, if we have make a class with 3 fields, "a", "b" and "c", and we at a later stage adds "d", if serialiezed data contains only "a" "b" & "c", deseralziation will fill the value of "d" with its default value (if it has one) 2012-11-28 08:46:07 +00:00
Adolfo Gómez
8437c682fd It is not posible, using stable version, to start a machine created using the REST api if the datacenter contains an activated ISO domain. It seems to be a bug-fix here at: https://bugzilla.redhat.com/show_bug.cgi?id=843387, but have to test it.
Right now, to make oVirt work with stable version of oVirt (3.1 right now), you must DEACTIVATE ISO Domain in order to make this work.

Hopefully, 3.2 is almost here (expected for Q1 of 2013, i thin)
2012-11-28 07:29:56 +00:00
Adolfo Gómez
b4309e72fa Doing Level 2 cache part work on ovirt... 2012-11-26 13:49:52 +00:00
Adolfo Gómez
710b56d4e1 * Added support for OS Managers to change services passwords.
* oVirt should be usable right now, testing and fixing minor bugs
* Added support for Windows Support with password changing of user to new one
* Minor improvements (to code)
2012-11-26 13:39:22 +00:00
Adolfo Gómez
830e1b2e6f oVirt connector SHOULD work fine right now (but needs more testing... :P).
Have the "volPath" problem (inside vsdm/clientIF.py) at this time, solved by patching my installation, but i have to find a definitive solution.

Will do also tests with "real" vms (not just small 1Gb with no os to test platform), but this should work fine. (we will see..)
2012-11-23 11:47:58 +00:00
Adolfo Gómez
0eea8a33b5 Done oVirt engine connector. Now the hard part, test it and fix it (it isn't already usable!!!) 2012-11-22 10:28:52 +00:00
Adolfo Gómez
400ac892f0 Advancing a lot with ovirt. Detected something on machine creations that maybe an vdsm bug (ovirt). Going to make a bug report to see if it really is an error or is something i'm missing (seems like a bug anyway... :-) ) 2012-11-21 13:04:58 +00:00
Adolfo Gómez
aebacb166b oVirt provider now publishes and removes poblications. Already unusable until finished oVirtLinkedDeployment at least 2012-11-16 09:05:55 +00:00
Adolfo Gómez
7717793604 Removed "excesive" debug and added sanity check to unserialization of form 2012-11-16 09:04:33 +00:00
Adolfo Gómez
2b3cc74f64 Removed "excesive" debug and added sanity check to unserialization of form 2012-11-16 09:02:39 +00:00
Adolfo Gómez
0bb26cfae1 * Added more methods needed at oVirtClient
* Finished (need testing) oVirtLinkedService, so now we can add new oVirtLinkedServices, but can't publish it :-)
* Added helpers methods to allow new oVirtLinkedServices
2012-11-15 08:56:59 +00:00
Adolfo Gómez
85dd9b0537 As service providers grows, it's easier to identify Services using "Provider name"\"Service name", at new deployed service form, so i have added this. 2012-11-15 08:53:24 +00:00
Adolfo Gómez
04192f3ec9 Hidden fields are not serialized by serializeForm, but by mistake i used "pass" instead of "continue" at check time to skip it... :-) 2012-11-15 08:42:52 +00:00
Adolfo Gómez
648967cb93 Adding necesary methods to oVirt Client 2012-11-14 20:55:20 +00:00
Adolfo Gómez
6c7a5e8d58 * Added info to client for managing new service form 2012-11-14 11:47:28 +00:00
Adolfo Gómez
c8f8ee054c Advancend in oVirt connectivity. Has found some problems (such as ovirtsdk doesn't allow, right now, have more than one simultaneous connection to an ovirt server), and i'm solving it "serializing" access to ovirt servers... Hopefully in a near future, ovirtsdk will allow access to more than one server and this will be unnecesary. 2012-11-14 11:27:00 +00:00
Adolfo Gómez
1b03851ace 2012-11-13 07:24:33 +00:00
Adolfo Gómez
af9bfccf65 With previous upload, solves a deadlock problem with database 2012-11-12 19:48:27 +00:00
Adolfo Gómez
96c95e8ff5 2012-11-12 19:29:51 +00:00
Adolfo Gómez
37f4bf6caf Updated message files 2012-11-08 09:44:21 +00:00
Adolfo Gómez
159d85fb7a * Added support for Multiline Configurations (needs new administration client)
* Added custom html support on login page
* Fixed (c) downpage to allow the use of "content" css property correctly (see uds.css)
* Upgraded needed client version to 1.0.8
2012-10-30 16:02:08 +00:00
Adolfo Gómez
8a04db28e9 Starting kvm (oVirt based) part 2012-10-30 15:07:01 +00:00
Adolfo Gómez
a4c1f6af8f Fixed a bug with encodings when using extended chars (such as á, ...). Set default encoding at "wsgi.py" to UTF-8 and added a custom "sitecustomize.py" so, in case we run server from command line (with PYTHONPATH at least pointing to "."), correctly sets the encoding to UTF-8 2012-10-30 15:00:45 +00:00
Adolfo Gómez
abd4246b40 Added "alter table character set" on creation to modify them to utf8 (better is to have database in utf8) 2012-10-29 14:03:00 +00:00
Adolfo Gómez
b8c5678bde Removed storage debug line 2012-10-25 16:34:51 +00:00
Adolfo Gómez
069044d0ab Updated signed rdp.jar to show pin bar by default (On windows) 2012-10-24 13:48:12 +00:00
Adolfo Gómez
377d00f190 Fixed a bug with internal auth (no groups returned on authentication, resulting in access denied) 2012-09-29 04:50:40 +00:00
Adolfo Gómez
996b429f85 * Fixed internal DB not validating groups of user at login (so user has no valid group, and can't log in) 2012-09-21 10:33:42 +00:00
Adolfo Gómez
929e589b45 * Fixed service access from deployed publication 2012-09-20 12:50:23 +00:00
Adolfo Gómez
e9c810a80f * Fixed error with user service 2012-09-20 12:36:00 +00:00
Adolfo Gómez
af33a442b4 * Fixed Internal auth
* Added debug to Publication (info)
2012-09-20 11:29:00 +00:00
Adolfo Gómez
f8830a9824 2012-09-15 10:02:36 +00:00
Adolfo Gómez
14c83cca68 * Fixed bug at choose callbacks (from gui) that was calling directly to validateCredentials instead of using @needs_credentials decorator 2012-09-15 09:54:15 +00:00
Adolfo Gómez
0044318388 Minor regex ldap fixes 2012-08-20 05:22:49 +00:00
Adolfo Gómez
35c23af6bd Updated sample settings 2012-07-31 13:08:31 +00:00
Adolfo Gómez
ee3b4f818d Removed Linux Os Manager binary 2012-07-31 12:21:52 +00:00
Adolfo Gómez
36be832d53 More binaries out of the source code 2012-07-31 11:48:29 +00:00
Adolfo Gómez
bd81e83f7a Some more refactoring 2012-07-31 10:42:30 +00:00
Adolfo Gómez
22d728a152 * Done some refactoring over uds.core.jobs
* Added method to model Authenticator so we can check if it is of a type
2012-07-30 02:30:46 +00:00
Adolfo Gómez
6000d4f30c Changed type of storage field "data" 2012-07-30 01:23:14 +00:00
Adolfo Gómez
2199904b50 Some more refactoring done 2012-07-27 12:13:05 +00:00
Adolfo Gómez
99d0a0cc75 Updated documentation 2012-07-27 12:08:38 +00:00
Adolfo Gómez
ebc987a98e Fixed comment 2012-07-27 11:56:51 +00:00
Adolfo Gómez
4b31a78e25 * Added "get" an "put" methods to storage (much more easy to remember than readData and savedata...)
* Updated callback so it also gets Groups Manager, needed for group validations
* Fixed getOrCreateUser at Authenticator model, so it updates the name if new name differs from old name
* Removed "return to main" from detectJava, so it transition is more "seamless"
2012-07-27 02:00:25 +00:00
Adolfo Gómez
18a30e0068 Updated authenticator callback, and added a few methods to Cryptomanager 2012-07-26 12:50:36 +00:00
Adolfo Gómez
44dfb68a1c Little bug fixed at urls 2012-07-25 13:02:10 +00:00
Adolfo Gómez
f182647d81 Changed authentication callback url generation, so it uses name instead of database id. 2012-07-25 12:36:03 +00:00
Adolfo Gómez
8367707a7b Added default return value to Cache.get 2012-07-25 01:30:08 +00:00
Adolfo Gómez
f7703ff992 Added DJango request to values dictionary, passed at authenticator initialization (we may need request object to, for example, generate uniques ids based on server address, and request object can provide this) 2012-07-24 23:43:32 +00:00
Adolfo Gómez
e04239de55 Added request object to xmlrpc methods that needs credentials 2012-07-23 15:59:13 +00:00
Adolfo Gómez
cf1ca260cb Changed Authenticator so the can support "logout" 2012-07-23 14:57:20 +00:00
Adolfo Gómez
503d03431c Adapting authenticator to better support of SSOs 2012-07-23 13:34:09 +00:00
Adolfo Gómez
713614a784 Refactoring, to make things easier to understand and use 2012-07-20 01:38:15 +00:00
Adolfo Gómez
bef6a52354 Refactoring, to make things easier to understand and use 2012-07-20 01:14:41 +00:00
Adolfo Gómez
3c81d4ab5a 2012-07-20 00:32:04 +00:00
Adolfo Gómez
af3ee52058 Initial release 2012-07-19 23:47:54 +00:00