{"action":"created","comment":{"url":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/comments/165419508","pull_request_review_id":93356388,"id":165419508,"diff_hunk":"@@ -63,9 +63,47 @@\n     'enable_ssl_verify': False\n }\n \n+OS_TYPE = \"ManageIQ::Providers::Openstack::CloudManager\"\n+OS_NETWORK_TYPE = \"ManageIQ::Providers::Openstack::NetworkManager\"\n+\n+\n+SUPPORTED_AUTOMATE_TYPES = [\"gen_floating_ip\"]\n+\n+SUPPORTED_PROVIDERS = [\"OpenStack\"]\n+REQUIRED_OS_KEYS = [\"email\", \"tenant\", \"image\", \"security_group\", \"network\",\n+                    \"flavor\", \"key_pair\", \"vm_name\"]\n+OPTIONAL_OS_KEYS = [\"fip_pool\"]\n+\n #: filesystem root for miqcli authentication store\n AUTHDIR = os.path.join(os.path.expanduser('~'), \".miqcli/auth\")\n \n+#: time to wait in secs in between checks of a task\n+TASK_WAIT = 2\n+\n+#: time to wait in secs in between checks of a request (provision or automate)","path":"miqcli/constants.py","position":21,"original_position":21,"commit_id":"fe088741a8c99f8de4f161bb74f58da5ab5c2ca2","original_commit_id":"fe088741a8c99f8de4f161bb74f58da5ab5c2ca2","user":{"login":"vi-patel","id":1675264,"avatar_url":"https://avatars1.githubusercontent.com/u/1675264?v=4","gravatar_id":"","url":"https://api.github.com/users/vi-patel","html_url":"https://github.com/vi-patel","followers_url":"https://api.github.com/users/vi-patel/followers","following_url":"https://api.github.com/users/vi-patel/following{/other_user}","gists_url":"https://api.github.com/users/vi-patel/gists{/gist_id}","starred_url":"https://api.github.com/users/vi-patel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi-patel/subscriptions","organizations_url":"https://api.github.com/users/vi-patel/orgs","repos_url":"https://api.github.com/users/vi-patel/repos","events_url":"https://api.github.com/users/vi-patel/events{/privacy}","received_events_url":"https://api.github.com/users/vi-patel/received_events","type":"User","site_admin":false},"body":"Sorry, this will be taken out, same with the one above.","created_at":"2018-02-01T16:55:52Z","updated_at":"2018-02-01T16:55:52Z","html_url":"https://github.com/rhpit/manageiq-cli/pull/80#discussion_r165419508","pull_request_url":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/80","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/comments/165419508"},"html":{"href":"https://github.com/rhpit/manageiq-cli/pull/80#discussion_r165419508"},"pull_request":{"href":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/80"}},"in_reply_to_id":165366855},"pull_request":{"url":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/80","id":166365069,"html_url":"https://github.com/rhpit/manageiq-cli/pull/80","diff_url":"https://github.com/rhpit/manageiq-cli/pull/80.diff","patch_url":"https://github.com/rhpit/manageiq-cli/pull/80.patch","issue_url":"https://api.github.com/repos/rhpit/manageiq-cli/issues/80","number":80,"state":"open","locked":false,"title":"adding OpenStack provisioning","user":{"login":"vi-patel","id":1675264,"avatar_url":"https://avatars1.githubusercontent.com/u/1675264?v=4","gravatar_id":"","url":"https://api.github.com/users/vi-patel","html_url":"https://github.com/vi-patel","followers_url":"https://api.github.com/users/vi-patel/followers","following_url":"https://api.github.com/users/vi-patel/following{/other_user}","gists_url":"https://api.github.com/users/vi-patel/gists{/gist_id}","starred_url":"https://api.github.com/users/vi-patel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi-patel/subscriptions","organizations_url":"https://api.github.com/users/vi-patel/orgs","repos_url":"https://api.github.com/users/vi-patel/repos","events_url":"https://api.github.com/users/vi-patel/events{/privacy}","received_events_url":"https://api.github.com/users/vi-patel/received_events","type":"User","site_admin":false},"body":" * provision_request -> send a payload for OpenStack provisioning, and get returned an id to monitor\r\n   input data: {\"email\":\"<email_address>\", \"tenant\":\"<tenant_name>\", \"image\": \"<image_name>\", \r\n                \"security_group\": \"<security_group>\", \"network\": \"<network>\", \"flavor\": \"<flavor>\",\r\n                \"key_pair\": \"<key_pair>\", \"vm_name\": \"<vm_name>\"}\r\n   optional data: {\"floating_ip_id\": \"<miq_floating_ip_id>\" }\r\n   - provision_request: will lookup names and create a correct manageiq payload with ids in place of names and its supported multilevel payload key names.\r\n * provision_request (status) -> check the status of a specific provisioning request, or all active\r\n\r\n * automation_request -> send a payload to generate an OpenStack floating ip address\r\n   input data: {\"fip_pool\":\"<pool_id>\", \"tenant\":\"<tenant_name>}\r\n   - automation_request: will lookup names and create a correct manageiq payload with ids in place of names and its supported multilevel payload key names.\r\n * automation request (status) -> check the status of a specific automation request or all active\r\n\r\nExample added:\r\n * sample json data\r\n * sample openstack provisioning script, which uses the client as an api to send requests and wait for the requests to complete, to combine all the steps required for an OpenStack provisioning request for a machine with a floating ip address.\r\n\r\nRelated to Issue #13 ","created_at":"2018-01-31T20:17:17Z","updated_at":"2018-02-01T16:55:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee323e86bc06c1643eae96466151f8c6dc74e9da","assignee":{"login":"vi-patel","id":1675264,"avatar_url":"https://avatars1.githubusercontent.com/u/1675264?v=4","gravatar_id":"","url":"https://api.github.com/users/vi-patel","html_url":"https://github.com/vi-patel","followers_url":"https://api.github.com/users/vi-patel/followers","following_url":"https://api.github.com/users/vi-patel/following{/other_user}","gists_url":"https://api.github.com/users/vi-patel/gists{/gist_id}","starred_url":"https://api.github.com/users/vi-patel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi-patel/subscriptions","organizations_url":"https://api.github.com/users/vi-patel/orgs","repos_url":"https://api.github.com/users/vi-patel/repos","events_url":"https://api.github.com/users/vi-patel/events{/privacy}","received_events_url":"https://api.github.com/users/vi-patel/received_events","type":"User","site_admin":false},"assignees":[{"login":"vi-patel","id":1675264,"avatar_url":"https://avatars1.githubusercontent.com/u/1675264?v=4","gravatar_id":"","url":"https://api.github.com/users/vi-patel","html_url":"https://github.com/vi-patel","followers_url":"https://api.github.com/users/vi-patel/followers","following_url":"https://api.github.com/users/vi-patel/following{/other_user}","gists_url":"https://api.github.com/users/vi-patel/gists{/gist_id}","starred_url":"https://api.github.com/users/vi-patel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi-patel/subscriptions","organizations_url":"https://api.github.com/users/vi-patel/orgs","repos_url":"https://api.github.com/users/vi-patel/repos","events_url":"https://api.github.com/users/vi-patel/events{/privacy}","received_events_url":"https://api.github.com/users/vi-patel/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/80/commits","review_comments_url":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/80/comments","review_comment_url":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rhpit/manageiq-cli/issues/80/comments","statuses_url":"https://api.github.com/repos/rhpit/manageiq-cli/statuses/fe088741a8c99f8de4f161bb74f58da5ab5c2ca2","head":{"label":"vi-patel:os_prov_request2","ref":"os_prov_request2","sha":"fe088741a8c99f8de4f161bb74f58da5ab5c2ca2","user":{"login":"vi-patel","id":1675264,"avatar_url":"https://avatars1.githubusercontent.com/u/1675264?v=4","gravatar_id":"","url":"https://api.github.com/users/vi-patel","html_url":"https://github.com/vi-patel","followers_url":"https://api.github.com/users/vi-patel/followers","following_url":"https://api.github.com/users/vi-patel/following{/other_user}","gists_url":"https://api.github.com/users/vi-patel/gists{/gist_id}","starred_url":"https://api.github.com/users/vi-patel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi-patel/subscriptions","organizations_url":"https://api.github.com/users/vi-patel/orgs","repos_url":"https://api.github.com/users/vi-patel/repos","events_url":"https://api.github.com/users/vi-patel/events{/privacy}","received_events_url":"https://api.github.com/users/vi-patel/received_events","type":"User","site_admin":false},"repo":{"id":113608590,"name":"manageiq-cli","full_name":"vi-patel/manageiq-cli","owner":{"login":"vi-patel","id":1675264,"avatar_url":"https://avatars1.githubusercontent.com/u/1675264?v=4","gravatar_id":"","url":"https://api.github.com/users/vi-patel","html_url":"https://github.com/vi-patel","followers_url":"https://api.github.com/users/vi-patel/followers","following_url":"https://api.github.com/users/vi-patel/following{/other_user}","gists_url":"https://api.github.com/users/vi-patel/gists{/gist_id}","starred_url":"https://api.github.com/users/vi-patel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi-patel/subscriptions","organizations_url":"https://api.github.com/users/vi-patel/orgs","repos_url":"https://api.github.com/users/vi-patel/repos","events_url":"https://api.github.com/users/vi-patel/events{/privacy}","received_events_url":"https://api.github.com/users/vi-patel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vi-patel/manageiq-cli","description":"Because we like managing the cloud via terminal!","fork":true,"url":"https://api.github.com/repos/vi-patel/manageiq-cli","forks_url":"https://api.github.com/repos/vi-patel/manageiq-cli/forks","keys_url":"https://api.github.com/repos/vi-patel/manageiq-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vi-patel/manageiq-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vi-patel/manageiq-cli/teams","hooks_url":"https://api.github.com/repos/vi-patel/manageiq-cli/hooks","issue_events_url":"https://api.github.com/repos/vi-patel/manageiq-cli/issues/events{/number}","events_url":"https://api.github.com/repos/vi-patel/manageiq-cli/events","assignees_url":"https://api.github.com/repos/vi-patel/manageiq-cli/assignees{/user}","branches_url":"https://api.github.com/repos/vi-patel/manageiq-cli/branches{/branch}","tags_url":"https://api.github.com/repos/vi-patel/manageiq-cli/tags","blobs_url":"https://api.github.com/repos/vi-patel/manageiq-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vi-patel/manageiq-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vi-patel/manageiq-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/vi-patel/manageiq-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vi-patel/manageiq-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/vi-patel/manageiq-cli/languages","stargazers_url":"https://api.github.com/repos/vi-patel/manageiq-cli/stargazers","contributors_url":"https://api.github.com/repos/vi-patel/manageiq-cli/contributors","subscribers_url":"https://api.github.com/repos/vi-patel/manageiq-cli/subscribers","subscription_url":"https://api.github.com/repos/vi-patel/manageiq-cli/subscription","commits_url":"https://api.github.com/repos/vi-patel/manageiq-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/vi-patel/manageiq-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/vi-patel/manageiq-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/vi-patel/manageiq-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/vi-patel/manageiq-cli/contents/{+path}","compare_url":"https://api.github.com/repos/vi-patel/manageiq-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vi-patel/manageiq-cli/merges","archive_url":"https://api.github.com/repos/vi-patel/manageiq-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vi-patel/manageiq-cli/downloads","issues_url":"https://api.github.com/repos/vi-patel/manageiq-cli/issues{/number}","pulls_url":"https://api.github.com/repos/vi-patel/manageiq-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/vi-patel/manageiq-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/vi-patel/manageiq-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vi-patel/manageiq-cli/labels{/name}","releases_url":"https://api.github.com/repos/vi-patel/manageiq-cli/releases{/id}","deployments_url":"https://api.github.com/repos/vi-patel/manageiq-cli/deployments","created_at":"2017-12-08T19:10:50Z","updated_at":"2017-12-08T19:10:52Z","pushed_at":"2018-01-31T20:27:50Z","git_url":"git://github.com/vi-patel/manageiq-cli.git","ssh_url":"git@github.com:vi-patel/manageiq-cli.git","clone_url":"https://github.com/vi-patel/manageiq-cli.git","svn_url":"https://github.com/vi-patel/manageiq-cli","homepage":null,"size":133,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rhpit:master","ref":"master","sha":"eaed4594b6a0d4ae33a474074cc973e45ea5cb14","user":{"login":"rhpit","id":23100408,"avatar_url":"https://avatars2.githubusercontent.com/u/23100408?v=4","gravatar_id":"","url":"https://api.github.com/users/rhpit","html_url":"https://github.com/rhpit","followers_url":"https://api.github.com/users/rhpit/followers","following_url":"https://api.github.com/users/rhpit/following{/other_user}","gists_url":"https://api.github.com/users/rhpit/gists{/gist_id}","starred_url":"https://api.github.com/users/rhpit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhpit/subscriptions","organizations_url":"https://api.github.com/users/rhpit/orgs","repos_url":"https://api.github.com/users/rhpit/repos","events_url":"https://api.github.com/users/rhpit/events{/privacy}","received_events_url":"https://api.github.com/users/rhpit/received_events","type":"Organization","site_admin":false},"repo":{"id":111458801,"name":"manageiq-cli","full_name":"rhpit/manageiq-cli","owner":{"login":"rhpit","id":23100408,"avatar_url":"https://avatars2.githubusercontent.com/u/23100408?v=4","gravatar_id":"","url":"https://api.github.com/users/rhpit","html_url":"https://github.com/rhpit","followers_url":"https://api.github.com/users/rhpit/followers","following_url":"https://api.github.com/users/rhpit/following{/other_user}","gists_url":"https://api.github.com/users/rhpit/gists{/gist_id}","starred_url":"https://api.github.com/users/rhpit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhpit/subscriptions","organizations_url":"https://api.github.com/users/rhpit/orgs","repos_url":"https://api.github.com/users/rhpit/repos","events_url":"https://api.github.com/users/rhpit/events{/privacy}","received_events_url":"https://api.github.com/users/rhpit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rhpit/manageiq-cli","description":"Because we like managing the cloud via terminal!","fork":false,"url":"https://api.github.com/repos/rhpit/manageiq-cli","forks_url":"https://api.github.com/repos/rhpit/manageiq-cli/forks","keys_url":"https://api.github.com/repos/rhpit/manageiq-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhpit/manageiq-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhpit/manageiq-cli/teams","hooks_url":"https://api.github.com/repos/rhpit/manageiq-cli/hooks","issue_events_url":"https://api.github.com/repos/rhpit/manageiq-cli/issues/events{/number}","events_url":"https://api.github.com/repos/rhpit/manageiq-cli/events","assignees_url":"https://api.github.com/repos/rhpit/manageiq-cli/assignees{/user}","branches_url":"https://api.github.com/repos/rhpit/manageiq-cli/branches{/branch}","tags_url":"https://api.github.com/repos/rhpit/manageiq-cli/tags","blobs_url":"https://api.github.com/repos/rhpit/manageiq-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhpit/manageiq-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhpit/manageiq-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhpit/manageiq-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhpit/manageiq-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/rhpit/manageiq-cli/languages","stargazers_url":"https://api.github.com/repos/rhpit/manageiq-cli/stargazers","contributors_url":"https://api.github.com/repos/rhpit/manageiq-cli/contributors","subscribers_url":"https://api.github.com/repos/rhpit/manageiq-cli/subscribers","subscription_url":"https://api.github.com/repos/rhpit/manageiq-cli/subscription","commits_url":"https://api.github.com/repos/rhpit/manageiq-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhpit/manageiq-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhpit/manageiq-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhpit/manageiq-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhpit/manageiq-cli/contents/{+path}","compare_url":"https://api.github.com/repos/rhpit/manageiq-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhpit/manageiq-cli/merges","archive_url":"https://api.github.com/repos/rhpit/manageiq-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhpit/manageiq-cli/downloads","issues_url":"https://api.github.com/repos/rhpit/manageiq-cli/issues{/number}","pulls_url":"https://api.github.com/repos/rhpit/manageiq-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/rhpit/manageiq-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/rhpit/manageiq-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhpit/manageiq-cli/labels{/name}","releases_url":"https://api.github.com/repos/rhpit/manageiq-cli/releases{/id}","deployments_url":"https://api.github.com/repos/rhpit/manageiq-cli/deployments","created_at":"2017-11-20T20:21:20Z","updated_at":"2018-01-10T12:39:48Z","pushed_at":"2018-01-31T20:27:52Z","git_url":"git://github.com/rhpit/manageiq-cli.git","ssh_url":"git@github.com:rhpit/manageiq-cli.git","clone_url":"https://github.com/rhpit/manageiq-cli.git","svn_url":"https://github.com/rhpit/manageiq-cli","homepage":null,"size":105,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":6,"open_issues":19,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/80"},"html":{"href":"https://github.com/rhpit/manageiq-cli/pull/80"},"issue":{"href":"https://api.github.com/repos/rhpit/manageiq-cli/issues/80"},"comments":{"href":"https://api.github.com/repos/rhpit/manageiq-cli/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rhpit/manageiq-cli/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/rhpit/manageiq-cli/statuses/fe088741a8c99f8de4f161bb74f58da5ab5c2ca2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vi-patel"}}