{"action":"created","comment":{"url":"https://api.github.com/repos/redhat-openstack/website/pulls/comments/80454857","id":80454857,"diff_hunk":"@@ -0,0 +1,124 @@\n+---\n+title: Running Tempest on RDO OpenStack Newton\n+author: chandankumar\n+tags: rdo,packstack,tempest,newton,packaging\n+date: 2016-09-21 11:23:29 IST\n+---\n+\n+\n+[Tempest](http://docs.openstack.org/developer/tempest/overview.html) is a set of integration tests to run against an OpenStack cluster.\n+\n+**What does [RDO](https://www.rdoproject.org) provides for Tempest?**\n+\n+RDO provides three packages for running tempest against any OpenStack installation.\n+\n+* *python-tempest* : It can be used as a python library, consumed as a dependency for out of tree tempest plugins i.e. for horizon and designate tempest plugins.\n+* *openstack-tempest* : It provides python tempest library and required executables for running tempest.\n+* *openstack-tempest-all* : It will install openstack-tempest as well as all the tempest plugins on the system.\n+\n+**Deploy [packstack](github.com/openstack/packstack) using latest RDO Newton packages**\n+\n+Roll out a vm of [CentOS 7](https://www.centos.org/download/), Follow these steps:\n+\n+1. Install rdo-release-newton rpm\n+\n+        # yum -y install https://rdoproject.org/repos/openstack-newton/rdo-release-newton.rpm\n+\n+2. Update your centos vm and perform reboot.\n+\n+\t    # yum -y update\n+\n+3. Install openstack-packstack\n+\n+\t    # yum install -y openstack-packstack\n+\n+4. Run packstack by enabling RDO GA testing repo:\n+\n+\t    # packstack --enable-rdo-testing=y --allinone\n+\n+   Once packstack installation is done, we are good to go ahead.\n+\n+**Install tempest and required tempest plugins**\n+\n+ 1. Install tempest\n+\n+\t    # yum install openstack-tempest\n+\n+2. Install tempest plugins based on the openstack services installed and configured on deployment.\n+\n+   Packstack installs by default horizon, nova, neutron, keystone, cinder, swift, glance, ceilometer, aodh and gnocchi.\n+   To find out what are the openstack components installed, just do a rpm query:\n+\n+\t    # rpm -qa | grep openstack-*\n+\n+\tOR you can use openstack-status command for the same.\n+\tJust grab the tempest plugins of these services and install it.\n+\n+\t    # yum install python-glance-tests python-keystone-tests python-horizon-tests-tempest \\\n+\t      python-neutron-tests python-cinder-tests python-nova-tests python-swift-tests \\\n+\t      python-ceilometer-tests python-gnocchi-tests python-aodh-tests\n+\n+\tOR you can simply download install_test_packages.py script to install tempest plugins and run it.\n+\tIt will automatically installs the required tempest plugin test packages.\n+\n+\t    # python /usr/share/openstack-tempest-*/tools/install_test_packages.py\n+\n+\n+3. To find what are tempest plugins installed:\n+\n+\t    # tempest list-plugins\n+\n+   Once done, you are ready to run tempest.\n+\n+**Configuring and Running tempest**\n+\n+1. source admin credentials and switch to normal user\n+\n+\t    # source /root/keystonerc_admin\n+\n+\t    # su <user>\n+\n+2. Create a directory from where you want to run tempest\n+\n+\t    $ mkdir /home/$USER/tempest; cd /home/$USER/tempest\n+\n+3. Configure the tempest directory\n+\n+\t    $ /usr/share/openstack-tempest-*/tools/configure-tempest-directory\n+\n+4.  Auto generate tempest configuration for your deployed openstack environment\n+\n+\t    $ python tools/config_tempest.py --debug identity.uri $OS_AUTH_URL \\\n+          identity.admin_password  $OS_PASSWORD --create\n+\n+\tIt will automatically create all the required configuration in etc/tempest.conf\n+\n+5.  To list all the tests\n+\n+\t    $ testr list-tests\n+\n+    OR\n+\n+\t    $ ostestr -l\n+\n+6. To run tempest tests:\n+\n+\t    $ ostestr\n+\n+7. For running api and scenario tests using ostestr and prints the slowest tests after test run\n+\n+\t    $ ostestr --regex '(?!.*\\[.*\\bslow\\b.*\\])(^tempest\\.(api|scenario))'\n+\n+8. To run specific tests:\n+\n+\t    $ python -m testtools.run tempest.api.volume.v2.test_volumes_list.VolumesV2ListTestJSON\n+\n+\tOR\n+\n+\t    $ ostestr --pdb tempest.api.volume.v2.test_volumes_list.VolumesV2ListTestJSON","path":"source/blog/2016-09-21-running-tempest-on-rdo-openstack-newton.html.md","position":118,"original_position":118,"commit_id":"02102758ecee98468100d248c9e998ba547cabbe","original_commit_id":"02102758ecee98468100d248c9e998ba547cabbe","user":{"login":"danielmellado","id":1313475,"avatar_url":"https://avatars.githubusercontent.com/u/1313475?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmellado","html_url":"https://github.com/danielmellado","followers_url":"https://api.github.com/users/danielmellado/followers","following_url":"https://api.github.com/users/danielmellado/following{/other_user}","gists_url":"https://api.github.com/users/danielmellado/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmellado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmellado/subscriptions","organizations_url":"https://api.github.com/users/danielmellado/orgs","repos_url":"https://api.github.com/users/danielmellado/repos","events_url":"https://api.github.com/users/danielmellado/events{/privacy}","received_events_url":"https://api.github.com/users/danielmellado/received_events","type":"User","site_admin":false},"body":"How about mentioning that this would call python -m testtools.run under the hood.","created_at":"2016-09-26T11:24:07Z","updated_at":"2016-09-26T11:24:12Z","html_url":"https://github.com/redhat-openstack/website/pull/702#discussion_r80454857","pull_request_url":"https://api.github.com/repos/redhat-openstack/website/pulls/702","_links":{"self":{"href":"https://api.github.com/repos/redhat-openstack/website/pulls/comments/80454857"},"html":{"href":"https://github.com/redhat-openstack/website/pull/702#discussion_r80454857"},"pull_request":{"href":"https://api.github.com/repos/redhat-openstack/website/pulls/702"}}},"pull_request":{"url":"https://api.github.com/repos/redhat-openstack/website/pulls/702","id":86123777,"html_url":"https://github.com/redhat-openstack/website/pull/702","diff_url":"https://github.com/redhat-openstack/website/pull/702.diff","patch_url":"https://github.com/redhat-openstack/website/pull/702.patch","issue_url":"https://api.github.com/repos/redhat-openstack/website/issues/702","number":702,"state":"open","locked":false,"title":"added blog running Tempest on RDO OpenStack Newton","user":{"login":"chkumar246","id":7964197,"avatar_url":"https://avatars.githubusercontent.com/u/7964197?v=3","gravatar_id":"","url":"https://api.github.com/users/chkumar246","html_url":"https://github.com/chkumar246","followers_url":"https://api.github.com/users/chkumar246/followers","following_url":"https://api.github.com/users/chkumar246/following{/other_user}","gists_url":"https://api.github.com/users/chkumar246/gists{/gist_id}","starred_url":"https://api.github.com/users/chkumar246/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chkumar246/subscriptions","organizations_url":"https://api.github.com/users/chkumar246/orgs","repos_url":"https://api.github.com/users/chkumar246/repos","events_url":"https://api.github.com/users/chkumar246/events{/privacy}","received_events_url":"https://api.github.com/users/chkumar246/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-21T09:07:51Z","updated_at":"2016-09-26T11:24:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1951c7700dcb160685ac151b98e842d1f9a6d2c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/redhat-openstack/website/pulls/702/commits","review_comments_url":"https://api.github.com/repos/redhat-openstack/website/pulls/702/comments","review_comment_url":"https://api.github.com/repos/redhat-openstack/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redhat-openstack/website/issues/702/comments","statuses_url":"https://api.github.com/repos/redhat-openstack/website/statuses/02102758ecee98468100d248c9e998ba547cabbe","head":{"label":"chkumar246:tempest-blog","ref":"tempest-blog","sha":"02102758ecee98468100d248c9e998ba547cabbe","user":{"login":"chkumar246","id":7964197,"avatar_url":"https://avatars.githubusercontent.com/u/7964197?v=3","gravatar_id":"","url":"https://api.github.com/users/chkumar246","html_url":"https://github.com/chkumar246","followers_url":"https://api.github.com/users/chkumar246/followers","following_url":"https://api.github.com/users/chkumar246/following{/other_user}","gists_url":"https://api.github.com/users/chkumar246/gists{/gist_id}","starred_url":"https://api.github.com/users/chkumar246/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chkumar246/subscriptions","organizations_url":"https://api.github.com/users/chkumar246/orgs","repos_url":"https://api.github.com/users/chkumar246/repos","events_url":"https://api.github.com/users/chkumar246/events{/privacy}","received_events_url":"https://api.github.com/users/chkumar246/received_events","type":"User","site_admin":false},"repo":{"id":68784075,"name":"website","full_name":"chkumar246/website","owner":{"login":"chkumar246","id":7964197,"avatar_url":"https://avatars.githubusercontent.com/u/7964197?v=3","gravatar_id":"","url":"https://api.github.com/users/chkumar246","html_url":"https://github.com/chkumar246","followers_url":"https://api.github.com/users/chkumar246/followers","following_url":"https://api.github.com/users/chkumar246/following{/other_user}","gists_url":"https://api.github.com/users/chkumar246/gists{/gist_id}","starred_url":"https://api.github.com/users/chkumar246/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chkumar246/subscriptions","organizations_url":"https://api.github.com/users/chkumar246/orgs","repos_url":"https://api.github.com/users/chkumar246/repos","events_url":"https://api.github.com/users/chkumar246/events{/privacy}","received_events_url":"https://api.github.com/users/chkumar246/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chkumar246/website","description":"RDO Project Website","fork":true,"url":"https://api.github.com/repos/chkumar246/website","forks_url":"https://api.github.com/repos/chkumar246/website/forks","keys_url":"https://api.github.com/repos/chkumar246/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chkumar246/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chkumar246/website/teams","hooks_url":"https://api.github.com/repos/chkumar246/website/hooks","issue_events_url":"https://api.github.com/repos/chkumar246/website/issues/events{/number}","events_url":"https://api.github.com/repos/chkumar246/website/events","assignees_url":"https://api.github.com/repos/chkumar246/website/assignees{/user}","branches_url":"https://api.github.com/repos/chkumar246/website/branches{/branch}","tags_url":"https://api.github.com/repos/chkumar246/website/tags","blobs_url":"https://api.github.com/repos/chkumar246/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chkumar246/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chkumar246/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/chkumar246/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chkumar246/website/statuses/{sha}","languages_url":"https://api.github.com/repos/chkumar246/website/languages","stargazers_url":"https://api.github.com/repos/chkumar246/website/stargazers","contributors_url":"https://api.github.com/repos/chkumar246/website/contributors","subscribers_url":"https://api.github.com/repos/chkumar246/website/subscribers","subscription_url":"https://api.github.com/repos/chkumar246/website/subscription","commits_url":"https://api.github.com/repos/chkumar246/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/chkumar246/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/chkumar246/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/chkumar246/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/chkumar246/website/contents/{+path}","compare_url":"https://api.github.com/repos/chkumar246/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chkumar246/website/merges","archive_url":"https://api.github.com/repos/chkumar246/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chkumar246/website/downloads","issues_url":"https://api.github.com/repos/chkumar246/website/issues{/number}","pulls_url":"https://api.github.com/repos/chkumar246/website/pulls{/number}","milestones_url":"https://api.github.com/repos/chkumar246/website/milestones{/number}","notifications_url":"https://api.github.com/repos/chkumar246/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chkumar246/website/labels{/name}","releases_url":"https://api.github.com/repos/chkumar246/website/releases{/id}","deployments_url":"https://api.github.com/repos/chkumar246/website/deployments","created_at":"2016-09-21T05:44:18Z","updated_at":"2016-09-21T05:44:20Z","pushed_at":"2016-09-26T08:52:38Z","git_url":"git://github.com/chkumar246/website.git","ssh_url":"git@github.com:chkumar246/website.git","clone_url":"https://github.com/chkumar246/website.git","svn_url":"https://github.com/chkumar246/website","homepage":"http://www.rdoproject.org","size":11376,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"redhat-openstack:master","ref":"master","sha":"7c6733a48638847a89eba48cef3a9c1d23b4cecc","user":{"login":"redhat-openstack","id":1375502,"avatar_url":"https://avatars.githubusercontent.com/u/1375502?v=3","gravatar_id":"","url":"https://api.github.com/users/redhat-openstack","html_url":"https://github.com/redhat-openstack","followers_url":"https://api.github.com/users/redhat-openstack/followers","following_url":"https://api.github.com/users/redhat-openstack/following{/other_user}","gists_url":"https://api.github.com/users/redhat-openstack/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-openstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-openstack/subscriptions","organizations_url":"https://api.github.com/users/redhat-openstack/orgs","repos_url":"https://api.github.com/users/redhat-openstack/repos","events_url":"https://api.github.com/users/redhat-openstack/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-openstack/received_events","type":"Organization","site_admin":false},"repo":{"id":42450835,"name":"website","full_name":"redhat-openstack/website","owner":{"login":"redhat-openstack","id":1375502,"avatar_url":"https://avatars.githubusercontent.com/u/1375502?v=3","gravatar_id":"","url":"https://api.github.com/users/redhat-openstack","html_url":"https://github.com/redhat-openstack","followers_url":"https://api.github.com/users/redhat-openstack/followers","following_url":"https://api.github.com/users/redhat-openstack/following{/other_user}","gists_url":"https://api.github.com/users/redhat-openstack/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-openstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-openstack/subscriptions","organizations_url":"https://api.github.com/users/redhat-openstack/orgs","repos_url":"https://api.github.com/users/redhat-openstack/repos","events_url":"https://api.github.com/users/redhat-openstack/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-openstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redhat-openstack/website","description":"RDO Project Website","fork":false,"url":"https://api.github.com/repos/redhat-openstack/website","forks_url":"https://api.github.com/repos/redhat-openstack/website/forks","keys_url":"https://api.github.com/repos/redhat-openstack/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redhat-openstack/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redhat-openstack/website/teams","hooks_url":"https://api.github.com/repos/redhat-openstack/website/hooks","issue_events_url":"https://api.github.com/repos/redhat-openstack/website/issues/events{/number}","events_url":"https://api.github.com/repos/redhat-openstack/website/events","assignees_url":"https://api.github.com/repos/redhat-openstack/website/assignees{/user}","branches_url":"https://api.github.com/repos/redhat-openstack/website/branches{/branch}","tags_url":"https://api.github.com/repos/redhat-openstack/website/tags","blobs_url":"https://api.github.com/repos/redhat-openstack/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redhat-openstack/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redhat-openstack/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/redhat-openstack/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redhat-openstack/website/statuses/{sha}","languages_url":"https://api.github.com/repos/redhat-openstack/website/languages","stargazers_url":"https://api.github.com/repos/redhat-openstack/website/stargazers","contributors_url":"https://api.github.com/repos/redhat-openstack/website/contributors","subscribers_url":"https://api.github.com/repos/redhat-openstack/website/subscribers","subscription_url":"https://api.github.com/repos/redhat-openstack/website/subscription","commits_url":"https://api.github.com/repos/redhat-openstack/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/redhat-openstack/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/redhat-openstack/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/redhat-openstack/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/redhat-openstack/website/contents/{+path}","compare_url":"https://api.github.com/repos/redhat-openstack/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redhat-openstack/website/merges","archive_url":"https://api.github.com/repos/redhat-openstack/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redhat-openstack/website/downloads","issues_url":"https://api.github.com/repos/redhat-openstack/website/issues{/number}","pulls_url":"https://api.github.com/repos/redhat-openstack/website/pulls{/number}","milestones_url":"https://api.github.com/repos/redhat-openstack/website/milestones{/number}","notifications_url":"https://api.github.com/repos/redhat-openstack/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redhat-openstack/website/labels{/name}","releases_url":"https://api.github.com/repos/redhat-openstack/website/releases{/id}","deployments_url":"https://api.github.com/repos/redhat-openstack/website/deployments","created_at":"2015-09-14T13:37:55Z","updated_at":"2016-08-08T20:15:51Z","pushed_at":"2016-09-26T08:52:39Z","git_url":"git://github.com/redhat-openstack/website.git","ssh_url":"git@github.com:redhat-openstack/website.git","clone_url":"https://github.com/redhat-openstack/website.git","svn_url":"https://github.com/redhat-openstack/website","homepage":"http://www.rdoproject.org","size":13449,"stargazers_count":19,"watchers_count":19,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":112,"mirror_url":null,"open_issues_count":10,"forks":112,"open_issues":10,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redhat-openstack/website/pulls/702"},"html":{"href":"https://github.com/redhat-openstack/website/pull/702"},"issue":{"href":"https://api.github.com/repos/redhat-openstack/website/issues/702"},"comments":{"href":"https://api.github.com/repos/redhat-openstack/website/issues/702/comments"},"review_comments":{"href":"https://api.github.com/repos/redhat-openstack/website/pulls/702/comments"},"review_comment":{"href":"https://api.github.com/repos/redhat-openstack/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redhat-openstack/website/pulls/702/commits"},"statuses":{"href":"https://api.github.com/repos/redhat-openstack/website/statuses/02102758ecee98468100d248c9e998ba547cabbe"}}}}
{"actor":{"display_login":"danielmellado"}}