[Openstack] [Neutron] How to test Neutron REST API using DevStack

Abdul Rasheed Shaik ABDUL.RASHEED at LNTTECHSERVICES.COM
Tue Feb 24 13:01:43 UTC 2015


Hi,

I have installed the DevStack (Icehouse) and ran it successfully.

logs:
2015-02-24 12:47:23.723 | + SERVICE_DIR=/opt/stack/status
2015-02-24 12:47:23.724 | + [[ ! -d /opt/stack/status/stack ]]
2015-02-24 12:47:23.731 | ++ ls '/opt/stack/status/stack/*.failure'
2015-02-24 12:47:23.759 | ++ /bin/true
2015-02-24 12:47:23.781 | + failures=
2015-02-24 12:47:23.782 | + '[' -n '' ']'

Horizon is now available at http://10.0.2.15/
Keystone is serving at http://10.0.2.15:5000/v2.0/
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo
The password: openstack
This is your host ip: 10.0.2.15

But when I try the Neutron REST APIs, I am getting 404 Resource not found exception.  But actually
I do have some created networks from Horizon.

>From REST Client:

http://10.0.2.15:35357/v2.0/networks

{
    "error": {
        "message": "The resource could not be found.",
        "code": 404,
        "title": "Not Found"
    }
}

>From Neutron CLI:

(neutron) net-list
+--------------------------------------+---------+--------------------------------------------------+
| id                                   | name    | subnets                                          |
+--------------------------------------+---------+--------------------------------------------------+
| 50063033-95c3-484c-819c-873bd11efaf0 | private | 7be58abd-eb11-4a26-afa4-8bf948147934 10.0.0.0/24 |
| b48c9041-b5c6-454d-ab07-20247393c7d7 | public  | a357e5c3-b805-4cee-9e76-d7769de6777a             |
+--------------------------------------+---------+--------------------------------------------------+

Can you please let me know how to make the Neutron REST API is working?


Thanks & Regards,
Abdul Rasheed



L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150224/449fa0ac/attachment.html>


More information about the Openstack mailing list