{"action":"created","issue":{"url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/296","repository_url":"https://api.github.com/repos/SatelliteQE/automation-tools","labels_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/296/comments","events_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/296/events","html_url":"https://github.com/SatelliteQE/automation-tools/issues/296","id":136131811,"number":296,"title":"make yum calls with lower verbosity level to hide progress bars","user":{"login":"rplevka","id":11773362,"avatar_url":"https://avatars.githubusercontent.com/u/11773362?v=3","gravatar_id":"","url":"https://api.github.com/users/rplevka","html_url":"https://github.com/rplevka","followers_url":"https://api.github.com/users/rplevka/followers","following_url":"https://api.github.com/users/rplevka/following{/other_user}","gists_url":"https://api.github.com/users/rplevka/gists{/gist_id}","starred_url":"https://api.github.com/users/rplevka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rplevka/subscriptions","organizations_url":"https://api.github.com/users/rplevka/orgs","repos_url":"https://api.github.com/users/rplevka/repos","events_url":"https://api.github.com/users/rplevka/events{/privacy}","received_events_url":"https://api.github.com/users/rplevka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SatelliteQE/automation-tools/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-24T17:35:08Z","updated_at":"2016-02-24T21:57:50Z","closed_at":null,"body":"`automation_tools` scripts executing yum provides quite much lines of (mostly) useless output. Especially when it comes to download progress bars\r\n\r\n```bash\r\n$ yum -y install cas\r\nLoaded plugins: product-id, search-disabled-repos, security, subscription-manager\r\nSetting up Install Process\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package cas.noarch 0:0.15-1.el6.1 will be installed\r\n--> Processing Dependency: python-paramiko for package: cas-0.15-1.el6.1.noarch\r\n--> Running transaction check\r\n---> Package python-paramiko.noarch 0:1.7.5-2.1.el6 will be installed\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n==============================================================================================================\r\n Package                      Arch                Version                    Repository                  Size\r\n==============================================================================================================\r\nInstalling:\r\n cas                          noarch              0.15-1.el6.1               myRepo              119 k\r\nInstalling for dependencies:\r\n python-paramiko              noarch              1.7.5-2.1.el6              myRepo              728 k\r\n\r\nTransaction Summary\r\n==============================================================================================================\r\nInstall       2 Package(s)\r\n\r\nTotal download size: 846 k\r\nInstalled size: 8.0 M\r\nDownloading Packages:\r\n(1/2): cas-0.15-1.el6.1.noarch.rpm                                                     | 119 kB     00:00     \r\n(2/2): python-paramiko-1.7.5-2.1.el6.noarch.rpm                                        | 728 kB     00:00     \r\n--------------------------------------------------------------------------------------------------------------\r\nTotal                                                                         3.8 MB/s | 846 kB     00:00     \r\nRunning rpm_check_debug\r\nRunning Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n  Installing : python-paramiko-1.7.5-2.1.el6.noarch                                                       1/2 \r\n  Installing : cas-0.15-1.el6.1.noarch                                                                    2/2 \r\n  Verifying  : python-paramiko-1.7.5-2.1.el6.noarch                                                       1/2 \r\n  Verifying  : cas-0.15-1.el6.1.noarch                                                                    2/2 \r\n\r\nInstalled:\r\n  cas.noarch 0:0.15-1.el6.1                                                                                   \r\n\r\nDependency Installed:\r\n  python-paramiko.noarch 0:1.7.5-2.1.el6                                                                      \r\n\r\nComplete!\r\n```\r\nWhat's more, fabric output renders every update on a single line (increased percentage, appended '=' sign) as a standalone output line.\r\n\r\nWe might save ourselves from tons of useless logs by simply specifying a lower debug level for yum command:\r\n```bash\r\n$ yum -y -d1 install cas\r\n\r\n====================================================================================================\r\n Package                      Arch                Version                    Repository        Size\r\n====================================================================================================\r\nInstalling:\r\n cas                          noarch              0.15-1.el6.1               myRepo             119 k\r\nInstalling for dependencies:\r\n python-paramiko              noarch              1.7.5-2.1.el6              myRepo             728 k\r\n\r\nTransaction Summary\r\n====================================================================================================\r\nInstall       2 Package(s)\r\n\r\nTotal download size: 846 k\r\nInstalled size: 8.0 M\r\n\r\nInstalled:\r\n  cas.noarch 0:0.15-1.el6.1                                                                                   \r\n\r\nDependency Installed:\r\n  python-paramiko.noarch 0:1.7.5-2.1.el6                                                                      \r\n\r\n\r\n```\r\nAnd only increase the verbosity at places we really need."},"comment":{"url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/comments/188470526","html_url":"https://github.com/SatelliteQE/automation-tools/issues/296#issuecomment-188470526","issue_url":"https://api.github.com/repos/SatelliteQE/automation-tools/issues/296","id":188470526,"user":{"login":"rplevka","id":11773362,"avatar_url":"https://avatars.githubusercontent.com/u/11773362?v=3","gravatar_id":"","url":"https://api.github.com/users/rplevka","html_url":"https://github.com/rplevka","followers_url":"https://api.github.com/users/rplevka/followers","following_url":"https://api.github.com/users/rplevka/following{/other_user}","gists_url":"https://api.github.com/users/rplevka/gists{/gist_id}","starred_url":"https://api.github.com/users/rplevka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rplevka/subscriptions","organizations_url":"https://api.github.com/users/rplevka/orgs","repos_url":"https://api.github.com/users/rplevka/repos","events_url":"https://api.github.com/users/rplevka/events{/privacy}","received_events_url":"https://api.github.com/users/rplevka/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T21:57:50Z","updated_at":"2016-02-24T21:57:50Z","body":"@elyezer: that's right!"}}