Issue with docker image and REST API

Hi,

I am struggeling to get the REST API with the Docker XoruX image running. The perl connection check is running fine:

/home/lpar2rrd/lpar2rrd/bin/conntest.pl 192.168.0.2 12443
Connection to "192.168.0.2" on port "12443" is ok

But if I run the hmc_rest_api.pl scipt I do get an unknown error. I had to shorten it a bit because not that many characters in the body are allowed and I also changed the IP:

Unknow error, check this HMC response:
$VAR1 = bless( {
                 '_content' => 'Can\'t connect to 192.168.0.2:12443',
...
                 '_msg' => 'Can\'t connect to 192.168.0.2:12443',
                 '_rc' => 500,
                 '_request' => bless( {
                                        '_content' => '',
                                        '_headers' => bless( {
                                                               '::std_case' => {
                                                                                 'x-api-session' => 'X-API-Session'
                                                                               },
                                                               'user-agent' => 'libwww-perl/6.08',
                                                               'x-api-session' => '812'
                                                             }, 'HTTP::Headers' ),
                                        '_method' => 'DELETE',
                                        '_uri' => bless( do{\(my $o = 'https://192.168.0.2:12443/rest/api/web/Logon')}, 'URI::https' )
                                      }, 'HTTP::Request' )
               }, 'HTTP::Response' );
...
Get Session Error : File does not exist: Can't connect to 192.168.0.2:12443

 at /home/lpar2rrd/lpar2rrd/bin/hmc_rest_api.pl line 2047.

Rest API: Did not get valid data from HMC. Exiting... File: /home/lpar2rrd/lpar2rrd/bin/hmc_rest_api.pl:149 No such file or directory
API Error (general) at https://192.168.0.2:12443/rest/api/uom/ManagementConsole File: /home/lpar2rrd/lpar2rrd/bin/hmc_rest_api.pl:2111
Rest API error 1111 : File does not exist: Can't connect to 192.168.0.2:12443 at /home/lpar2rrd/lpar2rrd/bin/hmc_rest_api.pl line 2145.
Sign In or Register to comment.