2025-10-07 18:21:19,190 - INFO - Domain Default found not creating
2025-10-07 18:21:19,566 - INFO - Project ctest-TestBasicPolicy-44468197 not found, creating it
2025-10-07 18:21:20,283 - INFO - Created Project:ctest-TestBasicPolicy-44468197, ID : bc1e785b-37b0-490f-a6cd-847f3446ef53
2025-10-07 18:21:22,283 - INFO - ================================================================================
2025-10-07 18:21:22,283 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-07 18:21:22,283 - 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-10-07 18:21:22,614 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with
2025-10-07 18:21:22,614 - INFO - Initial checks done. Running the testcase now
2025-10-07 18:21:22,615 - INFO -
2025-10-07 18:21:23,357 - DEBUG - Response for create_network : {'network': {'id': '7624538c-8d5b-4a57-b25b-9585677901ca', 'name': 'ctest-vn-97911712', 'tenant_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'project_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44468197', 'ctest-vn-97911712'], 'port_security_enabled': True, 'description': ''}}
2025-10-07 18:21:23,519 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e85ead33-3d1d-4e85-a82d-e93a33eaa24b', 'name': '', 'tenant_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'network_id': '7624538c-8d5b-4a57-b25b-9585677901ca', 'ip_version': 4, 'cidr': '46.115.39.0/26', 'allocation_pools': [{'start': '46.115.39.2', 'end': '46.115.39.62'}], 'gateway_ip': '46.115.39.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.115.39.2', 'tags': [], 'project_id': 'bc1e785b37b0490fa6cd847f3446ef53'}}
2025-10-07 18:21:23,544 - INFO - Created VN ctest-vn-97911712
2025-10-07 18:21:23,606 - DEBUG - VN ctest-vn-97911712 UUID is 7624538c-8d5b-4a57-b25b-9585677901ca
2025-10-07 18:21:24,000 - DEBUG - Response for create_network : {'network': {'id': '98b833f9-72c3-4cab-9375-6e57465d638d', 'name': 'ctest-vn-74583404', 'tenant_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'project_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44468197', 'ctest-vn-74583404'], 'port_security_enabled': True, 'description': ''}}
2025-10-07 18:21:24,212 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa187a0d-0595-4af5-8815-84bb20275d9b', 'name': '', 'tenant_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'network_id': '98b833f9-72c3-4cab-9375-6e57465d638d', 'ip_version': 4, 'cidr': '152.177.118.128/26', 'allocation_pools': [{'start': '152.177.118.130', 'end': '152.177.118.190'}], 'gateway_ip': '152.177.118.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.177.118.130', 'tags': [], 'project_id': 'bc1e785b37b0490fa6cd847f3446ef53'}}
2025-10-07 18:21:24,238 - INFO - Created VN ctest-vn-74583404
2025-10-07 18:21:24,292 - DEBUG - VN ctest-vn-74583404 UUID is 98b833f9-72c3-4cab-9375-6e57465d638d
2025-10-07 18:21:24,466 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-97911712, 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-44468197:ctest-vn-74583404, 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-10-07 18:21:24,902 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7624538c-8d5b-4a57-b25b-9585677901ca', 'name': 'ctest-vn-97911712', 'tenant_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'project_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e85ead33-3d1d-4e85-a82d-e93a33eaa24b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44468197', 'ctest-vn-97911712'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44468197', 'ctest-policy-allow-all-70089268']], 'subnet_ipam': [{'subnet_cidr': '46.115.39.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-07 18:21:25,245 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98b833f9-72c3-4cab-9375-6e57465d638d', 'name': 'ctest-vn-74583404', 'tenant_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'project_id': 'bc1e785b37b0490fa6cd847f3446ef53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa187a0d-0595-4af5-8815-84bb20275d9b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44468197', 'ctest-vn-74583404'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44468197', 'ctest-policy-allow-all-70089268']], 'subnet_ipam': [{'subnet_cidr': '152.177.118.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-07 18:21:25,416 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-07 18:21:25,778 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-07 18:21:25,837 - DEBUG - Requesting: http://10.0.0.56:8082/domain/f9a991f7-7a37-44d4-ac84-09c5e60bfb8a
2025-10-07 18:21:25,868 - DEBUG - Requesting: http://10.0.0.56:8082/project/bc1e785b-37b0-490f-a6cd-847f3446ef53
2025-10-07 18:21:25,983 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7624538c-8d5b-4a57-b25b-9585677901ca
2025-10-07 18:21:26,015 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7624538c-8d5b-4a57-b25b-9585677901ca
2025-10-07 18:21:26,046 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/537cd0a1-5fa5-45a6-b5de-d59567cca8e8
2025-10-07 18:21:26,067 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/537cd0a1-5fa5-45a6-b5de-d59567cca8e8
2025-10-07 18:21:26,087 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/ddaa682b-6543-42eb-9bdc-599f51f6373f
2025-10-07 18:21:26,106 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-07 18:21:26,107 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7624538c-8d5b-4a57-b25b-9585677901ca
2025-10-07 18:21:26,134 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/537cd0a1-5fa5-45a6-b5de-d59567cca8e8
2025-10-07 18:21:26,197 - INFO - Verified VN network id 11 for VN 7624538c-8d5b-4a57-b25b-9585677901ca
2025-10-07 18:21:26,197 - INFO - Verifications in API Server for VN ctest-vn-97911712 passed
2025-10-07 18:21:26,198 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7624538c-8d5b-4a57-b25b-9585677901ca
2025-10-07 18:21:26,219 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/537cd0a1-5fa5-45a6-b5de-d59567cca8e8
2025-10-07 18:21:26,236 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/537cd0a1-5fa5-45a6-b5de-d59567cca8e8
2025-10-07 18:21:26,248 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/ddaa682b-6543-42eb-9bdc-599f51f6373f
2025-10-07 18:21:26,269 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-97911712', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44468197', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8513021058769177175', 'uuid-lslong': '12852030361831014858'}, 'enable': 'true', 'created': '2025-10-07T18:21:23', 'last-modified': '2025-10-07T18:21:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.425609'}
2025-10-07 18:21:26,278 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-07 18:21:26,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97911712 passed
2025-10-07 18:21:26,278 - DEBUG - ====Verifying policy data for ctest-vn-97911712 in API_Server ======
2025-10-07 18:21:26,279 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-07 18:21:26,285 - DEBUG - Requesting: http://10.0.0.56:8082/domain/f9a991f7-7a37-44d4-ac84-09c5e60bfb8a
2025-10-07 18:21:26,298 - DEBUG - Requesting: http://10.0.0.56:8082/project/bc1e785b-37b0-490f-a6cd-847f3446ef53
2025-10-07 18:21:26,381 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7624538c-8d5b-4a57-b25b-9585677901ca
2025-10-07 18:21:26,392 - DEBUG - ==>Verifying data for policy with id: 788343df-756e-4ccd-8034-97e3b3442835, fqn: ['default-domain', 'ctest-TestBasicPolicy-44468197', 'ctest-policy-allow-all-70089268']
2025-10-07 18:21:26,392 - INFO - VN ctest-vn-97911712 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-07 18:21:26,393 - DEBUG - Verifying the vn in opserver
2025-10-07 18:21:26,393 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-97911712 virtual network link through opserver 10.0.0.56
2025-10-07 18:21:26,393 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-10-07 18:21:26,688 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-10-07 18:21:26,765 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-97911712', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-97911712?flat'}
2025-10-07 18:21:26,765 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-97911712 is found in opserver
2025-10-07 18:21:26,783 - DEBUG - Do not have enough data to verify VN in agent
2025-10-07 18:21:26,793 - DEBUG - VRF ids for VN ctest-vn-97911712: {}
2025-10-07 18:21:26,793 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-07 18:21:26,799 - DEBUG - Requesting: http://10.0.0.56:8082/domain/f9a991f7-7a37-44d4-ac84-09c5e60bfb8a
2025-10-07 18:21:26,811 - DEBUG - Requesting: http://10.0.0.56:8082/project/bc1e785b-37b0-490f-a6cd-847f3446ef53
2025-10-07 18:21:26,909 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/98b833f9-72c3-4cab-9375-6e57465d638d
2025-10-07 18:21:26,934 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/98b833f9-72c3-4cab-9375-6e57465d638d
2025-10-07 18:21:26,952 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3638d9f8-9d50-4d8a-9db5-e13c4b4e7a5e
2025-10-07 18:21:26,966 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3638d9f8-9d50-4d8a-9db5-e13c4b4e7a5e
2025-10-07 18:21:26,980 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/30b2e6b2-ce63-4859-b57c-db68f5f4d7ee
2025-10-07 18:21:26,992 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-07 18:21:26,992 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/98b833f9-72c3-4cab-9375-6e57465d638d
2025-10-07 18:21:27,011 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3638d9f8-9d50-4d8a-9db5-e13c4b4e7a5e
2025-10-07 18:21:27,048 - INFO - Verified VN network id 12 for VN 98b833f9-72c3-4cab-9375-6e57465d638d
2025-10-07 18:21:27,048 - INFO - Verifications in API Server for VN ctest-vn-74583404 passed
2025-10-07 18:21:27,049 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/98b833f9-72c3-4cab-9375-6e57465d638d
2025-10-07 18:21:27,082 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3638d9f8-9d50-4d8a-9db5-e13c4b4e7a5e
2025-10-07 18:21:27,103 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3638d9f8-9d50-4d8a-9db5-e13c4b4e7a5e
2025-10-07 18:21:27,117 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/30b2e6b2-ce63-4859-b57c-db68f5f4d7ee
2025-10-07 18:21:27,146 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-74583404', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44468197', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11004602835945082027', 'uuid-lslong': '10625520216972288909'}, 'enable': 'true', 'created': '2025-10-07T18:21:23', 'last-modified': '2025-10-07T18:21:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.941254'}
2025-10-07 18:21:27,163 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-07 18:21:27,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74583404 passed
2025-10-07 18:21:27,163 - DEBUG - ====Verifying policy data for ctest-vn-74583404 in API_Server ======
2025-10-07 18:21:27,163 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-07 18:21:27,177 - DEBUG - Requesting: http://10.0.0.56:8082/domain/f9a991f7-7a37-44d4-ac84-09c5e60bfb8a
2025-10-07 18:21:27,198 - DEBUG - Requesting: http://10.0.0.56:8082/project/bc1e785b-37b0-490f-a6cd-847f3446ef53
2025-10-07 18:21:27,294 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/98b833f9-72c3-4cab-9375-6e57465d638d
2025-10-07 18:21:27,318 - DEBUG - ==>Verifying data for policy with id: 788343df-756e-4ccd-8034-97e3b3442835, fqn: ['default-domain', 'ctest-TestBasicPolicy-44468197', 'ctest-policy-allow-all-70089268']
2025-10-07 18:21:27,318 - INFO - VN ctest-vn-74583404 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-07 18:21:27,319 - DEBUG - Verifying the vn in opserver
2025-10-07 18:21:27,319 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-74583404 virtual network link through opserver 10.0.0.56
2025-10-07 18:21:27,319 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-10-07 18:21:27,338 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-74583404', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-74583404?flat'}
2025-10-07 18:21:27,338 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44468197:ctest-vn-74583404 is found in opserver
2025-10-07 18:21:27,357 - DEBUG - Do not have enough data to verify VN in agent
2025-10-07 18:21:27,370 - DEBUG - VRF ids for VN ctest-vn-74583404: {}
2025-10-07 18:21:27,501 - DEBUG - Services list from nova: [