{"action":"created","issue":{"url":"https://api.github.com/repos/CCI-MOC/ims/issues/146","repository_url":"https://api.github.com/repos/CCI-MOC/ims","labels_url":"https://api.github.com/repos/CCI-MOC/ims/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/CCI-MOC/ims/issues/146/comments","events_url":"https://api.github.com/repos/CCI-MOC/ims/issues/146/events","html_url":"https://github.com/CCI-MOC/ims/issues/146","id":258997027,"number":146,"title":"Copy Image Not Working","user":{"login":"apoorvemohan","id":3013622,"avatar_url":"https://avatars3.githubusercontent.com/u/3013622?v=4","gravatar_id":"","url":"https://api.github.com/users/apoorvemohan","html_url":"https://github.com/apoorvemohan","followers_url":"https://api.github.com/users/apoorvemohan/followers","following_url":"https://api.github.com/users/apoorvemohan/following{/other_user}","gists_url":"https://api.github.com/users/apoorvemohan/gists{/gist_id}","starred_url":"https://api.github.com/users/apoorvemohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apoorvemohan/subscriptions","organizations_url":"https://api.github.com/users/apoorvemohan/orgs","repos_url":"https://api.github.com/users/apoorvemohan/repos","events_url":"https://api.github.com/users/apoorvemohan/events{/privacy}","received_events_url":"https://api.github.com/users/apoorvemohan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-19T23:38:49Z","updated_at":"2018-02-12T07:17:03Z","closed_at":"2018-02-12T07:17:03Z","author_association":"COLLABORATOR","body":"Sourabh and I were testing the copy functionality and we got the following error:\r\n\r\nDEBUG - 2017-09-19,18:17:29..452 - File '/usr/lib/python2.7/site-packages/ims-0.3-py2.7.egg/ims/einstein/operations.py', line 62 in __exit__\r\nExiting shutdown with return value = None\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/bmi\", line 9, in <module>\r\n    load_entry_point('ims==0.3', 'console_scripts', 'bmi')()\r\n  File \"/usr/lib/python2.7/site-packages/click-6.6-py2.7.egg/click/core.py\", line 716, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/click-6.6-py2.7.egg/click/core.py\", line 696, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/usr/lib/python2.7/site-packages/click-6.6-py2.7.egg/click/core.py\", line 1060, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/usr/lib/python2.7/site-packages/click-6.6-py2.7.egg/click/core.py\", line 889, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/usr/lib/python2.7/site-packages/click-6.6-py2.7.egg/click/core.py\", line 534, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/ims-0.3-py2.7.egg/ims/cli/cli.py\", line 38, in function_wrapper\r\n    return func(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/ims-0.3-py2.7.egg/ims/cli/cli.py\", line 517, in copy_image\r\n    ret = bmi.copy_image(img1, dest_project, img2)\r\n  File \"/usr/lib/python2.7/site-packages/ims-0.3-py2.7.egg/ims/common/log.py\", line 31, in func_wrapper\r\n    ret = func(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/ims-0.3-py2.7.egg/ims/einstein/operations.py\", line 510, in copy_image\r\n    ceph_name = self.__get_ceph_image_name(img2, dest_project)\r\n  File \"/usr/lib/python2.7/site-packages/ims-0.3-py2.7.egg/ims/common/log.py\", line 59, in func_wrapper\r\n    ret = func(*args, **kwargs)\r\nTypeError: __get_ceph_image_name() takes exactly 2 arguments (3 given)\r\n\r\nUpon further investigation, we found that the fix to this error was proposed in one of the PR's that got closed. Also, the copy function is not flattening the image."},"comment":{"url":"https://api.github.com/repos/CCI-MOC/ims/issues/comments/364843875","html_url":"https://github.com/CCI-MOC/ims/issues/146#issuecomment-364843875","issue_url":"https://api.github.com/repos/CCI-MOC/ims/issues/146","id":364843875,"user":{"login":"chemistry-sourabh","id":10385794,"avatar_url":"https://avatars2.githubusercontent.com/u/10385794?v=4","gravatar_id":"","url":"https://api.github.com/users/chemistry-sourabh","html_url":"https://github.com/chemistry-sourabh","followers_url":"https://api.github.com/users/chemistry-sourabh/followers","following_url":"https://api.github.com/users/chemistry-sourabh/following{/other_user}","gists_url":"https://api.github.com/users/chemistry-sourabh/gists{/gist_id}","starred_url":"https://api.github.com/users/chemistry-sourabh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chemistry-sourabh/subscriptions","organizations_url":"https://api.github.com/users/chemistry-sourabh/orgs","repos_url":"https://api.github.com/users/chemistry-sourabh/repos","events_url":"https://api.github.com/users/chemistry-sourabh/events{/privacy}","received_events_url":"https://api.github.com/users/chemistry-sourabh/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T07:17:03Z","updated_at":"2018-02-12T07:17:03Z","author_association":"MEMBER","body":"Merged Fix"}}
{"actor":{"display_login":"chemistry-sourabh"}}