openbaton / openstack-plugin

An implementation of an Open Baton plugin for Vim-Drivers interface
Apache License 2.0
4 stars 5 forks source link

Register VIM error #9

Closed tahirokian closed 7 years ago

tahirokian commented 7 years ago

Hi,

I have a working OpenBaton in Docker and working OpenStack Newton release. When I try to register vim, I get the following error:

ERROR: HTTP status: 422 response data : {"code":"Bad Request","message":"Not listed Images successfully of VimInstance vim-instance. Caused by: org.openbaton.exceptions.VimDriverException: command: GET http://controller:9292/v1/images/detail?limit=1000 HTTP/1.1 failed with response: HTTP/1.1 500 Internal Server Error; content: [{\"message\": \"The server has either erred or is incapable of performing the requested operation.

\n\n\n\", \"code\": \"500 Internal Server Error\", \"title\": \"Internal Server Error\"}]"}

I am using the following json descriptor for registering vim: { "name":"vim-instance", "authUrl":"http://openstack_controller_ip:5000/v2.0", "tenant":"tenantName", "username":"userName", "password":"password", "keyPair":"keypairName", "securityGroups": [ "default" ], "type":"openstack" }

Could you help me with the error? Please also let me know if OpenBaton supports OpenStack Newton or not?

gc4rella commented 7 years ago

could you please provide the full log of the openstack plugin? in the docker container those are located in the /plugin-logs folder..

In my opinion, you need to fix also the resolution of the glance endpoint. As you can notice, you are trying to reach http://controller:9292/ url, which means that from the host where the plugin executes you need to be able to resolve "controller". Quick solution would be to add the host ip in the /etc/hosts file, otherwise you need to reconfigure openstack in order to use IPs for endpoints.

tahirokian commented 7 years ago

I have controller name resolved in the /etc/hosts file. That's not an issue. OpenStack plugin logs attached.

plugin-openstack.zip

gc4rella commented 7 years ago

Ok, it seems to be an issue on the openstack side. Could you please check the logs of your glance services? For sure you could find the reason of your 500 error.

tahirokian commented 7 years ago

These are the logs from glance:

2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client [req-3ea2b96c-f464-4efe-b0ad-00cd824ccfae bcfa91da6a084aeb895faaa751cca71c 1f96ac2f6f584aaf967151db8e883c27 - default default] Registry client request GET /images/detail raised ServerError 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client Traceback (most recent call last): 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 124, in do_request 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client kwargs) 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 70, in wrapped 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client return func(self, args, kwargs) 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 373, in do_request 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client headers=copy.deepcopy(headers)) 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 87, in wrapped 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client return func(self, method, url, body, headers) 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 539, in _do_request 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client raise exception.ServerError() 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client ServerError: The request returned 500 Internal Server Error. 2017-02-06 15:06:13.471 17720 ERROR glance.registry.client.v1.client 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi [req-3ea2b96c-f464-4efe-b0ad-00cd824ccfae bcfa91da6a084aeb895faaa751cca71c 1f96ac2f6f584aaf967151db8e883c27 - default default] Caught error: The request returned 500 Internal Server Error. 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi Traceback (most recent call last): 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 1113, in call 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi request, action_args) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 1152, in dispatch 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi return method(args, kwargs) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 396, in detail 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi images = registry.get_images_detail(req.context, params) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/api.py", line 177, in get_images_detail 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi return c.get_images_detailed(kwargs) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 161, in get_images_detailed 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi res = self.do_request("GET", "/images/detail", params=params) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 147, in do_request 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi 'exc_name': exc_name}) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in exit 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi self.force_reraise() 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in forcereraise 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi six.reraise(self.type, self.value, self.tb) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 124, in do_request 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi *kwargs) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 70, in wrapped 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi return func(self, args, **kwargs) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 373, in do_request 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi headers=copy.deepcopy(headers)) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 87, in wrapped 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi return func(self, method, url, body, headers) 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 539, in _do_request 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi raise exception.ServerError() 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi ServerError: The request returned 500 Internal Server Error. 2017-02-06 15:06:13.472 17720 ERROR glance.common.wsgi 2017-02-06 15:06:13.474 17720 INFO eventlet.wsgi.server [req-3ea2b96c-f464-4efe-b0ad-00cd824ccfae bcfa91da6a084aeb895faaa751cca71c 1f96ac2f6f584aaf967151db8e883c27 - default default] 172.16.255.2 - - [06/Feb/2017 15:06:13] "GET /v1/images/detail?limit=100 HTTP/1.1" 500 317 0.028707

