Page MenuHomeDevCentral

Provision IPv6 tunnel configuration for Ysul
ClosedPublic

Authored by dereckson on Oct 20 2017, 15:52.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 00:07
Unknown Object (File)
Mon, Nov 18, 14:36
Unknown Object (File)
Mon, Nov 18, 12:51
Unknown Object (File)
Mon, Nov 18, 05:29
Unknown Object (File)
Fri, Nov 15, 17:54
Unknown Object (File)
Fri, Nov 15, 14:40
Unknown Object (File)
Fri, Nov 15, 14:11
Unknown Object (File)
Mon, Nov 11, 09:32
Subscribers
None

Details

Summary

The network core state now will check if we want an IPv6 tunnel
in the node definition.

A follow-up change should replace the pillar.get call by a method
fetching a property for the current node.

Ref T1273

Test Plan
Ysul
$ salt-call --local state.apply roles/core/network
local:                                                                                             
----------                                                                                     
          ID: network_ipv6                                                                   
    Function: file.managed                                                                                     
        Name: /usr/local/sbin/ipv6-setup-tunnel                                        
      Result: True                                                                         
     Comment: File /usr/local/sbin/ipv6-setup-tunnel updated                         
     Started: 15:15:39.243453                                                                           
    Duration: 127.683 ms                                                                                        
     Changes:                                                                                                                             
              ----------                                                                      
              diff:                                                                                                             
                  New file                                                                      
              mode:                                                                                    
                  0755                                                                                                                                                                      
                                                                                       
Summary for local                                                                                                                                           
------------                                                                                                                                        
Succeeded: 1 (changed=1)                                                            
Failed:    0                                                                                                                              
------------                                                                                  
Total states run:     1                                                                                        
Total run time: 127.683 ms
$ rehash
$ ipv6-setup-tunnel
add net default: gateway 2001:470:1f12:9e1::1
$ salt-call --local state.apply roles/core/network             
local:                                                                                                  
----------                                                                       
          ID: network_ipv6                                                                                                                                                                                       
    Function: file.managed                                                        
        Name: /usr/local/sbin/ipv6-setup-tunnel                                                         
      Result: True                                                                                      
     Comment: File /usr/local/sbin/ipv6-setup-tunnel is in the correct state                            
     Started: 15:34:03.843976                                                                           
    Duration: 122.35 ms                                                                    
     Changes:                                                                                           
                                                                                 
Summary for local                                                                                       
------------
Succeeded: 1
Failed:    0
------------
Total states run:     1
Total run time: 122.350 ms
orin.dereckson.drake
$ ping -6 ysul.nasqueron.org
PING ysul.nasqueron.org(ysul.nasqueron.org (2001:470:1f13:9e1:0:c0ff:ee:1)) 56 data bytes
64 bytes from ysul.nasqueron.org (2001:470:1f13:9e1:0:c0ff:ee:1): icmp_seq=1 ttl=62 time=26.3 ms
64 bytes from ysul.nasqueron.org (2001:470:1f13:9e1:0:c0ff:ee:1): icmp_seq=2 ttl=62 time=25.2 ms

If the IPv6 option isn't set or set at False

The state is correctly ignored.

Ysul
$ salt-call --local state.apply roles/core/network
local:                                                                                     
                                                                                
Summary for local                                                                 
-----------                                                                       
Succeeded: 0                                                                                                                                                                                                     
Failed:   0                                                                                             
-----------                                                                                             
Total states run:    0                                                                                  
Total run time:  0.000 ms

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Oct 20 2017, 15:57
This revision was automatically updated to reflect the committed changes.