Fail in TypeError while run neutron with python 3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
fumihiko kakuma |
Bug Description
I run neutron with python 3 on my host using devstack[1].
I got the following error while I run stack.sh.
This is because Popen.communicate() returns oputput data as bytes type in python 3.
[1] https:/
2015-07-28 06:24:25.710 | + neutron-ovs-cleanup
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 CRITICAL neutron [-] TypeError: expected bytes, bytearray or buffer compatible object
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron Traceback (most recent call last):
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron File "/usr/local/
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron sys.exit(main())
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron File "/opt/stack/
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron ovs_bridges = set(ovs.
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron File "/opt/stack/
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron return self.ovsdb.
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron File "/opt/stack/
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron txn.add(self)
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron File "/opt/stack/
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron self.result = self.commit()
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron File "/opt/stack/
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron res = res.replace(r'\\', '\\').splitlines()
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron TypeError: expected bytes, bytearray or buffer compatible object
2015-07-28 06:24:26.278 | 2015-07-28 06:24:26.276 4722 ERROR neutron
2015-07-28 06:24:26.351 | + exit_trap
2015-07-28 06:24:26.351 | + local r=1
2015-07-28 06:24:26.351 | ++ jobs -p
Changed in neutron: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-3 → 7.0.0 |
Fix proposed to branch: master /review. openstack. org/208848
Review: https:/