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
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' );
$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.
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.
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 149 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle