Hi Masahito,
The debug log is attached.
Thanks,
Bryan Sullivan

> From: muroi.masah...@lab.ntt.co.jp
> Date: Wed, 24 Feb 2016 10:41:17 +0900
> To: openstack-dev@lists.openstack.org
> Subject: Re: [openstack-dev] [Congress] Issue with glancev2 datasource driver
> 
> Hi Bryan,
> 
> Could you show me debug log of the command using following command? When 
> I check the command in my stable/liberty, it works well.
> 
> $ openstack congress datasource row list glancev2 images --debug
> 
> And if the setting for the driver is valid, it would show you logs about 
> glance driver pulling image list from glance itself.
> 
> On 2016/02/24 6:01, Bryan Sullivan wrote:
> > I’m running into an issue with the rows provided by the glancev2 driver
> > for congress. There are images defined in glance (see below) but no rows
> > are being returned by congress. Any idea why this might be happening?
> >
> > Below I query Openstack directly, then try to get the same data thru
> > congress. I am using the stable/liberty branch, installed yesterday.
> > This is on the OPNFV Brahmaputra release (not devstack), and most other
> > congress datasources and functions are working as expected.
> >
> > Thanks for your help!
> >
> > Bryan Sullivan | AT&T
> >
> > opnfv@jumphost:~/git/python-congressclient$ openstack image list
> >
> > +--------------------------------------+-------------------------+
> >
> > | ID | Name |
> >
> > +--------------------------------------+-------------------------+
> >
> > | 98705491-edda-4645-a413-129502190d56 | cirros-0.3.3-x86_64-dmz |
> >
> > | 59cf60e8-e0ce-48b1-b081-6325c1e1c52b | cirros-0.3.3-x86_64 |
> >
> > +--------------------------------------+-------------------------+
> >
> > opnfv@jumphost:~/git/python-congressclient$ openstack congress
> > datasource row list glancev2 images
> >
> > opnfv@jumphost:~/git/python-congressclient$
> >
> >
> >
> > __________________________________________________________________________
> > OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> 
> 
> -- 
> 室井 雅仁(Masahito MUROI)
> Software Innovation Center, NTT
> Tel: +81-422-59-4539
> 
> 
> 
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
                                          
