monasca-api: unrecognized service

Bug #1640396 reported by sanjana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Monasca
New
Low
Unassigned

Bug Description

I have installed monasca on ubuntu, and have followed the below steps:

Installed zookeeper, kafka, scala, postfix, apache storm and influxdb. In influxdb i have created a database monasca and added monasca_api and monasca_persister as users.
> wget https://raw.githubusercontent.com/stackforge/cookbook-monasca schema/master/files/default/mysql/mon.sql
> mysql -uroot -ppassword < mon.sql

> curl -X POST 'http://monasca:8086/db?u=root&p=root' -d '{"name": "mon"}'
> curl -X POST 'http://monasca:8086/db/mon/users?u=root&p=root' -d '{"name": "mon_api", "password": "password"}'
> curl -X POST 'http://monasca:8086/db/mon/users?u=root&p=root' -d '{"name": "mon_persister", "password": "password"}'

Then i have installed monasca-sample-config.git, monasca-common and monasca-api.
> git clone https://github.com/stackforge/monasca-api.git
> cd monasca-api
> mvn package
> cd ..
> sudo dpkg -i monasca-api/java/debs/binaries/*.deb
> sudo cp monasca-sample-config/monasca-api/api-config.yml /etc/monasca/api/
> sudo service monasca-api restart

However when i try to restart monasca-api, it throws error

> user@stack:~$ sudo service monasca-api restart
> monasca-api: unrecognized service

How can i fix this?

Revision history for this message
Ryan (ryan-brandt) wrote :

The API is usually run as a jar, please see the devstack plugin https://github.com/openstack/monasca-api/blob/master/devstack/plugin.sh#L854 for an example of how to run the API

Changed in monasca:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers