--- Begin Message ---
----- Le 26 Juin 23, à 10:32, DERUMIER, Alexandre
[email protected] a écrit :
>
>>>Most of the installation went fine, except a few minor issues (like :
>>>had to create /run/network dir manually, as ifupdown2 would fail its
>>>installation and prevent some other package to install)
>
> mmm, this is strange, ifupdown2 is creating the directory at service
> start
>
>
> /usr/share/ifupdown2/sbin/start-networking: [ ! -e /run/network ]
> && mkdir -p /run/network &>/dev/null
The directory must exists during package config, I guess before the service is
started
>
>>>Anyway, now most things are working, except I cannot update network
>>>configuration (nor can I apply SDN changes). If I run ifreload -a I
> get
>
>>>root@maurice:~# ifreload -a
>>>error: name 'traceback' is not defined
>
> seem to be a missing python lib
>
> (just to be sure , what is the output of "ifreload -a -d" ) ?
Attached is the result of the command with debug.
>
> python3 is installed right ?
>
> dpkg -l|grep python ?
Yes, python3.11 is installed. Attached is the result of the dpkg command
> (maybe the /run/network is not created, because ifupdown2 is crashing)
/run/network now does exist
--
Daniel Berteaud
root@maurice:~# dpkg -l|grep python
ii frr-pythontools 8.5.1-1+pve1 all
FRRouting suite - Python tools
ii libpython3-dev:amd64 3.11.2-1+b1 amd64
header files and a static library for Python (default)
ii libpython3-stdlib:amd64 3.11.2-1+b1 amd64
interactive high-level object-oriented language (default python3 version)
ii libpython3.11:amd64 3.11.2-6 amd64
Shared Python runtime library (version 3.11)
ii libpython3.11-dev:amd64 3.11.2-6 amd64
Header files and a static library for Python (v3.11)
ii libpython3.11-minimal:amd64 3.11.2-6 amd64
Minimal subset of the Python language (version 3.11)
ii libpython3.11-stdlib:amd64 3.11.2-6 amd64
Interactive high-level object-oriented language (standard library, version
3.11)
ii python-apt-common 2.6.0 all
Python interface to libapt-pkg (locales)
ii python3 3.11.2-1+b1 amd64
interactive high-level object-oriented language (default python3 version)
ii python3-apt 2.6.0 amd64
Python 3 interface to libapt-pkg
ii python3-attr 22.2.0-1 all
Attributes without boilerplate (Python 3)
ii python3-blinker 1.5-1 all
Fast, simple object-to-object and broadcast signaling (Python3)
ii python3-boto3 1.26.27+dfsg-1 all
Python interface to Amazon's Web Services - Python 3.x
ii python3-botocore 1.29.27+repack-1 all
Low-level, data-driven core of boto 3 (Python 3)
ii python3-bs4 4.11.2-2 all
error-tolerant HTML parser for Python 3
ii python3-cached-property 1.5.2-1 all
Provides cached-property for decorating methods in classes (Python 3)
ii python3-ceph-argparse 16.2.11+ds-2 amd64
Python 3 utility libraries for Ceph CLI
ii python3-ceph-common 16.2.11+ds-2 all
Python 3 utility libraries for Ceph
ii python3-cephfs 16.2.11+ds-2 amd64
Python 3 libraries for the Ceph libcephfs library
ii python3-certifi 2022.9.24-1 all
root certificates for validating SSL certs and verifying TLS hosts
(python3)
ii python3-cffi-backend:amd64 1.15.1-5+b1 amd64
Foreign Function Interface for Python 3 calling C code - runtime
ii python3-chardet 5.1.0+dfsg-2 all
Universal Character Encoding Detector (Python3)
ii python3-charset-normalizer 3.0.1-2 all
charset, encoding and language detection (Python 3)
ii python3-click 8.1.3-2 all
Wrapper around optparse for command line utilities - Python 3.x
ii python3-colorama 0.4.6-2 all
Cross-platform colored terminal text in Python - Python 3.x
ii python3-configobj 5.0.8-1 all
simple but powerful config file reader and writer for Python 3
ii python3-cryptography 38.0.4-3 amd64
Python library exposing cryptographic recipes and primitives (Python 3)
ii python3-dateutil 2.8.2-2 all
powerful extensions to the standard Python 3 datetime module
ii python3-dbus 1.3.2-4+b1 amd64
simple interprocess messaging system (Python 3 interface)
ii python3-debconf 1.5.82 all
interact with debconf from Python 3
ii python3-debian 0.1.49 all
Python 3 modules to work with Debian-related data formats
ii python3-debianbts 4.0.1 all
Python interface to Debian's Bug Tracking System
ii python3-defusedxml 0.7.1-2 all
XML bomb protection for Python stdlib modules (for Python 3)
ii python3-dev 3.11.2-1+b1 amd64
header files and a static library for Python (default)
ii python3-distro-info 1.5 all
information about distributions' releases (Python 3 module)
ii python3-distutils 3.11.2-3 all
distutils package for Python 3.x
ii python3-filelock 3.9.0-1 all
platform independent file locking module
ii python3-freezegun 1.2.1+actually1.2.1-1 all
Python3 library to mock the datetime module in unit testing
ii python3-gpg 1.18.0-3+b1 amd64
Python interface to the GPGME GnuPG encryption library (Python 3)
ii python3-html5lib 1.1-3 all
HTML parser/tokenizer based on the WHATWG HTML5 specification
ii python3-httplib2 0.20.4-3 all
comprehensive HTTP client library written for Python3
ii python3-idna 3.3-1 all
Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-importlib-metadata 4.12.0-1 all
library to access the metadata for a Python package - Python 3.x
ii python3-isodate 0.6.1-1 all
ISO 8601 date/time/duration parser and formatter (Python 3 module)
ii python3-jinja2 3.1.2-1 all
small but fast and easy to use stand-alone template engine
ii python3-jmespath 1.0.1-1 all
JSON Matching Expressions (Python 3)
ii python3-json-pointer 2.3-2 all
resolve JSON pointers - Python 3.x
ii python3-jsonpatch 1.32-2 all
library to apply JSON patches - Python 3.x
ii python3-jsonschema 4.10.3-1 all
An(other) implementation of JSON Schema (Draft 3, 4, 6, 7)
ii python3-jwt 2.6.0-1 all
Python 3 implementation of JSON Web Token
ii python3-ldb 2:2.6.2+samba4.17.8+dfsg-2 amd64
Python 3 bindings for LDB
ii python3-lexicon 3.11.7-1 all
Manipulate DNS records on various DNS providers (Python 3)
ii python3-lib2to3 3.11.2-3 all
Interactive high-level object-oriented language (lib2to3)
ii python3-lxml:amd64 4.9.2-1+b1 amd64
pythonic binding for the libxml2 and libxslt libraries
ii python3-markdown-it 2.1.0-5 all
Python port of markdown-it and some its associated plugins
ii python3-markupsafe 2.1.2-1+b1 amd64
HTML/XHTML/XML string library
ii python3-mdurl 0.1.2-1 all
Python port of the JavaScript mdurl package
ii python3-minimal 3.11.2-1+b1 amd64
minimal subset of the Python language (default python3 version)
ii python3-more-itertools 8.10.0-2 all
library with routines for operating on iterables, beyond itertools (Python
3)
ii python3-netifaces:amd64 0.11.0-2+b1 amd64
portable network interface information - Python 3.x
ii python3-oauthlib 3.2.2-1 all
generic, spec-compliant implementation of OAuth for Python3
ii python3-openvswitch 3.1.0-2 amd64
Python 3 bindings for Open vSwitch
ii python3-pip 23.0.1+dfsg-1 all
Python package installer
ii python3-pkg-resources 66.1.1-1 all
Package Discovery and Resource Access using pkg_resources
ii python3-platformdirs 2.6.0-1 all
determining appropriate platform-specific directories (Python 3)
ii python3-prettytable 3.6.0-1 all
library to represent tabular data in visually appealing ASCII tables
(Python3)
ii python3-prompt-toolkit 3.0.36-2 all
library for building interactive command lines (Python 3)
ii python3-protobuf 3.21.12-3 amd64
Python 3 bindings for protocol buffers
ii python3-pycurl 7.45.2-3 amd64
Python bindings to libcurl (Python 3)
ii python3-pygments 2.14.0+dfsg-1 all
syntax highlighting package written in Python 3
ii python3-pyparsing 3.0.9-1 all
alternative to creating and executing simple grammars - Python 3.x
ii python3-pyrsistent:amd64 0.18.1-1+b3 amd64
persistent/functional/immutable data structures for Python
ii python3-pysimplesoap 1.16.2-5 all
simple and lightweight SOAP Library (Python 3)
ii python3-rados 16.2.11+ds-2 amd64
Python 3 libraries for the Ceph librados library
ii python3-rbd 16.2.11+ds-2 amd64
Python 3 libraries for the Ceph librbd library
ii python3-reportbug 12.0.0 all
Python modules for interacting with bug tracking systems
ii python3-requests 2.28.1+dfsg-1 all
elegant and simple HTTP library for Python3, built for human beings
ii python3-requests-file 1.5.1-1 all
File transport adapter for Requests - Python 3.X
ii python3-requests-toolbelt 0.10.1-1 all
Utility belt for advanced users of python3-requests
ii python3-rich 13.3.1-1 all
render rich text, tables, progress bars, syntax highlighting, markdown and
more
ii python3-s3transfer 0.6.0-1 all
Amazon S3 Transfer Manager for Python3
ii python3-samba 2:4.17.8+dfsg-2 amd64
Python 3 bindings for Samba
ii python3-serial 3.5-1.1 all
pyserial - module encapsulating access for the serial port
ii python3-setuptools 66.1.1-1 all
Python3 Distutils Enhancements
ii python3-six 1.16.0-4 all
Python 2 and 3 compatibility library
ii python3-softlayer 6.1.4-1 all
Python client for SoftLayer API (Python 3)
ii python3-sortedcontainers 2.4.0-2 all
sorted container types: SortedList, SortedDict, and SortedSet (Python 3)
ii python3-soupsieve 2.3.2-1 all
modern CSS selector implementation for BeautifulSoup (Python 3)
ii python3-systemd 235-1+b2 amd64
Python 3 bindings for systemd
ii python3-talloc:amd64 2.4.0-f2 amd64
hierarchical pool based memory allocator - Python3 bindings
ii python3-tdb 1.4.8-2 amd64
Python3 bindings for TDB
ii python3-tldextract 3.1.2-2 all
Python library for separating TLDs
ii python3-tz 2022.7.1-4 all
Python3 version of the Olson timezone database
ii python3-urllib3 1.26.12-1 all
HTTP library with thread-safe connection pooling for Python3
ii python3-wcwidth 0.2.5+dfsg1-1.1 all
determine printable width of a string on a terminal
ii python3-webencodings 0.5.1-5 all
Python implementation of the WHATWG Encoding standard
ii python3-wheel 0.38.4-2 all
built-package format for Python
ii python3-yaml 6.0-3+b2 amd64
YAML parser and emitter for Python3
ii python3-zeep 4.2.1-1 all
Modern SOAP client library (Python 3)
ii python3-zipp 1.0.0-6 all
pathlib-compatible Zipfile object wrapper - Python 3.x
ii python3.11 3.11.2-6 amd64
Interactive high-level object-oriented language (version 3.11)
ii python3.11-dev 3.11.2-6 amd64
Header files and a static library for Python (v3.11)
ii python3.11-minimal 3.11.2-6 amd64
Minimal subset of the Python language (version 3.11)
root@maurice:~# ifreload -a -d
debug: args = Namespace(all=True, currentlyup=False, CLASS=None, iflist=[],
noact=False, verbose=False, debug=True, withdepends=False, perfmode=False,
nocache=False, excludepats=None, usecurrentconfig=False, syslog=False,
systemd=False, f
orce=False, syntaxcheck=False, version=None, nldebug=False)
debug: creating ifupdown object ..
info: requesting link dump
info: requesting address dump
info: requesting netconf dump
debug: nlcache: reset errorq
debug: {'enable_persistent_debug_logging': 'yes', 'use_daemon': 'no',
'template_enable': '1', 'template_engine': 'mako', 'template_lookuppath':
'/etc/network/ifupdown2/templates', 'default_interfaces_configfile':
'/etc/network/interfaces'
, 'disable_cli_interfacesfile': '0', 'addon_syntax_check': '0',
'addon_scripts_support': '1', 'addon_python_modules_support': '1',
'multiple_vlan_aware_bridge_support': '1', 'ifquery_check_success_str': 'pass',
'ifquery_check_error_str':
'fail', 'ifquery_check_unknown_str': '', 'ifquery_ifacename_expand_range': '0',
'link_master_slave': '1', 'delay_admin_state_change': '0',
'ifreload_down_changed': '0', 'addr_config_squash': '0', 'ifaceobj_squash':
'0', 'adjust_logical_de
v_mtu': '1', 'state_dir': '/run/network/'}
info: loading builtin modules from ['/usr/share/ifupdown2/addons']
info: module ppp not loaded (module init failed: no /usr/bin/pon found)
info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl
found)
debug: bridge: using reserved vlan range (0, 0)
debug: bridge: init: warn_on_untagged_bridge_absence=False
debug: bridge: init: vxlan_bridge_default_igmp_snooping=None
debug: bridge: init: arp_nd_suppress_only_on_vxlan=False
debug: bridge: init: bridge_always_up_dummy_brport=None
info: executing /sbin/sysctl net.bridge.bridge-allow-multiple-vlans
debug: bridge: init: multiple vlans allowed True
info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)
info: executing /bin/ip rule show
info: executing /bin/ip -6 rule show
info: address: using default mtu 1500
info: address: max_mtu undefined
info: executing /sbin/sysctl net.ipv6.conf.all.accept_ra
info: executing /sbin/sysctl net.ipv6.conf.all.autoconf
info: executing /usr/sbin/ip vrf id
info: mgmt vrf_context = False
debug: dhclient: dhclient_retry_on_failure set to 0
info: executing /bin/ip addr help
info: address metric support: OK
info: module ppp not loaded (module init failed: no /usr/bin/pon found)
info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)
info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl
found)
info: looking for user scripts under /etc/network
info: loading scripts under /etc/network/if-pre-up.d ...
info: loading scripts under /etc/network/if-up.d ...
info: loading scripts under /etc/network/if-post-up.d ...
info: loading scripts under /etc/network/if-pre-down.d ...
info: loading scripts under /etc/network/if-down.d ...
info: loading scripts under /etc/network/if-post-down.d ...
info: 'link_master_slave' is set. slave admin state changes will be delayed
till the masters admin state change.
info: using mgmt iface default prefix eth
debug: reloading interface config ..
info: processing interfaces file /etc/network/interfaces
debug: processing sourced line ..'source /etc/network/interfaces.d/*'
info: processing interfaces file /etc/network/interfaces.d/sdn
debug: populate_dependency_info: deleting blacklisted interface eno2
info: reload: scheduling up on interfaces: ['lo', 'eno1', 'vmbr1', 'vmbr0']
debug: scheduling '['pre-up', 'up', 'post-up']' for ['lo', 'eno1', 'vmbr1',
'vmbr0']
debug: dependency graph {
lo : []
eno1 : []
vmbr1 : []
vmbr0 : []
}
debug: graph roots (interfaces that dont have dependents): ['lo', 'eno1',
'vmbr1', 'vmbr0']
info: lo: running ops ...
debug: lo: pre-up : running module openvswitch
debug: lo: pre-up : running module openvswitch_port
debug: lo: pre-up : running module xfrm
debug: lo: pre-up : running module link
debug: lo: pre-up : running module bond
debug: lo: pre-up : running module vlan
debug: lo: pre-up : running module vxlan
debug: lo: pre-up : running module usercmds
debug: lo: pre-up : running module bridge
debug: lo: pre-up : running module bridgevlan
debug: lo: pre-up : running module tunnel
debug: lo: pre-up : running module vrf
debug: lo: pre-up : running module ethtool
debug: lo: pre-up : running module auto
debug: lo: pre-up : running module address
info: executing /sbin/sysctl net.mpls.conf.lo.input=0
debug: lo: up : running module dhcp
debug: lo: up : running module address
debug: lo: up : running module addressvirtual
debug: lo: up : running module usercmds
debug: lo: up : running script /etc/network/if-up.d/resolved
info: executing /etc/network/if-up.d/resolved
error: name 'traceback' is not defined
info: exit status 1
root@maurice:~#
--- End Message ---