← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1687726] [NEW] sysconfig renderer does not process 'routes' from network_state

 

Public bug reported:

% cat network_static_routes.yaml 
network:
    version: 1
    config:
      - type: physical
        name: interface0
        mac_address: "52:54:00:12:34:00"
        subnets:
              - address: 172.23.31.42/26
                gateway: 172.23.31.2
                type: static
      - type: route
        id: 4
        metric: 0
        destination: 10.0.0.0/12
        gateway: 172.23.31.1
      - type: route
        id: 5
        metric: 0
        destination: 192.168.0.0/16
        gateway: 172.23.31.1
      - type: route
        id: 6
        metric: 1
        destination: 10.200.0.0/16
        gateway: 172.23.31.1

% PYTHONPATH=`pwd` ./tools/net-convert.py --network-data
network_static_routes.yaml --kind yaml --output-kind sysconfig -d target

% find target -type f
target/etc/resolv.conf
target/etc/udev/rules.d/70-persistent-net.rules
target/etc/sysconfig/network-scripts/ifcfg-interface0
target/etc/sysconfig/network

No route-$iface files were generated.

1. no cloud, rendering from in-tree
2. cloud-init master tip

** Affects: cloud-init
     Importance: Undecided
         Status: New


** Tags: centos7

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

Title:
  sysconfig renderer does not process 'routes' from network_state

Status in cloud-init:
  New

Bug description:
  % cat network_static_routes.yaml 
  network:
      version: 1
      config:
        - type: physical
          name: interface0
          mac_address: "52:54:00:12:34:00"
          subnets:
                - address: 172.23.31.42/26
                  gateway: 172.23.31.2
                  type: static
        - type: route
          id: 4
          metric: 0
          destination: 10.0.0.0/12
          gateway: 172.23.31.1
        - type: route
          id: 5
          metric: 0
          destination: 192.168.0.0/16
          gateway: 172.23.31.1
        - type: route
          id: 6
          metric: 1
          destination: 10.200.0.0/16
          gateway: 172.23.31.1

  % PYTHONPATH=`pwd` ./tools/net-convert.py --network-data
  network_static_routes.yaml --kind yaml --output-kind sysconfig -d
  target

  % find target -type f
  target/etc/resolv.conf
  target/etc/udev/rules.d/70-persistent-net.rules
  target/etc/sysconfig/network-scripts/ifcfg-interface0
  target/etc/sysconfig/network

  No route-$iface files were generated.

  1. no cloud, rendering from in-tree
  2. cloud-init master tip

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1687726/+subscriptions


Follow ups