[3.0-2721~kilo]AAP configured thru UI on a v1 SI not working

Bug #1551117 reported by Ganesha HV
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Invalid
Critical
Rudra Rugge
R3.0
Invalid
Critical
Rudra Rugge

Bug Description

1]. Setup
========
nodeg25 - webUI/horizon
nodeg25, g26 & g27 - cfgm
nodeg26 & g27 - ctrl
nodek8, k9 & k10 - compute

2]. Created a v1 SI on networks l-vn(10.10.10.0/24) & r-vn(20.20.20.0/24) with max-instances set to 2.

3]. Configured AAP on the left-interface with 10.10.10.100/32 as the vIP:

root@nodeg25:~# curl -u admin:contrail123 http://127.0.0.1:8095/service-instance/df967a47-445f-4547-ae03-72ea43b05fec | python -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 2017 100 2017 0 0 509k 0 --:--:-- --:--:-- --:--:-- 656k
{
    "service-instance": {
        "display_name": "si-in-net3",
        "fq_name": [
            "default-domain",
            "admin",
            "si-in-net3"
        ],
        "href": "http://127.0.0.1:8095/service-instance/df967a47-445f-4547-ae03-72ea43b05fec",
        "id_perms": {
            "created": "2016-02-28T19:14:23.377850",
            "creator": null,
            "description": null,
            "enable": true,
            "last_modified": "2016-02-29T07:27:50.214739",
            "permissions": {
                "group": "KeystoneAdmin",
                "group_access": 7,
                "other_access": 7,
                "owner": "admin",
                "owner_access": 7
            },
            "user_visible": true,
            "uuid": {
                "uuid_lslong": 12538992138013138924,
                "uuid_mslong": 16111199163472889159
            }
        },
        "name": "si-in-net3",
        "parent_href": "http://127.0.0.1:8095/project/be7c840d-de79-481f-9bad-793b836fa8a4",
        "parent_type": "project",
        "parent_uuid": "be7c840d-de79-481f-9bad-793b836fa8a4",
        "perms2": {
            "global_access": 0,
            "owner": "be7c840dde79481f9bad793b836fa8a4",
            "owner_access": 7,
            "share": []
        },
        "service_instance_properties": {
            "interface_list": [
                {
                    "allowed_address_pairs": {
                        "allowed_address_pair": [
                            {
                                "address_mode": "active-standby",
                                "ip": {
                                    "ip_prefix": "10.10.10.100",
                                    "ip_prefix_len": 32
                                },
                                "mac": null
                            }
                        ]
                    },
                    "virtual_network": "default-domain:admin:l-vn"
                },
                {
                    "virtual_network": "default-domain:admin:r-vn"
                }
            ],
            "left_virtual_network": "default-domain:admin:l-vn",
            "right_virtual_network": "default-domain:admin:r-vn",
            "scale_out": {
                "max_instances": 2
            }
        },
        "service_template_refs": [
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/service-template/ddd905a5-ac50-400a-b720-d81dfe9a6b02",
                "to": [
                    "default-domain",
                    "st-in-net"
                ],
                "uuid": "ddd905a5-ac50-400a-b720-d81dfe9a6b02"
            }
        ],
        "uuid": "df967a47-445f-4547-ae03-72ea43b05fec",
        "virtual_machine_back_refs": [
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/virtual-machine/412a521d-f83d-453c-9b5a-7cb2a12febce",
                "to": [
                    "412a521d-f83d-453c-9b5a-7cb2a12febce"
                ],
                "uuid": "412a521d-f83d-453c-9b5a-7cb2a12febce"
            },
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/virtual-machine/df06cdec-75c6-4e30-a19b-bc11baa4c8e8",
                "to": [
                    "df06cdec-75c6-4e30-a19b-bc11baa4c8e8"
                ],
                "uuid": "df06cdec-75c6-4e30-a19b-bc11baa4c8e8"
            }
        ]
    }
}

4]. There is no AAP config seen on the ports, however:

