Hi dear,
When i invoke the 'volume-size' api in clustered perl sdk(5.2.2), it always returns 'Missing input: volume'.
The script line is below:
my $in=NaElement->new("volume-size","volume","$volumename","new-size","$newsize");
$out=$s->invoke_elem($in);
The $out->results_status() is 'failed' and results_reason() is 'Missing input: volume'.
I tried to use the real volume name instead of "$volumename" but not fixed, it still return the same result. (in fact i can print the $volumename).
by the way, the $s is a vserver context.
Anyone can help? Thanks.
=========Update=========
well, it works when i use the child_add_string as below. I don't know why. It didn't need to use child_add_string in my 7mode script.
my $in=NaElement->new('volume-size');
$in->child_add_string('volume',"$volumename");
$in->child_add_string("new-size","$newsize");
$out=$s->invoke_elem($in);