{"action":"opened","number":26,"pull_request":{"url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls/26","id":97780172,"html_url":"https://github.com/ios-xr/iosxrv-x64-vbox/pull/26","diff_url":"https://github.com/ios-xr/iosxrv-x64-vbox/pull/26.diff","patch_url":"https://github.com/ios-xr/iosxrv-x64-vbox/pull/26.patch","issue_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues/26","number":26,"state":"open","locked":false,"title":"Fix metadata.json issue","user":{"login":"budhadityabanerjee","id":12023410,"avatar_url":"https://avatars.githubusercontent.com/u/12023410?v=3","gravatar_id":"","url":"https://api.github.com/users/budhadityabanerjee","html_url":"https://github.com/budhadityabanerjee","followers_url":"https://api.github.com/users/budhadityabanerjee/followers","following_url":"https://api.github.com/users/budhadityabanerjee/following{/other_user}","gists_url":"https://api.github.com/users/budhadityabanerjee/gists{/gist_id}","starred_url":"https://api.github.com/users/budhadityabanerjee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/budhadityabanerjee/subscriptions","organizations_url":"https://api.github.com/users/budhadityabanerjee/orgs","repos_url":"https://api.github.com/users/budhadityabanerjee/repos","events_url":"https://api.github.com/users/budhadityabanerjee/events{/privacy}","received_events_url":"https://api.github.com/users/budhadityabanerjee/received_events","type":"User","site_admin":false},"body":"Symptom\r\n=======\r\nError thrown while running iosxr_iso2vbox.py\r\n\r\nProblem\r\n=======\r\nWhile running the script from outside the iosxrv-x64-vbox directory, I get the following error:\r\n\r\n[2016-12-13 20:15:51,577:INFO - vbox_to_vagrant:633] Adding metadata.json to final box\r\nTraceback (most recent call last):\r\n  File \"iosxrv-x64-vbox/iosxr_iso2vbox.py\", line 737, in <module>\r\n    main()\r\n  File \"iosxrv-x64-vbox/iosxr_iso2vbox.py\", line 703, in main\r\n    box_out = vbox_to_vagrant(vmname, box_dir)\r\n  File \"iosxrv-x64-vbox/iosxr_iso2vbox.py\", line 636, in vbox_to_vagrant\r\n    tarf.add(\"./metadata.json\")\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py\", line 2006, in add\r\n    tarinfo = self.gettarinfo(name, arcname)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py\", line 1878, in gettarinfo\r\n    statres = os.lstat(name)\r\nOSError: [Errno 2] No such file or directory: './metadata.json'\r\n\r\nSolution\r\n========\r\nChange one line of code to add the pathname to the metadata.json file.\r\n\r\nTesting\r\n=======\r\nbubanerj@BUBANERJ-M-J098 ~/Ciscostuff/Boxes $ python iosxrv-x64-vbox/iosxr_iso2vbox.py iosxrv-fullk9-x64.iso\r\n[2016-12-13 21:07:12,084:INFO    :create_vbox_vm      :434] Creating and configuring VirtualBox VM\r\n[2016-12-13 21:07:15,313:INFO    :configure_xr        :200] Logging into Vagrant Virtualbox and configuring IOS XR\r\n[2016-12-13 21:13:38,003:INFO    :vbox_to_vagrant     :617] Generating Vagrant VirtualBox\r\n[2016-12-13 21:17:43,361:INFO    :vbox_to_vagrant     :633] Adding metadata.json to final box\r\n[2016-12-13 21:18:43,189:INFO    :vbox_to_vagrant     :640] Created: /Users/bubanerj/Ciscostuff/Boxes/machines/iosxrv-fullk9-x64/iosxrv-fullk9-x64.box\r\n[2016-12-13 21:18:43,605:INFO    :main                :714] Running basic unit tests on Vagrant VirtualBox...\r\n[2016-12-13 21:28:25,870:INFO    :main                :295] Both IOS XR and IOS Linux test suites passed\r\n[2016-12-13 21:28:25,871:INFO    :cleanup_vagrant     :238] Cleaning up...\r\n[2016-12-13 21:28:30,312:INFO    :main                :722] Single node use:\r\n[2016-12-13 21:28:30,312:INFO    :main                :723]  vagrant init 'IOS XRv'\r\n[2016-12-13 21:28:30,312:INFO    :main                :724]  vagrant box add --name 'IOS XRv' /Users/bubanerj/Ciscostuff/Boxes/machines/iosxrv-fullk9-x64/iosxrv-fullk9-x64.box --force\r\n[2016-12-13 21:28:30,312:INFO    :main                :725]  vagrant up\r\n[2016-12-13 21:28:30,312:INFO    :main                :727] Multinode use:\r\n[2016-12-13 21:28:30,312:INFO    :main                :728]  Copy './iosxrv-x64-vbox/vagrantfiles/simple-mixed-topo/Vagrantfile' to the directory running vagrant and do:\r\n[2016-12-13 21:28:30,312:INFO    :main                :729]  vagrant box add --name 'IOS XRv' /Users/bubanerj/Ciscostuff/Boxes/machines/iosxrv-fullk9-x64/iosxrv-fullk9-x64.box --force\r\n[2016-12-13 21:28:30,312:INFO    :main                :730]  vagrant up\r\n[2016-12-13 21:28:30,313:INFO    :main                :731]  Or: 'vagrant up rtr1', 'vagrant up rtr2'\r\n[2016-12-13 21:28:30,313:INFO    :main                :733] Note that both the XR Console and the XR linux shell username and password is vagrant/vagrant","created_at":"2016-12-13T16:03:31Z","updated_at":"2016-12-13T16:03:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls/26/commits","review_comments_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls/26/comments","review_comment_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues/26/comments","statuses_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/statuses/402162fa375c4538692229130df54457548f5a82","head":{"label":"ios-xr:bubanerj","ref":"bubanerj","sha":"402162fa375c4538692229130df54457548f5a82","user":{"login":"ios-xr","id":19174311,"avatar_url":"https://avatars.githubusercontent.com/u/19174311?v=3","gravatar_id":"","url":"https://api.github.com/users/ios-xr","html_url":"https://github.com/ios-xr","followers_url":"https://api.github.com/users/ios-xr/followers","following_url":"https://api.github.com/users/ios-xr/following{/other_user}","gists_url":"https://api.github.com/users/ios-xr/gists{/gist_id}","starred_url":"https://api.github.com/users/ios-xr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ios-xr/subscriptions","organizations_url":"https://api.github.com/users/ios-xr/orgs","repos_url":"https://api.github.com/users/ios-xr/repos","events_url":"https://api.github.com/users/ios-xr/events{/privacy}","received_events_url":"https://api.github.com/users/ios-xr/received_events","type":"Organization","site_admin":false},"repo":{"id":61637187,"name":"iosxrv-x64-vbox","full_name":"ios-xr/iosxrv-x64-vbox","owner":{"login":"ios-xr","id":19174311,"avatar_url":"https://avatars.githubusercontent.com/u/19174311?v=3","gravatar_id":"","url":"https://api.github.com/users/ios-xr","html_url":"https://github.com/ios-xr","followers_url":"https://api.github.com/users/ios-xr/followers","following_url":"https://api.github.com/users/ios-xr/following{/other_user}","gists_url":"https://api.github.com/users/ios-xr/gists{/gist_id}","starred_url":"https://api.github.com/users/ios-xr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ios-xr/subscriptions","organizations_url":"https://api.github.com/users/ios-xr/orgs","repos_url":"https://api.github.com/users/ios-xr/repos","events_url":"https://api.github.com/users/ios-xr/events{/privacy}","received_events_url":"https://api.github.com/users/ios-xr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ios-xr/iosxrv-x64-vbox","description":"IOS XR VirtualBox Vagrant Image Generation tools","fork":false,"url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox","forks_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/forks","keys_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/teams","hooks_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/hooks","issue_events_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues/events{/number}","events_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/events","assignees_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/assignees{/user}","branches_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/branches{/branch}","tags_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/tags","blobs_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/statuses/{sha}","languages_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/languages","stargazers_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/stargazers","contributors_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/contributors","subscribers_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/subscribers","subscription_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/subscription","commits_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/contents/{+path}","compare_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/merges","archive_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/downloads","issues_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues{/number}","pulls_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls{/number}","milestones_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/milestones{/number}","notifications_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/labels{/name}","releases_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/releases{/id}","deployments_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/deployments","created_at":"2016-06-21T13:44:59Z","updated_at":"2016-10-27T10:05:42Z","pushed_at":"2016-12-13T16:03:31Z","git_url":"git://github.com/ios-xr/iosxrv-x64-vbox.git","ssh_url":"git@github.com:ios-xr/iosxrv-x64-vbox.git","clone_url":"https://github.com/ios-xr/iosxrv-x64-vbox.git","svn_url":"https://github.com/ios-xr/iosxrv-x64-vbox","homepage":null,"size":160,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":10,"default_branch":"master"}},"base":{"label":"ios-xr:master","ref":"master","sha":"b897518c64aec8e9155de035025c1fa37887b583","user":{"login":"ios-xr","id":19174311,"avatar_url":"https://avatars.githubusercontent.com/u/19174311?v=3","gravatar_id":"","url":"https://api.github.com/users/ios-xr","html_url":"https://github.com/ios-xr","followers_url":"https://api.github.com/users/ios-xr/followers","following_url":"https://api.github.com/users/ios-xr/following{/other_user}","gists_url":"https://api.github.com/users/ios-xr/gists{/gist_id}","starred_url":"https://api.github.com/users/ios-xr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ios-xr/subscriptions","organizations_url":"https://api.github.com/users/ios-xr/orgs","repos_url":"https://api.github.com/users/ios-xr/repos","events_url":"https://api.github.com/users/ios-xr/events{/privacy}","received_events_url":"https://api.github.com/users/ios-xr/received_events","type":"Organization","site_admin":false},"repo":{"id":61637187,"name":"iosxrv-x64-vbox","full_name":"ios-xr/iosxrv-x64-vbox","owner":{"login":"ios-xr","id":19174311,"avatar_url":"https://avatars.githubusercontent.com/u/19174311?v=3","gravatar_id":"","url":"https://api.github.com/users/ios-xr","html_url":"https://github.com/ios-xr","followers_url":"https://api.github.com/users/ios-xr/followers","following_url":"https://api.github.com/users/ios-xr/following{/other_user}","gists_url":"https://api.github.com/users/ios-xr/gists{/gist_id}","starred_url":"https://api.github.com/users/ios-xr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ios-xr/subscriptions","organizations_url":"https://api.github.com/users/ios-xr/orgs","repos_url":"https://api.github.com/users/ios-xr/repos","events_url":"https://api.github.com/users/ios-xr/events{/privacy}","received_events_url":"https://api.github.com/users/ios-xr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ios-xr/iosxrv-x64-vbox","description":"IOS XR VirtualBox Vagrant Image Generation tools","fork":false,"url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox","forks_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/forks","keys_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/teams","hooks_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/hooks","issue_events_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues/events{/number}","events_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/events","assignees_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/assignees{/user}","branches_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/branches{/branch}","tags_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/tags","blobs_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/statuses/{sha}","languages_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/languages","stargazers_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/stargazers","contributors_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/contributors","subscribers_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/subscribers","subscription_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/subscription","commits_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/contents/{+path}","compare_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/merges","archive_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/downloads","issues_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues{/number}","pulls_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls{/number}","milestones_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/milestones{/number}","notifications_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/labels{/name}","releases_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/releases{/id}","deployments_url":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/deployments","created_at":"2016-06-21T13:44:59Z","updated_at":"2016-10-27T10:05:42Z","pushed_at":"2016-12-13T16:03:31Z","git_url":"git://github.com/ios-xr/iosxrv-x64-vbox.git","ssh_url":"git@github.com:ios-xr/iosxrv-x64-vbox.git","clone_url":"https://github.com/ios-xr/iosxrv-x64-vbox.git","svn_url":"https://github.com/ios-xr/iosxrv-x64-vbox","homepage":null,"size":160,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls/26"},"html":{"href":"https://github.com/ios-xr/iosxrv-x64-vbox/pull/26"},"issue":{"href":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues/26"},"comments":{"href":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/ios-xr/iosxrv-x64-vbox/statuses/402162fa375c4538692229130df54457548f5a82"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"budhadityabanerjee"}}