[pve-devel] [PATCH v5 manager 0/5] add pveceph install to gui

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Feb 8 16:06:19 CET 2019


Am 2/8/19 um 12:16 PM schrieb Tim Marx:
> 
> v5:
> I added the install window to the remaining submenus.
> This needed some changes regarding error handling to get the same
> behavior for all subviews.

UI result looks pretty good neat now, nice! Besides some details (e.g., the camel
cased cmdMapper hash (please juts use cmd_map ;-)) This looks pretty well and has
my Ack on the general idea. But what's IMO really important is that once we roll
this out, _all_ steps for setting up a basic ceph installation should be dooable
over WebUI only, as now I can install ceph, but still need to do pveceph init.
This could be done by a small wizard, so that networks can be passed, for example,
not sure how well this works.

Also, I get a few whitespace errors on applying:

Applying: unified the classification of the passed command for all shell apis
.git/rebase-apply/patch:66: trailing whitespace.

warning: 1 line adds whitespace errors.
Applying: deprecate old upgrade property
Applying: add pveceph install to shell api
Applying: added new parameter to pass a command to the newly opened terminal
Applying: added basic ability to install ceph via gui
.git/rebase-apply/patch:184: trailing whitespace.

.git/rebase-apply/patch:457: trailing whitespace.

warning: 2 lines add whitespace errors.

but in general, nice work, thanks!

> 
> Only the manager repo got touched.
> 
> v4:
> I addressed various inputs:
> https://pve.proxmox.com/pipermail/pve-devel/2019-January/035387.html
> https://pve.proxmox.com/pipermail/pve-devel/2019-January/035377.html
> https://pve.proxmox.com/pipermail/pve-devel/2019-January/035378.html
> 
> v3:
> I headed back to my original approach and declare the cmd parameter 
> in each api endpoint separately. This results again in only 4 repos
> touched instead of 5. This change is reasoned by Thomas input [0].
> I decided against a module level variable because I think it improves
> the readability.
> 
> All repos since v2 are untouched except the pve-manager.
> Changed some commit messages slightly.
> 
> [0] https://pve.proxmox.com/pipermail/pve-devel/2019-January/035358.html
> 
> v2:
> In general I changed the approach from passing a command directly to
> passing a command keyword which gets matched in the api and not
> directly executed. Only the following two out of now 5 (v1 were 4) repos 
> got changed since v1.
> 
> v1:
> With this patch series and the corresponding patches in the following repositories
> its now possible to install ceph via the gui in the same way as someone would if using the
> pveceph install command manually
> 
> Affected repositories:
> 
> *)pve-manager:
>   * altered the ceph install check to check for the mon binary, 
>     because the ceph binary is likely to be there already
>   * added parameter to all 3 consoles (novnc,xterm,spice) to pass a custom command
>   * in the gui the ceph status page checks if the not install error returns and 
>     if so, shows a window which offers to install ceph
> 
> *)pve-xtermjs:
>   * added new cmd paramater 
> *)proxmox-widget-toolkit:
>   * added new cmd paramater
> *)novnc-pve:
>   * added new cmd paramater
> 
> 
> Tim Marx (5):
>   unified the classification of the passed command for all shell apis
>   deprecate old upgrade property
>   add pveceph install to shell api
>   added new parameter to pass a command to the newly opened terminal
>   added basic ability to install ceph via gui
> 
>  PVE/API2/Nodes.pm                    | 97 +++++++++++++++++++++---------------
>  www/css/ext6-pve.css                 |  5 ++
>  www/manager6/Makefile                |  2 +
>  www/manager6/Utils.js                | 50 ++++++++++++++++---
>  www/manager6/button/ConsoleButton.js | 12 +++--
>  www/manager6/ceph/Config.js          | 13 +++++
>  www/manager6/ceph/Crush.js           | 12 +++++
>  www/manager6/ceph/FS.js              | 36 ++++++++++++-
>  www/manager6/ceph/Log.js             | 70 ++++++++++++++++++++++++++
>  www/manager6/ceph/Monitor.js         | 16 +++++-
>  www/manager6/ceph/OSD.js             | 19 ++++++-
>  www/manager6/ceph/Pool.js            | 15 +++++-
>  www/manager6/ceph/Status.js          | 18 ++++++-
>  www/manager6/node/Config.js          |  5 +-
>  www/manager6/window/CephInstall.js   | 57 +++++++++++++++++++++
>  15 files changed, 366 insertions(+), 61 deletions(-)
>  create mode 100644 www/manager6/ceph/Log.js
>  create mode 100644 www/manager6/window/CephInstall.js
> 
> novnc:
> 
> Tim Marx (1):
>   novnc: added new parameter to pass a command to the newly opened
>     terminal
> 
>  .../patches/0012-pass-custom-command-to-vnc.patch  | 38 ++++++++++++++++++++++
>  debian/patches/series                              |  1 +
>  2 files changed, 39 insertions(+)
>  create mode 100644 debian/patches/0012-pass-custom-command-to-vnc.patch
> 
> xterm:
> 
> Tim Marx (1):
>   xterm: added new parameter to pass a command to the newly opened
>     terminal
> 
>  src/www/main.js | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> widget:
> 
> Tim Marx (1):
>   widget: added new parameter to pass a command to the newly opened
>     terminal
> 
>  Utils.js | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 





More information about the pve-devel mailing list