{"action":"created","issue":{"url":"https://api.github.com/repos/theforeman/foreman_templates/issues/98","repository_url":"https://api.github.com/repos/theforeman/foreman_templates","labels_url":"https://api.github.com/repos/theforeman/foreman_templates/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/theforeman/foreman_templates/issues/98/comments","events_url":"https://api.github.com/repos/theforeman/foreman_templates/issues/98/events","html_url":"https://github.com/theforeman/foreman_templates/issues/98","id":336313135,"node_id":"MDU6SXNzdWUzMzYzMTMxMzU=","number":98,"title":"TemplateSync importing only to DB and not UI in Foreman 1.17","user":{"login":"trinaryouroboros","id":4699104,"node_id":"MDQ6VXNlcjQ2OTkxMDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4699104?v=4","gravatar_id":"","url":"https://api.github.com/users/trinaryouroboros","html_url":"https://github.com/trinaryouroboros","followers_url":"https://api.github.com/users/trinaryouroboros/followers","following_url":"https://api.github.com/users/trinaryouroboros/following{/other_user}","gists_url":"https://api.github.com/users/trinaryouroboros/gists{/gist_id}","starred_url":"https://api.github.com/users/trinaryouroboros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinaryouroboros/subscriptions","organizations_url":"https://api.github.com/users/trinaryouroboros/orgs","repos_url":"https://api.github.com/users/trinaryouroboros/repos","events_url":"https://api.github.com/users/trinaryouroboros/events{/privacy}","received_events_url":"https://api.github.com/users/trinaryouroboros/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-27T17:02:32Z","updated_at":"2018-06-28T11:59:17Z","closed_at":null,"author_association":"NONE","body":"Having a problem with 1.17, think this worked before, not sure why a month later this isn't working.\r\n\r\nWe have a custom git repo for templates, that we set up in the TemplateSync settings.\r\n\r\nWe perform:\r\n`/sbin/foreman-rake templates:import`\r\n\r\nIt shows our prefixed templates get imported successfully. If we select the given name from the mysql db it returns a row successfully. In the UI, however, this provisioning template does not appear. None of them do. We checked things like possibly a bad name / etc. and have run out of ideas of what could be wrong.\r\n\r\nWhen performing:\r\n`/sbin/foreman-rake templates:purge`\r\n\r\nIt does indeed show the records being removed properly from the DB.\r\n\r\nName        : tfm-rubygem-foreman_templates\r\nArch        : noarch\r\nVersion     : 5.0.1\r\nRelease     : 2.fm1_17.el7"},"comment":{"url":"https://api.github.com/repos/theforeman/foreman_templates/issues/comments/401010555","html_url":"https://github.com/theforeman/foreman_templates/issues/98#issuecomment-401010555","issue_url":"https://api.github.com/repos/theforeman/foreman_templates/issues/98","id":401010555,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTAxMDU1NQ==","user":{"login":"trinaryouroboros","id":4699104,"node_id":"MDQ6VXNlcjQ2OTkxMDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4699104?v=4","gravatar_id":"","url":"https://api.github.com/users/trinaryouroboros","html_url":"https://github.com/trinaryouroboros","followers_url":"https://api.github.com/users/trinaryouroboros/followers","following_url":"https://api.github.com/users/trinaryouroboros/following{/other_user}","gists_url":"https://api.github.com/users/trinaryouroboros/gists{/gist_id}","starred_url":"https://api.github.com/users/trinaryouroboros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinaryouroboros/subscriptions","organizations_url":"https://api.github.com/users/trinaryouroboros/orgs","repos_url":"https://api.github.com/users/trinaryouroboros/repos","events_url":"https://api.github.com/users/trinaryouroboros/events{/privacy}","received_events_url":"https://api.github.com/users/trinaryouroboros/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T11:59:17Z","updated_at":"2018-06-28T11:59:17Z","author_association":"NONE","body":"That was it! :)\r\n\r\nSilly, I didn't realize locations weren't automatically added to the admin user.\r\n\r\nIt makes sense why this worked before using manual upgrade, as the locations were already assigned to the admin user.  I just had to set the locations for the admin user now and foreman-rake import worked fine.\r\n\r\nJust curious what the new way to do the import is? Obviously this git readme is out of date."}}
{"actor":{"display_login":"trinaryouroboros"}}