Use common function for l3_clear_route lnx provider

Bug #1498478 reported by Stanislav Makar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Low
Stanislav Makar

Bug Description

Use common function for l3_clear_route lnx provider

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/226311

Changed in fuel:
status: Confirmed → In Progress
Stanislav Makar (smakar)
tags: added: feature
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/226311
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=5ecd734285053f0aaea53db8035d042c76ef64e7
Submitter: Jenkins
Branch: master

commit 5ecd734285053f0aaea53db8035d042c76ef64e7
Author: Stanislav Makar <email address hidden>
Date: Tue Sep 22 12:33:01 2015 +0000

    Use common function for l3_clear_route lnx provider

    Change-Id: I0213a8e6b677342086effc2cd3bba689c860cade
    Closes-bug: #1498478

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-library
tags: added: on-verification
Revision history for this message
Stanislav Makar (smakar) wrote :

How to reproduce

root@node-1:~# route | grep defau
default 10.109.1.1 0.0.0.0 UG 0 0 0 br-ex
root@node-1:~# cat t1.pp
l3_clear_route { 'default':
  ensure => 'absent',
  destination => 'default',
  gateway => '10.109.1.2',
  interface => 'br-ex',
}
root@node-1:~# puppet apply t1.pp
Notice: Compiled catalog for node-1.test.domain.local in environment production in 0.03 seconds
Notice: /Stage[main]/Main/L3_clear_route[default]/ensure: removed
Notice: Finished catalog run in 0.59 seconds
root@node-1:~# route | grep defau
root@node-1:~#

Revision history for this message
Mikhail Samoylov (msamoylov) wrote :

It was checked in fuel ver.
release_versions:
  2015.1.0-8.0:
    VERSION:
      api: '1.0'
      astute_sha: 959b06c5ef8143125efd1727d350c050a922eb12
      build_id: '172'
      build_number: '172'
      feature_groups:
      - mirantis
      fuel-agent_sha: 61f741f4d89a3f1095dd8b494f82695fb69153d6
      fuel-createmirror_sha: 22a7aacd95bbdca69f9e0f08b70facabdec8fb28
      fuel-library_sha: 31aa9fb129a8b8739f8ca6ea186caa3c9f46820f
      fuel-nailgun-agent_sha: 3e9d17211d65c80bf97c8d83979979f6c7feb687
      fuel-nailgun_sha: f8ba3f9cd449363f1c08621307e7504c304c29ae
      fuel-ostf_sha: 9690a2de829d3b063ed1e64b0b10dde39f711dc0
      fuel-upgrade_sha: 1e894e26d4e1423a9b0d66abd6a79505f4175ff6
      fuelmain_sha: 266f9b374934c64629a84b5146632cc0de70ac91
      fuelmenu_sha: 06bbcebed6c8d0b0f9279e2997d2f958c800e98c
      network-checker_sha: a57e1d69acb5e765eb22cab0251c589cd76f51da
      openstack_version: 2015.1.0-8.0
      production: docker
      python-fuelclient_sha: e685d68c1c0d0fa0491a250f07d9c3a8d0f9608c
      release: '8.0'
      shotgun_sha: c377d163519f6d10b69a654019d6086ba5f14edc
shotgun_sha: c377d163519f6d10b69a654019d6086ba5f14edc

Steps for testing:
1. Create puppet test manifest
root@node-2:~# cat test.pp
l3_clear_route { 'default':
 ensure => 'absent',
 destination => 'default',
 gateway => '10.109.11.2',
 interface => 'br-ex',
}
2. Check current route table
root@node-2:~# ip route show
default via 10.109.11.1 dev br-ex
10.109.10.0/24 dev br-fw-admin proto kernel scope link src 10.109.10.6
10.109.11.0/24 dev br-ex proto kernel scope link src 10.109.11.48
10.109.12.0/24 dev br-mgmt proto kernel scope link src 10.109.12.3
10.109.14.0/24 dev br-storage proto kernel scope link src 10.109.14.3
unreachable 169.254.169.254 scope host
240.0.0.0/30 dev hapr-host proto kernel scope link src 240.0.0.1
240.0.0.4/30 dev vr-host-base proto kernel scope link src 240.0.0.5
3. Execute puppet manifest
root@node-2:~# puppet apply test.pp
Notice: Compiled catalog for node-2.test.domain.local in environment production in 0.04 seconds
Notice: /Stage[main]/Main/L3_clear_route[default]/ensure: removed
Notice: Finished catalog run in 1.27 seconds
4. Check that default route has been deleted. Output must be blank.
root@node-2:~# ip route show | grep default

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.