{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/25719","labels_url":"https://api.github.com/repos/saltstack/salt/issues/25719/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/25719/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/25719/events","html_url":"https://github.com/saltstack/salt/issues/25719","id":97178691,"number":25719,"title":"minion_id not being set properly on centos7 cloudimg","user":{"login":"bbyhuy","id":8198341,"avatar_url":"https://avatars.githubusercontent.com/u/8198341?v=3","gravatar_id":"","url":"https://api.github.com/users/bbyhuy","html_url":"https://github.com/bbyhuy","followers_url":"https://api.github.com/users/bbyhuy/followers","following_url":"https://api.github.com/users/bbyhuy/following{/other_user}","gists_url":"https://api.github.com/users/bbyhuy/gists{/gist_id}","starred_url":"https://api.github.com/users/bbyhuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbyhuy/subscriptions","organizations_url":"https://api.github.com/users/bbyhuy/orgs","repos_url":"https://api.github.com/users/bbyhuy/repos","events_url":"https://api.github.com/users/bbyhuy/events{/privacy}","received_events_url":"https://api.github.com/users/bbyhuy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":275,"closed_issues":597,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-07-27T15:12:57Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-07-25T01:23:29Z","updated_at":"2015-07-27T15:14:12Z","closed_at":null,"body":"I'm having an issue trying to get the salt-minion setup on the generic centos7 cloud image. \r\n`CentOS-7-x86_64-GenericCloud-20150628_01.qcow2`\r\n\r\nI load the image into openstack, create an instance, ssh in, bootstrap salt-minion.\r\nI've tried both -X and deleting minion_id before final cleanup and shutting down the instance and creating a snapshot for boot. \r\n\r\nI log in, and the minion_id is set to the old hostname, while /etc/hostname has the correct hostname. \r\nI initially thought maybe if I move salt-minion down the module list in cloud-init it would fix it, but no go. \r\n\r\nThe exact same process works flawless on the Ubuntu cloud image. I just went in, bootstrapped, deleted minion_id file and the snapshot boots up and saltminion connects with the proper hostname. "},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/125241312","html_url":"https://github.com/saltstack/salt/issues/25719#issuecomment-125241312","issue_url":"https://api.github.com/repos/saltstack/salt/issues/25719","id":125241312,"user":{"login":"bbyhuy","id":8198341,"avatar_url":"https://avatars.githubusercontent.com/u/8198341?v=3","gravatar_id":"","url":"https://api.github.com/users/bbyhuy","html_url":"https://github.com/bbyhuy","followers_url":"https://api.github.com/users/bbyhuy/followers","following_url":"https://api.github.com/users/bbyhuy/following{/other_user}","gists_url":"https://api.github.com/users/bbyhuy/gists{/gist_id}","starred_url":"https://api.github.com/users/bbyhuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbyhuy/subscriptions","organizations_url":"https://api.github.com/users/bbyhuy/orgs","repos_url":"https://api.github.com/users/bbyhuy/repos","events_url":"https://api.github.com/users/bbyhuy/events{/privacy}","received_events_url":"https://api.github.com/users/bbyhuy/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T15:14:12Z","updated_at":"2015-07-27T15:14:12Z","body":"@jfindlay, I'm using 2015.5.3, yea I wasn't sure why either. I guess I'll add a quick sed line in cloud-init to manually set it. Any ideas why this might be happening? \r\n\r\nIf I delete /etc/hostname, it picks up the IP Address as the minion_id. But that doesn't match with the name assigned by openstack. So there are some weird inconsistencies between id, nodename, fqdn, and host . I'd assume that if not explicitly defined, id should be the same as those other three. \r\n\r\nLooking at \r\n`http://docs.saltstack.com/en/latest/topics/tutorials/walkthrough.html#minion-id-generation`\r\n\r\nStep 1 and 2 both show the proper hostname. So technically minion_id should've picked up on one of them. "}}