[murano] [murano-cfapi] Error while creating cf api service broker

Bug #1620619 reported by Alex Kholkin on 2016-09-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fuel-plugin-murano
High
Unassigned

Bug Description

Steps to reproduce:
1) Deploy Fuel 9.0
2) Install fuel murano plugin (from here http://packages.fuel-infra.org/plugins/detach-murano/master/)
3) Add 3 controllers and 1 compute. Use next configuration: no base murano + murano plugin
4) Install Murano service broker for Cloud Foundry
5) Deploy env
6) Deploy Cloud Foundry. Go to the instance with it
7) Register client with "cf api api.system.cloudfoundry --skip-ssl-validation", where api.system.cloudfoudry mapped to cf host (via DNS or Hosts file)
8) exec 'cf login'
9) 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:
create service broker is created

Actual result:
ubuntu@pxsfnisrdfv2s2:~$ cf create-service-broker murano admin admin http://172.18.92.101:8083
Creating service broker murano as admin...
FAILED
Server error, status code: 502, error code: 10001, message: The service broker returned an invalid response for the request to http://172.18.92.101:8083/v2/catalog. Status Code: 503 Service Unavailable, Body: <html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>

Alex Kholkin (akholkin) wrote :

error from murano-cfapi.log
2016-09-06 12:23:54.396 25694 ERROR murano.common.app_loader [-] Unable to load cloudfoundry from configuration file /etc/murano/murano-paste.ini.

Alex Kholkin (akholkin) on 2016-09-06
Changed in fuel-plugin-murano:
assignee: nobody → Alex Kholkin (akholkin)
assignee: Alex Kholkin (akholkin) → nobody
assignee: nobody → Denis Egorenko (degorenko)

After debug session I have the following in my mind: we forget to update puppet-murano after separating service broker configuration files from murano files.
You can find related patches here:
https://blueprints.launchpad.net/murano/+spec/separate-service-broker-from-murano

Denis Egorenko (degorenko) wrote :
Changed in fuel-plugin-murano:
status: Confirmed → In Progress
Changed in fuel-plugin-murano:
milestone: 1.0.0 → 1.0.1
Changed in fuel-plugin-murano:
milestone: 1.0.1 → 1.0.0
Changed in fuel-plugin-murano:
milestone: 1.0.0 → 1.0.1
Changed in fuel-plugin-murano:
status: In Progress → Fix Committed
Changed in fuel-plugin-murano:
status: Fix Committed → In Progress
Changed in fuel-plugin-murano:
status: In Progress → Fix Committed
Changed in fuel-plugin-murano:
status: Fix Committed → In Progress
Changed in fuel-plugin-murano:
status: In Progress → Fix Committed
Alex Kholkin (akholkin) on 2016-10-11
Changed in fuel-plugin-murano:
status: Fix Committed → In Progress
Alex Kholkin (akholkin) wrote :

after investigating was found that
1) currently separating murano and murano-cfapi configs works fine, but when you will try to create service broker it still will try to find information in murano.ini instead of murano-cfapi-ini as well as to find configs in murano.conf instead of murano-cfapi.conf
there is 2 mistakes in files '/etc/init.d/murano-cfapi' and '/etc/init/murano-cfapi.conf'
also we miss '[keystone_authtoken]' section in murano-cfapi.conf
2) https://bugs.launchpad.net/murano/+bug/1642612 this bug does not allow to create service broker, so we also have to fix it to create service broker successfully

Alex Kholkin (akholkin) wrote :

To fix this problem user should do
1) add '[keystone_authtoken]' section to the murano-cfapi.conf
2) fix 2 mistakes in files '/etc/init.d/murano-cfapi' and '/etc/init/murano-cfapi.conf' so that configs will be using in murano-cfapi.conf instead of murano.conf

in '/etc/init/murano-cfapi.conf' change ' CONFIG_FILE="/etc/murano/murano.conf" ' to the ' CONFIG_FILE="/etc/murano/murano-cfapi.conf" '

in '/etc/init.d/murano-cfapi' change ' CONFIG_FILE=/etc/${PROJECT_NAME}/${PROJECT_NAME}.conf ' to the ' CONFIG_FILE=/etc/${PROJECT_NAME}/${NAME}.conf '

3) https://bugs.launchpad.net/murano/+bug/1642612 this bug should be fixed to create service broker successfully

Changed in fuel-plugin-murano:
status: In Progress → Confirmed
assignee: Denis Egorenko (degorenko) → nobody
Changed in fuel-plugin-murano:
milestone: 1.1.0 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers