2025-11-02 21:41:23,363 - INFO - Domain Default found not creating
2025-11-02 21:41:23,515 - INFO - Project ctest-TestBasicPolicy-01290793 not found, creating it
2025-11-02 21:41:23,971 - INFO - Created Project:ctest-TestBasicPolicy-01290793, ID : b5cec947-1b5c-4dcc-a9f2-414abbe4a00e
2025-11-02 21:41:25,406 - INFO - ================================================================================
2025-11-02 21:41:25,406 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-02 21:41:25,406 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-11-02 21:41:25,666 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-11-02 21:41:25,666 - INFO - Initial checks done. Running the testcase now
2025-11-02 21:41:25,666 - INFO -
2025-11-02 21:41:26,208 - DEBUG - Response for create_network : {'network': {'id': 'aee1537e-50e1-482f-8a26-868bb6feda72', 'name': 'ctest-vn-78103609', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-vn-78103609'], 'port_security_enabled': True, 'description': ''}}
2025-11-02 21:41:26,350 - DEBUG - Response for create_subnet : {'subnet': {'id': '99530873-7597-44df-b6fa-1594d9b8048b', 'name': '', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'network_id': 'aee1537e-50e1-482f-8a26-868bb6feda72', 'ip_version': 4, 'cidr': '13.181.148.192/26', 'allocation_pools': [{'start': '13.181.148.194', 'end': '13.181.148.254'}], 'gateway_ip': '13.181.148.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.181.148.194', 'tags': [], 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e'}}
2025-11-02 21:41:26,366 - INFO - Created VN ctest-vn-78103609
2025-11-02 21:41:26,422 - DEBUG - VN ctest-vn-78103609 UUID is aee1537e-50e1-482f-8a26-868bb6feda72
2025-11-02 21:41:26,739 - DEBUG - Response for create_network : {'network': {'id': 'ef8927c6-69a8-40d3-b7ed-816dd2b67618', 'name': 'ctest-vn-10802992', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-vn-10802992'], 'port_security_enabled': True, 'description': ''}}
2025-11-02 21:41:26,884 - DEBUG - Response for create_subnet : {'subnet': {'id': '67329ce5-9f42-4bb1-b753-5a42a7857885', 'name': '', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'network_id': 'ef8927c6-69a8-40d3-b7ed-816dd2b67618', 'ip_version': 4, 'cidr': '106.255.119.128/26', 'allocation_pools': [{'start': '106.255.119.130', 'end': '106.255.119.190'}], 'gateway_ip': '106.255.119.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.255.119.130', 'tags': [], 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e'}}
2025-11-02 21:41:26,900 - INFO - Created VN ctest-vn-10802992
2025-11-02 21:41:26,950 - DEBUG - VN ctest-vn-10802992 UUID is ef8927c6-69a8-40d3-b7ed-816dd2b67618
2025-11-02 21:41:27,101 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-11-02 21:41:27,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aee1537e-50e1-482f-8a26-868bb6feda72', 'name': 'ctest-vn-78103609', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99530873-7597-44df-b6fa-1594d9b8048b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-vn-78103609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-policy-allow-all-75883422']], 'subnet_ipam': [{'subnet_cidr': '13.181.148.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-02 21:41:27,672 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef8927c6-69a8-40d3-b7ed-816dd2b67618', 'name': 'ctest-vn-10802992', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67329ce5-9f42-4bb1-b753-5a42a7857885'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-vn-10802992'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-policy-allow-all-75883422']], 'subnet_ipam': [{'subnet_cidr': '106.255.119.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-02 21:41:27,830 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-02 21:41:28,128 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-02 21:41:28,160 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b
2025-11-02 21:41:28,172 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e
2025-11-02 21:41:28,242 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72
2025-11-02 21:41:28,255 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72
2025-11-02 21:41:28,263 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6
2025-11-02 21:41:28,270 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6
2025-11-02 21:41:28,276 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0235ed1f-d3c3-4185-8070-4bc34a65d732
2025-11-02 21:41:28,283 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-02 21:41:28,283 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72
2025-11-02 21:41:28,293 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6
2025-11-02 21:41:28,306 - INFO - Verified VN network id 11 for VN aee1537e-50e1-482f-8a26-868bb6feda72
2025-11-02 21:41:28,306 - INFO - Verifications in API Server for VN ctest-vn-78103609 passed
2025-11-02 21:41:28,306 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72
2025-11-02 21:41:28,316 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6
2025-11-02 21:41:28,322 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6
2025-11-02 21:41:28,328 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0235ed1f-d3c3-4185-8070-4bc34a65d732
2025-11-02 21:41:28,339 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01290793', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12601445034347284527', 'uuid-lslong': '9954791960977791602'}, 'enable': 'true', 'created': '2025-11-02T21:41:26', 'last-modified': '2025-11-02T21:41:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966931'}
2025-11-02 21:41:28,345 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-02 21:41:28,345 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78103609 passed
2025-11-02 21:41:28,345 - DEBUG - ====Verifying policy data for ctest-vn-78103609 in API_Server ======
2025-11-02 21:41:28,345 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-02 21:41:28,351 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b
2025-11-02 21:41:28,361 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e
2025-11-02 21:41:28,430 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72
2025-11-02 21:41:28,440 - DEBUG - ==>Verifying data for policy with id: e4a84b96-ee29-4b10-ba60-2437459a7ba1, fqn: ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-policy-allow-all-75883422']
2025-11-02 21:41:28,440 - INFO - VN ctest-vn-78103609 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-02 21:41:28,440 - DEBUG - Verifying the vn in opserver
2025-11-02 21:41:28,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609 virtual network link through opserver 10.0.0.33
2025-11-02 21:41:28,441 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-02 21:41:28,736 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-02 21:41:28,789 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609?flat'}
2025-11-02 21:41:28,789 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609 is found in opserver
2025-11-02 21:41:28,798 - DEBUG - Do not have enough data to verify VN in agent
2025-11-02 21:41:28,802 - DEBUG - VRF ids for VN ctest-vn-78103609: {}
2025-11-02 21:41:28,802 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-02 21:41:28,807 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b
2025-11-02 21:41:28,816 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e
2025-11-02 21:41:28,892 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618
2025-11-02 21:41:28,903 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618
2025-11-02 21:41:28,911 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561
2025-11-02 21:41:28,917 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561
2025-11-02 21:41:28,924 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7f93a009-c49a-4f72-8fbf-8e4866a471e8
2025-11-02 21:41:28,930 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-02 21:41:28,930 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618
2025-11-02 21:41:28,938 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561
2025-11-02 21:41:28,950 - INFO - Verified VN network id 12 for VN ef8927c6-69a8-40d3-b7ed-816dd2b67618
2025-11-02 21:41:28,950 - INFO - Verifications in API Server for VN ctest-vn-10802992 passed
2025-11-02 21:41:28,950 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618
2025-11-02 21:41:28,959 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561
2025-11-02 21:41:28,965 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561
2025-11-02 21:41:28,971 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7f93a009-c49a-4f72-8fbf-8e4866a471e8
2025-11-02 21:41:28,981 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01290793', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17260370780003778771', 'uuid-lslong': '13253391587107829272'}, 'enable': 'true', 'created': '2025-11-02T21:41:26', 'last-modified': '2025-11-02T21:41:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.386681'}
2025-11-02 21:41:28,986 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-02 21:41:28,986 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10802992 passed
2025-11-02 21:41:28,986 - DEBUG - ====Verifying policy data for ctest-vn-10802992 in API_Server ======
2025-11-02 21:41:28,986 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-02 21:41:28,991 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b
2025-11-02 21:41:29,003 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e
2025-11-02 21:41:29,074 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618
2025-11-02 21:41:29,090 - DEBUG - ==>Verifying data for policy with id: e4a84b96-ee29-4b10-ba60-2437459a7ba1, fqn: ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-policy-allow-all-75883422']
2025-11-02 21:41:29,090 - INFO - VN ctest-vn-10802992 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-02 21:41:29,090 - DEBUG - Verifying the vn in opserver
2025-11-02 21:41:29,090 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992 virtual network link through opserver 10.0.0.33
2025-11-02 21:41:29,090 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-02 21:41:29,100 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992?flat'}
2025-11-02 21:41:29,100 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992 is found in opserver
2025-11-02 21:41:29,111 - DEBUG - Do not have enough data to verify VN in agent
2025-11-02 21:41:29,116 - DEBUG - VRF ids for VN ctest-vn-10802992: {}
2025-11-02 21:41:29,180 - DEBUG - Services list from nova: [