[openstack-dev] [Monasca] alarm-definition-list is failing with "service unavailable"

Pradip Mukhopadhyay pradip.interra at gmail.com
Wed Feb 3 13:05:01 UTC 2016


Hello,


Seeing the alarm-definition-list is returning "service unavailable" for
admin user:


stack at ubuntu:~/devstack$ monasca --os-username admin --os-password
secretadmin --os-project-name admin alarm-definition-list
ERROR (exc:65) exception: {
    "title": "Service unavailable",
    "description": ""
}
HTTPException code=500 message={
    "title": "Service unavailable",
    "description": ""
}


However can see other APIs like notification listing etc. working fine.

stack at ubuntu:~/devstack$ monasca --os-username admin --os-password
secretadmin --os-project-name admin notification-list
+---------------+--------------------------------------+-------+--------------------+
| name          | id                                   | type  |
address            |
+---------------+--------------------------------------+-------+--------------------+
| pradipm_email | bf60996d-d500-4b59-b42f-a942e9121859 | EMAIL | email_id |
+---------------+--------------------------------------+-------+--------------------+



The following changes we did to make it work for 'admin' user:

Do the following changes:
1. /opt/stack/monasca-api/java/src/main/resources/api-config.yml  --- add
'admin' in 'defaultAuthorizedRoles'
2./etc/monasca/api-config.conf  --- add 'admin' in default_authorized_roles
3. sudo service monasca-api restart
4. sudo service monasca-thresh restart
5. sudo service monasca-agent restart




Any help will be appreciated.



Thanks,
Pradip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160203/2c64df24/attachment.html>


More information about the OpenStack-dev mailing list