gc4rella commented 7 years ago

it sounds like a glance backend issue. Have you tried with the glance command line tool? something like: glance image-list

tahirokian commented 7 years ago

Glance and OpenStack command line tools are working fine and I have tested them. I can also use curl for getting image details. Below is the output:

# curl -s -H "X-Auth-Token: $OS_TOKEN" http://controller:9292/v2/images | python -m json.tool
{
    "first": "/v2/images",
    "images": [
        {
            "checksum": "de2a1a68d76f392ae870eec160aea4ed",
            "container_format": "bare",
            "created_at": "2017-01-25T07:11:33Z",
            "description": "14.04_Server",
            "disk_format": "qcow2",
            "file": "/v2/images/30ee0e79-14fa-4722-ab79-55e6154953d2/file",
            "id": "30ee0e79-14fa-4722-ab79-55e6154953d2",
            "min_disk": 0,
            "min_ram": 0,
            "name": "ubuntu",
            "owner": "77c2973508934619b36e88021b2f29d8",
            "protected": false,
            "schema": "/v2/schemas/image",
            "self": "/v2/images/30ee0e79-14fa-4722-ab79-55e6154953d2",
            "size": 261095936,
            "status": "active",
            "tags": [],
            "updated_at": "2017-01-25T07:11:35Z",
            "virtual_size": null,
            "visibility": "public"
        }
    ],
    "schema": "/v2/schemas/images"
}

But when I use version 1 glance API (that is used in OpenBaton) then I get the error as shown below:

# curl -s -H "X-Auth-Token: $OS_TOKEN" http://controller:9292/v1/images/detail
500 Internal Server Error

The server has either erred or is incapable of performing the requested operation.

Is it because of the reason that I am using OpenStack Newton release???? Have you tested OpenBaton with OpenStack Newton? If not, do you have plans to support that in future releases?

gc4rella commented 7 years ago

yes, we tested with Newton, but most of the time a slightly different configuration of OpenStack may have different versions of APIs which are exposed. For instance, Keystone supports two different APIs (v2 and v3) also within the same OpenStack release. This OpenStack plugin is implemented using JClouds which does not support Keystone V3 APIs. Therefore we started the implementation of a new plugin: https://github.com/openbaton/openstack4j-plugin This plugin has been implemented few days ago, and it is not included in the docker container by default. For your specific case, I think would be good to switch to this plugin which may fix the problems you are having.

For making it work, you should: git clone https://github.com/openbaton/openstack4j-plugin.git cd openstack4j-plugin ./gradlew build java -jar build/libs/openstack4j-plugin-2.2.1-SNAPSHOT.jar openstack4j localhost 5672 10 admin openbaton

at this point the driver should be available for use. The only thing you need to do is to make sure that the other plugin running in the docker container is not running anymore: ps -aux |grep openstack kill pid

Please let us know ;-)

tahirokian commented 7 years ago

I have carried out all steps as written by you but getting the same error with openstack4j plugin as it is also using the same api call GET /v1/images/detail?limit=100

ERROR: HTTP status: 422 response data : {"code":"Bad Request","message":"Not listed Images successfully of VimInstance vim-instance. Caused by: org.openbaton.exceptions.VimDriverException: Internal Server Error"}

Also there is an error openstack4j plugin repo https://github.com/openbaton/openstack4j-plugin in JSON format explanation. There, the type of driver in written as "type":"openstack4j" which should be "type":"openstack".

gc4rella commented 7 years ago

OK, definitively an issue with the version of the APIs the plugin is trying to contact. Could you please send the log of the following call: openstack --debug endpoint list I'm particularly interested in the result of the following curl request:

REQ: curl -g -i -X GET http://192.168.161.151:35357/v2.0/endpoints -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}363f90927d54a8d"

tahirokian commented 7 years ago

Below is the output of required curl request (but with v3 as I didn't find this request with v2.0 in the output):

REQ: curl -g -i -X GET http://controller:35357/v3/endpoints -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/endpoints HTTP/1.1" 200 3877
RESP: [200] Date: Tue, 07 Feb 2017 13:50:54 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-326d0123-a9a9-4c80-a379-79f4665f6048 Content-Length: 3877 Keep-Alive: timeout=5, max=96 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"endpoints": [{"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/310c07486a9145fcad070f5a1a6a04e1"}, "url": "http://controller:9292", "region": "RegionOne", "enabled": true, "interface": "public", "service_id": "cef33948d00e4675abdf0978962edb93", "id": "310c07486a9145fcad070f5a1a6a04e1"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/48a34624b8fb41a1a1efc2bcf2ccf4e3"}, "url": "http://controller:9292", "region": "RegionOne", "enabled": true, "interface": "admin", "service_id": "cef33948d00e4675abdf0978962edb93", "id": "48a34624b8fb41a1a1efc2bcf2ccf4e3"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/4e2bd446fafb4e81896d4d30ff4587e9"}, "url": "http://controller:9292", "region": "RegionOne", "enabled": true, "interface": "internal", "service_id": "cef33948d00e4675abdf0978962edb93", "id": "4e2bd446fafb4e81896d4d30ff4587e9"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/4f190aa6fa0d4cbfa6fb9fa65609ae4b"}, "url": "http://controller:35357/v3/", "region": "RegionOne", "enabled": true, "interface": "admin", "service_id": "d873f0e4ba1944649795477a1d0b3d46", "id": "4f190aa6fa0d4cbfa6fb9fa65609ae4b"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/52503192bbcb421a89ba9ed25173465a"}, "url": "http://controller:8774/v2.1/%(tenant_id)s", "region": "RegionOne", "enabled": true, "interface": "public", "service_id": "ebc02793c7924703ae79fa1b18f99a55", "id": "52503192bbcb421a89ba9ed25173465a"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/5c56af3faa054338b57fc0e267753849"}, "url": "http://controller:35357/v3/", "region": "RegionOne", "enabled": true, "interface": "internal", "service_id": "d873f0e4ba1944649795477a1d0b3d46", "id": "5c56af3faa054338b57fc0e267753849"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/5dda34e36df8432d974f42f4ea708d4e"}, "url": "http://controller:9696", "region": "RegionOne", "enabled": true, "interface": "admin", "service_id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "id": "5dda34e36df8432d974f42f4ea708d4e"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/5ef52803f989498a9ecd6eca44abff82"}, "url": "http://controller:8774/v2.1/%(tenant_id)s", "region": "RegionOne", "enabled": true, "interface": "internal", "service_id": "ebc02793c7924703ae79fa1b18f99a55", "id": "5ef52803f989498a9ecd6eca44abff82"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/7fb10e4dd9774c7d88ed63fe8d720a31"}, "url": "http://controller:5000/v3/", "region": "RegionOne", "enabled": true, "interface": "public", "service_id": "d873f0e4ba1944649795477a1d0b3d46", "id": "7fb10e4dd9774c7d88ed63fe8d720a31"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/81150243292e47e5b0dbddd5d69e59b2"}, "url": "http://controller:9696", "region": "RegionOne", "enabled": true, "interface": "public", "service_id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "id": "81150243292e47e5b0dbddd5d69e59b2"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/a68fbce7fe814e458101ac5f356a289c"}, "url": "http://controller:9696", "region": "RegionOne", "enabled": true, "interface": "internal", "service_id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "id": "a68fbce7fe814e458101ac5f356a289c"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/e705cf5c0d41449fbe3df0c99125ac3a"}, "url": "http://controller:8774/v2.1/%(tenant_id)s", "region": "RegionOne", "enabled": true, "interface": "admin", "service_id": "ebc02793c7924703ae79fa1b18f99a55", "id": "e705cf5c0d41449fbe3df0c99125ac3a"}], "links": {"self": "http://controller:35357/v3/endpoints", "previous": null, "next": null}}

Below is complete output from openstack --debug endpoint list:

START with options: [u'--debug', u'endpoint', u'list']
options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='http://controller:35357/v3', authorization_code='', cacert=None, cert='', client_id='', client_secret='***', cloud='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, old_profile=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_volume_api_version='', passcode='', password='***', profile=None, project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', u'interface': None, 'auth_url': 'http://controller:35357/v3', u'network_api_version': u'2', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': 'openstack', 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'disable_vendor_agent': {}}
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', u'orchestration_api_version': '1', u'database_api_version': u'1.0', 'timing': False, 'auth_url': 'http://controller:35357/v3', u'network_api_version': u'2', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://controller:35357/v3', 'password': '***', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, u'interface': None, 'password': '***', 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
dns API version 2, cmd group openstack.dns.v2
orchestration API version 1, cmd group openstack.orchestration.v1
neutronclient API version 2, cmd group openstack.neutronclient.v2
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', u'interface': None, 'auth_url': 'http://controller:35357/v3', u'network_api_version': u'2', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': 'openstack', 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'disable_vendor_agent': {}}
command: endpoint list -> openstackclient.identity.v3.endpoint.ListEndpoint
Using auth plugin: password
Using parameters {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://controller:35357/v3', 'password': '***', 'project_domain_name': 'Default'}
Get auth_ref
REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: osc-lib keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.12"
Starting new HTTP connection (1): controller
"GET /v3 HTTP/1.1" 200 250
RESP: [200] Date: Tue, 07 Feb 2017 13:50:54 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-5a6763c2-06d0-4149-85cc-aedec8f8146b Content-Length: 250 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"version": {"status": "stable", "updated": "2016-10-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.7", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

Making authentication request to http://controller:35357/v3/auth/tokens
"POST /v3/auth/tokens HTTP/1.1" 201 2812
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "607b739127724a2cbf205eac8f96642d", "name": "admin"}], "expires_at": "2017-02-07T14:50:54.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "77c2973508934619b36e88021b2f29d8", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://controller:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "310c07486a9145fcad070f5a1a6a04e1"}, {"url": "http://controller:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "48a34624b8fb41a1a1efc2bcf2ccf4e3"}, {"url": "http://controller:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "4e2bd446fafb4e81896d4d30ff4587e9"}], "type": "image", "id": "cef33948d00e4675abdf0978962edb93", "name": "glance"}, {"endpoints": [{"url": "http://controller:35357/v3/", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "4f190aa6fa0d4cbfa6fb9fa65609ae4b"}, {"url": "http://controller:35357/v3/", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "5c56af3faa054338b57fc0e267753849"}, {"url": "http://controller:5000/v3/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "7fb10e4dd9774c7d88ed63fe8d720a31"}], "type": "identity", "id": "d873f0e4ba1944649795477a1d0b3d46", "name": "keystone"}, {"endpoints": [{"url": "http://controller:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "5dda34e36df8432d974f42f4ea708d4e"}, {"url": "http://controller:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "81150243292e47e5b0dbddd5d69e59b2"}, {"url": "http://controller:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a68fbce7fe814e458101ac5f356a289c"}], "type": "network", "id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "name": "neutron"}, {"endpoints": [{"url": "http://controller:8774/v2.1/77c2973508934619b36e88021b2f29d8", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "52503192bbcb421a89ba9ed25173465a"}, {"url": "http://controller:8774/v2.1/77c2973508934619b36e88021b2f29d8", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "5ef52803f989498a9ecd6eca44abff82"}, {"url": "http://controller:8774/v2.1/77c2973508934619b36e88021b2f29d8", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "e705cf5c0d41449fbe3df0c99125ac3a"}], "type": "compute", "id": "ebc02793c7924703ae79fa1b18f99a55", "name": "nova"}], "user": {"domain": {"id": "default", "name": "Default"}, "id": "bcfa91da6a084aeb895faaa751cca71c", "name": "admin"}, "audit_ids": ["Q43ks6pmRtmMfefMZ8zq8A"], "issued_at": "2017-02-07T13:50:54.000000Z"}}
run(Namespace(columns=[], formatter='table', interface=None, max_width=0, noindent=False, quote_mode='nonnumeric', region=None, service=None))
Instantiating identity client: <class 'keystoneclient.v3.client.Client'>
Making authentication request to http://controller:35357/v3/auth/tokens
"POST /v3/auth/tokens HTTP/1.1" 201 2812
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "607b739127724a2cbf205eac8f96642d", "name": "admin"}], "expires_at": "2017-02-07T14:50:54.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "77c2973508934619b36e88021b2f29d8", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://controller:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "310c07486a9145fcad070f5a1a6a04e1"}, {"url": "http://controller:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "48a34624b8fb41a1a1efc2bcf2ccf4e3"}, {"url": "http://controller:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "4e2bd446fafb4e81896d4d30ff4587e9"}], "type": "image", "id": "cef33948d00e4675abdf0978962edb93", "name": "glance"}, {"endpoints": [{"url": "http://controller:35357/v3/", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "4f190aa6fa0d4cbfa6fb9fa65609ae4b"}, {"url": "http://controller:35357/v3/", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "5c56af3faa054338b57fc0e267753849"}, {"url": "http://controller:5000/v3/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "7fb10e4dd9774c7d88ed63fe8d720a31"}], "type": "identity", "id": "d873f0e4ba1944649795477a1d0b3d46", "name": "keystone"}, {"endpoints": [{"url": "http://controller:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "5dda34e36df8432d974f42f4ea708d4e"}, {"url": "http://controller:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "81150243292e47e5b0dbddd5d69e59b2"}, {"url": "http://controller:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a68fbce7fe814e458101ac5f356a289c"}], "type": "network", "id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "name": "neutron"}, {"endpoints": [{"url": "http://controller:8774/v2.1/77c2973508934619b36e88021b2f29d8", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "52503192bbcb421a89ba9ed25173465a"}, {"url": "http://controller:8774/v2.1/77c2973508934619b36e88021b2f29d8", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "5ef52803f989498a9ecd6eca44abff82"}, {"url": "http://controller:8774/v2.1/77c2973508934619b36e88021b2f29d8", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "e705cf5c0d41449fbe3df0c99125ac3a"}], "type": "compute", "id": "ebc02793c7924703ae79fa1b18f99a55", "name": "nova"}], "user": {"domain": {"id": "default", "name": "Default"}, "id": "bcfa91da6a084aeb895faaa751cca71c", "name": "admin"}, "audit_ids": ["bj5rj-ByTwK9PDXbxlL9GA"], "issued_at": "2017-02-07T13:50:54.000000Z"}}
REQ: curl -g -i -X GET http://controller:35357/v3/ -H "Accept: application/json" -H "User-Agent: osc-lib keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.12"
"GET /v3/ HTTP/1.1" 200 250
RESP: [200] Date: Tue, 07 Feb 2017 13:50:54 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-584ce845-7b6a-4ed3-aa53-8e4068da1d3f Content-Length: 250 Keep-Alive: timeout=5, max=97 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"version": {"status": "stable", "updated": "2016-10-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.7", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

REQ: curl -g -i -X GET http://controller:35357/v3/endpoints -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/endpoints HTTP/1.1" 200 3877
RESP: [200] Date: Tue, 07 Feb 2017 13:50:54 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-326d0123-a9a9-4c80-a379-79f4665f6048 Content-Length: 3877 Keep-Alive: timeout=5, max=96 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"endpoints": [{"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/310c07486a9145fcad070f5a1a6a04e1"}, "url": "http://controller:9292", "region": "RegionOne", "enabled": true, "interface": "public", "service_id": "cef33948d00e4675abdf0978962edb93", "id": "310c07486a9145fcad070f5a1a6a04e1"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/48a34624b8fb41a1a1efc2bcf2ccf4e3"}, "url": "http://controller:9292", "region": "RegionOne", "enabled": true, "interface": "admin", "service_id": "cef33948d00e4675abdf0978962edb93", "id": "48a34624b8fb41a1a1efc2bcf2ccf4e3"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/4e2bd446fafb4e81896d4d30ff4587e9"}, "url": "http://controller:9292", "region": "RegionOne", "enabled": true, "interface": "internal", "service_id": "cef33948d00e4675abdf0978962edb93", "id": "4e2bd446fafb4e81896d4d30ff4587e9"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/4f190aa6fa0d4cbfa6fb9fa65609ae4b"}, "url": "http://controller:35357/v3/", "region": "RegionOne", "enabled": true, "interface": "admin", "service_id": "d873f0e4ba1944649795477a1d0b3d46", "id": "4f190aa6fa0d4cbfa6fb9fa65609ae4b"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/52503192bbcb421a89ba9ed25173465a"}, "url": "http://controller:8774/v2.1/%(tenant_id)s", "region": "RegionOne", "enabled": true, "interface": "public", "service_id": "ebc02793c7924703ae79fa1b18f99a55", "id": "52503192bbcb421a89ba9ed25173465a"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/5c56af3faa054338b57fc0e267753849"}, "url": "http://controller:35357/v3/", "region": "RegionOne", "enabled": true, "interface": "internal", "service_id": "d873f0e4ba1944649795477a1d0b3d46", "id": "5c56af3faa054338b57fc0e267753849"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/5dda34e36df8432d974f42f4ea708d4e"}, "url": "http://controller:9696", "region": "RegionOne", "enabled": true, "interface": "admin", "service_id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "id": "5dda34e36df8432d974f42f4ea708d4e"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/5ef52803f989498a9ecd6eca44abff82"}, "url": "http://controller:8774/v2.1/%(tenant_id)s", "region": "RegionOne", "enabled": true, "interface": "internal", "service_id": "ebc02793c7924703ae79fa1b18f99a55", "id": "5ef52803f989498a9ecd6eca44abff82"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/7fb10e4dd9774c7d88ed63fe8d720a31"}, "url": "http://controller:5000/v3/", "region": "RegionOne", "enabled": true, "interface": "public", "service_id": "d873f0e4ba1944649795477a1d0b3d46", "id": "7fb10e4dd9774c7d88ed63fe8d720a31"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/81150243292e47e5b0dbddd5d69e59b2"}, "url": "http://controller:9696", "region": "RegionOne", "enabled": true, "interface": "public", "service_id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "id": "81150243292e47e5b0dbddd5d69e59b2"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/a68fbce7fe814e458101ac5f356a289c"}, "url": "http://controller:9696", "region": "RegionOne", "enabled": true, "interface": "internal", "service_id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "id": "a68fbce7fe814e458101ac5f356a289c"}, {"region_id": "RegionOne", "links": {"self": "http://controller:35357/v3/endpoints/e705cf5c0d41449fbe3df0c99125ac3a"}, "url": "http://controller:8774/v2.1/%(tenant_id)s", "region": "RegionOne", "enabled": true, "interface": "admin", "service_id": "ebc02793c7924703ae79fa1b18f99a55", "id": "e705cf5c0d41449fbe3df0c99125ac3a"}], "links": {"self": "http://controller:35357/v3/endpoints", "previous": null, "next": null}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/cef33948d00e4675abdf0978962edb93 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/cef33948d00e4675abdf0978962edb93 HTTP/1.1" 200 232
RESP: [200] Date: Tue, 07 Feb 2017 13:50:54 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-6fdfa548-51bf-40d7-a313-7edb64af79bd Content-Length: 232 Keep-Alive: timeout=5, max=95 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"description": "Openstack Image", "links": {"self": "http://controller:35357/v3/services/cef33948d00e4675abdf0978962edb93"}, "enabled": true, "type": "image", "id": "cef33948d00e4675abdf0978962edb93", "name": "glance"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/cef33948d00e4675abdf0978962edb93 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/cef33948d00e4675abdf0978962edb93 HTTP/1.1" 200 232
RESP: [200] Date: Tue, 07 Feb 2017 13:50:54 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-39aed0be-b1a8-434f-a29e-1d6dda29002a Content-Length: 232 Keep-Alive: timeout=5, max=94 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"description": "Openstack Image", "links": {"self": "http://controller:35357/v3/services/cef33948d00e4675abdf0978962edb93"}, "enabled": true, "type": "image", "id": "cef33948d00e4675abdf0978962edb93", "name": "glance"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/cef33948d00e4675abdf0978962edb93 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/cef33948d00e4675abdf0978962edb93 HTTP/1.1" 200 232
RESP: [200] Date: Tue, 07 Feb 2017 13:50:54 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-ff1a8541-06a0-4261-96ba-c960b2f41dba Content-Length: 232 Keep-Alive: timeout=5, max=93 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"description": "Openstack Image", "links": {"self": "http://controller:35357/v3/services/cef33948d00e4675abdf0978962edb93"}, "enabled": true, "type": "image", "id": "cef33948d00e4675abdf0978962edb93", "name": "glance"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/d873f0e4ba1944649795477a1d0b3d46 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/d873f0e4ba1944649795477a1d0b3d46 HTTP/1.1" 200 203
RESP: [200] Date: Tue, 07 Feb 2017 13:50:54 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-6154c354-e969-4857-88b3-bdb05488f24f Content-Length: 203 Keep-Alive: timeout=5, max=92 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"enabled": true, "type": "identity", "name": "keystone", "links": {"self": "http://controller:35357/v3/services/d873f0e4ba1944649795477a1d0b3d46"}, "id": "d873f0e4ba1944649795477a1d0b3d46"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/ebc02793c7924703ae79fa1b18f99a55 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/ebc02793c7924703ae79fa1b18f99a55 HTTP/1.1" 200 234
RESP: [200] Date: Tue, 07 Feb 2017 13:50:55 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-20ea6a08-3059-4613-a5b0-db65e35a1177 Content-Length: 234 Keep-Alive: timeout=5, max=91 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"description": "OpenStack Compute", "links": {"self": "http://controller:35357/v3/services/ebc02793c7924703ae79fa1b18f99a55"}, "enabled": true, "type": "compute", "id": "ebc02793c7924703ae79fa1b18f99a55", "name": "nova"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/d873f0e4ba1944649795477a1d0b3d46 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/d873f0e4ba1944649795477a1d0b3d46 HTTP/1.1" 200 203
RESP: [200] Date: Tue, 07 Feb 2017 13:50:55 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-9b6b9642-ca7c-47c9-a4fb-a8912c294bec Content-Length: 203 Keep-Alive: timeout=5, max=90 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"enabled": true, "type": "identity", "name": "keystone", "links": {"self": "http://controller:35357/v3/services/d873f0e4ba1944649795477a1d0b3d46"}, "id": "d873f0e4ba1944649795477a1d0b3d46"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/daee4bf4a6ff4a58af2dd26d66cbcc1e -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/daee4bf4a6ff4a58af2dd26d66cbcc1e HTTP/1.1" 200 240
RESP: [200] Date: Tue, 07 Feb 2017 13:50:55 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-d8be2b1d-2c37-405a-8985-35336ee01328 Content-Length: 240 Keep-Alive: timeout=5, max=89 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"description": "OpenStack Networking", "links": {"self": "http://controller:35357/v3/services/daee4bf4a6ff4a58af2dd26d66cbcc1e"}, "enabled": true, "type": "network", "id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "name": "neutron"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/ebc02793c7924703ae79fa1b18f99a55 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/ebc02793c7924703ae79fa1b18f99a55 HTTP/1.1" 200 234
RESP: [200] Date: Tue, 07 Feb 2017 13:50:55 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-c8360c45-9a77-4e4e-990c-fd7c90f00692 Content-Length: 234 Keep-Alive: timeout=5, max=88 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"description": "OpenStack Compute", "links": {"self": "http://controller:35357/v3/services/ebc02793c7924703ae79fa1b18f99a55"}, "enabled": true, "type": "compute", "id": "ebc02793c7924703ae79fa1b18f99a55", "name": "nova"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/d873f0e4ba1944649795477a1d0b3d46 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/d873f0e4ba1944649795477a1d0b3d46 HTTP/1.1" 200 203
RESP: [200] Date: Tue, 07 Feb 2017 13:50:55 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-8b83901f-aab9-46cb-a1fe-3de966658d53 Content-Length: 203 Keep-Alive: timeout=5, max=87 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"enabled": true, "type": "identity", "name": "keystone", "links": {"self": "http://controller:35357/v3/services/d873f0e4ba1944649795477a1d0b3d46"}, "id": "d873f0e4ba1944649795477a1d0b3d46"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/daee4bf4a6ff4a58af2dd26d66cbcc1e -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/daee4bf4a6ff4a58af2dd26d66cbcc1e HTTP/1.1" 200 240
RESP: [200] Date: Tue, 07 Feb 2017 13:50:55 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-5c6ab832-cc4e-445a-85b8-8b4d55ab9680 Content-Length: 240 Keep-Alive: timeout=5, max=86 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"description": "OpenStack Networking", "links": {"self": "http://controller:35357/v3/services/daee4bf4a6ff4a58af2dd26d66cbcc1e"}, "enabled": true, "type": "network", "id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "name": "neutron"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/daee4bf4a6ff4a58af2dd26d66cbcc1e -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/daee4bf4a6ff4a58af2dd26d66cbcc1e HTTP/1.1" 200 240
RESP: [200] Date: Tue, 07 Feb 2017 13:50:55 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-255876a9-ad76-4905-ac4b-022b46ce61ff Content-Length: 240 Keep-Alive: timeout=5, max=85 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"description": "OpenStack Networking", "links": {"self": "http://controller:35357/v3/services/daee4bf4a6ff4a58af2dd26d66cbcc1e"}, "enabled": true, "type": "network", "id": "daee4bf4a6ff4a58af2dd26d66cbcc1e", "name": "neutron"}}

REQ: curl -g -i -X GET http://controller:35357/v3/services/ebc02793c7924703ae79fa1b18f99a55 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0384e3cd9beefab6f803d7610c4377e979c316ca"
"GET /v3/services/ebc02793c7924703ae79fa1b18f99a55 HTTP/1.1" 200 234
RESP: [200] Date: Tue, 07 Feb 2017 13:50:55 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-af7792fc-8ff8-45b9-b56d-42ab45e7fdfe Content-Length: 234 Keep-Alive: timeout=5, max=84 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"service": {"description": "OpenStack Compute", "links": {"self": "http://controller:35357/v3/services/ebc02793c7924703ae79fa1b18f99a55"}, "enabled": true, "type": "compute", "id": "ebc02793c7924703ae79fa1b18f99a55", "name": "nova"}}

+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                                       |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| 310c07486a9145fcad070f5a1a6a04e1 | RegionOne | glance       | image        | True    | public    | http://controller:9292                    |
| 48a34624b8fb41a1a1efc2bcf2ccf4e3 | RegionOne | glance       | image        | True    | admin     | http://controller:9292                    |
| 4e2bd446fafb4e81896d4d30ff4587e9 | RegionOne | glance       | image        | True    | internal  | http://controller:9292                    |
| 4f190aa6fa0d4cbfa6fb9fa65609ae4b | RegionOne | keystone     | identity     | True    | admin     | http://controller:35357/v3/               |
| 52503192bbcb421a89ba9ed25173465a | RegionOne | nova         | compute      | True    | public    | http://controller:8774/v2.1/%(tenant_id)s |
| 5c56af3faa054338b57fc0e267753849 | RegionOne | keystone     | identity     | True    | internal  | http://controller:35357/v3/               |
| 5dda34e36df8432d974f42f4ea708d4e | RegionOne | neutron      | network      | True    | admin     | http://controller:9696                    |
| 5ef52803f989498a9ecd6eca44abff82 | RegionOne | nova         | compute      | True    | internal  | http://controller:8774/v2.1/%(tenant_id)s |
| 7fb10e4dd9774c7d88ed63fe8d720a31 | RegionOne | keystone     | identity     | True    | public    | http://controller:5000/v3/                |
| 81150243292e47e5b0dbddd5d69e59b2 | RegionOne | neutron      | network      | True    | public    | http://controller:9696                    |
| a68fbce7fe814e458101ac5f356a289c | RegionOne | neutron      | network      | True    | internal  | http://controller:9696                    |
| e705cf5c0d41449fbe3df0c99125ac3a | RegionOne | nova         | compute      | True    | admin     | http://controller:8774/v2.1/%(tenant_id)s |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
clean_up ListEndpoint: 
END return value: 0
gc4rella commented 7 years ago

could you please try adding v3 instead of v2 as auth_url while adding registering the VIM?

tahirokian commented 7 years ago

I have tried that and it gives the same error.

gc4rella commented 7 years ago

then it is required to switch to the glance v2 APIs. We have tried to do it, but we found a bug in openstack4j which has been communicated here: https://github.com/ContainX/openstack4j/issues/875 if this bug is not fixed, we can't switch all our calls to v2..

for the time being I pushed a new branch which does call v2 APIs. If you don't have big images you may be lucky not hitting that bug. Please checkout openstack4j to branch glancev2, build and start the plugin again.

tahirokian commented 7 years ago

It worked. Thanks a lot.

gc4rella commented 7 years ago

yeah..however, bear in mind that you may have the issue I mentioned before (hopefully the openstack4j will fix it soon) if you will have an image with a size bigger then an integer...closing this issue for the moment.

tahirokian commented 7 years ago

The limit you are mentioning is related to size of single image or size of collection of images? Also, can you please let me know what is the purpose of keyPair field in register vim JSON? I can register a VIM instance by completely removing this field (I have tested it).