Comment 0 for bug 1772160

Revision history for this message
Musa Abdin (musamustafa) wrote :

restarting Device manager assigns new IP address to the irb interfaces, while the old IPs are no longer available.

[heat-admin@overcloud-contrailcontroller-0 ~]$ neutron subnet-show 24e8e71e-54fd-483f-bb10-fbe625fd0344
+-------------------+----------------------------------------+
| Field | Value |
+-------------------+----------------------------------------+
| allocation_pools | {"start": "8.8.8.2", "end": "8.8.8.5"} |
| cidr | 8.8.8.0/24 |
| created_at | |
| dns_nameservers | 0.0.0.0 |
| enable_dhcp | False |
| gateway_ip | 8.8.8.1 |
| host_routes | |
| id | 24e8e71e-54fd-483f-bb10-fbe625fd0344 |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | 24e8e71e-54fd-483f-bb10-fbe625fd0344 |
| network_id | 18067a99-ed12-4a74-8b50-92577dc27bdb |
| tenant_id | db666c41aefc4a4581655e3c2e02627c |
| updated_at | |
+-------------------+----------------------------------------+
[heat-admin@overcloud-contrailcontroller-0 ~]$ curl -H "X-Auth-Token: `openstack token issue -c id -f value`" http://192.168.122.11:8082/virtual-network/18067a99-ed12-4a74-8b50-92577dc27bdb/subnet-ip-count -H "Content-Type: application/json" -d '{"subnet_list": ["24e8e71e-54fd-483f-bb10-fbe625fd0344"]}' |python -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 79 100 22 100 57 142 370 --:--:-- --:--:-- --:--:-- 372
{
    "ip_count_list": [
        2
    ]
}
[heat-admin@overcloud-contrailcontroller-0 ~]$ sudo systemctl restart contrail-device-manager
[heat-admin@overcloud-contrailcontroller-0 ~]$ curl -H "X-Auth-Token: `openstack token issue -c id -f value`" http://192.168.122.11:8082/virtual-network/18067a99-ed12-4a74-8b50-92577dc27bdb/subnet-ip-count -H "Content-Type: application/json" -d '{"subnet_list": ["24e8e71e-54fd-483f-bb10-fbe625fd0344"]}' |python -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 79 100 22 100 57 152 395 --:--:-- --:--:-- --:--:-- 398
{
    "ip_count_list": [
        3
    ]
}
[heat-admin@overcloud-contrailcontroller-0 ~]$ neutron port-create --name testsrv01 --fixed-ip subnet_id=24e8e71e-54fd-483f-bb10-fbe625fd0344,ip_address=8.8.8.3 `openstack network show sriov-test -c id -f value`
An unknown exception occurred.
Neutron server returns request_ids: ['req-38e57c68-57ae-40b9-a1a1-58a71bb5536c']
[heat-admin@overcloud-contrailcontroller-0 ~]$

on the mx

[edit]
musa# show groups __contrail__ interfaces irb.7
May 19 11:30:43
family inet {
    /* Allocated IPv4 Address from Subnet: 8.8.8.0/24 */
    address 8.8.8.3/24 {
        virtual-gateway-address 8.8.8.1;
    }
}

[edit]
musa#
May 19 11:32:52

after the restart:

[edit]
musa#
May 19 11:32:52

[edit]
musa# show groups __contrail__ interfaces irb.7
May 19 11:35:05
family inet {
    /* Allocated IPv4 Address from Subnet: 8.8.8.0/24 */
    address 8.8.8.4/24 {
        virtual-gateway-address 8.8.8.1;
    }
}