Openstack API

Contrail Vs / and Neutron

    Contrail provides compatibility with Neutron API. It covers all basic features, but not some service feature, like FWaaS.

    The reason for customer to use Neutron API is that, they want to deal with  single orchestration interface to manage both VM and networking.

    The reason to use Contrail API is that, it provides features that Neutron  API doesn't have and it performs lots better:

              Service chaining, BMS support, network policy, traffic mirroring

              Neutron is the frontend, Contrail is the backend. You get better performance when connecting to the backend directly.

    Heat stack is also a good option. It provides a single interface on top of all OpenStack and Contrail APIs.


1- Need to know the API version (  http://172.30.54.71:8774/v2/  )

2- Openstack API listen on port 8774  ( http://<IP@>:8774 )

3- get the Token from Keystone ( port 5000 )


OpenStack REST API using Postman

https://www.youtube.com/watch?v=P3SqdJnA224


https://docs.openstack.org/juno/config-reference/content/list-of-compute-config-options.html

Default option:   osapi_compute_listen_port = 8774


root@vse2100-11:~# more /etc/nova/nova.conf | grep port
rabbit_port=5672
report_interval=10
novncproxy_port=5999
auth_port=35357



3- get the Token from Keystone ( port 5000 )


Method:

POST: http://172.30.54.71:5000/v2.0/tokens

In the Body:

{
"auth":{
"tenantName":"admin",
"passwordCredentials":{
"username":"admin",
"password":"contrail123"
}
}
}





"serviceCatalog":

"name": "nova"

 "name": "neutron"

"name": "cinderv2"

"name": "novav3"

"name": "glance"

"name": "heat-cfn"

"name": "cinder"

"name": "nova_ec2"

"name": "heat"

"name": "keystone"