root@nodeg25:~# neutron port-show 05c743e5-12ce-4b42-93f1-fa51051dfe47
+---------------------+-----------------------------------------------------------------------------------+
| Field | Value |
+---------------------+-----------------------------------------------------------------------------------+
| admin_state_up | True |
| binding:host_id | nodek9 |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| binding:vnic_type | normal |
| device_id | 412a521d-f83d-453c-9b5a-7cb2a12febce |
| device_owner | compute:nova |
| fixed_ips | {"subnet_id": "a5b2da66-3caf-4282-aa1c-a72eb6f49798", "ip_address": "10.10.10.8"} |
| id | 05c743e5-12ce-4b42-93f1-fa51051dfe47 |
| mac_address | 02:58:22:36:80:4d |
| name | default-domain__admin__si-in-net3__2__left__1 |
| network_id | 6c037a44-ff34-440e-ad21-b7b9b4e41879 |
| security_groups | 870c0d24-170b-4aa8-ab5d-42f06b3b428d |
| status | ACTIVE |
| tenant_id | be7c840dde79481f9bad793b836fa8a4 |
+---------------------+-----------------------------------------------------------------------------------+
root@nodeg25:~# neutron port-show 75024c7d-f236-4b30-bdb8-1c4a3982c15a
+---------------------+-----------------------------------------------------------------------------------+
| Field | Value |
+---------------------+-----------------------------------------------------------------------------------+
| admin_state_up | True |
| binding:host_id | nodek9 |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| binding:vnic_type | normal |
| device_id | df06cdec-75c6-4e30-a19b-bc11baa4c8e8 |
| device_owner | compute:nova |
| fixed_ips | {"subnet_id": "a5b2da66-3caf-4282-aa1c-a72eb6f49798", "ip_address": "10.10.10.8"} |
| id | 75024c7d-f236-4b30-bdb8-1c4a3982c15a |
| mac_address | 02:58:22:36:80:4d |
| name | default-domain__admin__si-in-net3__1__left__1 |
| network_id | 6c037a44-ff34-440e-ad21-b7b9b4e41879 |
| security_groups | 870c0d24-170b-4aa8-ab5d-42f06b3b428d |
| status | ACTIVE |
| tenant_id | be7c840dde79481f9bad793b836fa8a4 |
+---------------------+-----------------------------------------------------------------------------------+
root@nodeg25:~#

The following traceback seen on the svc-monitor.logs

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

 /usr/lib/python2.7/dist-packages/svc_monitor/rabbit.py in _vnc_subscribe_callback(self=<svc_monitor.rabbit.RabbitConnection object>, oper_info={u'oper': u'UPDATE', u'type': u'instance-ip', u'uuid': u'10371d0c-0651-4b5c-ab88-e9fa6689f96e'})
   37 self._db_resync_done.wait()
   38 try:
   39 self._vnc_subscribe_actions(oper_info)
   40 except Exception:
   41 svc_monitor.cgitb_error_log(self)
self = <svc_monitor.rabbit.RabbitConnection object>
self._vnc_subscribe_actions = <bound method RabbitConnection._vnc_subscribe_ac... of <svc_monitor.rabbit.RabbitConnection object>>
oper_info = {u'oper': u'UPDATE', u'type': u'instance-ip', u'uuid': u'10371d0c-0651-4b5c-ab88-e9fa6689f96e'}

 /usr/lib/python2.7/dist-packages/svc_monitor/rabbit.py in _vnc_subscribe_actions(self=<svc_monitor.rabbit.RabbitConnection object>, oper_info={u'oper': u'UPDATE', u'type': u'instance-ip', u'uuid': u'10371d0c-0651-4b5c-ab88-e9fa6689f96e'})
   66 else:
   67 obj = obj_class.locate(obj_id)
   68 obj.update()
   69 dependency_tracker = DependencyTracker(
   70 DBBaseSM.get_obj_type_map(), self._REACTION_MAP)
obj = None
obj.update undefined
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'update'
    __class__ = <type 'exceptions.AttributeError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.AttributeError object>
    __dict__ = {}
    __doc__ = 'Attribute not found.'
    __format__ = <built-in method __format__ of exceptions.AttributeError object>
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.AttributeError object>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.AttributeError object>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.AttributeError object>
    __hash__ = <method-wrapper '__hash__' of exceptions.AttributeError object>
    __init__ = <method-wrapper '__init__' of exceptions.AttributeError object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of exceptions.AttributeError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.AttributeError object>
    __repr__ = <method-wrapper '__repr__' of exceptions.AttributeError object>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.AttributeError object>
    __setstate__ = <built-in method __setstate__ of exceptions.AttributeError object>
    __sizeof__ = <built-in method __sizeof__ of exceptions.AttributeError object>
    __str__ = <method-wrapper '__str__' of exceptions.AttributeError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of exceptions.AttributeError object>
    args = ("'NoneType' object has no attribute 'update'",)
    message = "'NoneType' object has no attribute 'update'"

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/svc_monitor/rabbit.py", line 39, in _vnc_subscribe_callback
    self._vnc_subscribe_actions(oper_info)
  File "/usr/lib/python2.7/dist-packages/svc_monitor/rabbit.py", line 68, in _vnc_subscribe_actions
    obj.update()
AttributeError: 'NoneType' object has no attribute 'update'

information type: Proprietary → Public
Revision history for this message
Rudra Rugge (rrugge) wrote :

This is not supported for V1.

tags: removed: blocker
Jeba Paulaiyan (jebap)
tags: added: releasenote
Revision history for this message
Rudra Rugge (rrugge) wrote :

V1 aap is not supported.

Changed in juniperopenstack:
status: New → Invalid
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.