{"action":"created","issue":{"url":"https://api.github.com/repos/xcat2/xcat-core/issues/1464","repository_url":"https://api.github.com/repos/xcat2/xcat-core","labels_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1464/labels{/name}","comments_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1464/comments","events_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1464/events","html_url":"https://github.com/xcat2/xcat-core/issues/1464","id":163610987,"number":1464,"title":"[FVT]mkdef node failed while using switch-template after one is successfully created.","user":{"login":"caomengmeng","id":14899942,"avatar_url":"https://avatars.githubusercontent.com/u/14899942?v=3","gravatar_id":"","url":"https://api.github.com/users/caomengmeng","html_url":"https://github.com/caomengmeng","followers_url":"https://api.github.com/users/caomengmeng/followers","following_url":"https://api.github.com/users/caomengmeng/following{/other_user}","gists_url":"https://api.github.com/users/caomengmeng/gists{/gist_id}","starred_url":"https://api.github.com/users/caomengmeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caomengmeng/subscriptions","organizations_url":"https://api.github.com/users/caomengmeng/orgs","repos_url":"https://api.github.com/users/caomengmeng/repos","events_url":"https://api.github.com/users/caomengmeng/events{/privacy}","received_events_url":"https://api.github.com/users/caomengmeng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xcat2/xcat-core/labels/priority:high","name":"priority:high","color":"e11d21"},{"url":"https://api.github.com/repos/xcat2/xcat-core/labels/type:bug","name":"type:bug","color":"e11d21"},{"url":"https://api.github.com/repos/xcat2/xcat-core/labels/type:feature","name":"type:feature","color":"c7def8"},{"url":"https://api.github.com/repos/xcat2/xcat-core/labels/xCAT%202.12.1%20Sprint%202","name":"xCAT 2.12.1 Sprint 2","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"immarvin","id":5668922,"avatar_url":"https://avatars.githubusercontent.com/u/5668922?v=3","gravatar_id":"","url":"https://api.github.com/users/immarvin","html_url":"https://github.com/immarvin","followers_url":"https://api.github.com/users/immarvin/followers","following_url":"https://api.github.com/users/immarvin/following{/other_user}","gists_url":"https://api.github.com/users/immarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/immarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immarvin/subscriptions","organizations_url":"https://api.github.com/users/immarvin/orgs","repos_url":"https://api.github.com/users/immarvin/repos","events_url":"https://api.github.com/users/immarvin/events{/privacy}","received_events_url":"https://api.github.com/users/immarvin/received_events","type":"User","site_admin":false},"assignees":[{"login":"immarvin","id":5668922,"avatar_url":"https://avatars.githubusercontent.com/u/5668922?v=3","gravatar_id":"","url":"https://api.github.com/users/immarvin","html_url":"https://github.com/immarvin","followers_url":"https://api.github.com/users/immarvin/followers","following_url":"https://api.github.com/users/immarvin/following{/other_user}","gists_url":"https://api.github.com/users/immarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/immarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immarvin/subscriptions","organizations_url":"https://api.github.com/users/immarvin/orgs","repos_url":"https://api.github.com/users/immarvin/repos","events_url":"https://api.github.com/users/immarvin/events{/privacy}","received_events_url":"https://api.github.com/users/immarvin/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/xcat2/xcat-core/milestones/13","html_url":"https://github.com/xcat2/xcat-core/milestones/2.12.1","labels_url":"https://api.github.com/repos/xcat2/xcat-core/milestones/13/labels","id":1730222,"number":13,"title":"2.12.1","description":"","creator":{"login":"whowutwut","id":10049070,"avatar_url":"https://avatars.githubusercontent.com/u/10049070?v=3","gravatar_id":"","url":"https://api.github.com/users/whowutwut","html_url":"https://github.com/whowutwut","followers_url":"https://api.github.com/users/whowutwut/followers","following_url":"https://api.github.com/users/whowutwut/following{/other_user}","gists_url":"https://api.github.com/users/whowutwut/gists{/gist_id}","starred_url":"https://api.github.com/users/whowutwut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whowutwut/subscriptions","organizations_url":"https://api.github.com/users/whowutwut/orgs","repos_url":"https://api.github.com/users/whowutwut/repos","events_url":"https://api.github.com/users/whowutwut/events{/privacy}","received_events_url":"https://api.github.com/users/whowutwut/received_events","type":"User","site_admin":false},"open_issues":108,"closed_issues":211,"state":"open","created_at":"2016-04-25T19:47:46Z","updated_at":"2016-07-04T08:33:03Z","due_on":"2016-07-08T04:00:00Z","closed_at":null},"comments":3,"created_at":"2016-07-04T06:29:55Z","updated_at":"2016-07-04T08:34:14Z","closed_at":null,"body":"After one node is created using swtich-template or other templates, failed to create other node using switch-template without attributes value defined by switch-template or by node\r\n\r\n\r\n```\r\n[root@c910f02c008 lsdef]# lsdef --template\r\ncec-template  (node)\r\nhmc-template  (node)\r\nppc64le-template  (node)\r\nppc64lekvmguest-template  (node)\r\nswitch-template  (node)\r\nx86_64-template  (node)\r\nx86_64kvmguest-template  (node)\r\n[root@c910f02c008 lsdef]# mkdef -t node -o test1 --template switch-template\r\n1 object definitions have been created or modified.\r\n[root@c910f02c008 lsdef]# lsdef\r\nc910f02c04p09  (node)\r\nc910f02c04p16  (node)\r\nc910f02fsp04  (node)\r\nc910hmc01  (node)\r\ntest1  (node)\r\n[root@c910f02c008 lsdef]# lsdef test1\r\nObject name: test1\r\n    groups=switch\r\n    mgt=switch\r\n    nodetype=switch\r\n    postbootscripts=otherpkgs\r\n    postscripts=syslog,remoteshell,syncfiles\r\n    usercomment=the switch definition template\r\n[root@c910f02c04p08 lsdef]# lsdef --template switch-template\r\nObject name: switch-template\r\n    groups=switch\r\n    ip=OPTIONAL:the ip address of the switch\r\n    mac=OPTIONAL:the MAC address of the switch\r\n    mgt=switch\r\n    nodetype=switch\r\n    postbootscripts=otherpkgs\r\n    postscripts=syslog,remoteshell,syncfiles\r\n    switchtype=OPTIONAL:The type of switch. It is used to identify the file name that implements the functions for this swithc. The valid values are: Mellanox, Cisco, BNT and Juniper.\r\n    usercomment=the switch definition template\r\n[root@c910f02c008 lsdef]# mkdef -t node -o test2 --template switch-template\r\nError:\r\nA definition for 'c910f02c04p09' already exists.\r\nError: To remove the old definition and replace it with\r\na new definition use the force '-f' option.\r\nError: To change the existing definition use the 'chdef' command.\r\nError: One or more errors occured when attempting to create or modify xCAT\r\nobject definitions.\r\n[root@c910f02c04p08 lsdef]# mkdef -t node -o test2 --template test1\r\nError:\r\nA definition for 'c910f02c04p09' already exists.\r\nError: To remove the old definition and replace it with\r\na new definition use the force '-f' option.\r\nError: To change the existing definition use the 'chdef' command.\r\nError: One or more errors occured when attempting to create or modify xCAT\r\nobject definitions.\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/xcat2/xcat-core/issues/comments/230235511","html_url":"https://github.com/xcat2/xcat-core/issues/1464#issuecomment-230235511","issue_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1464","id":230235511,"user":{"login":"immarvin","id":5668922,"avatar_url":"https://avatars.githubusercontent.com/u/5668922?v=3","gravatar_id":"","url":"https://api.github.com/users/immarvin","html_url":"https://github.com/immarvin","followers_url":"https://api.github.com/users/immarvin/followers","following_url":"https://api.github.com/users/immarvin/following{/other_user}","gists_url":"https://api.github.com/users/immarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/immarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immarvin/subscriptions","organizations_url":"https://api.github.com/users/immarvin/orgs","repos_url":"https://api.github.com/users/immarvin/repos","events_url":"https://api.github.com/users/immarvin/events{/privacy}","received_events_url":"https://api.github.com/users/immarvin/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T08:34:14Z","updated_at":"2016-07-04T08:34:14Z","body":"I think this is a usage error, I suggest to close it. If it can be recreated, please feel free to open it."}}
{"actor":{"display_login":"immarvin"}}