[murano] [murano-cfapi] error while creating cf service broker

Bug #1642612 reported by Alex Kholkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
New
Medium
Unassigned

Bug Description

Bug description:
Currently it is not possible to create murano service broker via cf api because 'Using keystoneclient sessions has been deprecated. Please update your software to use keystoneauth1.'

Steps to reproduce:
1. deploy last devstack with murano and enable_service murano-cfapi
2. deploy cf
3. ssh to the instance
4. Register client with "cf api api.system.cloudfoundry --skip-ssl-validation", where api.system.cloudfoudry mapped to cf host (via DNS or Hosts file)
5. exec 'cf login'
6. try to register service-broker in cloud foundry via 'сf create-service-broker murano admin admin <url>' , url = http://172.18.92.101:8083/, for example.

Expected result:
service broker is created

Actual result:
`Creating service broker murano as admin...
FAILED
Server error, status code: 502, error code: 270012, message: Service broker catalog is invalid:
Service broker must provide at least one service
`

Part of the cf api log:
2016-11-17 15:04:20.303 9944 DEBUG eventlet.wsgi [-] (9944) accepted ('172.16.168.44', 51163) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:868
2016-11-17 15:04:20.512 9944 WARNING keystonemiddleware.auth_token [-] Using the in-process token cache is deprecated as of the 4.2.0 release and may be removed in the 5.0.0 release or the 'O' development cycle. The in-process cache causes inconsistent results and high memory usage. When the feature is removed the auth_token middleware will not cache tokens by default which may result in performance issues. It is recommended to use memcache for the auth_token token cache by setting the memcached_servers option.
/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py:135: UserWarning: Using keystoneclient sessions has been deprecated. Please update your software to use keystoneauth1.
  warnings.warn('Using keystoneclient sessions has been deprecated. '
2016-11-17 15:04:20.857 9944 DEBUG murano.common.wsgi [req-e285365c-15f4-46ea-9bf7-6d155eb867a2 10e07d7fb9d74b8cb55e7b6100e1381b 7ec0cfff9fe2499ba0d4407ac04263de - - -] GET http://172.18.162.71:8083/v2/catalog
HEADERS: Authorization: Basic YWRtaW46YWRtaW4=, User-Agent: HTTPClient/1.0 (2.7.1, ruby 2.3.1 (2016-04-26)), X-User-Id: 10e07d7fb9d74b8cb55e7b6100e1381b, X-Roles: admin, X-Tenant-Id: 7ec0cfff9fe2499ba0d4407ac04263de, Content-Type: text/plain, Date: Thu, 17 Nov 2016 14:02:46 GMT, Host: 172.18.162.71:8083, Accept: application/json __call__ /opt/stack/murano/murano/common/wsgi.py:426
2016-11-17 15:04:20.857 9944 DEBUG murano.common.wsgi [req-e285365c-15f4-46ea-9bf7-6d155eb867a2 10e07d7fb9d74b8cb55e7b6100e1381b 7ec0cfff9fe2499ba0d4407ac04263de - - -] Empty body provided in request deserialize_body /opt/stack/murano/murano/common/wsgi.py:776
2016-11-17 15:04:20.863 9944 DEBUG muranoclient.common.http [req-e285365c-15f4-46ea-9bf7-6d155eb867a2 10e07d7fb9d74b8cb55e7b6100e1381b 7ec0cfff9fe2499ba0d4407ac04263de - - -] curl -i -X GET -H 'X-Auth-Token: {SHA1}62bbb91f8fa89f921e80302a7bd86843bb2acb48' -H 'Content-Type: application/json' -H 'User-Agent: python-muranoclient' http://172.18.162.71:8082/v1/catalog/packages?limit=20&type=Application log_curl_request /opt/stack/python-muranoclient/muranoclient/common/http.py:119
2016-11-17 15:04:21.004 9944 DEBUG muranoclient.common.http [req-e285365c-15f4-46ea-9bf7-6d155eb867a2 10e07d7fb9d74b8cb55e7b6100e1381b 7ec0cfff9fe2499ba0d4407ac04263de - - -]
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 16
X-Openstack-Request-Id: req-4650a7e8-a76f-41dd-86a8-111eb947796f
Date: Thu, 17 Nov 2016 14:04:21 GMT
Connection: keep-alive

{"packages": []}
 log_http_response /opt/stack/python-muranoclient/muranoclient/common/http.py:136
2016-11-17 15:04:21.005 9944 INFO eventlet.wsgi [req-e285365c-15f4-46ea-9bf7-6d155eb867a2 10e07d7fb9d74b8cb55e7b6100e1381b 7ec0cfff9fe2499ba0d4407ac04263de - - -] 172.16.168.44 - - [17/Nov/2016 15:04:21] "GET /v2/catalog HTTP/1.1" 200 190 0.700677

Alex Kholkin (akholkin)
tags: removed: cf
Changed in murano:
importance: Undecided → Medium
Changed in murano:
milestone: 3.1.0 → pike-2
Changed in murano:
milestone: pike-2 → pike-rc1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.