-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 3.0
-
Component/s: None
-
Labels:None
-
Story Points:2
-
Sprint:Dangerous Addition Sprint #6
-
Epic Link:
Example:
2 - DeferredException('No location tag for node id: 1\ncreated: 1493420032.0\nupdated: 1493420032.0\nbackend_register: "{}"\nbackend_need_delete: false\nbackend_need_reap: false\nbackend_status: "0 - Provisioning in progress"\ndeleted: false\nwrite_protect: false\nlazy_blocked: false\nno_sync: true\nno_policy: false\nname: "nifty-sign"\nsite_deployment_id: 1\nsite_id: 1\ninstances_ids: 1\nclass_names: "Node,PlCoreBase"\nself_content_type_id: 32\n tenant id: 9\ncreated: 1493420032.0\nupdated: 1493420032.0\nbackend_register: "{}"\nbackend_need_delete: true\nbackend_need_reap: false\nbackend_status: "0 - Provisioning in progress"\ndeleted: false\nwrite_protect: false\nlazy_blocked: false\nno_sync: false\nno_policy: false\nkind: "vROUTER"\nprovider_service_id: 5\nsubscriber_service_id: 6\nservice_specific_attribute: "
{\\"tenant_for_instance_id\\": 1}"\nconnect_method: "na"\npublic_ip: "10.6.1.130"\npublic_mac: "02:42:0a:06:01:82"\naddress_pool_id: 2\nclass_names: "VRouterTenant,Tenant,PlCoreBase"\nself_content_ty
This coming from the str() operator on an ORM object, which in django showed a human-friendly name of the item, but in protobuf returns the full context of the object. An example of this in the code:
raise DeferredException("No location tag for node %s tenant %s – skipping" % (str(node), str(vroutertenant)))
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
3732,8 | CORD-1169 implement __str__ and __repr__ for orm | master | xos | Status: MERGED | +2 | +1 |