ovn-org / ovn-kubernetes

A robust Kubernetes networking platform
https://ovn-kubernetes.io/
Apache License 2.0
825 stars 347 forks source link

Install ovs-kubernets ./daemonset.sh error #3487

Closed a576266 closed 1 year ago

a576266 commented 1 year ago

smt@smt:~/ovn/ovn-kubernetes/dist/images$ sudo ./daemonset.sh --image=yusur/ovn-daemonset-f:fullmode --net-cidr=10.244.0.0/16 --svc-cidr=10.96.0.0/16 --gateway-mode="local" --k8s-apiserver=https://192.168.22.56:6443 output_dir: ../yaml image: yusur/ovn-daemonset-f:fullmode ovnkube_image: yusur/ovn-daemonset-f:fullmode imagePullPolicy: IfNotPresent ovn_gateway_mode: local ovn_gateway_opts: enable_ipsec: false ovn_db_replicas: 3 ovn_db_minAvailable: 2 master_loglevel: 4 node_loglevel: 4 db_checker_loglevel: 4 ovn_loglevel_northd: -vconsole:info -vfile:info ovn_loglevel_nb: -vconsole:info -vfile:info ovn_loglevel_sb: -vconsole:info -vfile:info ovn_loglevel_controller: -vconsole:info ovnkube_logfile_maxsize: 100 ovnkube_logfile_maxbackups: 5 ovnkube_logfile_maxage: 5 ovn_acl_logging_rate_limit: 20 ovn_hybrid_overlay_enable: ovn_egress_ip_enable: ovn_egress_ip_healthcheck_port: ovn_egress_firewall_enable: ovn_egress_qos_enable: ovn_disable_ovn_iface_id_ver: false ovn_multi_network_enable: ovn_hybrid_overlay_net_cidr: ovn_disable_snat_multiple_gws: ovn_disable_pkt_mtu_check: ovn_empty_lb_events: ovn_ssl_enable: no ovn_unprivileged_mode: no ovn_nb_raft_election_timer: 1000 ovn_sb_raft_election_timer: 1000 ovn_master_count: 1 ovn_remote_probe_interval: 100000 ovn_monitor_all: ovn_ofctrl_wait_before_clear: ovn_enable_lflow_cache: ovn_lflow_cache_limit: ovn_lflow_cache_limit_kb: ovn_nb_port: 6641 ovn_sb_port: 6642 ovn_nb_raft_port: 6643 ovn_sb_raft_port: 6644 ovn_multicast_enable: ovn_v4_join_subnet: ovn_v6_join_subnet: ovn_netflow_targets: ovn_sflow_targets: ovn_ipfix_targets: ovn_ipfix_sampling: ovn_ipfix_cache_max_flows: ovn_ipfix_cache_active_timeout: ovn_ex_gw_networking_interface: ovnkube_node_mgmt_port_netdev: ovnkube_config_duration_enable: ovnkube_metrics_scale_enable: usage: j2 [-h] [-v] [-f {?,yaml,json,ini,env}] template [data] j2: error: unrecognized arguments: -o ../yaml/ovnkube-node.yaml

Why is there this error, can't j2 use the -o parameter

a576266 commented 1 year ago

I hope someone can tell me that I have tried a lot of things, thank you

a576266 commented 1 year ago

I found the reason because I used snap to download j2 after using snap remove j2 The command execution succeeded