noreply | 3 May 04:21 2016

[freenas/middleware] 2d289b: Description generation function could fail on malformed tasks.

 <at> jceel has pushed to https://github.com/freenas/middleware

Commit List:

* Description generation function could fail on malformed tasks.
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/2d289b6a0cb356e25190a769b548bb67b521d705

...............................

Commit: 2d289b6a0cb356e25190a769b548bb67b521d705
Author: Jakub Klama <jakub.klama@...>
Date: 2016-05-03T04:20:43+02:00
URL: https://github.com/freenas/middleware/commit/2d289b6a0cb356e25190a769b548bb67b521d705

Description generation function could fail on malformed tasks.

diff --git a/src/cli/freenas/cli/descriptions/tasks.py b/src/cli/freenas/cli/descriptions/tasks.py
index 2d97ced..9192699 100644
--- a/src/cli/freenas/cli/descriptions/tasks.py
+++ b/src/cli/freenas/cli/descriptions/tasks.py
 <at>  <at>  -67,4 +67,7  <at>  <at>  def translate(context, name, args=None):
     if args is None:
         return first

-    return second(context, args)
+    try:
+        return second(context, args)
+    except:
+        return first
(Continue reading)

noreply | 3 May 04:17 2016

[freenas/middleware] 57b645: Check volume existence again in run().

 <at> jceel has pushed to https://github.com/freenas/middleware

Commit List:

* Check volume existence again in run().
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/57b6456fe5d51a543b3da4715ee2799a27870470

...............................

Commit: 57b6456fe5d51a543b3da4715ee2799a27870470
Author: Jakub Klama <jakub.klama@...>
Date: 2016-05-03T04:17:00+02:00
URL: https://github.com/freenas/middleware/commit/57b6456fe5d51a543b3da4715ee2799a27870470

Check volume existence again in run().

diff --git a/src/dispatcher/plugins/VolumePlugin.py b/src/dispatcher/plugins/VolumePlugin.py
index b2c593c..afea2e1 100644
--- a/src/dispatcher/plugins/VolumePlugin.py
+++ b/src/dispatcher/plugins/VolumePlugin.py
 <at>  <at>  -621,6 +621,9  <at>  <at>  def verify(self, id):

     def run(self, id):
         vol = self.datastore.get_by_id('volumes', id)
+        if not vol:
+             raise TaskException(errno.ENOENT, 'Volume {0} not found'.format(id))
+
         encryption = vol.get('encryption', {})
         config = self.dispatcher.call_sync('zfs.pool.query', [('id', '=', id)], {'single': True})
(Continue reading)

noreply | 3 May 04:13 2016

[freenas/freenas] 321b98: Remove more redundant closes

 <at> surajrav has pushed to https://github.com/freenas/freenas

Commit List:

* Remove more redundant closes
added: 0 modified: 1 removed: 0
https://github.com/freenas/freenas/commit/321b988e02f31e8a663fc29a51ecf0cbeaac17dc

...............................

Commit: 321b988e02f31e8a663fc29a51ecf0cbeaac17dc
Author: Suraj Ravichandran <suraj@...>
Date: 2016-05-02T19:13:12-07:00
URL: https://github.com/freenas/freenas/commit/321b988e02f31e8a663fc29a51ecf0cbeaac17dc

Remove more redundant closes

diff --git a/src/freenas/usr/local/libexec/nas/generate_sssd_conf.py b/src/freenas/usr/local/libexec/nas/generate_sssd_conf.py
index a84a933..1a156d8 100755
--- a/src/freenas/usr/local/libexec/nas/generate_sssd_conf.py
+++ b/src/freenas/usr/local/libexec/nas/generate_sssd_conf.py
 <at>  <at>  -489,7 +489,7  <at>  <at>  def merge_config(self, sc):
                         if s[var]:
                             self_s[var] = s[var]

-                else: 
+                else:
                     self.sections[st] = s

                 if st not in services:
(Continue reading)

noreply | 3 May 04:11 2016

[freenas/freenas] ed8c9d: Do not close a file in a with context

 <at> surajrav has pushed to https://github.com/freenas/freenas

Commit List:

* Do not close a file in a with context
added: 0 modified: 1 removed: 0
https://github.com/freenas/freenas/commit/ed8c9d54c2e20b80a10e0f3562da7fee70562c9e

...............................

Commit: ed8c9d54c2e20b80a10e0f3562da7fee70562c9e
Author: Suraj Ravichandran <suraj@...>
Date: 2016-05-02T19:10:31-07:00
URL: https://github.com/freenas/freenas/commit/ed8c9d54c2e20b80a10e0f3562da7fee70562c9e

Do not close a file in a with context

