{"action":"created","issue":{"url":"https://api.github.com/repos/RackHD/RackHD/issues/483","repository_url":"https://api.github.com/repos/RackHD/RackHD","labels_url":"https://api.github.com/repos/RackHD/RackHD/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/RackHD/RackHD/issues/483/comments","events_url":"https://api.github.com/repos/RackHD/RackHD/issues/483/events","html_url":"https://github.com/RackHD/RackHD/issues/483","id":187181100,"number":483,"title":"Create and store a new node manually is failing","user":{"login":"manfrednde","id":14188534,"avatar_url":"https://avatars.githubusercontent.com/u/14188534?v=3","gravatar_id":"","url":"https://api.github.com/users/manfrednde","html_url":"https://github.com/manfrednde","followers_url":"https://api.github.com/users/manfrednde/followers","following_url":"https://api.github.com/users/manfrednde/following{/other_user}","gists_url":"https://api.github.com/users/manfrednde/gists{/gist_id}","starred_url":"https://api.github.com/users/manfrednde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manfrednde/subscriptions","organizations_url":"https://api.github.com/users/manfrednde/orgs","repos_url":"https://api.github.com/users/manfrednde/repos","events_url":"https://api.github.com/users/manfrednde/events{/privacy}","received_events_url":"https://api.github.com/users/manfrednde/received_events","type":"User","site_admin":false},"labels":[{"id":283180761,"url":"https://api.github.com/repos/RackHD/RackHD/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"yyscamper","id":511378,"avatar_url":"https://avatars.githubusercontent.com/u/511378?v=3","gravatar_id":"","url":"https://api.github.com/users/yyscamper","html_url":"https://github.com/yyscamper","followers_url":"https://api.github.com/users/yyscamper/followers","following_url":"https://api.github.com/users/yyscamper/following{/other_user}","gists_url":"https://api.github.com/users/yyscamper/gists{/gist_id}","starred_url":"https://api.github.com/users/yyscamper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyscamper/subscriptions","organizations_url":"https://api.github.com/users/yyscamper/orgs","repos_url":"https://api.github.com/users/yyscamper/repos","events_url":"https://api.github.com/users/yyscamper/events{/privacy}","received_events_url":"https://api.github.com/users/yyscamper/received_events","type":"User","site_admin":false},"assignees":[{"login":"yyscamper","id":511378,"avatar_url":"https://avatars.githubusercontent.com/u/511378?v=3","gravatar_id":"","url":"https://api.github.com/users/yyscamper","html_url":"https://github.com/yyscamper","followers_url":"https://api.github.com/users/yyscamper/followers","following_url":"https://api.github.com/users/yyscamper/following{/other_user}","gists_url":"https://api.github.com/users/yyscamper/gists{/gist_id}","starred_url":"https://api.github.com/users/yyscamper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyscamper/subscriptions","organizations_url":"https://api.github.com/users/yyscamper/orgs","repos_url":"https://api.github.com/users/yyscamper/repos","events_url":"https://api.github.com/users/yyscamper/events{/privacy}","received_events_url":"https://api.github.com/users/yyscamper/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-11-03T20:28:47Z","updated_at":"2016-11-04T18:26:44Z","closed_at":null,"body":"Using RackHD master I am not able to create manually a new node of type management using POST node API. \r\n\r\nI am using the following payload to create the node:\r\n\r\n{\r\n  \"name\": \"management server\",\r\n  \"autoDiscover\": \"true\",\r\n  \"obmSettings\": [\r\n            {\r\n                \"config\": {\r\n                    \"host\": \"172.31.128.77\",\r\n                    \"user\": \"admin\",\r\n                    \"password\": \"admin\"\r\n                },\r\n                \"service\": \"ipmi-obm-service\"\r\n            }\r\n        ],\r\n  \"type\": \"mgmt\"\r\n}\r\n\r\nThe node ID gets created but  I see that graph (Graph.MgmtSKU.Discovery) that should be run on the node(  \"autoDiscover\": \"true\",)\r\nis still in pending states after more than 2 hours. \r\n\r\n: curl localhost:8080/api/common/workflows/be947a11-25fb-4bd1-b50b-6995adb60598 | pyth...  Wed Nov  2 21:54:52 2016\r\n\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0 100  6315  100  6315    0     0   351k      0\r\n--:--:-- --:--:-- --:--:--  362k\r\n        \"injectableName\": \"Graph.MgmtSKU.Discovery\",\r\n                    \"injectableName\": \"Task.Graph.Run.Discovery\",\r\n                    \"injectableName\": \"Task.Inline.Pollers.CreateDefault\",\r\n                    \"injectableName\": \"Task.Graph.Run.SkuSpecific\",\r\n    \"injectableName\": \"Graph.MgmtSKU.Discovery\",\r\n            \"injectableName\": \"Task.Catalog.GenerateTag\",\r\n            \"state\": \"pending\",\r\n            \"injectableName\": \"Task.Inline.Pollers.CreateDefault\",\r\n            \"state\": \"pending\",\r\n            \"injectableName\": \"Task.Graph.Run.Discovery\",\r\n            \"state\": \"pending\",\r\n            \"injectableName\": \"Task.Catalog.GenerateSku\",\r\n            \"state\": \"pending\",\r\n            \"injectableName\": \"Task.Catalog.GenerateEnclosure\",\r\n            \"state\": \"pending\",\r\n            \"injectableName\": \"Task.Graph.Run.SkuSpecific\",\r\n            \"state\": \"pending\",\r\nIt looks like : \r\n(1)\tThe task schema specifies the wrong job, so the discovery (LLDP catalog) actually runs the wrong job. (It causes the workflow hangs)\r\n(2)\tThe obm settings is not persisted in database so the catalog that bases on IPMI will fail since it cannot find the obm from database. (It causes the catalog failure\r\n"},"comment":{"url":"https://api.github.com/repos/RackHD/RackHD/issues/comments/258511380","html_url":"https://github.com/RackHD/RackHD/issues/483#issuecomment-258511380","issue_url":"https://api.github.com/repos/RackHD/RackHD/issues/483","id":258511380,"user":{"login":"manfrednde","id":14188534,"avatar_url":"https://avatars.githubusercontent.com/u/14188534?v=3","gravatar_id":"","url":"https://api.github.com/users/manfrednde","html_url":"https://github.com/manfrednde","followers_url":"https://api.github.com/users/manfrednde/followers","following_url":"https://api.github.com/users/manfrednde/following{/other_user}","gists_url":"https://api.github.com/users/manfrednde/gists{/gist_id}","starred_url":"https://api.github.com/users/manfrednde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manfrednde/subscriptions","organizations_url":"https://api.github.com/users/manfrednde/orgs","repos_url":"https://api.github.com/users/manfrednde/repos","events_url":"https://api.github.com/users/manfrednde/events{/privacy}","received_events_url":"https://api.github.com/users/manfrednde/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T18:26:44Z","updated_at":"2016-11-04T18:26:44Z","body":"@brianparry I am using OnRack 2.1 .  I should not get a 400 as \"obmSettings\" parameter is still defined. ( https://github.com/RackHD/on-http/blob/master/static/schemas/2.0/node.2.0.json#L21 ) even in the latest code. "}}
{"actor":{"display_login":"manfrednde"}}