Hide shell output and print a user friendly summary of progress
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Currently when stack.sh is run, it prints 100's of pages of shell commands & their output to the console. This is not too user friendly, because people running it are typically most interested in what it is currently doing at a high level and some kind of indication of progress. Further when errors do occur, the important logs may have been lost in the limited size terminal scrollback.
It would thus be desirable if everything that devstack currently prints to stdout + stderr is instead written to a 'stack.log' file. Then, on stdout it should print something akin to the following
# ./devstack.sh
* Cloning GIT repositories
- 1/10 nova
- 2/10 cinder
- 3/10 quantum
...
* Installing RPMs using YUM
- 1/30 python-pip
- 2/30 libvirt
- 3/30 libvirt-client
...
* Installing Python packages to /usr/lib/
- 1/24 WebOb
- 2/24 ampqlib
- 3/24 boto
....
* Creating database schemas
- 1/10 nova
- 2/10 cinder
- 3/10 quantum
...
* .....
Set VERBOSE=False in localrc and you will get much less output