Hello!
Running this command on one of my hosts throws an error:
I can verify that the same command works without using the use_ssh flag. I looked through the source code to try and pin point it. My hunch is that it tries to parse the link option and it fails then.
I traced the code around to understand it. Without running it, it's hard to tell what it is that is causing the failure. But that is the call that triggers the check_prop method in JSONSchema.pm which generates that error. I'm a bit burned out right now but I will probably try to decipher the way the verification works. Unless it's something else entirely! These are just guesses
Running this command on one of my hosts throws an error:
Code:
root@mymachine:~# pvecm add 192.168.0.xxx -use_ssh=yes -link0 192.168.0.xxx
format error at /usr/share/perl5/PVE/JSONSchema.pm line 1866 format: property is missing and it is not optional type: Invalid schema definition. description: Invalid schema definition. optional: Invalid schema definition.
I can verify that the same command works without using the use_ssh flag. I looked through the source code to try and pin point it. My hunch is that it tries to parse the link option and it fails then.
Code:
foreach my $link (keys %$links) {
push @$cmd, "--link$link", PVE::JSONSchema::print_property_string(
$links->{$link}, get_standard_option('corosync-link'));
}
I traced the code around to understand it. Without running it, it's hard to tell what it is that is causing the failure. But that is the call that triggers the check_prop method in JSONSchema.pm which generates that error. I'm a bit burned out right now but I will probably try to decipher the way the verification works. Unless it's something else entirely! These are just guesses
Last edited: