When generating local console scripts, should give user a option to decide whether add –O to ‘executable’, such as /usr/bin/python -O
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Incomplete
|
Undecided
|
lijunli |
Bug Description
Currently, after installing openstack, such as openstack/cinder, all console scripts under /usr/bin have the top one line like “#!/usr/
Below I will take a example using cinder.
Steps to reproduce:
1. compile cinder project to pyo
# python -O -m compileall /usr/lib/
2. rm all .py
#rm –fr `find /usr/lib/
3. restart all cinder services
Excepted result:
4. All cinder services restart successfully
Actual result
3.All cinder services restart failed
If changing ‘/usr/bin/python’ to ‘/usr/bin/python -O’ in all cinder console scripts, then all cinder services will restart successfully.
So, I think when generating console script by pbr, It should give user a option to decide whether to add –O option in ‘executable’.
Changed in pbr: | |
assignee: | nobody → lijunli (lijunli) |
status: | New → In Progress |
Fix proposed to branch: master /review. openstack. org/364759
Review: https:/