diff --git a/src/freenas/usr/local/libexec/nas/generate_sssd_conf.py b/src/freenas/usr/local/libexec/nas/generate_sssd_conf.py
index b2aa987..a84a933 100755
--- a/src/freenas/usr/local/libexec/nas/generate_sssd_conf.py
+++ b/src/freenas/usr/local/libexec/nas/generate_sssd_conf.py
 <at>  <at>  -744,7 +744,6  <at>  <at>  def add_ldap_section(sc):
         path = tempfile.mktemp(dir='/tmp')
         with open(path, 'wb+') as f:
             f.write(ldap.ldap_auxiliary_parameters)
-            f.close()

         aux_sc = SSSDConf(path=path, cookie=sc.cookie)
         os.unlink(path)
...............................
(Continue reading)

noreply | 3 May 04:05 2016

[freenas/middleware] 8797ea: Allow to use external RpcContext.

 <at> jceel has pushed to https://github.com/freenas/middleware

Commit List:

* Allow to use external RpcContext.
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/8797eae048e993ca0dcfe5167e360483f69b8806

...............................

Commit: 8797eae048e993ca0dcfe5167e360483f69b8806
Author: Jakub Klama <jakub@...>
Date: 2016-05-03T04:05:13+02:00
URL: https://github.com/freenas/middleware/commit/8797eae048e993ca0dcfe5167e360483f69b8806

Allow to use external RpcContext.

diff --git a/src/dispatcher/client/python/freenas/dispatcher/client.py b/src/dispatcher/client/python/freenas/dispatcher/client.py
index c56785b..fe12778 100644
--- a/src/dispatcher/client/python/freenas/dispatcher/client.py
+++ b/src/dispatcher/client/python/freenas/dispatcher/client.py
 <at>  <at>  -419,8 +419,8  <at>  <at>  def disconnect(self):
         self.drop_pending_calls()
         self.transport.close()

-    def enable_server(self):
-        self.rpc = rpc.RpcContext()
+    def enable_server(self, rpc=None):
+        self.rpc = rpc or rpc.RpcContext()

(Continue reading)

noreply | 3 May 03:46 2016

[freenas/middleware] 8c2b74: First pass at reusable RPC server (with Unix domain socket transport).

 <at> jceel has pushed to https://github.com/freenas/middleware

Commit List:

* First pass at reusable RPC server (with Unix domain socket transport).
added: 1 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/8c2b74d36be1bd03260c03baa8c01ec423eedb45

...............................

Commit: 8c2b74d36be1bd03260c03baa8c01ec423eedb45
Author: Jakub Klama <jakub@...>
Date: 2016-05-03T03:45:56+02:00
URL: https://github.com/freenas/middleware/commit/8c2b74d36be1bd03260c03baa8c01ec423eedb45

First pass at reusable RPC server (with Unix domain socket transport).

diff --git a/src/dispatcher/client/python/freenas/dispatcher/transport.py b/src/dispatcher/client/python/freenas/dispatcher/transport.py
index 3872952..a172a80 100644
--- a/src/dispatcher/client/python/freenas/dispatcher/transport.py
+++ b/src/dispatcher/client/python/freenas/dispatcher/transport.py
 <at>  <at>  -118,7 +118,21  <at>  <at>  def close(self):

 class ServerTransport(object):
     def __new__(cls, *args, **kwargs):
-        pass
+        SERVER_TRANSPORTS = {
+            'unix': ServerTransportSock
+        }
+
(Continue reading)

noreply | 3 May 02:15 2016

[freenas/middleware] c00545: Add `task_started` event to hopefully prevent the death of innocent Ta

 <at> surajrav has pushed to https://github.com/freenas/middleware

Commit List:

* Improve Update Download Exception Handling.
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/db94bd12fb3582bef7a3e009eb4aad67233d160f

* Add `task_started` event to hopefully prevent the death of innocent TaskExecutors!

More work is needed in MasterProgressTask Simplification (aka de-surajing) but this is the critical part.
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/c005459b3ab0666dd44feae9c961338882077dc2

...............................

Commit: db94bd12fb3582bef7a3e009eb4aad67233d160f
Author: Suraj Ravichandran <suraj@...>
Date: 2016-05-02T17:15:25-07:00
URL: https://github.com/freenas/middleware/commit/db94bd12fb3582bef7a3e009eb4aad67233d160f

Improve Update Download Exception Handling.

