Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INF-202

[meta-stx][deplux][networking] failed to work with vlan

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • None

      Steps to reproduce:

      1. install controller-0
      2. run ansible bootstrap
      3. configure controller-0 after bootstrap and adding vlan interfaces:
      source /etc/platform/openrc
      OAM_IF=eno3
      MGMT_IF=eno1
      system host-if-modify controller-0 lo -c none
      IFNET_UUIDS=$(system interface-network-list controller-0 | awk '{if ($6=="lo") print $4;}')
      for UUID in $IFNET_UUIDS; do
          system interface-network-remove ${UUID}
      done
      
      system host-if-modify controller-0 $OAM_IF -n oam0
      system host-if-modify controller-0 $MGMT_IF -n pxeboot0
      
      system host-if-modify controller-0 oam0 -c platform/
      system interface-network-assign controller-0 oam0 oam
      
      system host-if-modify controller-0 pxeboot0 -c platform
      system interface-network-assign controller-0  pxeboot0 pxeboot
      
      system host-if-add         -V 18 controller-0 mgmt0 vlan pxeboot0
      system interface-network-assign controller-0 mgmt0 mgmt
      
      system host-if-add         -V 19 controller-0 cluster0 vlan pxeboot0
      system interface-network-assign controller-0 cluster0 cluster-host
      
      system ntp-modify ntpservers=ntp-1.wrs.com
      
      echo ">>> Add OSDs to primary tier"
      system host-disk-list controller-0
      system host-disk-list controller-0 | awk '/\/dev\/sdb/{print $2}' | xargs -i system host-stor-add controller-0 {}
      system host-disk-list controller-0 | awk '/\/dev\/sdc/{print $2}' | xargs -i system host-stor-add controller-0 {}
      system host-stor-list controller-0
      system host-unlock controller-0
      

      4. controller-0 will be rebooted after unlock but failed with:

      [  669.939844] controller_config[12586]: [ERROR]
      [  669.947240] controller_config[12586]: Errors found. See /var/log/puppet/2020-11-13-05-29-32_controller/puppet.log for details
      [  669.961126] controller_config[12586]: *****************************************************
      [  669.970897] controller_config[12586]: *****************************************************
      [  669.980901] controller_config[12586]: Failed to run the puppet manifest (RC:1)
      [  669.990902] controller_config[12586]: *****************************************************
      [  670.000874] controller_config[12586]: *****************************************************
      [  670.010834] controller_config[12586]: Pausing for 5 seconds...
      
      

      error in puppet.log:

      controller-0:~# grep Error: /var/log/puppet/2020-11-13-05-29-32_controller/puppet.log
      2020-11-13T05:34:47.999 Error: ip addr replace 192.168.206.1/24 dev vlan19  returned 1 instead of one of [0]
      2020-11-13T05:34:48.363 Error: /Stage[main]/Platform::Addresses/Network_address[cluster-host]/Exec[Configuring cluster-host IP address]/returns: change from notrun to 0 failed: ip addr replace 192.168.206.1/24 dev vlan19  returned 1 instead of one of [0]
      2020-11-13T05:34:48.418 Error: ip addr replace 192.168.18.2/24 dev vlan18  returned 1 instead of one of [0]
      2020-11-13T05:34:48.798 Error: /Stage[main]/Platform::Addresses/Network_address[mgmt]/Exec[Configuring mgmt IP address]/returns: change from notrun to 0 failed: ip addr replace 192.168.18.2/24 dev vlan18  returned 1 instead of one of [0]
      
      

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jackiehjm Jackie Huang
            jackiehjm Jackie Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: