Re: [openstack-dev] [Nova] [Ironic] vendor_passthru testing

2014-06-06 Thread Lucas Alvares Gomes
Hi,



On Fri, Jun 6, 2014 at 9:44 AM, Gopi Krishna Saripuri
saripurig...@outlook.com wrote:
 Hi,

 I'm using icehouse devstack version. I'm testing the vendor_passthru methods
 behavior using curl , But it is failing with 404 not found error.
 Here is the query/response.

 curl -H X-Auth-Token:${token}
 http://10.105.214.179:6385/v1/nodes/2d70d135-85b5-4f75-b741-0ead90a42b29/vendor_passthru/get_firmware_info

 fails with

 {error_message: html\n head\n  title404 Not Found/title\n
 /head\n body\n  h1404 Not Found/h1\n  The resource could not be
 found.br /br /\n\n\n\n /body\n/html}

The vendor passthru methods only support POST right now[1].



 Is there a way to test vendor_passthru from ironic cli, also I didn't see
 any support for this in python-ironicclient?

Unfortunately not, the CLI doesn't support vendor_passthru.


 I'm able to retrieve chassis/nodes/ports. But while testing vendor_passthru
 method, it is failing with 404 error.

 Can someone help me with testing the vendor_passthru methods.

 Regards
 Gopi Krishna S

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[1] 
https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/node.py#L452-L479

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Nova] [Ironic] vendor_passthru testing

2014-06-06 Thread Ramakrishnan G
Hi,

vendor_passthru is a POST request and that might be missing here.
curl -i -X POST -H 'Content-Type: application/json' -H 'Accept:
application/json' -H X-Auth-Token:${token}
http://10.105.214.179:6385/v1/nodes/2d70d135-85b5-4f75-b741-0ead90a42b29/vendor_passthru/get_firmware_info

Can you just check if the above works for you ?

If not, I guess trying you can try a GET on the node to check if the GET
listing atleast works.
curl -i -X GET -H 'Content-Type: application/json' -H 'Accept:
application/json' -H X-Auth-Token:${token}
http://10.105.214.179:6385/v1/nodes/2d70d135-85b5-4f75-b741-0ead90a42b29
http://10.105.214.179:6385/v1/nodes/2d70d135-85b5-4f75-b741-0ead90a42b29/vendor_passthru/get_firmware_info




On Fri, Jun 6, 2014 at 2:14 PM, Gopi Krishna Saripuri 
saripurig...@outlook.com wrote:

 Hi,

 I'm using icehouse devstack version. I'm testing the vendor_passthru
 methods behavior using curl , But it is failing with 404 not found error.
 Here is the query/response.

 curl -H X-Auth-Token:${token}
 http://10.105.214.179:6385/v1/nodes/2d70d135-85b5-4f75-b741-0ead90a42b29/vendor_passthru/get_firmware_info

 fails with

 {error_message: html\n head\n  title404 Not Found/title\n
 /head\n body\n  h1404 Not Found/h1\n  The resource could not be
 found.br /br /\n\n\n\n /body\n/html}


 Is there a way to test vendor_passthru from ironic cli, also I didn't see
 any support for this in python-ironicclient?

 I'm able to retrieve chassis/nodes/ports. But while testing
 vendor_passthru method, it is failing with 404 error.

 Can someone help me with testing the vendor_passthru methods.

 Regards
 Gopi Krishna S

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Ramesh
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev