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

Abdul Rasheed Shaik ABDUL.RASHEED at LNTTECHSERVICES.COM
Wed Feb 25 05:01:08 UTC 2015


I thought also the same, but when I used the port 9696, I was getting "Authentication required" error.
Afterwards, when I saw my /etc/nova/nova.conf file, the following are listed:

neutron_url = http://10.0.2.15:9696
neutron_region_name = RegionOne
neutron_admin_tenant_name = service
neutron_auth_strategy = keystone
neutron_admin_auth_url = http://10.0.2.15:35357/v2.0
neutron_admin_password = openstack
neutron_admin_username = neutron

Please let me know, where can I find the neutron REST API authentication details?

Thanks & Regards,
Abdul Rasheed.


________________________________
From: Akihiro Motoki [amotoki at gmail.com]
Sent: Tuesday, February 24, 2015 7:06 PM
To: Abdul Rasheed Shaik
Cc: openstack at lists.openstack.org
Subject: Re: [Openstack] [Neutron] How to test Neutron REST API using DevStack

Neutron listen port is not 35357 but 9696.
you are accessing keystone.

2015年2月24日火曜日、Abdul Rasheed Shaik<ABDUL.RASHEED at lnttechservices.com<mailto:ABDUL.RASHEED at lnttechservices.com>>さんは書きました:
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<http://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.


--
Akihiro Motoki <amotoki at gmail.com<mailto:amotoki at gmail.com>>

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/20150225/8320cd69/attachment.html>


More information about the Openstack mailing list