← Back to team overview

monasca team mailing list archive

Monasca installation on existing openstack setup !

 

Hi ,

I am trying to install monasca on a multinode openstack setup .I am installing 
it on a compute node with keystone running on a controler node.

User,tenant,toles and endpoints related to monsac are created with out any error,but 
it is failing to create default monaca alarms.
Please find the error log:
-----------------------------------------Error log starts-------------------------------------------------------------------------------------------------------------
PLAY [Define default alarms] ***************************************************
TASK [monasca-default-alarms : Setup default notification method] **************
task path: /users/rdudyala/monasca-vagrant/roles/monasca-default-alarms/tasks/main.yml:4
ESTABLISH LOCAL CONNECTION FOR USER: rdudyala
mini-mon EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454428831.09-279542722470413 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454428831.09-279542722470413 )" )
mini-mon PUT /tmp/tmpx_S2RU TO /users/rdudyala/.ansible/tmp/ansible-tmp-1454428831.09-279542722470413/monasca_notification_method
mini-mon EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /users/rdudyala/.ansible/tmp/ansible-tmp-1454428831.09-279542722470413/monasca_notification_method; rm -rf "/users/rdudyala/.ansible/tmp/ansible-tmp-1454428831.09-279542722470413/" > /dev/null 2>&1
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
  File "/users/rdudyala/.ansible/tmp/ansible-tmp-1454428831.09-279542722470413/monasca_notification_method", line 2144, in <module>
    main()
  File "/users/rdudyala/.ansible/tmp/ansible-tmp-1454428831.09-279542722470413/monasca_notification_method", line 2139, in main
    notification = MonascaNotification(module)
  File "/users/rdudyala/.ansible/tmp/ansible-tmp-1454428831.09-279542722470413/monasca_notification_method", line 2056, in __init__
    self._keystone_auth()
  File "/users/rdudyala/.ansible/tmp/ansible-tmp-1454428831.09-279542722470413/monasca_notification_method", line 2073, in _keystone_auth
    project_name=self.module.params['keystone_project'])
  File "/usr/local/lib/python2.7/dist-packages/monascaclient/ksclient.py", line 69, in __init__
    self._keystone = client.Client(**kc_args)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v3/client.py", line 226, in __init__
    self.authenticate()
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 589, in authenticate
    resp = self.get_raw_token_from_identity_service(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v3/client.py", line 301, in get_raw_token_from_identity_service
    return plugin.get_auth_ref(self.session)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v3/base.py", line 190, in get_auth_ref
    authenticated=False, log=False, **rkwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py", line 505, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py", line 405, in request
    raise exceptions.from_response(resp, method, url)
keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-6fbd94d7-c07b-4438-a9e3-8bfdeb16f1c8)
fatal: [mini-mon]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "monasca_notification_method"}, "parsed": false}
PLAY RECAP *********************************************************************
mini-mon                   : ok=197  changed=38   unreachable=0    failed=1
--------------------------------------------------Error log end---------------------------------------------------------------------------------------------------

>From the blogs it seems similar issue in devstack and it is solved as part of patch:https://review.openstack.org/#/c/260287/.

How to address this issue in other than devstack setups.

With Best Regards
Raghunath Dudyala
Tata Consultancy Services Limited
Mailto: raghunath.d@xxxxxxx
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Consulting
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


Keystone info:

keystone user-list
+----------------------------------+---------------+---------+--------------------+
|                id                |      name     | enabled |       email        |
+----------------------------------+---------------+---------+--------------------+
| a99a5c77a4024911bb2210dc02e6a2f4 |     admin     |   True  | rdudyala@xxxxxxxxx |
| e7cbe549f8074d7f95e1289940641795 |    adminapi   |   True  | rdudyala@xxxxxxxxx |
| f5864433d85d4e189ae306de41099e0a |   ceilometer  |   True  |                    |
| 522b7e3602cc4a0ca8aff174a05e5b81 |     cinder    |   True  |                    |
| 71808806222e4f84974d11ee8bc326fb |     glance    |   True  |                    |
| bb5bc4095c494cde8fd0ecee0221e45c |      heat     |   True  |                    |
| a1d7e462b2d24f86aa8c1b40dd5ae85f |    mini-mon   |   True  |                    |
| 807c9cb004234f02b3f5370f414d1b28 | monasca-agent |   True  |                    |
| 3de0e27c8be14643a16a510c19669b49 |    neutron    |   True  |                    |
| 33c05c30266c4a818f3959f30b0fef74 |      nova     |   True  |                    |
| 67c1f6828e9e4b76be6b2e94eefd2cd7 |     sahara    |   True  |                    |
| 8eadc1bf43a7406b9a1e742a419ab24b |     swift     |   True  |                    |
| b2e5e5030d134d3d9069e6ddc9d38456 |     trove     |   True  |                    |
+----------------------------------+---------------+---------+--------------------+

#keystone tenant-list
+----------------------------------+----------+---------+
|                id                |   name   | enabled |
+----------------------------------+----------+---------+
| 6866d875f4084ecf9c7c573993ce23c6 |  admin   |   True  |
| 2bf8049064e94af4ac1a28c75c65a7f4 | mini-mon |   True  |
| 46058344e72147c0a233cef27376c7f6 | service  |   True  |
+----------------------------------+----------+---------+

#keystone role-list

 +----------------------------------+------------------+
|                id                |       name       |
+----------------------------------+------------------+
| 8ab52c79f24f47119e76ca5bc5f08848 |  ResellerAdmin   |
| 9fe2ff9ee4384b1894a90878d3e92bab |     _member_     |
| e09c12bc15fe4eefb15501c8a8831fde |      admin       |
| 47e71e0c3cce4516bcaa91b432440fc7 | heat_stack_owner |
| 4f3c44d5854c4d10be9923d5d22bdf2e | heat_stack_user  |
| 1e1300c7d2c1486590dfb1ec2437f8ae |  monasca-agent   |
| fbd6d1a272de4c44853e040a32c1d25e |   monasca-user   |
+----------------------------------+------------------+

keystone endpoint-list:
+----------------------------------+-----------+---------------------------------------+---------------------------------------+------------------------------------+----------------------------------+
|                id                |   region  |               publicurl               |              internalurl              |              adminurl              |            service_id            |
+----------------------------------+-----------+---------------------------------------+---------------------------------------+------------------------------------+----------------------------------+
| 083d5e86f46d41fbb129e94e2656081d | regionOne |    http://ctl:8776/v2/%(tenant_id)s   |    http://ctl:8776/v2/%(tenant_id)s   |  http://ctl:8776/v2/%(tenant_id)s  | f1fc756ad2d2432092f62cfb0f3ee87a |
| 09deeb5e54cb49ec94aa4d7d6f73ddd2 | regionOne | http://ctl:8080/v1/AUTH_%(tenant_id)s | http://ctl:8080/v1/AUTH_%(tenant_id)s |          http://ctl:8080           | b2f8bc4d44884e1cb28f5f4a949b673d |
| 2328c81338d74661b3356ed794b96463 | regionOne |   http://ctl:8779/v1.0/%(tenant_id)s  |   http://ctl:8779/v1.0/%(tenant_id)s  | http://ctl:8779/v1.0/%(tenant_id)s | 45d01dd758e442b1ada13e930af64bfd |
| 46b592bca0334c90887206ad0db6e4d5 | regionOne |    http://ctl:8774/v2/%(tenant_id)s   |    http://ctl:8774/v2/%(tenant_id)s   |  http://ctl:8774/v2/%(tenant_id)s  | 7da52dc37bcb4344ab1d4e184c43b240 |
| 50df1d1e78bf465596db489e148c49a5 | regionOne |    http://ctl:8776/v1/%(tenant_id)s   |    http://ctl:8776/v1/%(tenant_id)s   |  http://ctl:8776/v1/%(tenant_id)s  | 4e21209b91164206a3c6b013d7500aee |
| 601f19efb5f946d186d9488a8a0e9005 | regionOne |            http://ctl:8777            |            http://ctl:8777            |          http://ctl:8777           | 733e870b732747ccb192f35662e8fae9 |
| 6d0bc584a9e84d899905028a0b56546b | regionOne |          http://ctl:5000/v2.0         |          http://ctl:5000/v2.0         |       http://ctl:35357/v2.0        | fe70fff2f7d047969d70c1f3d39126c5 |
| 6f687b10340e44e19fa4aaf43fae80d7 | regionOne |    http://ctl:8004/v1/%(tenant_id)s   |    http://ctl:8004/v1/%(tenant_id)s   |  http://ctl:8004/v1/%(tenant_id)s  | 09b983d1bc594addbf25d2601b923180 |
| 81e4206bc9bb4a2a98eda55a3c7c57fb | RegionOne |      http://192.168.0.5:8070/v2.0     |      http://192.168.0.5:8070/v2.0     |    http://192.168.0.5:8070/v2.0    | 99bf2bc90bc64a8db73fd0a21475525f |
| 9f1d42bc676a4fcc950936ffb21be53c | regionOne |            http://ctl:9696            |            http://ctl:9696            |          http://ctl:9696           | 7d1844bb0ea54047bc4b1a55c2c26aca |
| e0424d7b229d42419891afc6111cccfb | regionOne |            http://ctl:9292            |            http://ctl:9292            |          http://ctl:9292           | 6ce7e81ead2240a5848accbbfdb44d0a |
| e4b57fc6fe5f4d1695a0c2749abc61b5 | regionOne |   http://ctl:8386/v1.1/%(tenant_id)s  |   http://ctl:8386/v1.1/%(tenant_id)s  | http://ctl:8386/v1.1/%(tenant_id)s | abffe859851744e58ff22565cfc668bc |
| ef01bd017097456ca46fe5ce872d34d4 | regionOne |           http://ctl:8000/v1          |           http://ctl:8000/v1          |         http://ctl:8000/v1         | ef14e975f3df4bcda1d5048d72672391 |
+----------------------------------+-----------+---------------------------------------+---------------------------------------+------------------------------

Monasca end-point running at http://192.168.0.5:8070/v2.0