{"action":"created","issue":{"url":"https://api.github.com/repos/open-mpi/orcm/issues/177","labels_url":"https://api.github.com/repos/open-mpi/orcm/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/open-mpi/orcm/issues/177/comments","events_url":"https://api.github.com/repos/open-mpi/orcm/issues/177/events","html_url":"https://github.com/open-mpi/orcm/issues/177","id":76102380,"number":177,"title":"ORCMD- componentpower:  unaccurate data when MSR driver is missing","user":{"login":"RafaARV","id":12434688,"avatar_url":"https://avatars.githubusercontent.com/u/12434688?v=3","gravatar_id":"","url":"https://api.github.com/users/RafaARV","html_url":"https://github.com/RafaARV","followers_url":"https://api.github.com/users/RafaARV/followers","following_url":"https://api.github.com/users/RafaARV/following{/other_user}","gists_url":"https://api.github.com/users/RafaARV/gists{/gist_id}","starred_url":"https://api.github.com/users/RafaARV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RafaARV/subscriptions","organizations_url":"https://api.github.com/users/RafaARV/orgs","repos_url":"https://api.github.com/users/RafaARV/repos","events_url":"https://api.github.com/users/RafaARV/events{/privacy}","received_events_url":"https://api.github.com/users/RafaARV/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/open-mpi/orcm/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/open-mpi/orcm/labels/Critical","name":"Critical","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"jjsong2","id":8801456,"avatar_url":"https://avatars.githubusercontent.com/u/8801456?v=3","gravatar_id":"","url":"https://api.github.com/users/jjsong2","html_url":"https://github.com/jjsong2","followers_url":"https://api.github.com/users/jjsong2/followers","following_url":"https://api.github.com/users/jjsong2/following{/other_user}","gists_url":"https://api.github.com/users/jjsong2/gists{/gist_id}","starred_url":"https://api.github.com/users/jjsong2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjsong2/subscriptions","organizations_url":"https://api.github.com/users/jjsong2/orgs","repos_url":"https://api.github.com/users/jjsong2/repos","events_url":"https://api.github.com/users/jjsong2/events{/privacy}","received_events_url":"https://api.github.com/users/jjsong2/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/open-mpi/orcm/milestones/3","html_url":"https://github.com/open-mpi/orcm/milestones/v0.9","labels_url":"https://api.github.com/repos/open-mpi/orcm/milestones/3/labels","id":939051,"number":3,"title":"v0.9","description":"June milestone for ORCM.\r\n===================\r\nNew Features\r\n--------------------\r\n### TBD\r\n\r\n","creator":{"login":"vpedabal","id":7843618,"avatar_url":"https://avatars.githubusercontent.com/u/7843618?v=3","gravatar_id":"","url":"https://api.github.com/users/vpedabal","html_url":"https://github.com/vpedabal","followers_url":"https://api.github.com/users/vpedabal/followers","following_url":"https://api.github.com/users/vpedabal/following{/other_user}","gists_url":"https://api.github.com/users/vpedabal/gists{/gist_id}","starred_url":"https://api.github.com/users/vpedabal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpedabal/subscriptions","organizations_url":"https://api.github.com/users/vpedabal/orgs","repos_url":"https://api.github.com/users/vpedabal/repos","events_url":"https://api.github.com/users/vpedabal/events{/privacy}","received_events_url":"https://api.github.com/users/vpedabal/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":14,"state":"open","created_at":"2015-01-16T19:14:25Z","updated_at":"2015-06-17T22:49:46Z","due_on":"2015-05-30T07:00:00Z","closed_at":null},"comments":11,"created_at":"2015-05-13T19:47:59Z","updated_at":"2015-06-18T16:23:35Z","closed_at":null,"body":"Version: 1.0.0a1\r\nCommit: 07f0ec2e4f4c435dec8426d5e4e5851ef746b883\r\nOS: CentOS 7  Kernel - 3.10.0-229.1.2.el7.x86_64\r\n\r\nOrcmd fails to give accurate values when the msr driver is missing on the system instead of returning an error.\r\n\r\n>[root@xxxxxx]# ./orcmd -omca sensor heartbeat,componentpower\r\n[xxxxxxxxx:29202] \r\n******************************\r\nWed May 13 14:23:35 2015: ORCM version: 1.0.0a1 AGGREGATOR: [[0,0],1] started and connected to AGGREGATOR: [[0,0],0]\r\n******************************\r\nDB request: store; data:\r\nprimary_key=componentpower,ctime=2015-05-13 14:23:45.812-0500,hostname=xxxxxx,**cpu0_power=1000.000000:W,cpu1_power=1000.000000:W,ddr0_power=54543124.000000:W,ddr1_power=54543124.000000:W**\r\n[xxxxxx:29202] Wed May 13 14:24:36 2015: ORCM aggregator [[0,0],1] shutting down with status -9 (Interrupted)\r\n[root@xxxxxx bin]# modprobe msr\r\n[root@xxxxxx bin]# lsmod |grep msr\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/open-mpi/orcm/issues/comments/113208192","html_url":"https://github.com/open-mpi/orcm/issues/177#issuecomment-113208192","issue_url":"https://api.github.com/repos/open-mpi/orcm/issues/177","id":113208192,"user":{"login":"RafaARV","id":12434688,"avatar_url":"https://avatars.githubusercontent.com/u/12434688?v=3","gravatar_id":"","url":"https://api.github.com/users/RafaARV","html_url":"https://github.com/RafaARV","followers_url":"https://api.github.com/users/RafaARV/followers","following_url":"https://api.github.com/users/RafaARV/following{/other_user}","gists_url":"https://api.github.com/users/RafaARV/gists{/gist_id}","starred_url":"https://api.github.com/users/RafaARV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RafaARV/subscriptions","organizations_url":"https://api.github.com/users/RafaARV/orgs","repos_url":"https://api.github.com/users/RafaARV/repos","events_url":"https://api.github.com/users/RafaARV/events{/privacy}","received_events_url":"https://api.github.com/users/RafaARV/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T16:23:35Z","updated_at":"2015-06-18T16:23:35Z","body":"You are right David,\r\n\r\nWith the DB enabled it is logging incorrect values, it should not log this incorrect values. Also there are some suspicious warnings.\r\n>\r\n[root@xxxx rafa]# /opt/orcm_test/bin/orcmd -omca sensor heartbeat,componentpower -omca db_postgres_uri localhost:5432 -omca db_postgres_database orcmdb -omca db_postgres_user orcmuser:orcmpassword --omca db_base_verbose 100\r\n[xxxx:06501] mca: base: components_register: registering framework db components\r\n[xxxx:06501] mca: base: components_register: found loaded component print\r\n[xxxx:06501] mca: base: components_register: component print register function successful\r\n[xxxx:06501] mca: base: components_register: found loaded component odbc\r\n[xxxx:06501] mca: base: components_register: component odbc register function successful\r\n[xxxx:06501] mca: base: components_register: found loaded component postgres\r\n[xxxx:06501] mca: base: components_register: component postgres register function successful\r\n[xxxx:06501] mca: base: components_open: opening db components\r\n[xxxx:06501] mca: base: components_open: found loaded component print\r\n[xxxx:06501] mca: base: components_open: found loaded component odbc\r\n[xxxx:6501] mca: base: components_open: found loaded component postgres\r\n[xxxx:06501] mca:db:select: checking available component print\r\n[xxxx:06501] mca:db:select: Querying component [print]\r\n[xxxx:06501] mca:db:select: checking available component odbc\r\n[xxxx:06501] mca:db:select: Querying component [odbc]\r\n[xxxx:06501] mca:db:select: checking available component postgres\r\n[xxxx:06501] mca:db:select: Querying component [postgres]\r\n[xxxx:06501] Final db priorities\r\n[xxxx:06501] \tComponent: postgres Store Priority: 15\r\n[xxxx:06501] \tComponent: odbc Store Priority: 10\r\n[xxxx:06501] \tComponent: print Store Priority: 5\r\n[xxxx:06501] db:postgres: Connection established to orcmdb\r\n[xxxx:06501] \r\n******************************\r\nThu Jun 18 11:10:48 2015: ORCM version: 1.0.0a1 AGGREGATOR: [[0,0],1] started and connected to AGGREGATOR: [[0,0],0]\r\n******************************\r\n[xxxx:06501] db:postgres: Connection established to orcmdb\r\n**WARNING:  there is no transaction in progress**\r\n**[xxxx:06501] postgres_store_sample succeeded**\r\n**WARNING:  there is no transaction in progress**\r\nWARNING:  there is no transaction in progress\r\nWARNING:  there is no transaction in progress\r\nWARNING:  there is no transaction in progress\r\n[xxxx:06501] Thu Jun 18 11:11:21 2015: ORCM aggregator [[0,0],1] shutting down with status -9 (Interrupted)\r\n[xxxx:06501] mca: base: close: unloading component print\r\n[xxxx:06501] mca: base: close: unloading component odbc\r\n[xxxx:06501] mca: base: close: unloading component postgres\r\n>\r\n\r\n\r\nThe incorrect data that was stored was:\r\n>\r\norcmdb=# SELECT * FROM data_sample_raw WHERE time_stamp BETWEEN '2015-06-18 01:00:00' AND '2015-06-18 20:00:00';\r\n    hostname     |         data_item         |         time_stamp         | value_int | value_real | value_str | units | data_type_id |       time_stamp_db        |  id   \r\n-----------------+---------------------------+----------------------------+-----------+------------+-----------+-------+--------------+----------------------------+-------\r\n xxxx | componentpower_cpu0_power | 2015-06-18 11:08:55.343166 |           | **147.102798** |           | W     |           16 | 2015-06-18 11:08:55.343984 | 34008\r\n xxxx | componentpower_cpu1_power | 2015-06-18 11:08:55.343166 |           | **147.102798** |           | W     |           16 | 2015-06-18 11:08:55.343984 | 34009\r\n xxxx | componentpower_ddr0_power | 2015-06-18 11:08:55.343166 |           | **147.102798** |           | W     |           16 | 2015-06-18 11:08:55.343984 | 34010\r\n xxxx | componentpower_ddr1_power | 2015-06-18 11:08:55.343166 |           | **147.102798** |           | W     |           16 | 2015-06-18 11:08:55.343984 | 34011\r\n xxxx | componentpower_cpu0_power | 2015-06-18 11:10:58.1126   |           |       **1000** |           | W     |           16 | 2015-06-18 11:10:58.114113 | 34012\r\n xxxx | componentpower_cpu1_power | 2015-06-18 11:10:58.1126   |           |       **1000** |           | W     |           16 | 2015-06-18 11:10:58.114113 | 34013\r\n xxxx | componentpower_ddr0_power | 2015-06-18 11:10:58.1126   |           |  **98472112** |           | W     |           16 | 2015-06-18 11:10:58.114113 | 34014\r\n xxxx | componentpower_ddr1_power | 2015-06-18 11:10:58.1126   |           |   **98472112** |           | W     |           16 | 2015-06-18 11:10:58.114113 | 34015\r\n(8 rows)\r\n>"}}