{"action":"created","issue":{"url":"https://api.github.com/repos/gluster/gluster-block/issues/166","repository_url":"https://api.github.com/repos/gluster/gluster-block","labels_url":"https://api.github.com/repos/gluster/gluster-block/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/gluster/gluster-block/issues/166/comments","events_url":"https://api.github.com/repos/gluster/gluster-block/issues/166/events","html_url":"https://github.com/gluster/gluster-block/issues/166","id":382541600,"node_id":"MDU6SXNzdWUzODI1NDE2MDA=","number":166,"title":"gluster-block: Support host-names ","user":{"login":"pkalever","id":12432241,"node_id":"MDQ6VXNlcjEyNDMyMjQx","avatar_url":"https://avatars3.githubusercontent.com/u/12432241?v=4","gravatar_id":"","url":"https://api.github.com/users/pkalever","html_url":"https://github.com/pkalever","followers_url":"https://api.github.com/users/pkalever/followers","following_url":"https://api.github.com/users/pkalever/following{/other_user}","gists_url":"https://api.github.com/users/pkalever/gists{/gist_id}","starred_url":"https://api.github.com/users/pkalever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkalever/subscriptions","organizations_url":"https://api.github.com/users/pkalever/orgs","repos_url":"https://api.github.com/users/pkalever/repos","events_url":"https://api.github.com/users/pkalever/events{/privacy}","received_events_url":"https://api.github.com/users/pkalever/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pkalever","id":12432241,"node_id":"MDQ6VXNlcjEyNDMyMjQx","avatar_url":"https://avatars3.githubusercontent.com/u/12432241?v=4","gravatar_id":"","url":"https://api.github.com/users/pkalever","html_url":"https://github.com/pkalever","followers_url":"https://api.github.com/users/pkalever/followers","following_url":"https://api.github.com/users/pkalever/following{/other_user}","gists_url":"https://api.github.com/users/pkalever/gists{/gist_id}","starred_url":"https://api.github.com/users/pkalever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkalever/subscriptions","organizations_url":"https://api.github.com/users/pkalever/orgs","repos_url":"https://api.github.com/users/pkalever/repos","events_url":"https://api.github.com/users/pkalever/events{/privacy}","received_events_url":"https://api.github.com/users/pkalever/received_events","type":"User","site_admin":false},"assignees":[{"login":"pkalever","id":12432241,"node_id":"MDQ6VXNlcjEyNDMyMjQx","avatar_url":"https://avatars3.githubusercontent.com/u/12432241?v=4","gravatar_id":"","url":"https://api.github.com/users/pkalever","html_url":"https://github.com/pkalever","followers_url":"https://api.github.com/users/pkalever/followers","following_url":"https://api.github.com/users/pkalever/following{/other_user}","gists_url":"https://api.github.com/users/pkalever/gists{/gist_id}","starred_url":"https://api.github.com/users/pkalever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkalever/subscriptions","organizations_url":"https://api.github.com/users/pkalever/orgs","repos_url":"https://api.github.com/users/pkalever/repos","events_url":"https://api.github.com/users/pkalever/events{/privacy}","received_events_url":"https://api.github.com/users/pkalever/received_events","type":"User","site_admin":false},{"login":"lxbsz","id":27719678,"node_id":"MDQ6VXNlcjI3NzE5Njc4","avatar_url":"https://avatars2.githubusercontent.com/u/27719678?v=4","gravatar_id":"","url":"https://api.github.com/users/lxbsz","html_url":"https://github.com/lxbsz","followers_url":"https://api.github.com/users/lxbsz/followers","following_url":"https://api.github.com/users/lxbsz/following{/other_user}","gists_url":"https://api.github.com/users/lxbsz/gists{/gist_id}","starred_url":"https://api.github.com/users/lxbsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxbsz/subscriptions","organizations_url":"https://api.github.com/users/lxbsz/orgs","repos_url":"https://api.github.com/users/lxbsz/repos","events_url":"https://api.github.com/users/lxbsz/events{/privacy}","received_events_url":"https://api.github.com/users/lxbsz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-20T07:57:31Z","updated_at":"2018-11-20T09:17:52Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"resolve the hostname to ip address stuff in the rtslib or below layers, this way we can function without any issues even when IP change for a given host.\r\n\r\n`host_ip = socket.gethostbyname(hostname)  `"},"comment":{"url":"https://api.github.com/repos/gluster/gluster-block/issues/comments/440200166","html_url":"https://github.com/gluster/gluster-block/issues/166#issuecomment-440200166","issue_url":"https://api.github.com/repos/gluster/gluster-block/issues/166","id":440200166,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDIwMDE2Ng==","user":{"login":"lxbsz","id":27719678,"node_id":"MDQ6VXNlcjI3NzE5Njc4","avatar_url":"https://avatars2.githubusercontent.com/u/27719678?v=4","gravatar_id":"","url":"https://api.github.com/users/lxbsz","html_url":"https://github.com/lxbsz","followers_url":"https://api.github.com/users/lxbsz/followers","following_url":"https://api.github.com/users/lxbsz/following{/other_user}","gists_url":"https://api.github.com/users/lxbsz/gists{/gist_id}","starred_url":"https://api.github.com/users/lxbsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxbsz/subscriptions","organizations_url":"https://api.github.com/users/lxbsz/orgs","repos_url":"https://api.github.com/users/lxbsz/repos","events_url":"https://api.github.com/users/lxbsz/events{/privacy}","received_events_url":"https://api.github.com/users/lxbsz/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T09:17:52Z","updated_at":"2018-11-20T09:17:52Z","author_association":"COLLABORATOR","body":"@pkalever \r\n\r\nUse the hostname directly, it fails like:\r\n`Nov 20 16:06:15 rhel3 kernel: malformed ip/port passed: rhel3:3260\r\n`\r\n\r\nDid you ever change something in kernel code ? I checked all the commits history about this part of code, all the time only IPv4 and IPv6 addresses are acceptable, not the hostname. Then the tpg portial driver will use the IP address create the ISCSI listening socket in kernel space. That means here the listening socket is fixed in IP address, not the hostname.\r\n\r\nIf we convert the hostname to IP address before passing it to kernel, then in kernel space it will use the  IP address to create the listening socket, and then even we change the hostname, how could it is possible to affect the already created listening socket using the IP address without recreate it?\r\n\r\nI am not the expert of the net, so I may miss something here.\r\n\r\nThought ?"}}
{"actor":{"display_login":"lxbsz"}}