{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/29121","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/29121/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/29121/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/29121/events","html_url":"https://github.com/elastic/elasticsearch/pull/29121","id":306113478,"number":29121,"title":"Fix creating keystore when upgrading","user":{"login":"jasontedor","id":4744941,"avatar_url":"https://avatars3.githubusercontent.com/u/4744941?v=4","gravatar_id":"","url":"https://api.github.com/users/jasontedor","html_url":"https://github.com/jasontedor","followers_url":"https://api.github.com/users/jasontedor/followers","following_url":"https://api.github.com/users/jasontedor/following{/other_user}","gists_url":"https://api.github.com/users/jasontedor/gists{/gist_id}","starred_url":"https://api.github.com/users/jasontedor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasontedor/subscriptions","organizations_url":"https://api.github.com/users/jasontedor/orgs","repos_url":"https://api.github.com/users/jasontedor/repos","events_url":"https://api.github.com/users/jasontedor/events{/privacy}","received_events_url":"https://api.github.com/users/jasontedor/received_events","type":"User","site_admin":false},"labels":[{"id":114977275,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Core/Packaging","name":":Core/Packaging","color":"0e8a16","default":false},{"id":73544,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/%3Enon-issue","name":">non-issue","color":"cfcfcf","default":false},{"id":94283388,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc","default":false},{"id":753477051,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v6.3.0","name":"v6.3.0","color":"DDDDDD","default":false},{"id":484855464,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v7.0.0","name":"v7.0.0","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-17T00:42:23Z","updated_at":"2018-03-17T02:10:43Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/29121","html_url":"https://github.com/elastic/elasticsearch/pull/29121","diff_url":"https://github.com/elastic/elasticsearch/pull/29121.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/29121.patch"},"body":"When upgrading via the RPM package, we can run into a problem where the keystore fails to be created. This arises because the %post script on RPM runs after the new package files are installed but before the removal of the old package files. This means that the contents of the lib folder can contain files from the old package and the new package and thus running the create keystore tool can encounter JAR hell issues and fail. To solve this, we move creating the keystore to the %posttrans script which runs after the old package files are removed. We only need to do this on the RPM package, so we add a switch in the shared post-install script.\r\n\r\nRelates #28928\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/373886901","html_url":"https://github.com/elastic/elasticsearch/pull/29121#issuecomment-373886901","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/29121","id":373886901,"user":{"login":"jasontedor","id":4744941,"avatar_url":"https://avatars3.githubusercontent.com/u/4744941?v=4","gravatar_id":"","url":"https://api.github.com/users/jasontedor","html_url":"https://github.com/jasontedor","followers_url":"https://api.github.com/users/jasontedor/followers","following_url":"https://api.github.com/users/jasontedor/following{/other_user}","gists_url":"https://api.github.com/users/jasontedor/gists{/gist_id}","starred_url":"https://api.github.com/users/jasontedor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasontedor/subscriptions","organizations_url":"https://api.github.com/users/jasontedor/orgs","repos_url":"https://api.github.com/users/jasontedor/repos","events_url":"https://api.github.com/users/jasontedor/events{/privacy}","received_events_url":"https://api.github.com/users/jasontedor/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T02:10:43Z","updated_at":"2018-03-17T02:10:43Z","author_association":"MEMBER","body":"run packaging tests"}}
{"actor":{"display_login":"jasontedor"}}