*** ddieterly has quit IRC | 00:14 | |
*** craigbr has quit IRC | 00:17 | |
*** dschroeder has quit IRC | 00:21 | |
*** mvenesio_ has quit IRC | 00:34 | |
*** cindyo has quit IRC | 01:07 | |
*** theresa_ has joined #openstack-monasca | 01:57 | |
*** th_ has joined #openstack-monasca | 02:19 | |
*** theresa_ has quit IRC | 02:23 | |
*** amalagon has quit IRC | 02:39 | |
*** amalagon has joined #openstack-monasca | 02:39 | |
*** amalagon has quit IRC | 02:44 | |
*** htruta_ has quit IRC | 03:30 | |
*** boris-42 has quit IRC | 03:33 | |
*** amalagon has joined #openstack-monasca | 03:50 | |
*** amalagon has quit IRC | 03:54 | |
*** th_ has quit IRC | 04:55 | |
*** huhongbo has joined #openstack-monasca | 05:55 | |
*** boris-42 has joined #openstack-monasca | 05:59 | |
huhongbo | the newest build report No implementation for monasca.api.domain.model.notificationmethod.NotificationMethodRepository was bound | 06:17 |
---|---|---|
*** huhongbo has quit IRC | 07:12 | |
*** pasquier-s has quit IRC | 08:36 | |
*** sandywalsh has joined #openstack-monasca | 09:34 | |
*** sandywalsh_ has quit IRC | 09:36 | |
*** pasquier-s has joined #openstack-monasca | 09:58 | |
*** sanjayu has joined #openstack-monasca | 10:35 | |
*** ddieterly has joined #openstack-monasca | 12:02 | |
*** sanjayu_ has joined #openstack-monasca | 12:18 | |
*** sanjayu has quit IRC | 12:20 | |
*** pasquier-s has quit IRC | 12:27 | |
*** pasquier-s has joined #openstack-monasca | 12:46 | |
*** htruta has quit IRC | 12:56 | |
*** pasquier-s has quit IRC | 13:27 | |
*** pasquier-s has joined #openstack-monasca | 13:29 | |
*** htruta has joined #openstack-monasca | 13:37 | |
*** ddieterly has quit IRC | 13:42 | |
*** pasquier-s has quit IRC | 13:44 | |
*** LeanReox has joined #openstack-monasca | 14:07 | |
LeanReox | Hi all, i was wondering if someone can lend me a hand with an authentication issue im having with monasca | 14:07 |
LeanReox | the monasca-client authenticates ok with keystone v3 endpoint | 14:08 |
LeanReox | but monasca-api is giving me a 401 when listing alarms etc | 14:08 |
LeanReox | i added admin role on the api.yaml config that the user already has | 14:08 |
LeanReox | any other thing i should do besides enabling the keystone middleware and adding the role ? | 14:09 |
LeanReox | no specific stacktrace on /var/log/monasca-api either, just unauthorized | 14:10 |
*** mvenesio has joined #openstack-monasca | 14:17 | |
LeanReox | were running this jar monasca-api.jar:0.1.0 | 14:19 |
LeanReox | maybe there is an updated version ... | 14:19 |
*** ddieterly has joined #openstack-monasca | 14:26 | |
*** sanjayu_ has quit IRC | 14:35 | |
*** craigbr has joined #openstack-monasca | 14:37 | |
*** craigbr has quit IRC | 14:38 | |
*** mvenesio has quit IRC | 14:49 | |
*** craigbr has joined #openstack-monasca | 14:55 | |
*** theresa_ has joined #openstack-monasca | 15:02 | |
*** rbak has joined #openstack-monasca | 15:03 | |
*** ddieterly has quit IRC | 15:09 | |
*** ddieterly has joined #openstack-monasca | 15:10 | |
*** pasquier-s has joined #openstack-monasca | 15:21 | |
*** theresa_ has quit IRC | 15:25 | |
*** theresa_ has joined #openstack-monasca | 15:25 | |
LeanReox | ERROR [2014-12-15 23:35:31,673] monasca.common.middleware.TokenAuth: 401 No token found. | 15:26 |
LeanReox | when starting the api | 15:26 |
*** pasquier-s has quit IRC | 15:55 | |
*** pasquier-s has joined #openstack-monasca | 15:57 | |
*** ericpeterson has joined #openstack-monasca | 16:08 | |
*** cindyo has joined #openstack-monasca | 16:15 | |
*** pasquier-s has quit IRC | 16:20 | |
*** dschroeder has joined #openstack-monasca | 16:21 | |
*** pasquier-s has joined #openstack-monasca | 16:26 | |
*** pasquier-s has quit IRC | 16:38 | |
*** pasquier-s has joined #openstack-monasca | 16:56 | |
*** pasquier-s has quit IRC | 17:05 | |
*** pasquier-s has joined #openstack-monasca | 17:07 | |
*** mvenesio has joined #openstack-monasca | 17:19 | |
*** craigbr has quit IRC | 17:21 | |
*** craigbr has joined #openstack-monasca | 17:22 | |
openstackgerrit | David Schroeder proposed stackforge/monasca-agent: Added annotated example config for libvirt plugin https://review.openstack.org/142165 | 17:26 |
*** craigbr has quit IRC | 17:41 | |
mvenesio | hi guys i had been installed monasca using the ansible playbooks, now im having issues authorizing with my keystone juno (pki) release | 17:44 |
*** amalagon has joined #openstack-monasca | 17:44 | |
mvenesio | do you know the how needs to be the correct configuration of the monasca-api to talk with keystone ? | 17:44 |
*** craigbr has joined #openstack-monasca | 18:02 | |
LeanReox | craigbr: hope you can help me, were having ERROR [2014-12-15 23:35:31,673] monasca.common.middleware.TokenAuth: 401 No token found on the monascaAPI when we start it, but we have configured user and password as auth method | 18:03 |
LeanReox | craigbr: were missing something on the middleware section of the api-config.yml ? | 18:03 |
craigbr | In a meeting. Will be with you shortly | 18:03 |
openstackgerrit | Deklan Dieterly proposed stackforge/monasca-api: Remove peewee and replace with mysqldb https://review.openstack.org/142172 | 18:14 |
LeanReox | craigbr: thanks, you rock | 18:17 |
craigbr | LeanReox Hi. Done with meeting. Try setting the adminAuthMethod to password in the middleware section of the config file and then restarting API | 18:19 |
LeanReox | craigbr: let me check | 18:21 |
LeanReox | craigbr: it was like that, but we still getting unauthorized, we changed to admin_token and now were getting Tenant is missing a required role to perform this request | 18:23 |
LeanReox | the python-monascaagent authenticates ok to keystone with the same credentials but when the request goes to the monasca api and tries to validate the token it fails, first whit the first error i copied, and now when we changed the authmethod to token, with this one | 18:24 |
craigbr | Ok. That means it authenticating your admin token with keystone and it is getting back info from keystone about your user token | 18:24 |
craigbr | however | 18:24 |
craigbr | the token is either missing a required role OR it has a role listed in agentAuthorizedRoles | 18:25 |
craigbr | There is a problem that I am fixing where the role in agentAuthorizedRoles is treated as a restriction and if you have that role, you can only post metrics | 18:26 |
LeanReox | craigbr: thats a good one, and tries to find the X-MONASCA-AGENT on the header | 18:26 |
LeanReox | and of course is missing | 18:26 |
LeanReox | cause its the python client or horizon | 18:26 |
LeanReox | im going to remove the role from the agent section and remove the monasca-role role from the user | 18:26 |
craigbr | The API puts on the X-MONASCA-AGENT header itself when it gets the data back from keystone about the user's token | 18:27 |
craigbr | Let me look at the code for a minute | 18:28 |
LeanReox | craigbr: right, but if i have a role listed that the python-monasca client has , it will think that its an agent, and go from different section of the code | 18:29 |
LeanReox | craigbr: were hitting this one https://github.com/stackforge/monasca-api/blob/b57e7a81f8e92bebbdc1932164a6913437119905/src/main/java/monasca/api/infrastructure/servlet/RoleAuthorizationFilter.java | 18:29 |
craigbr | That means it thinks your user is an agent. | 18:30 |
craigbr | And only allowed to post metrics | 18:30 |
LeanReox | craigbr: removed the role from the agent section on the config | 18:31 |
LeanReox | and its working | 18:31 |
craigbr | Makes sense. You just need to ensure your user doesn't have the agent role until I get that code fixed. | 18:31 |
LeanReox | craigbr: but were struggling to know why if we use the same credentials that the python-monasca client has, the authmethod password is not working | 18:31 |
craigbr | The admin user configured in the api config file has to be an admin user because of the way keystone works | 18:32 |
craigbr | It can't be a normal user | 18:32 |
LeanReox | yep, its the only admin user we have | 18:33 |
LeanReox | with the admin role | 18:33 |
LeanReox | the same user and pass are configured on the API | 18:33 |
craigbr | And you had it configured something like: | 18:33 |
craigbr | adminAuthMethod: password | 18:33 |
craigbr | adminUser: admin | 18:33 |
craigbr | adminPassword: admin | 18:33 |
craigbr | adminToken: | 18:33 |
craigbr | ? | 18:33 |
LeanReox | gra | 18:35 |
LeanReox | craigbr: the only diff from what you posted is that adminToken was like this "adminToken: None" | 18:35 |
craigbr | Try it as blank, not None | 18:36 |
craigbr | None just gets parsed as the string "None" | 18:36 |
LeanReox | ok let us try craigbr | 18:37 |
LeanReox | craigbr: yup, it worked that way | 18:39 |
LeanReox | craigbr: it was like that on the ansible playbook | 18:39 |
LeanReox | want me to submit a bug on that one ? | 18:40 |
craigbr | If you could, that would be helpful. That way I won't forget it :) | 18:40 |
LeanReox | haha, ill do it right away | 18:41 |
LeanReox | thanks for your help craigbr ! | 18:41 |
craigbr | No problem. Thanks for submitting the bug | 18:42 |
LeanReox | we almost cried in front of the stacktrace today :P | 18:42 |
craigbr | Yeah, it still needs some work to make it easier to configure that part and figure out what is wrong | 18:43 |
LeanReox | craigbr: the things with the clients role on the agent section already has a bug or want me to submit that one too ? | 18:43 |
craigbr | I | 18:44 |
craigbr | am already working on that one | 18:44 |
craigbr | So, no bug needed, but thanks | 18:44 |
LeanReox | craigbr: roger that | 18:48 |
openstackgerrit | Merged stackforge/monasca-agent: Added annotated example config for libvirt plugin https://review.openstack.org/142165 | 19:02 |
*** LeanReox has quit IRC | 19:07 | |
*** LeanReox has joined #openstack-monasca | 19:17 | |
LeanReox | craigbr: bug filled https://bugs.launchpad.net/monasca/+bug/1403175 | 19:17 |
*** slbmac has quit IRC | 19:22 | |
craigbr | LeanReox: Thanks | 19:25 |
*** cindyo has quit IRC | 19:30 | |
openstackgerrit | Deklan Dieterly proposed stackforge/monasca-api: Remove peewee and replace with mysqldb https://review.openstack.org/142172 | 19:31 |
*** theresa_ has quit IRC | 20:04 | |
openstackgerrit | Deklan Dieterly proposed stackforge/monasca-api: Remove peewee and replace with mysqldb https://review.openstack.org/142172 | 20:13 |
*** cindyo has joined #openstack-monasca | 20:17 | |
*** theresa_ has joined #openstack-monasca | 20:33 | |
*** ddieterly has quit IRC | 20:35 | |
*** ddieterly has joined #openstack-monasca | 20:40 | |
*** ddieterly has quit IRC | 20:49 | |
openstackgerrit | Merged stackforge/monasca-api: Remove peewee and replace with mysqldb https://review.openstack.org/142172 | 20:53 |
openstackgerrit | Gary Hessler proposed stackforge/monasca-agent: Fixed issue with agent startup if Keystone is down https://review.openstack.org/142220 | 20:54 |
LeanReox | craigbr: sorry to bother you again, were having this stack : java.lang.RuntimeException: Error at 0:12. syntax error, unexpected '/', expecting $end | 21:06 |
LeanReox | and we can see that the querystring to influxDB ... has a final "/" that i think shouldn be there | 21:07 |
LeanReox | DEBUG [2014-12-16 20:45:13,116] monasca.api.infrastructure.persistence.influxdb.MetricDefinitionInfluxDbRepositoryImpl: Query string: list series /^d2b33fed2be34e7d8b5388107c3eaf16\?RegionOne/ | 21:07 |
LeanReox | can that stacktrace be for that ? | 21:07 |
craigbr | Is that the entire error message? | 21:08 |
LeanReox | i can pastebin the whole thing | 21:08 |
LeanReox | hold a sec | 21:08 |
craigbr | Please | 21:08 |
LeanReox | craigbr: http://pastebin.com/4wTJX9Xr | 21:11 |
craigbr | LeanReox what version of influxdb are you using? | 21:13 |
LeanReox | influxdb -v InfluxDB v0.5.4 (git: 93e93fa8986ab782b60087aa5b194113af8e16e5) | 21:14 |
LeanReox | the one that we installed with the ansible play | 21:14 |
craigbr | We are running InfluxDB v0.8.1 (git: 0229ba2) (leveldb: 1.15) | 21:16 |
LeanReox | craigbr: hmmm, will try upgrading influx again | 21:17 |
LeanReox | maybe its healthy to request influxdb requirement minimun to that version | 21:18 |
LeanReox | at least on the playbook | 21:18 |
*** mvenesio has quit IRC | 21:19 | |
craigbr | Just talked our ansible wizard. We specify the version of influxdb in our playbook. For example, this is in mini-mon.yml in the monasca-vagrant repo: | 21:24 |
craigbr | influxdb: | 21:24 |
craigbr | version: 0.8.1 | 21:24 |
craigbr | raft_port: 9090 | 21:24 |
craigbr | seed_servers: [] | 21:24 |
craigbr | replication_factor: 1 | 21:24 |
craigbr | I would definitely specify the version of influxdb in your playbook. We are also going to modify the default version also in the role | 21:25 |
LeanReox | yes because the play installed 0.5.4 that is actually the stable on the ubuntu 14.04 repos | 21:26 |
craigbr | monasca requires a much newer version. No way 0.5.4 is going to work | 21:31 |
LeanReox | craigbr: juast checked the role , and the vars inside of it | 21:33 |
LeanReox | cat monasca_installer/roles/stympy.influxdb/defaults/main.yml | 21:33 |
LeanReox | influxdb: | 21:33 |
LeanReox | version: 0.5.4 | 21:33 |
LeanReox | raft_port: 8090 | 21:33 |
LeanReox | seed_servers: [ ] | 21:34 |
LeanReox | replication_factor: 1 | 21:34 |
LeanReox | influxdb_client_port: 8086r | 21:34 |
LeanReox | maybe the change to the defaults/main.yaml is not pushed yet | 21:34 |
LeanReox | thats why the playbook deployed the 0.5.4 | 21:34 |
LeanReox | and ... the get of course reacted to this var: get_url: url=http://s3.amazonaws.com/influxdb/influxdb_{{ influxdb.version }}_amd64.deb dest=/usr/local/src/influxdb_{{ influxdb.version }}_amd64.deb | 21:35 |
LeanReox | ill change the vars on the playbook and redeploy influx | 21:36 |
*** ddieterly has joined #openstack-monasca | 21:37 | |
craigbr | Yes, that is true. We just change set the version in our play books. We have forked from stympy.influxdb because of other changes. Our change will go into https://github.com/hpcloud-mon/ansible-influxdb | 21:39 |
LeanReox | craigbr: great | 21:40 |
*** craigbr has quit IRC | 21:48 | |
openstackgerrit | Gary Hessler proposed stackforge/monasca-agent: Fix detection of Zookeeper in monasca-setup https://review.openstack.org/142233 | 21:55 |
*** theresa_ has quit IRC | 22:14 | |
openstackgerrit | Joe Keen proposed stackforge/monasca-notification: Webhook now passes alarm_id instead of alarm_name https://review.openstack.org/142238 | 22:21 |
openstackgerrit | Deklan Dieterly proposed stackforge/monasca-api: Factor out common code https://review.openstack.org/142241 | 22:26 |
openstackgerrit | Deklan Dieterly proposed stackforge/monasca-api: Factor out common code https://review.openstack.org/142241 | 22:36 |
*** craigbr_ has joined #openstack-monasca | 22:40 | |
openstackgerrit | Merged stackforge/monasca-api: Factor out common code https://review.openstack.org/142241 | 23:03 |
*** krtaylor has quit IRC | 23:13 | |
*** ddieterly has quit IRC | 23:17 | |
*** ddieterly has joined #openstack-monasca | 23:17 | |
*** ddieterly has quit IRC | 23:22 | |
*** krtaylor has joined #openstack-monasca | 23:26 | |
*** craigbr_ has quit IRC | 23:50 | |
*** LeanReox has quit IRC | 23:54 | |
*** rbak has quit IRC | 23:55 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!