Public bug reported:
The error is as follows.
(py34) helion@heat-sl2:/opt/stack/new/neutron$ neutron-ovs-cleanup
Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward
compatibility. SIGUSR1 will no longer be registered in a future release, so
please use SIGUSR2 to generate reports.
2016-07-07 18:56:12.516 33407 INFO neutron.common.config [-] Logging enabled!
2016-07-07 18:56:12.516 33407 INFO neutron.common.config [-]
/usr/local/bin/neutron-ovs-cleanup version 9.0.0.0b2.dev266
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands [-]
Error executing command
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
Traceback (most recent call last):
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/commands.py", line 35, in
execute
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
txn.add(self)
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands File
"/opt/stack/new/neutron/neutron/agent/ovsdb/api.py", line 76, in __exit__
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
self.result = self.commit()
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands File
"/opt/stack/new/neutron/neutron/agent/ovsdb/impl_idl.py", line 56, in commit
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
self.ovsdb_connection.queue_txn(self)
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/connection.py", line 123, in
queue_txn
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
self.txns.put(txn)
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/connection.py", line 47, in
put
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
self.alertout.write('X')
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
TypeError: 'str' does not support the buffer interface
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
2016-07-07 18:56:12.884 33407 CRITICAL neutron [-] TypeError: 'str' does not
support the buffer interface
2016-07-07 18:56:12.884 33407 ERROR neutron Traceback (most recent call last):
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/usr/local/bin/neutron-ovs-cleanup", line 10, in <module>
2016-07-07 18:56:12.884 33407 ERROR neutron sys.exit(main())
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/cmd/ovs_cleanup.py", line 88, in main
2016-07-07 18:56:12.884 33407 ERROR neutron ovs_bridges =
set(ovs.get_bridges())
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/common/ovs_lib.py", line 142, in
get_bridges
2016-07-07 18:56:12.884 33407 ERROR neutron return
self.ovsdb.list_br().execute(check_error=True)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/commands.py", line 42, in
execute
2016-07-07 18:56:12.884 33407 ERROR neutron ctx.reraise = False
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/usr/local/lib/python3.4/dist-packages/oslo_utils/excutils.py", line 221, in
__exit__
2016-07-07 18:56:12.884 33407 ERROR neutron self.force_reraise()
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/usr/local/lib/python3.4/dist-packages/oslo_utils/excutils.py", line 197, in
force_reraise
2016-07-07 18:56:12.884 33407 ERROR neutron six.reraise(self.type_,
self.value, self.tb)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/usr/local/lib/python3.4/dist-packages/six.py", line 686, in reraise
2016-07-07 18:56:12.884 33407 ERROR neutron raise value
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/commands.py", line 35, in
execute
2016-07-07 18:56:12.884 33407 ERROR neutron txn.add(self)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/api.py", line 76, in __exit__
2016-07-07 18:56:12.884 33407 ERROR neutron self.result = self.commit()
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/impl_idl.py", line 56, in commit
2016-07-07 18:56:12.884 33407 ERROR neutron
self.ovsdb_connection.queue_txn(self)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/connection.py", line 123, in
queue_txn
2016-07-07 18:56:12.884 33407 ERROR neutron self.txns.put(txn)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/connection.py", line 47, in
put
2016-07-07 18:56:12.884 33407 ERROR neutron self.alertout.write('X')
2016-07-07 18:56:12.884 33407 ERROR neutron TypeError: 'str' does not support
the buffer interface
2016-07-07 18:56:12.884 33407 ERROR neutron
A bytestring needs to be written instead when a file is opened in binary mode
for writing.
** Affects: neutron
Importance: Undecided
Assignee: Sirushti Murugesan (sirushtim)
Status: New
** Changed in: neutron
Assignee: (unassigned) => Sirushti Murugesan (sirushtim)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1599964
Title:
neutron-ovs-cleanup fails in python 3
Status in neutron:
New
Bug description:
The error is as follows.
(py34) helion@heat-sl2:/opt/stack/new/neutron$ neutron-ovs-cleanup
Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward
compatibility. SIGUSR1 will no longer be registered in a future release, so
please use SIGUSR2 to generate reports.
2016-07-07 18:56:12.516 33407 INFO neutron.common.config [-] Logging enabled!
2016-07-07 18:56:12.516 33407 INFO neutron.common.config [-]
/usr/local/bin/neutron-ovs-cleanup version 9.0.0.0b2.dev266
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands [-]
Error executing command
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
Traceback (most recent call last):
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
File "/opt/stack/new/neutron/neutron/agent/ovsdb/native/commands.py", line 35,
in execute
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
txn.add(self)
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
File "/opt/stack/new/neutron/neutron/agent/ovsdb/api.py", line 76, in __exit__
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
self.result = self.commit()
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
File "/opt/stack/new/neutron/neutron/agent/ovsdb/impl_idl.py", line 56, in
commit
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
self.ovsdb_connection.queue_txn(self)
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
File "/opt/stack/new/neutron/neutron/agent/ovsdb/native/connection.py", line
123, in queue_txn
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
self.txns.put(txn)
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
File "/opt/stack/new/neutron/neutron/agent/ovsdb/native/connection.py", line
47, in put
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
self.alertout.write('X')
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
TypeError: 'str' does not support the buffer interface
2016-07-07 18:56:12.881 33407 ERROR neutron.agent.ovsdb.native.commands
2016-07-07 18:56:12.884 33407 CRITICAL neutron [-] TypeError: 'str' does not
support the buffer interface
2016-07-07 18:56:12.884 33407 ERROR neutron Traceback (most recent call last):
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/usr/local/bin/neutron-ovs-cleanup", line 10, in <module>
2016-07-07 18:56:12.884 33407 ERROR neutron sys.exit(main())
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/cmd/ovs_cleanup.py", line 88, in main
2016-07-07 18:56:12.884 33407 ERROR neutron ovs_bridges =
set(ovs.get_bridges())
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/common/ovs_lib.py", line 142, in
get_bridges
2016-07-07 18:56:12.884 33407 ERROR neutron return
self.ovsdb.list_br().execute(check_error=True)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/commands.py", line 42, in
execute
2016-07-07 18:56:12.884 33407 ERROR neutron ctx.reraise = False
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/usr/local/lib/python3.4/dist-packages/oslo_utils/excutils.py", line 221, in
__exit__
2016-07-07 18:56:12.884 33407 ERROR neutron self.force_reraise()
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/usr/local/lib/python3.4/dist-packages/oslo_utils/excutils.py", line 197, in
force_reraise
2016-07-07 18:56:12.884 33407 ERROR neutron six.reraise(self.type_,
self.value, self.tb)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/usr/local/lib/python3.4/dist-packages/six.py", line 686, in reraise
2016-07-07 18:56:12.884 33407 ERROR neutron raise value
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/commands.py", line 35, in
execute
2016-07-07 18:56:12.884 33407 ERROR neutron txn.add(self)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/api.py", line 76, in __exit__
2016-07-07 18:56:12.884 33407 ERROR neutron self.result = self.commit()
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/impl_idl.py", line 56, in commit
2016-07-07 18:56:12.884 33407 ERROR neutron
self.ovsdb_connection.queue_txn(self)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/connection.py", line 123, in
queue_txn
2016-07-07 18:56:12.884 33407 ERROR neutron self.txns.put(txn)
2016-07-07 18:56:12.884 33407 ERROR neutron File
"/opt/stack/new/neutron/neutron/agent/ovsdb/native/connection.py", line 47, in
put
2016-07-07 18:56:12.884 33407 ERROR neutron self.alertout.write('X')
2016-07-07 18:56:12.884 33407 ERROR neutron TypeError: 'str' does not support
the buffer interface
2016-07-07 18:56:12.884 33407 ERROR neutron
A bytestring needs to be written instead when a file is opened in binary mode
for writing.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1599964/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp