Public bug reported:

LOG:
DEBUG neutron.common.config [-] command line: 
/opt/stack/neutron/.tox/dsvm-functional/bin/neutron-keepalived-state-change 
--router_id=82ec666b-621b-4e70-bac1-f43f325540f8 
--namespace=snat-82ec666b-621b-4e70-bac1-f43f325540f8@agent1 
--conf_dir=/tmp/tmp9_bn0tg1/tmpd9zia3km/ha_confs/82ec666b-621b-4e70-bac1-f43f325540f8
 
--log-file=/tmp/tmp9_bn0tg1/tmpd9zia3km/ha_confs/82ec666b-621b-4e70-bac1-f43f325540f8/82ec666b-621b-4e70-bac1-f43f325540f8_state_change.log
 --monitor_interface=ha-76979d9f-9f --monitor_cidr=169.254.0.14/24 
--pid_file=/tmp/tmp9_bn0tg1/tmpd9zia3km/external/pids/82ec666b-621b-4e70-bac1-f43f325540f8.monitor.pid
 --state_path=/tmp/tmp9_bn0tg1/tmpd9zia3km --user=1000 --group=1000 
--AGENT-root_helper=sudo 
/opt/stack/neutron/.tox/dsvm-functional/bin/neutron-rootwrap 
/opt/stack/neutron/.tox/dsvm-functional/etc/neutron/rootwrap.conf 
--AGENT-root_helper_daemon=sudo 
/opt/stack/neutron/.tox/dsvm-functional/bin/neutron-rootwrap-daemon 
/opt/stack/neutron/.tox/dsvm-functional/etc/neutron/rootwrap.conf {{(pid=12369) 
setup_logging 
/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/common/config.py:103}}
CRITICAL neutron [-] Unhandled error: TypeError: unsupported operand type(s) 
for %: 'bytes' and 'int'
ERROR neutron Traceback (most recent call last):
ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/bin/neutron-keepalived-state-change", 
line 10, in <module>
ERROR neutron     sys.exit(main())
ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/cmd/keepalived_state_change.py",
 line 19, in main
ERROR neutron     keepalived_state_change.main()
ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/agent/l3/keepalived_state_change.py",
 line 178, in main
ERROR neutron     cfg.CONF.monitor_cidr).start()
ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/agent/linux/daemon.py",
 line 247, in start
ERROR neutron     self.daemonize()
ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/agent/linux/daemon.py",
 line 228, in daemonize
ERROR neutron     self.pidfile.write(os.getpid())
ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/agent/linux/daemon.py",
 line 139, in write
ERROR neutron     os.write(self.fd, b"%d" % pid)
ERROR neutron TypeError: unsupported operand type(s) for %: 'bytes' and 'int'
ERROR neutron

** Affects: neutron
     Importance: Undecided
     Assignee: LIU Yulong (dragon889)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => LIU Yulong (dragon889)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1822155

Title:
  neutron-keepalived-state-change can not start on some python3 distro

Status in neutron:
  New

Bug description:
  LOG:
  DEBUG neutron.common.config [-] command line: 
/opt/stack/neutron/.tox/dsvm-functional/bin/neutron-keepalived-state-change 
--router_id=82ec666b-621b-4e70-bac1-f43f325540f8 
--namespace=snat-82ec666b-621b-4e70-bac1-f43f325540f8@agent1 
--conf_dir=/tmp/tmp9_bn0tg1/tmpd9zia3km/ha_confs/82ec666b-621b-4e70-bac1-f43f325540f8
 
--log-file=/tmp/tmp9_bn0tg1/tmpd9zia3km/ha_confs/82ec666b-621b-4e70-bac1-f43f325540f8/82ec666b-621b-4e70-bac1-f43f325540f8_state_change.log
 --monitor_interface=ha-76979d9f-9f --monitor_cidr=169.254.0.14/24 
--pid_file=/tmp/tmp9_bn0tg1/tmpd9zia3km/external/pids/82ec666b-621b-4e70-bac1-f43f325540f8.monitor.pid
 --state_path=/tmp/tmp9_bn0tg1/tmpd9zia3km --user=1000 --group=1000 
--AGENT-root_helper=sudo 
/opt/stack/neutron/.tox/dsvm-functional/bin/neutron-rootwrap 
/opt/stack/neutron/.tox/dsvm-functional/etc/neutron/rootwrap.conf 
--AGENT-root_helper_daemon=sudo 
/opt/stack/neutron/.tox/dsvm-functional/bin/neutron-rootwrap-daemon 
/opt/stack/neutron/.tox/dsvm-functional/etc/neutron/rootwrap.conf {{(pid=12369) 
setup_logging 
/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/common/config.py:103}}
  CRITICAL neutron [-] Unhandled error: TypeError: unsupported operand type(s) 
for %: 'bytes' and 'int'
  ERROR neutron Traceback (most recent call last):
  ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/bin/neutron-keepalived-state-change", 
line 10, in <module>
  ERROR neutron     sys.exit(main())
  ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/cmd/keepalived_state_change.py",
 line 19, in main
  ERROR neutron     keepalived_state_change.main()
  ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/agent/l3/keepalived_state_change.py",
 line 178, in main
  ERROR neutron     cfg.CONF.monitor_cidr).start()
  ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/agent/linux/daemon.py",
 line 247, in start
  ERROR neutron     self.daemonize()
  ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/agent/linux/daemon.py",
 line 228, in daemonize
  ERROR neutron     self.pidfile.write(os.getpid())
  ERROR neutron   File 
"/opt/stack/neutron/.tox/dsvm-functional/lib/python3.4/site-packages/neutron/agent/linux/daemon.py",
 line 139, in write
  ERROR neutron     os.write(self.fd, b"%d" % pid)
  ERROR neutron TypeError: unsupported operand type(s) for %: 'bytes' and 'int'
  ERROR neutron

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1822155/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to