Skip to content

Commit

Permalink
Import os-ken 2.8.1 source.
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmoguy committed May 16, 2024
1 parent f646c11 commit fce35f3
Show file tree
Hide file tree
Showing 27 changed files with 389 additions and 47 deletions.
7 changes: 4 additions & 3 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
- check-requirements
check:
jobs:
- tempest-integrated-networking
- neutron-tempest-plugin-dynamic-routing
- neutron-ovs-tempest-dvr
- neutron-tempest-plugin-dynamic-routing:
voting: false
gate:
jobs:
- tempest-integrated-networking
- neutron-ovs-tempest-dvr
2 changes: 1 addition & 1 deletion doc/source/test-vrrp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ And then run OSKen-VRRP::

Here's the helper executable, os_ken-vrrp::

#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2013 Isaku Yamahata <yamahata at valinux co jp>
Expand Down
2 changes: 1 addition & 1 deletion os_ken/cmd/manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright (C) 2011, 2012 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2011 Isaku Yamahata <yamahata at valinux co jp>
Expand Down
2 changes: 1 addition & 1 deletion os_ken/cmd/of_config_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2013 YAMAMOTO Takashi <yamamoto at valinux co jp>
Expand Down
2 changes: 1 addition & 1 deletion os_ken/cmd/ofa_neutron_agent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright (C) 2014 VA Linux Systems Japan K.K.
# All Rights Reserved.
Expand Down
2 changes: 1 addition & 1 deletion os_ken/cmd/rpc_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2013 YAMAMOTO Takashi <yamamoto at valinux co jp>
Expand Down
18 changes: 12 additions & 6 deletions os_ken/tests/integrated/common/docker_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ def sudo(self, cmd, capture=True, try_times=1, interval=1):


class DockerImage(object):
def __init__(self, baseimage='ubuntu:16.04'):
def __init__(self, baseimage='ubuntu:20.04'):
self.baseimage = baseimage
self.cmd = Command()

def get_images(self):
out = self.cmd.sudo('sudo docker images')
out = self.cmd.sudo('docker images')
images = []
for line in out.splitlines()[1:]:
images.append(line.split()[0])
Expand All @@ -171,7 +171,7 @@ def create_quagga(self, tagname='quagga', image=None, check_exist=False):
pkges = ' '.join([
'telnet',
'tcpdump',
'quagga',
'quagga-bgpd',
])
if image:
use_image = image
Expand All @@ -181,7 +181,13 @@ def create_quagga(self, tagname='quagga', image=None, check_exist=False):
c << 'FROM %s' % use_image
c << 'RUN apt-get update'
c << 'RUN apt-get install -qy --no-install-recommends %s' % pkges
c << 'CMD /usr/lib/quagga/bgpd'
c << 'RUN echo "#!/bin/sh" > /bgpd'
c << 'RUN echo mkdir -p /run/quagga >> /bgpd'
c << 'RUN echo chmod 755 /run/quagga >> /bgpd'
c << 'RUN echo chown quagga:quagga /run/quagga >> /bgpd'
c << 'RUN echo exec /usr/sbin/bgpd >> /bgpd'
c << 'RUN chmod +x /bgpd'
c << 'CMD /bgpd'

self.cmd.sudo('rm -rf %s' % workdir)
self.cmd.execute('mkdir -p %s' % workdir)
Expand Down Expand Up @@ -213,8 +219,8 @@ def create_os_ken(self, tagname='os_ken', image=None, check_exist=False):
# might fail if the current directory contains the symlink to
# Docker host file systems.
'&& rm -rf *.egg-info/ build/ dist/ .tox/ *.log'
'&& pip install -r tools/pip-requires -r tools/optional-requires',
'&& python setup.py install',
'&& pip install -r requirements.txt -r test-requirements.txt',
'&& pip install .',
])
c << install

Expand Down
2 changes: 1 addition & 1 deletion os_ken/tests/integrated/run_tests_with_ovs12.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Loading

0 comments on commit fce35f3

Please sign in to comment.