Skip to content

Instantly share code, notes, and snippets.

@ahsan518
Last active September 22, 2016 17:01
Show Gist options
  • Save ahsan518/e0beda086e37759d7d66029a7ff2660d to your computer and use it in GitHub Desktop.
Save ahsan518/e0beda086e37759d7d66029a7ff2660d to your computer and use it in GitHub Desktop.
~/devstack$ curl -i "http://127.0.0.1:8083/v1/regions" -H X-Auth-Token:b1b9b9e87abe415e9a649efbcf0f575e
HTTP/1.0 401 UNAUTHORIZED
Date: Thu, 22 Sep 2016 16:18:42 GMT
Server: WSGIServer/0.1 Python/2.7.6
Content-Type: text/html; charset=utf-8
Content-Length: 0
x-openstack-request-id: req-c110c175-d141-44eb-9448-7381e329501d
cat inventory-api-conf.sample
[DEFAULT]
# Set Debug level
debug=True
# Log file for craton inventory
log_file=craton-inventory.log
[api]
# Host IP to use for API service
host=127.0.0.1
# Port to use for API service
port=8083
# Paste Config file to use
api_paste_config=/home/vagrant/craton/etc/inventory-api-paste.ini
# Keystone Middlewre settings
[keystone_authtoken]
auth_host = 127.0.0.1
auth_port = 35357
auth_version = 3
auth_protocol = http
project_name = service
username = craton
password = craton
project_domain_id = default
user_domain_id = default
memcached_servers = localhost:11211
auth_type = password
[database]
backend = sqlalchemy
connection = mysql://craton:craton@localhost/craton
use_db_reconnect = false
db_retry_interval = 1
db_inc_retry_interval = true
db_max_retry_interval = 5
db_max_retries = 5
[pipeline:main]
pipeline = request_id localauthcontext api_v1
[app:api_v1]
paste.app_factory = craton.api:create_app
[filter:noauthcontext]
paste.filter_factory = craton.api.middleware:NoAuthContextMiddleware.factory
[filter:localauthcontext]
paste.filter_factory = craton.api.middleware:LocalAuthContextMiddleware.factory
[filter:keystonecontext]
paste.filter_factory = craton.api.middleware:KeystoneAuthContextMiddleware.factory
[filter:request_id]
paste.filter_factory = oslo_middleware:RequestId.factory
openstack catalog list
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
+-------------+------------------+-----------------------------------------------------------------------+
| Name | Type | Endpoints |
+-------------+------------------+-----------------------------------------------------------------------+
| cinderv2 | volumev2 | RegionOne |
| | | admin: http://10.0.2.15:8776/v2/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | public: http://10.0.2.15:8776/v2/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | internal: http://10.0.2.15:8776/v2/aedf136c10ad468bb9690b3dfca1ec93 |
| | | |
| keystone | identity | RegionOne |
| | | admin: http://10.0.2.15/identity_v2_admin |
| | | RegionOne |
| | | public: http://10.0.2.15/identity |
| | | RegionOne |
| | | internal: http://10.0.2.15/identity |
| | | |
| cinder | volume | RegionOne |
| | | internal: http://10.0.2.15:8776/v1/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | admin: http://10.0.2.15:8776/v1/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | public: http://10.0.2.15:8776/v1/aedf136c10ad468bb9690b3dfca1ec93 |
| | | |
| cinderv3 | volumev3 | RegionOne |
| | | admin: http://10.0.2.15:8776/v3/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | public: http://10.0.2.15:8776/v3/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | internal: http://10.0.2.15:8776/v3/aedf136c10ad468bb9690b3dfca1ec93 |
| | | |
| glance | image | RegionOne |
| | | admin: http://10.0.2.15:9292 |
| | | RegionOne |
| | | internal: http://10.0.2.15:9292 |
| | | RegionOne |
| | | public: http://10.0.2.15:9292 |
| | | |
| heat-cfn | cloudformation | RegionOne |
| | | public: http://10.0.2.15:8000/v1 |
| | | RegionOne |
| | | admin: http://10.0.2.15:8000/v1 |
| | | RegionOne |
| | | internal: http://10.0.2.15:8000/v1 |
| | | |
| craton | fleet_management | RegionOne |
| | | admin: http://10.0.2.15:8083/v1 |
| | | RegionOne |
| | | internal: http://10.0.2.15:8083/v1 |
| | | RegionOne |
| | | public: http://10.0.2.15:8083/v1 |
| | | |
| nova_legacy | compute_legacy | RegionOne |
| | | internal: http://10.0.2.15:8774/v2/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | admin: http://10.0.2.15:8774/v2/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | public: http://10.0.2.15:8774/v2/aedf136c10ad468bb9690b3dfca1ec93 |
| | | |
| heat | orchestration | RegionOne |
| | | public: http://10.0.2.15:8004/v1/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | admin: http://10.0.2.15:8004/v1/aedf136c10ad468bb9690b3dfca1ec93 |
| | | RegionOne |
| | | internal: http://10.0.2.15:8004/v1/aedf136c10ad468bb9690b3dfca1ec93 |
| | | |
| neutron | network | RegionOne |
| | | public: http://10.0.2.15:9696/ |
| | | RegionOne |
| | | internal: http://10.0.2.15:9696/ |
| | | RegionOne |
| | | admin: http://10.0.2.15:9696/ |
| | | |
| nova | compute | RegionOne |
| | | admin: http://10.0.2.15:8774/v2.1 |
| | | RegionOne |
| | | internal: http://10.0.2.15:8774/v2.1 |
| | | RegionOne |
| | | public: http://10.0.2.15:8774/v2.1 |
| | | |
+-------------+------------------+-----------------------------------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment