{"action":"created","issue":{"url":"https://api.github.com/repos/freeipa/freeipa/issues/2306","repository_url":"https://api.github.com/repos/freeipa/freeipa","labels_url":"https://api.github.com/repos/freeipa/freeipa/issues/2306/labels{/name}","comments_url":"https://api.github.com/repos/freeipa/freeipa/issues/2306/comments","events_url":"https://api.github.com/repos/freeipa/freeipa/issues/2306/events","html_url":"https://github.com/freeipa/freeipa/pull/2306","id":355528352,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMDM0NjM0","number":2306,"title":"Test package installation suggetion being prompt","user":{"login":"mrizwan93","id":8066579,"node_id":"MDQ6VXNlcjgwNjY1Nzk=","avatar_url":"https://avatars1.githubusercontent.com/u/8066579?v=4","gravatar_id":"","url":"https://api.github.com/users/mrizwan93","html_url":"https://github.com/mrizwan93","followers_url":"https://api.github.com/users/mrizwan93/followers","following_url":"https://api.github.com/users/mrizwan93/following{/other_user}","gists_url":"https://api.github.com/users/mrizwan93/gists{/gist_id}","starred_url":"https://api.github.com/users/mrizwan93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrizwan93/subscriptions","organizations_url":"https://api.github.com/users/mrizwan93/orgs","repos_url":"https://api.github.com/users/mrizwan93/repos","events_url":"https://api.github.com/users/mrizwan93/events{/privacy}","received_events_url":"https://api.github.com/users/mrizwan93/received_events","type":"User","site_admin":false},"labels":[{"id":861772418,"node_id":"MDU6TGFiZWw4NjE3NzI0MTg=","url":"https://api.github.com/repos/freeipa/freeipa/labels/needs%20rebase","name":"needs rebase","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-30T10:44:00Z","updated_at":"2018-12-03T13:20:54Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/freeipa/freeipa/pulls/2306","html_url":"https://github.com/freeipa/freeipa/pull/2306","diff_url":"https://github.com/freeipa/freeipa/pull/2306.diff","patch_url":"https://github.com/freeipa/freeipa/pull/2306.patch"},"body":"In order to work with IPA and Yubikey, libyubikey is required.\r\nBefore the fix, if yubikey added without having packages, it used to\r\nresult in traceback. Now it prompt error suggeting to install\r\n'libyubikey' and 'libusb' packages.\r\n\r\nrelated ticket : https://pagure.io/freeipa/issue/6979\r\n\r\nSigned-off-by: Mohammad Rizwan Yusuf <myusuf@redhat.com>"},"comment":{"url":"https://api.github.com/repos/freeipa/freeipa/issues/comments/443707486","html_url":"https://github.com/freeipa/freeipa/pull/2306#issuecomment-443707486","issue_url":"https://api.github.com/repos/freeipa/freeipa/issues/2306","id":443707486,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzcwNzQ4Ng==","user":{"login":"mrizwan93","id":8066579,"node_id":"MDQ6VXNlcjgwNjY1Nzk=","avatar_url":"https://avatars1.githubusercontent.com/u/8066579?v=4","gravatar_id":"","url":"https://api.github.com/users/mrizwan93","html_url":"https://github.com/mrizwan93","followers_url":"https://api.github.com/users/mrizwan93/followers","following_url":"https://api.github.com/users/mrizwan93/following{/other_user}","gists_url":"https://api.github.com/users/mrizwan93/gists{/gist_id}","starred_url":"https://api.github.com/users/mrizwan93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrizwan93/subscriptions","organizations_url":"https://api.github.com/users/mrizwan93/orgs","repos_url":"https://api.github.com/users/mrizwan93/repos","events_url":"https://api.github.com/users/mrizwan93/events{/privacy}","received_events_url":"https://api.github.com/users/mrizwan93/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T13:20:54Z","updated_at":"2018-12-03T13:20:54Z","author_association":"CONTRIBUTOR","body":"@rcritten @abbra \r\nDoes the package name changed for yubikey or it is the error message which I am trying to assert?\r\n\r\n```2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.ParamikoTransport] RUN yum remove -y libyubikey libusb\r\n2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.cmd52] RUN yum remove -y libyubikey libusb\r\n2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.cmd52] No match for argument: libyubikey\r\n2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.cmd52] No match for argument: libusb\r\n2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.cmd52] Error: No packages marked for removal.\r\n2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.cmd52] Exit code: 1\r\n2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.ParamikoTransport] RUN ['ipa', 'otptoken-add-yubikey', '--owner=admin']\r\n2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.cmd53] RUN ['ipa', 'otptoken-add-yubikey', '--owner=admin']\r\n2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.cmd53] ipa: ERROR: No YubiKey found\r\n2018-12-03 10:57:38,628    DEBUG  [ipatests.pytest_ipa.integration.host.Host.master.cmd53] Exit code: 2\r\n\r\n[..]\r\n\r\n2018-12-03 10:58:55,493    DEBUG          # try to add yubikey to the user\r\n2018-12-03 10:58:55,493    DEBUG          args = ['ipa', 'otptoken-add-yubikey', '--owner=admin']\r\n2018-12-03 10:58:55,493    DEBUG          cmd = self.master.run_command(args, raiseonerr=False)\r\n2018-12-03 10:58:55,499    DEBUG          assert cmd.returncode != 0\r\n2018-12-03 10:58:55,499    DEBUG          exp_str = (\"ipa: ERROR: No backend available. Please install\"\r\n2018-12-03 10:58:55,499    DEBUG                     \"'libyubikey' and 'libusb' packages first.\")\r\n2018-12-03 10:58:55,499    DEBUG  >       assert exp_str in cmd.stderr_text\r\n2018-12-03 10:58:55,499    DEBUG  E       assert \"ipa: ERROR: No backend available. Please install'libyubikey' and 'libusb' packages first.\" in 'ipa: ERROR: No YubiKey found\\n'\r\n2018-12-03 10:58:55,499    DEBUG  E        +  where 'ipa: ERROR: No YubiKey found\\n' = <pytest_multihost.transport.SSHCommand object at 0x7f8ddbb8e710>.stderr_text```\r\n"}}
{"actor":{"display_login":"mrizwan93"}}