Signed-off-by: Dietmar Maurer
---
PVE/CLI/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/CLI/Makefile b/PVE/CLI/Makefile
index 88cd99c9..93b3f3c6 100644
--- a/PVE/CLI/Makefile
+++ b/PVE/CLI/Makefile
@@ -1,6 +1,6 @@
include ../../defines.mk
-SOURCES=vzdump.pm
Most of those API calls return simple strings, so it does not really matter.
Nethertheless, some calls return complex data structures and we want to set
output format for them.
Signed-off-by: Dietmar Maurer
---
PVE/CLI/pvesh.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff
Tools like pvesh and pveclient pass them as normal arguments. We use
a simply heuristic to test if there is an 'output_format' parameter.
If so, we remove all $standard_output_options and display [FORMAT_OPTIONS]
instead.
Signed-off-by: Dietmar Maurer
---
src/PVE/RESTHandler.pm | 10 ++
On Wed, 2018-07-11 at 19:50 +0200, Stoiko Ivanov wrote:
> Hi,
>
> I finally got around to give your patches a spin, and can report that
> they work for my preliminary tests.
>
> One thing, which I think is not a good idea is the reuse of the
> comstar_tg property for the tpg of LIO (from my
adding LIO option and dedicated "LIO target portal group" input field to the
"Add: ZFS via iSCSI" dialog
---
www/manager6/form/iScsiProviderSelector.js | 3 ++-
www/manager6/storage/ZFSEdit.js| 7 +++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git
UI changes required to support Linux LIO iSCSI targets.
Udo Rader (1):
Linux LIO/targetcli support
www/manager6/form/iScsiProviderSelector.js | 3 ++-
www/manager6/storage/ZFSEdit.js| 7 +++
2 files changed, 9 insertions(+), 1 deletion(-)
--
2.18.0
Introducing LIO/targetcli support allowing to use recent linux
distributions as iSCSI targets for ZFS volumes.
In order for this to work, two preconditions have to be met:
1. the portal has to be set up correctly using targetcli
2. the initiator has to be authorized to connect to the target
Following Stoiko's review, I refactored the LIO code according to his remarks,
dropping some unneeded code copied from the iet implementation.
Instead of (ab)using the comstar_tg property, I've introduced a new "lio_tpg"
property. So if you apply this patch, be sure to also apply the fitting
Am 07/26/2018 um 02:26 PM schrieb Dietmar Maurer:
Please give me some more time to test - lets bump tomorrow
OK, sounds good.
On July 26, 2018 at 2:11 PM Thomas Lamprecht wrote:
Am 07/26/2018 um 01:17 PM schrieb Dietmar Maurer:
Just commited my changes to pve-common and pve-manager.
Instead, simply add [FORMAT_OPTIONS] to the usage string.
Signed-off-by: Dietmar Maurer
---
src/PVE/RESTHandler.pm | 73 +-
1 file changed, 43 insertions(+), 30 deletions(-)
diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm
index
Please give me some more time to test - lets bump tomorrow
> On July 26, 2018 at 2:11 PM Thomas Lamprecht wrote:
>
>
> Am 07/26/2018 um 01:17 PM schrieb Dietmar Maurer:
> > Just commited my changes to pve-common and pve-manager.
>
> OK, great. I'd then bump manager and common if you have no
applied
> On July 25, 2018 at 11:21 AM Thomas Lamprecht wrote:
>
>
> The loading of an external hosted ExtJS is from a time where we did
> not have a extra ExtJS package as it still was in the pve-manager
> one, which was not desired to be installed on a non-pve machine.
> Add a dependency on
applied
> On July 25, 2018 at 11:21 AM Thomas Lamprecht wrote:
>
>
> The touch feels super zoomed, and the api-viewer is probably much
> more viewed through a desktop/laptop not a mobile device with small
> high-dpi touch screen.
___
pve-devel
Am 07/26/2018 um 01:17 PM schrieb Dietmar Maurer:
Just commited my changes to pve-common and pve-manager.
OK, great. I'd then bump manager and common if you have no objections.
___
pve-devel mailing list
pve-devel@pve.proxmox.com
applied
> On July 25, 2018 at 11:21 AM Thomas Lamprecht wrote:
>
>
> Use the over 4 times smaller minfied version of ExtJS, not the debug
> one.
>
> Any developer can easily use the debug version if needed, but most of
> the times it this isn't the case.
>
> Signed-off-by: Thomas Lamprecht
> OLD:
>
> # pvesh ls
> Dr--- access
> Dr--- cluster
> Dr--- nodes
> Dr-c- pools
> Dr-c- storage
> -r--- version
>
> (output size is 863 bytes vs 79 bytes, just as a side note)
>
> But besides disliking of the default formatting choice, the code changes
OK, changed 'ls' back to old format.
Signed-off-by: Dietmar Maurer
---
bin/pvesh | 83 +--
1 file changed, 44 insertions(+), 39 deletions(-)
diff --git a/bin/pvesh b/bin/pvesh
index 36c9a900..5dab90c3 100755
--- a/bin/pvesh
+++ b/bin/pvesh
@@ -103,18 +103,17 @@ sub
Signed-off-by: Dietmar Maurer
---
PVE/CLI/pvenode.pm | 42 +++---
1 file changed, 23 insertions(+), 19 deletions(-)
diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index 9dee6ce9..8a6a924d 100644
--- a/PVE/CLI/pvenode.pm
+++ b/PVE/CLI/pvenode.pm
@@
Signed-off-by: Dietmar Maurer
---
PVE/CLI/pvenode.pm | 6 --
1 file changed, 6 deletions(-)
diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index 5b06b674..5cd855be 100644
--- a/PVE/CLI/pvenode.pm
+++ b/PVE/CLI/pvenode.pm
@@ -145,8 +145,6 @@ our $cmddef = {
info => [
Signed-off-by: Dietmar Maurer
---
now use --noborder and --noheader by default
bin/pvesh | 97 ++-
1 file changed, 96 insertions(+), 1 deletion(-)
diff --git a/bin/pvesh b/bin/pvesh
index 5dab90c3..a0245764 100755
--- a/bin/pvesh
Signed-off-by: Dietmar Maurer
---
PVE/API2/ACMEAccount.pm | 1 +
PVE/CLI/pvenode.pm | 29 +
2 files changed, 6 insertions(+), 24 deletions(-)
diff --git a/PVE/API2/ACMEAccount.pm b/PVE/API2/ACMEAccount.pm
index 2743cfbb..90620dea 100644
---
Signed-off-by: Dietmar Maurer
---
PVE/CLI/pvenode.pm | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index 9092a6c9..9dee6ce9 100644
--- a/PVE/CLI/pvenode.pm
+++ b/PVE/CLI/pvenode.pm
@@ -17,6 +17,8 @@ use PVE::JSONSchema
This simplifies usage, because we can simple omit the $terminal_opts
parameter in most cases (automatically call query_terminal_option) while
still setting $options.
Signed-off-by: Dietmar Maurer
---
src/PVE/CLIFormatter.pm | 40
1 file changed, 20
Generates nice and readable output for list of string and simple objects.
Signed-off-by: Dietmar Maurer
---
src/PVE/CLIFormatter.pm | 12
1 file changed, 12 insertions(+)
diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm
index 8bb42ca..f9eb03f 100644
---
Signed-off-by: Dietmar Maurer
---
src/PVE/Certificate.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/PVE/Certificate.pm b/src/PVE/Certificate.pm
index b0b9bbf..691e70b 100644
--- a/src/PVE/Certificate.pm
+++ b/src/PVE/Certificate.pm
@@ -54,17 +54,20 @@
Signed-off-by: Dietmar Maurer
---
src/PVE/CLIFormatter.pm | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm
index 22cd8f2..8bb42ca 100644
--- a/src/PVE/CLIFormatter.pm
+++ b/src/PVE/CLIFormatter.pm
@@ -132,7 +132,7 @@
- and rename format to 'output-format'
- provide a method to add properties to schema:
PVE::RESTHandler::add_standard_output_properties
- provide methods to extract output properties:
PVE::RESTHandler::extract_standard_output_properties()
Signed-off-by: Dietmar Maurer
---
Signed-off-by: Dietmar Maurer
---
src/PVE/CLIFormatter.pm | 4 +++-
src/PVE/JSONSchema.pm | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm
index 61b313b..f6ad459 100644
--- a/src/PVE/CLIFormatter.pm
+++
Best shown with a example:
my $test_formatter = sub {
my ($res, $result_schema, $fmt_param) = @_;
PVE::CLIFormatter::print_api_result($res, $result_schema, undef,
$fmt_param);
};
$cmddef = [ __PACKAGE__, 'test', [], undef, $test_formatter,
$PVE::RESTHandler::standard_output_options],
> # pvesh ls
> Dr--- access
> Dr--- cluster
> Dr--- nodes
> Dr-c- pools
> Dr-c- storage
> -r--- version
>
> (output size is 863 bytes vs 79 bytes, just as a side note)
You can still get that with:
# pvesh ls / --noborder --noheader
>
> But besides disliking of the default formatting choice,
Am 07/26/2018 um 11:04 AM schrieb Dietmar Maurer:
NOTE: needs previous patches for pve-common which are not applied so far
Also contains changes for pvenode - consider them a RFC
Dietmar Maurer (5):
pvesh: do not use CLIHandler $option parameter, simplify code
pvesh: implement 'ls'
Signed-off-by: Dietmar Maurer
---
src/PVE/CLIFormatter.pm | 4 +++-
src/PVE/JSONSchema.pm | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm
index 61b313b..f6ad459 100644
--- a/src/PVE/CLIFormatter.pm
+++
Generates nice and readable output for list of string and simple objects.
Signed-off-by: Dietmar Maurer
---
changes in v2: use CPAN::Meta::YAML
src/PVE/CLIFormatter.pm | 12
1 file changed, 12 insertions(+)
diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm
index
This simplifies usage, because we can simple omit the $terminal_opts
parameter in most cases (automatically call query_terminal_option) while
still setting $options.
Signed-off-by: Dietmar Maurer
---
src/PVE/CLIFormatter.pm | 40
1 file changed, 20
> I have still the $format_result outsub here, i.e.:
>
> get => [ __PACKAGE__, 'get', ['api_path'], {}, $format_result ],
>
> thus this context does not match and I cannot apply it.
just resent a patch serie, please test again.
___
pve-devel mailing
Signed-off-by: Dietmar Maurer
---
bin/pvesh | 83 +--
1 file changed, 44 insertions(+), 39 deletions(-)
diff --git a/bin/pvesh b/bin/pvesh
index 36c9a900..ae5a62c2 100755
--- a/bin/pvesh
+++ b/bin/pvesh
@@ -103,18 +103,17 @@ sub
NOTE: needs previous patches for pve-common which are not applied so far
Also contains changes for pvenode - consider them a RFC
Dietmar Maurer (5):
pvesh: do not use CLIHandler $option parameter, simplify code
pvesh: implement 'ls' command
pvenode: fixup output formatting
pvenode: use
Signed-off-by: Dietmar Maurer
---
PVE/CLI/pvenode.pm | 42 +++---
1 file changed, 23 insertions(+), 19 deletions(-)
diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index 9dee6ce9..8a6a924d 100644
--- a/PVE/CLI/pvenode.pm
+++ b/PVE/CLI/pvenode.pm
@@
Signed-off-by: Dietmar Maurer
---
PVE/CLI/pvenode.pm | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index 9092a6c9..9dee6ce9 100644
--- a/PVE/CLI/pvenode.pm
+++ b/PVE/CLI/pvenode.pm
@@ -17,6 +17,8 @@ use PVE::JSONSchema
Signed-off-by: Dietmar Maurer
---
bin/pvesh | 94 +++
1 file changed, 94 insertions(+)
diff --git a/bin/pvesh b/bin/pvesh
index ae5a62c2..190d7158 100755
--- a/bin/pvesh
+++ b/bin/pvesh
@@ -164,6 +164,45 @@ sub dir_info {
return
Signed-off-by: Dietmar Maurer
---
PVE/API2/ACMEAccount.pm | 1 +
PVE/CLI/pvenode.pm | 29 +
2 files changed, 6 insertions(+), 24 deletions(-)
diff --git a/PVE/API2/ACMEAccount.pm b/PVE/API2/ACMEAccount.pm
index 2743cfbb..90620dea 100644
---
Am 07/25/2018 um 11:38 AM schrieb Dietmar Maurer:
Signed-off-by: Dietmar Maurer
---
As requested by Thomas.
much thanks, hope I do not cause to much trouble...
NOTE: needs previous patches for pve-common which are not applied so far
Hmm, but are some patches for manager also needed,
Signed-off-by: Dietmar Maurer
---
src/PVE/ACME.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/PVE/ACME.pm b/src/PVE/ACME.pm
index e827aa9..38a14a5 100644
--- a/src/PVE/ACME.pm
+++ b/src/PVE/ACME.pm
@@ -152,7 +152,9 @@ sub load {
my ($self) = @_;
return if
Generates nice and readable output for list of string and simple objects.
Signed-off-by: Dietmar Maurer
---
src/PVE/CLIFormatter.pm | 37 +
1 file changed, 37 insertions(+)
diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm
index 8bb42ca..0424804
Am 07/12/2018 um 10:06 AM schrieb Thomas Lamprecht:
pve-cluster is not a big project with to much dependencies, so
autotools was a bit of an overkill for it.
Omit it, plus a ./configure step in general and just use a plain
Makefile - in combination with pkg-config - like we do in our other
Am 07/25/2018 um 06:18 PM schrieb Alwin Antreich:
This patch adds the lxc_krbd flag to the storage config, so the RBD
storage plugin is aware of the need for krbd from lxc. Removed the check
for krbd.
Signed-off-by: Alwin Antreich
---
src/PVE/API2/LXC.pm | 10 +-
src/PVE/LXC.pm
On Wed, Jul 25, 2018 at 11:33:54AM +0200, Thomas Lamprecht wrote:
> Am 07/24/2018 um 12:30 PM schrieb Wolfgang Bumiller:
> > On Tue, Jul 24, 2018 at 11:17:43AM +0200, Thomas Lamprecht wrote:
> > > Am 07/12/2018 um 10:06 AM schrieb Thomas Lamprecht:
> > > > pve-cluster is not a big project with to
47 matches
Mail list logo