{"action":"created","issue":{"url":"https://api.github.com/repos/xcat2/xcat-core/issues/1502","repository_url":"https://api.github.com/repos/xcat2/xcat-core","labels_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1502/labels{/name}","comments_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1502/comments","events_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1502/events","html_url":"https://github.com/xcat2/xcat-core/issues/1502","id":164353952,"number":1502,"title":"kcmdline for centos netboot images set incorrectly","user":{"login":"samveen","id":1241434,"avatar_url":"https://avatars.githubusercontent.com/u/1241434?v=3","gravatar_id":"","url":"https://api.github.com/users/samveen","html_url":"https://github.com/samveen","followers_url":"https://api.github.com/users/samveen/followers","following_url":"https://api.github.com/users/samveen/following{/other_user}","gists_url":"https://api.github.com/users/samveen/gists{/gist_id}","starred_url":"https://api.github.com/users/samveen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samveen/subscriptions","organizations_url":"https://api.github.com/users/samveen/orgs","repos_url":"https://api.github.com/users/samveen/repos","events_url":"https://api.github.com/users/samveen/events{/privacy}","received_events_url":"https://api.github.com/users/samveen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xcat2/xcat-core/labels/component:os_provision","name":"component:os_provision","color":"fbca04"},{"url":"https://api.github.com/repos/xcat2/xcat-core/labels/priority:normal","name":"priority:normal","color":"009800"},{"url":"https://api.github.com/repos/xcat2/xcat-core/labels/type:bug","name":"type:bug","color":"e11d21"}],"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/17","html_url":"https://github.com/xcat2/xcat-core/milestones/2.12.2","labels_url":"https://api.github.com/repos/xcat2/xcat-core/milestones/17/labels","id":1854029,"number":17,"title":"2.12.2","description":"","creator":{"login":"daniceexi","id":10385985,"avatar_url":"https://avatars.githubusercontent.com/u/10385985?v=3","gravatar_id":"","url":"https://api.github.com/users/daniceexi","html_url":"https://github.com/daniceexi","followers_url":"https://api.github.com/users/daniceexi/followers","following_url":"https://api.github.com/users/daniceexi/following{/other_user}","gists_url":"https://api.github.com/users/daniceexi/gists{/gist_id}","starred_url":"https://api.github.com/users/daniceexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniceexi/subscriptions","organizations_url":"https://api.github.com/users/daniceexi/orgs","repos_url":"https://api.github.com/users/daniceexi/repos","events_url":"https://api.github.com/users/daniceexi/events{/privacy}","received_events_url":"https://api.github.com/users/daniceexi/received_events","type":"User","site_admin":false},"open_issues":59,"closed_issues":2,"state":"open","created_at":"2016-06-29T01:21:43Z","updated_at":"2016-07-08T05:08:54Z","due_on":"2016-08-26T04:00:00Z","closed_at":null},"comments":4,"created_at":"2016-07-07T16:36:16Z","updated_at":"2016-07-08T08:24:29Z","closed_at":null,"body":"I'm using xCAT-2.9.1. I set up a netboot osimage by cloning and modifying the basic `*-netboot-compute` image. I'm using it to boot a node `spare1`:\r\n```\r\n[root@mn1 ~]# nodeset spare1 osimage=centos7.1-x86_64-netboot-compute-custom\r\nspare1: netboot centos7.1-x86_64-compute\r\n[root@mn1 ~]# rsetboot spare1 net\r\nspare1: Network\r\n[root@mn1 ~]# rpower spare1 boot\r\nspare1: reset\r\n```\r\n\r\nWhen I boot the node off this image, dracut always fails (into a debug shell) with an error: `\"Invalid arguments for ifname=\"`.\r\n\r\nOn looking at my node definition:\r\n```\r\n[root@mn1 ~]# lsdef -t node spare1 -i kcmdline\r\nObject name: spare1\r\n    kcmdline=imgurl=http://!myipfn!:80//install/netboot/centos7.1/x86_64/compute-custom/rootimg.gz XCAT=!myipfn!:3001 NODE=spare1 FC=0 ifname=eno1: netdev=eno1  console=tty0 console=ttyS1,115200\r\n```\r\nI find that the `ifname` param is set to just `eno1:`, while it should be set to `eno1:XX:XX:XX:XX:XX:XX`\r\n\r\nI have confirmed this in the initrd code:\r\n```\r\n[root@mn1 initrd_exploded]# tail  usr/lib/net-lib.sh -n +459 |head -n 25\r\nparse_ifname_opts() {\r\n    local IFS=:\r\n    set $1\r\n\r\n    case $# in\r\n        7)\r\n            ifname_if=$1\r\n            # udev requires MAC addresses to be lower case\r\n            ifname_mac=$(echo $2:$3:$4:$5:$6:$7 | sed 'y/ABCDEF/abcdef/')\r\n            ;;\r\n        *)\r\n            die \"Invalid arguments for ifname=\"\r\n            ;;\r\n    esac\r\n\r\n    case $ifname_if in\r\n        eth[0-9]|eth[0-9][0-9]|eth[0-9][0-9][0-9]|eth[0-9][0-9][0-9][0-9])\r\n            warn \"ifname=$ifname_if uses the kernel name space for interfaces\"\r\n            warn \"This can fail for multiple network interfaces and is discouraged!\"\r\n            warn \"Please use a custom name like \\\"netboot\\\" or \\\"bluesocket\\\"\"\r\n            warn \"or use biosdevname and no ifname= at all.\"\r\n            ;;\r\n    esac\r\n\r\n}\r\n```\r\n\r\nTo get my nodes booting correctly, I'm forced to do the following workaround: I'm manually updating the xnba configuration for the node at `/tftpboot/xcat/xnba/nodes/spare1` to contain the correct value for `ifname`.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xcat2/xcat-core/issues/comments/231303336","html_url":"https://github.com/xcat2/xcat-core/issues/1502#issuecomment-231303336","issue_url":"https://api.github.com/repos/xcat2/xcat-core/issues/1502","id":231303336,"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-08T08:24:29Z","updated_at":"2016-07-08T08:24:29Z","body":"hi @samveen , when the mac attribute is like  \"#mac address#!#node name#\" , xcat will take the #mac address# as the provision NIC's mac address of the node #node name# **only when the #hos tname# is same with the node to provision** ,\r\nIn your case, the \"mac\" of spare1 is ``xxxx!spare1-priv|xxxx!spare1-pub``, xCAT code cannot determine the provision NIC's mac address of node \"spare1\". Have you specified the mac address manually or renamed the node object?  You can simply add/modify a ``xxxx!spare1``for the provision NIC in the mac attribute to make it work.\r\nI will enhance the code to throw an error message when xcat cannot determine the provision nic's mac address."}}
{"actor":{"display_login":"immarvin"}}