{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20194","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20194/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20194/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20194/events","html_url":"https://github.com/saltstack/salt/issues/20194","id":55918891,"number":20194,"title":"salt-run virt.init -- possible regression","user":{"login":"jcftang","id":652532,"avatar_url":"https://avatars.githubusercontent.com/u/652532?v=3","gravatar_id":"","url":"https://api.github.com/users/jcftang","html_url":"https://github.com/jcftang","followers_url":"https://api.github.com/users/jcftang/followers","following_url":"https://api.github.com/users/jcftang/following{/other_user}","gists_url":"https://api.github.com/users/jcftang/gists{/gist_id}","starred_url":"https://api.github.com/users/jcftang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcftang/subscriptions","organizations_url":"https://api.github.com/users/jcftang/orgs","repos_url":"https://api.github.com/users/jcftang/repos","events_url":"https://api.github.com/users/jcftang/events{/privacy}","received_events_url":"https://api.github.com/users/jcftang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pitatus","id":9560004,"avatar_url":"https://avatars.githubusercontent.com/u/9560004?v=3","gravatar_id":"","url":"https://api.github.com/users/pitatus","html_url":"https://github.com/pitatus","followers_url":"https://api.github.com/users/pitatus/followers","following_url":"https://api.github.com/users/pitatus/following{/other_user}","gists_url":"https://api.github.com/users/pitatus/gists{/gist_id}","starred_url":"https://api.github.com/users/pitatus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitatus/subscriptions","organizations_url":"https://api.github.com/users/pitatus/orgs","repos_url":"https://api.github.com/users/pitatus/repos","events_url":"https://api.github.com/users/pitatus/events{/privacy}","received_events_url":"https://api.github.com/users/pitatus/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-29T16:08:54Z","updated_at":"2015-01-30T11:00:45Z","closed_at":null,"body":"Given\r\n\r\n<pre>\r\nsalt-run --versions-report\r\n           Salt: 2014.7.1\r\n         Python: 2.7.6 (default, Mar 22 2014, 22:59:56)\r\n         Jinja2: 2.7.2\r\n       M2Crypto: 0.21.1\r\n msgpack-python: 0.4.5\r\n   msgpack-pure: 0.1.3\r\n       pycrypto: 2.6.1\r\n        libnacl: Not Installed\r\n         PyYAML: 3.10\r\n          ioflo: Not Installed\r\n          PyZMQ: 14.0.1\r\n           RAET: Not Installed\r\n            ZMQ: 4.0.4\r\n           Mako: 0.9.1\r\n</pre>\r\n\r\nThis worked up until today when I upgraded to the latest 2014.7.1 ppa packages\r\n\r\n<pre>\r\nfor i in `seq 0 3`\r\ndo\r\n\tsalt-run virt.init node$i 1 512 salt://cloud/precise.qcow2\r\ndone\r\n</pre>\r\n\r\nGives me this...\r\n\r\n<pre>\r\nSearching for Hypervisors\r\nMinion will be preseeded\r\nCreating VM node0 on hypervisor x01\r\nVM node0 initialized on hypervisor x01\r\nSearching for Hypervisors\r\nHypervisor  was not found\r\nSearching for Hypervisors\r\nHypervisor  was not found\r\nSearching for Hypervisors\r\nHypervisor  was not found\r\n</pre>\r\n\r\nvirt.hyper_info doesnt work after the first vm is created.\r\n\r\nHowever doing something like the following still works, it does not add the created vm as a minion as the runner does.\r\n\r\n<pre>\r\nsalt x01 virt.init node1 1 512 salt://cloud/precise.qcow2\r\n</pre>\r\n\r\nAlso before a vm is created\r\n\r\n<pre>\r\n[TRACE   ] data = {'x01': {'node_info': {'cpumodel': 'x86_64', 'cpucores': 2, 'cpus': 4, 'sockets': 1, 'cputhreads': 2, 'numanodes': 1, 'cpumhz': 2795, 'phymemory': 7549}, 'freemem': 7293, 'freecpu': 4}}\r\nx01:\r\n    ----------\r\n    freecpu:\r\n        4\r\n    freemem:\r\n        7293\r\n    node_info:\r\n        ----------\r\n        cpucores:\r\n            2\r\n        cpumhz:\r\n            2795\r\n        cpumodel:\r\n            x86_64\r\n        cpus:\r\n            4\r\n        cputhreads:\r\n            2\r\n        numanodes:\r\n            1\r\n        phymemory:\r\n            7549\r\n        sockets:\r\n            1\r\n</pre>\r\n\r\nafter a vm is created\r\n\r\n<pre>\r\n[TRACE   ] data = {}\r\n</pre>\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/72185220","html_url":"https://github.com/saltstack/salt/issues/20194#issuecomment-72185220","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20194","id":72185220,"user":{"login":"jcftang","id":652532,"avatar_url":"https://avatars.githubusercontent.com/u/652532?v=3","gravatar_id":"","url":"https://api.github.com/users/jcftang","html_url":"https://github.com/jcftang","followers_url":"https://api.github.com/users/jcftang/followers","following_url":"https://api.github.com/users/jcftang/following{/other_user}","gists_url":"https://api.github.com/users/jcftang/gists{/gist_id}","starred_url":"https://api.github.com/users/jcftang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcftang/subscriptions","organizations_url":"https://api.github.com/users/jcftang/orgs","repos_url":"https://api.github.com/users/jcftang/repos","events_url":"https://api.github.com/users/jcftang/events{/privacy}","received_events_url":"https://api.github.com/users/jcftang/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T11:00:45Z","updated_at":"2015-01-30T11:00:45Z","body":"It seems that this works for seeding new vm's\r\n\r\n```\r\n salt x01 virt.init node2 1 512 salt://cloud/precise.qcow2 seed=true\r\n```\r\n\r\nThe docs at http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.virt.html#module-salt.modules.virt do not mention mention that seed=True could be passed to the init command. This would be useful if the docs were updated."}}