Bug 1370617 - os-net-config does not remove previous configuration when using a different configuration
Summary: os-net-config does not remove previous configuration when using a different c...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: os-net-config
Version: 7.0 (Kilo)
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-26 19:24 UTC by Jaison Raju
Modified: 2019-12-16 06:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-27 08:28:21 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jaison Raju 2016-08-26 19:24:44 UTC
Description of problem:
When manually running os-net-config on a node with modified os-net-config ,
os-net-config does not remove the previous ifcfg configuration .

Version-Release number of selected component (if applicable):
RHOS 7/8

How reproducible:
Always

Steps to Reproduce:
1. Deploy an environment with multiple vlan networks on bond .
2. Modify node network layout & remove bond & configure vlan network on one of the previous slave nic .
3. If stack-update does not apply new configuration , run os-net-config manually on the nodes 

Actual results:
It is noticed that the previous bond config still remains 

Expected results:
Every time os-net-config is called , it should configure purely based on the new config file & remove all previous ifcfg files .

Additional info:

Comment 3 Jaison Raju 2016-08-27 08:28:21 UTC
Dan has suggested --cleanup will remove the old config .

I tested this again & noticed the following.
Environment
Previous:
nic1 - Provisioning
bridge - bond - nic2  |-> couple of vlan networks
                nic3  |
After:
nic1 - Provisioning
bridge - nic2  |-> couple of vlan networks
         nic3  |
stack update succeeds , but i dont find the /etc/os-net-config/config.json updated on the nodes . 
So i manually modify the config to 'After' state .

--cleanup removes ifcfg files & the unwanted interfaces .

Closing this Bug & will raise an RFE to have director do it while stack update .


Note You need to log in before you can comment on or make changes to this bug.