opnfv@jumphost:~/git/copper$ openstack congress datasource row list glancev2 
images --d
START with options: ['congress', 'datasource', 'row', 'list', 'glancev2', 
'images', '--d']
options: Namespace(access_token_endpoint='', auth_type='', 
auth_url='http://192.168.10.108:5000/v2.0', cacert='', client_id='', 
client_secret='', cloud='', debug=True, default_domain='default', 
deferred_help=False, domain_id='', domain_name='', endpoint='', 
identity_provider='', identity_provider_url='', insecure=None, interface='', 
log_file=None, os_compute_api_version='', os_identity_api_version='', 
os_image_api_version='', os_network_api_version='', os_object_api_version='', 
os_policy_api_version='1', os_project_id=None, os_project_name=None, 
os_volume_api_version='', password='openstack', project_domain_id='', 
project_domain_name='', project_id='700783aaf5084b1eae33e7ee0eb547cf', 
project_name='admin', protocol='', region_name='Canonical', scope='', 
service_provider_endpoint='', timing=False, token='', trust_id='', url='', 
user_domain_id='', user_domain_name='', user_id='', username='admin', 
verbose_level=3, verify=None)
defaults: {'auth_type': 'password', 'compute_api_version': '2', 
'database_api_version': '1.0', 'api_timeout': None, 'baremetal_api_version': 
'1', 'cacert': None, 'image_api_use_tasks': False, 'floating_ip_source': 
'neutron', 'key': None, 'interface': None, 'network_api_version': '2', 
'image_format': 'qcow2', 'object_api_version': '1', 'image_api_version': '1', 
'verify': True, 'identity_api_version': '2', 'volume_api_version': '1', 'cert': 
None, 'secgroup_source': 'neutron', 'dns_api_version': '2', 
'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'compute_api_version': '2', 
'database_api_version': '1.0', 'interface': None, 'policy_api_version': '1', 
'network_api_version': '2', 'image_format': 'qcow2', 'object_api_version': '1', 
'image_api_version': '1', 'verify': True, 'timing': False, 'dns_api_version': 
'2', 'verbose_level': 3, 'region_name': 'Canonical', 'api_timeout': None, 
'baremetal_api_version': '1', 'auth': {'username': 'admin', 'project_name': 
'admin', 'tenant_id': '700783aaf5084b1eae33e7ee0eb547cf', 'project_id': 
'700783aaf5084b1eae33e7ee0eb547cf', 'auth_url': 
'http://192.168.10.108:5000/v2.0', 'tenant_name': 'admin', 'password': 
'openstack'}, 'default_domain': 'default', 'image_api_use_tasks': False, 
'floating_ip_source': 'neutron', 'key': None, 'cacert': None, 'deferred_help': 
False, 'identity_api_version': '2', 'volume_api_version': '1', 'cert': None, 
'secgroup_source': 'neutron', 'debug': True, 'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 1, cmd group openstack.image.v1
volume API version 1, cmd group openstack.volume.v1
identity API version 2, cmd group openstack.identity.v2
object_store API version 1, cmd group openstack.object_store.v1
congressclient API version 1, cmd group openstack.congressclient.v1
command: congress datasource row list -> 
congressclient.osc.v1.datasource.ListDatasourceRows
Auth plugin password selected
auth_type: password
Using auth plugin: password
Using parameters {'username': 'admin', 'password': 'openstack', 'project_name': 
'admin', 'auth_url': 'http://192.168.10.108:5000/v2.0', 'tenant_name': 'admin', 
'tenant_id': '700783aaf5084b1eae33e7ee0eb547cf', 'project_id': 
'700783aaf5084b1eae33e7ee0eb547cf'}
Get auth_ref
REQ: curl -g -i -X GET http://192.168.10.108:5000/v2.0 -H "Accept: 
application/json" -H "User-Agent: python-openstackclient"
Starting new HTTP connection (1): 192.168.10.108
"GET /v2.0 HTTP/1.1" 200 340
RESP: [200] Content-Length: 340 Vary: X-Auth-Token X-Distribution: Ubuntu 
Connection: keep-alive Date: Tue, 08 Mar 2016 16:17:02 GMT Content-Type: 
application/json X-Openstack-Request-Id: 
req-b9d0c7d0-5081-4ff0-80d1-a5d6dd9290db 
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", 
"media-types": [{"base": "application/json", "type": 
"application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": 
[{"href": "http://192.168.10.108:5000/v2.0/";, "rel": "self"}, {"href": 
"http://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}]}}

Making authentication request to http://192.168.10.108:5000/v2.0/tokens
"POST /v2.0/tokens HTTP/1.1" 200 4116
take_action(Namespace(columns=[], datasource_name='glancev2', 
formatter='table', max_width=0, quote_mode='nonnumeric', table='images'))
instantiating congress client: <class 'congressclient.v1.client.Client'>
Making authentication request to http://192.168.10.108:5000/v2.0/tokens
"POST /v2.0/tokens HTTP/1.1" 200 4116
REQ: curl -g -i -X GET http://192.168.10.134:1789/v1/data-sources -H 
"User-Agent: python-congressclient" -H "Accept: application/json" -H 
"X-Auth-Token: {SHA1}6c8eaa3094f947a8f15ca0e2c3c5ad5e9e17d5f0"
Starting new HTTP connection (1): 192.168.10.134
"GET /v1/data-sources HTTP/1.1" 200 2247
RESP: [200] Date: Tue, 08 Mar 2016 16:17:03 GMT Connection: keep-alive 
Content-Type: application/json; charset=UTF-8 Content-Length: 2247 
X-Openstack-Request-Id: req-fcc1e0ad-9ca1-41f0-ad59-d5fc8b665d26 
RESP BODY: {
  "results": [
    {
      "description": null, 
      "enabled": true, 
      "driver": "glancev2", 
      "config": {
        "username": "admin", 
        "tenant_name": "admin", 
        "password": "***", 
        "auth_url": "http://192.168.10.108:5000/v2.0";
      }, 
      "type": null, 
      "id": "0858cd58-4078-45b7-9b7e-0bb0b8d445a4", 
      "name": "glancev2"
    }, 
    {
      "description": null, 
      "enabled": true, 
      "driver": "keystone", 
      "config": {
        "username": "admin", 
        "tenant_name": "admin", 
        "password": "***", 
        "auth_url": "http://192.168.10.108:5000/v2.0";
      }, 
      "type": null, 
      "id": "75d82bfe-bec8-4122-8bbe-90182c582c0a", 
      "name": "keystone"
    }, 
    {
      "description": null, 
      "enabled": true, 
      "driver": "nova", 
      "config": {
        "username": "admin", 
        "tenant_name": "admin", 
        "password": "***", 
        "auth_url": "http://192.168.10.108:5000/v2.0";
      }, 
      "type": null, 
      "id": "94df89dc-7a40-4676-8f6b-e93320b022e9", 
      "name": "nova"
    }, 
    {
      "description": null, 
      "enabled": true, 
      "driver": "ceilometer", 
      "config": {
        "username": "admin", 
        "tenant_name": "admin", 
        "password": "***", 
        "auth_url": "http://192.168.10.108:5000/v2.0";
      }, 
      "type": null, 
      "id": "b2636ace-89cd-4ab0-a904-c6a0df705cac", 
      "name": "ceilometer"
    }, 
    {
      "description": null, 
      "enabled": true, 
      "driver": "neutronv2", 
      "config": {
        "username": "admin", 
        "tenant_name": "admin", 
        "password": "***", 
        "auth_url": "http://192.168.10.108:5000/v2.0";
      }, 
      "type": null, 
      "id": "dbeb297e-f153-4e21-a61b-ab99b872a0d9", 
      "name": "neutronv2"
    }, 
    {
      "description": null, 
      "enabled": true, 
      "driver": "cinder", 
      "config": {
        "username": "admin", 
        "tenant_name": "admin", 
        "password": "***", 
        "auth_url": "http://192.168.10.108:5000/v2.0";
      }, 
      "type": null, 
      "id": "e8ce9648-c61c-4edd-a110-b8f10c989f6f", 
      "name": "cinder"
    }
  ]
}


REQ: curl -g -i -X GET 
http://192.168.10.134:1789/v1/data-sources/0858cd58-4078-45b7-9b7e-0bb0b8d445a4/tables/images/rows
 -H "User-Agent: python-congressclient" -H "Accept: application/json" -H 
"X-Auth-Token: {SHA1}6c8eaa3094f947a8f15ca0e2c3c5ad5e9e17d5f0"
"GET /v1/data-sources/0858cd58-4078-45b7-9b7e-0bb0b8d445a4/tables/images/rows 
HTTP/1.1" 200 20
RESP: [200] Date: Tue, 08 Mar 2016 16:17:03 GMT Connection: keep-alive 
Content-Type: application/json; charset=UTF-8 Content-Length: 20 
X-Openstack-Request-Id: req-0dc8fccb-2c3d-4ce9-bd3a-859109fcd645 
RESP BODY: {
  "results": []
}



clean_up ListDatasourceRows: 
END return value: 0

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to