diff --git a/src/dispatcher/plugins/UpdatePlugin.py b/src/dispatcher/plugins/UpdatePlugin.py
index 94e0272..7c47617 100644
--- a/src/dispatcher/plugins/UpdatePlugin.py
+++ b/src/dispatcher/plugins/UpdatePlugin.py
 <at>  <at>  -49,7 +49,8  <at>  <at> 
 from freenasOS import Configuration, Train
 from freenasOS.Exceptions import (
(Continue reading)

noreply | 3 May 02:01 2016

[freenas/middleware] 2c3132: Simplify client_transport module, rename it to just "transport".

 <at> jceel has pushed to https://github.com/freenas/middleware

Commit List:

* Simplify client_transport module, rename it to just "transport".
added: 1 modified: 1 removed: 1
https://github.com/freenas/middleware/commit/2c31328cfb00064e23b94028ec52cc65906f8280

...............................

Commit: 2c31328cfb00064e23b94028ec52cc65906f8280
Author: Jakub Klama <jakub@...>
Date: 2016-05-03T02:00:55+02:00
URL: https://github.com/freenas/middleware/commit/2c31328cfb00064e23b94028ec52cc65906f8280

Simplify client_transport module, rename it to just "transport".

diff --git a/src/dispatcher/client/python/freenas/dispatcher/client.py b/src/dispatcher/client/python/freenas/dispatcher/client.py
index 6c39e84..c56785b 100644
--- a/src/dispatcher/client/python/freenas/dispatcher/client.py
+++ b/src/dispatcher/client/python/freenas/dispatcher/client.py
 <at>  <at>  -36,7 +36,7  <at>  <at> 
 from queue import Queue
 from freenas.dispatcher import rpc
 from freenas.utils.spawn_thread import spawn_thread
-from freenas.dispatcher.client_transport import ClientTransportBuilder
+from freenas.dispatcher.transport import ClientTransport
 from freenas.dispatcher.fd import FileDescriptor, replace_fds, collect_fds
 from ws4py.compat import urlsplit

(Continue reading)

noreply | 3 May 01:32 2016

[freenas/gui] c3782a: Update montage-data cache to 201605021936.

 <at> thibaultzanini has pushed to https://github.com/freenas/gui

Commit List:

* Update montage-data cache to 201605021936.
added: 1 modified: 7 removed: 0
https://github.com/freenas/gui/commit/c3782a876193d41141eb8fb7c1f01b18c7f06806

...............................

Commit: c3782a876193d41141eb8fb7c1f01b18c7f06806
Author: Thibault Zanini <thibaultzanini@...>
Date: 2016-05-02T16:31:45-07:00
URL: https://github.com/freenas/gui/commit/c3782a876193d41141eb8fb7c1f01b18c7f06806

Update montage-data cache to 201605021936.

diff --git a/core/model/descriptors/known-host.mjson b/core/model/descriptors/known-host.mjson
index 89962c2..e5edbd9 100644
--- a/core/model/descriptors/known-host.mjson
+++ b/core/model/descriptors/known-host.mjson
 <at>  <at>  -23,6 +23,14  <at>  <at> 
       "valueType": "String"
     }
   },
+  "blueprint_knownhost_port": {
+    "prototype": "montage/core/meta/property-blueprint",
+    "properties": {
+      "name": "port",
+      "blueprint": {" <at> ": "root"},
(Continue reading)

noreply | 3 May 00:37 2016

[freenas/middleware] 59b89c: UPDATED: replication.sync to accept transport layer plugins

 <at> shangteus has pushed to https://github.com/freenas/middleware

Commit List:

* UPDATED: replicate dataset task: pass transport plugins down to replication transport layer
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/55880e357c5630daeec4a9aa59a88e2e4d76317d

* UPDATED: replicate command in CLI - allow to specify encryption, compression and throttling + cleanup of
obsolete arguments + added help text
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/56286d067b998966a6dea4dd9d1da374f057ccff

* UPDATED: use send_size as an estimate of total size of replication stream for replication transport
layer purposes
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/b180a359bd0f570c37eac6680e59ba4081b462b5

* UPDATE: replication sync command in CLI - allow to specify replication transport layer parameters at
this level
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/920bd916c1bf38c6de78116214e7a80fa45245ec

* UPDATED: replication.sync to accept transport layer plugins
added: 0 modified: 1 removed: 0
https://github.com/freenas/middleware/commit/59b89c9643fb45705691ae6b2ebfe58c5732012d

...............................

Commit: 55880e357c5630daeec4a9aa59a88e2e4d76317d
(Continue reading)

noreply | 3 May 00:36 2016

[freenas/middleware] 3cad45: ADDED: a fixed layout sample page for new design

 <at> mactanxin has pushed to https://github.com/freenas/middleware

Commit List:

* ADDED: a fixed layout sample page for new design
added: 1 modified: 0 removed: 0
https://github.com/freenas/middleware/commit/3cad4563c52dfff7c412d1a45c23329eb8ae4ab6

...............................

Commit: 3cad4563c52dfff7c412d1a45c23329eb8ae4ab6
Author: Xin Tan <mactanxin@...>
Date: 2016-05-02T15:35:28-07:00
URL: https://github.com/freenas/middleware/commit/3cad4563c52dfff7c412d1a45c23329eb8ae4ab6

ADDED: a fixed layout sample page for new design

diff --git a/src/dispatcher/src/frontend/templates/fixed.html b/src/dispatcher/src/frontend/templates/fixed.html
new file mode 100644
index 0000000..9983b51
--- /dev/null
+++ b/src/dispatcher/src/frontend/templates/fixed.html
 <at>  <at>  -0,0 +1,499  <at>  <at> 
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="UTF-8">
+    <title>AdminLTE 2 | Fixed Layout</title>
+    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
+    <!-- Bootstrap 3.3.2 -->
(Continue reading)


Gmane