[NETVIRT-956] Port update with fixed-ip and no-fixed-ip does not reflect in Configuration DataStore Created: 13/Oct/17  Updated: 07/Feb/18  Resolved: 07/Feb/18

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Carbon
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Arthi Bhattacharjee Assignee: Hari Prasidh
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Zip Archive port_set_fixed_ip_logs.zip    
External issue ID: 9287

 Description   

Distro: distribution-karaf-0.6.0-Carbon.tar.gz
Openstack setup: carbon + ocata
ODL setup: 3 node cluster setup

Steps:

1. Create a network:
network create net1 --provider-network-type vxlan

2. Create a subnet:
subnet create --network net1 --subnet-range 10.0.0.0/24 sub1

3. Create a port:
port create --network net1 port1

4. Create a VM:
server create --image <imageID> --flavor m1.tiny --nic port-id=port1 VM1
VM ip for created VM1 -> 10.0.0.5

5. Update the port: fixed-ip
port set --fixed-ip subnet=sub1,ip-address=10.0.0.10 port1

Reboot the server for port update:
server reboot --soft VM1

Observation for fixed-ip:
=========================
The port update is not reflected in the config data store.

6. Update the port: no-fixed-ip
port set --no-fixed-ip --fixed-ip subnet=sub1,ip-address=10.0.0.10 port1

7. Reboot the server for port update:
server reboot --soft VM1

Observation for no-fixed-ip:
============================
The port update is not reflected in the config data store.

Config data store has the old value

"ports": {
"port": [
{
"admin-state-up": true,
"device-id": "ffe015fa-fd65-4f31-b496-d0a628fbbecb",
"device-owner": "compute:None",
"fixed-ips": [

{ "ip-address": "10.0.0.5", "subnet-id": "fddc3173-1ee6-4e32-89d9-a7eeeac2bef1" }

],
"mac-address": "fa:16:3e:1a:82:a7",
"name": "port1",
"network-id": "a1159d34-fc70-4418-b980-b47103ca28b2",
"neutron-binding:host-id": "os3-compute2",
"neutron-binding:vif-details": [

{ "details-key": "port_filter", "value": "true" }

],
"neutron-binding:vif-type": "ovs",
"neutron-binding:vnic-type": "normal",
"neutron-portsecurity:port-security-enabled": true,
"revision-number": 11,
"security-groups": [
"cc028bb7-73f0-4793-84bf-8ebfdf3ca255"
],
"tenant-id": "9c9916b0-cd94-4640-a428-6dbf148d5c6a",
"uuid": "1e50e85c-50ef-4e5e-8060-b13b103fb438"
},

Port IP has been updated in the VM Console

      1. ifconfig -a
        eth0 Link encap:Ethernet HWaddr FA:16:3E:1A:82:A7
        inet addr:10.0.0.110 Bcast:10.0.0.255 Mask:255.255.255.0
        inet6 addr: fe80::f816:3eff:fe1a:82a7/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
        RX packets:13 errors:0 dropped:3 overruns:0 frame:0
        TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:1000
        RX bytes:1632 (1.5 KiB) TX bytes:4322 (4.2 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:39 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3456 (3.3 KiB) TX bytes:3456 (3.3 KiB)

Code snippet:
update port notification handler is invoked for port Port{getAllowedAddressPairs=[], getDeviceId=ffe015fa-fd65-4f31-b496-d0a628fbbecb, getDeviceOwner=compute:None, getExtraDhcpOpts=[], getFixedIps=[FixedIps{getIpAddress=IpAddress [_ipv4Address=Ipv4Address [_value=10.0.0.105]], getSubnetId=Uuid [_value=fddc3173-1ee6-4e32-89d9-a7eeeac2bef1], augmentations={}}], getMacAddress=MacAddress [_value=fa:16:3e:1a:82:a7], getName=port1, getNetworkId=Uuid [_value=a1159d34-fc70-4418-b980-b47103ca28b2], getRevisionNumber=10, getSecurityGroups=[Uuid [_value=cc028bb7-73f0-4793-84bf-8ebfdf3ca255]], getTenantId=Uuid [_value=9c9916b0-cd94-4640-a428-6dbf148d5c6a], getUuid=Uuid [_value=1e50e85c-50ef-4e5e-8060-b13b103fb438], isAdminStateUp=true, augmentations={interface org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.binding.rev150712.PortBindingExtension=PortBindingExtension{getHostId=os3-compute2, getVifDetails=[VifDetails{getDetailsKey=port_filter, getValue=true, augmentations={}}], getVifType=ovs, getVnicType=normal}, interface org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.portsecurity.rev150712.PortSecurityExtension=PortSecurityExtension

{isPortSecurityEnabled=true}

}}



 Comments   
Comment by Arthi Bhattacharjee [ 13/Oct/17 ]

Attachment port_set_fixed_ip_logs.zip has been added with description: Karaf logs

Comment by Hari Prasidh [ 17/Nov/17 ]

I have tested same scenario with latest nitrogen/pike and the issue is not reproduced.

Comment by Venkatrangan Govindarajan [ 07/Feb/18 ]

Not supported for Networking-odl in Ocata

Generated at Wed Feb 07 20:22:53 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.