2025-09-01 15:09:12,275 - INFO - Domain Default found not creating
2025-09-01 15:09:12,414 - INFO - Project ctest-TestBasicPolicy-72054184 not found, creating it
2025-09-01 15:09:12,883 - INFO - Created Project:ctest-TestBasicPolicy-72054184, ID : 2151c657-595f-4cc4-972b-a6dbc5bca603
2025-09-01 15:09:14,399 - INFO - ================================================================================
2025-09-01 15:09:14,399 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-01 15:09:14,400 - 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-09-01 15:09:14,659 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-01 15:09:14,659 - INFO - Initial checks done. Running the testcase now
2025-09-01 15:09:14,659 - INFO -
2025-09-01 15:09:15,230 - DEBUG - Response for create_network : {'network': {'id': '05220b0c-921d-40db-ab7f-79a9543f0e1d', 'name': 'ctest-vn-06866620', 'tenant_id': '2151c657595f4cc4972ba6dbc5bca603', 'project_id': '2151c657595f4cc4972ba6dbc5bca603', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72054184', 'ctest-vn-06866620'], 'port_security_enabled': True, 'description': ''}}
2025-09-01 15:09:15,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d1c443b-fba9-408c-90c4-b42b493006ee', 'name': '', 'tenant_id': '2151c657595f4cc4972ba6dbc5bca603', 'network_id': '05220b0c-921d-40db-ab7f-79a9543f0e1d', 'ip_version': 4, 'cidr': '33.157.245.64/26', 'allocation_pools': [{'start': '33.157.245.66', 'end': '33.157.245.126'}], 'gateway_ip': '33.157.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.157.245.66', 'tags': [], 'project_id': '2151c657595f4cc4972ba6dbc5bca603'}}
2025-09-01 15:09:15,465 - INFO - Created VN ctest-vn-06866620
2025-09-01 15:09:15,516 - DEBUG - VN ctest-vn-06866620 UUID is 05220b0c-921d-40db-ab7f-79a9543f0e1d
2025-09-01 15:09:15,836 - DEBUG - Response for create_network : {'network': {'id': 'edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce', 'name': 'ctest-vn-77248223', 'tenant_id': '2151c657595f4cc4972ba6dbc5bca603', 'project_id': '2151c657595f4cc4972ba6dbc5bca603', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72054184', 'ctest-vn-77248223'], 'port_security_enabled': True, 'description': ''}}
2025-09-01 15:09:16,017 - DEBUG - Response for create_subnet : {'subnet': {'id': '242b5338-6ac3-40c0-8545-b8a9dd497155', 'name': '', 'tenant_id': '2151c657595f4cc4972ba6dbc5bca603', 'network_id': 'edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce', 'ip_version': 4, 'cidr': '7.208.2.192/26', 'allocation_pools': [{'start': '7.208.2.194', 'end': '7.208.2.254'}], 'gateway_ip': '7.208.2.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.208.2.194', 'tags': [], 'project_id': '2151c657595f4cc4972ba6dbc5bca603'}}
2025-09-01 15:09:16,035 - INFO - Created VN ctest-vn-77248223
2025-09-01 15:09:16,088 - DEBUG - VN ctest-vn-77248223 UUID is edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce
2025-09-01 15:09:16,236 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-06866620, 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-72054184:ctest-vn-77248223, 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-09-01 15:09:16,533 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05220b0c-921d-40db-ab7f-79a9543f0e1d', 'name': 'ctest-vn-06866620', 'tenant_id': '2151c657595f4cc4972ba6dbc5bca603', 'project_id': '2151c657595f4cc4972ba6dbc5bca603', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d1c443b-fba9-408c-90c4-b42b493006ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72054184', 'ctest-vn-06866620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72054184', 'ctest-policy-allow-all-03631529']], 'subnet_ipam': [{'subnet_cidr': '33.157.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-01 15:09:16,898 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce', 'name': 'ctest-vn-77248223', 'tenant_id': '2151c657595f4cc4972ba6dbc5bca603', 'project_id': '2151c657595f4cc4972ba6dbc5bca603', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['242b5338-6ac3-40c0-8545-b8a9dd497155'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72054184', 'ctest-vn-77248223'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72054184', 'ctest-policy-allow-all-03631529']], 'subnet_ipam': [{'subnet_cidr': '7.208.2.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-01 15:09:17,040 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 15:09:17,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 15:09:17,449 - DEBUG - Requesting: http://10.0.0.254:8082/domain/78463fc5-d58e-4981-b96e-f0db1956b3d8
2025-09-01 15:09:17,460 - DEBUG - Requesting: http://10.0.0.254:8082/project/2151c657-595f-4cc4-972b-a6dbc5bca603
2025-09-01 15:09:17,534 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/05220b0c-921d-40db-ab7f-79a9543f0e1d
2025-09-01 15:09:17,543 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/05220b0c-921d-40db-ab7f-79a9543f0e1d
2025-09-01 15:09:17,551 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/252e9910-bb44-4c53-ba17-f3cc6a61d8af
2025-09-01 15:09:17,557 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/252e9910-bb44-4c53-ba17-f3cc6a61d8af
2025-09-01 15:09:17,563 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fddac92a-13cc-4fde-891a-95a694b6b525
2025-09-01 15:09:17,568 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-01 15:09:17,568 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/05220b0c-921d-40db-ab7f-79a9543f0e1d
2025-09-01 15:09:17,576 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/252e9910-bb44-4c53-ba17-f3cc6a61d8af
2025-09-01 15:09:17,589 - INFO - Verified VN network id 12 for VN 05220b0c-921d-40db-ab7f-79a9543f0e1d
2025-09-01 15:09:17,589 - INFO - Verifications in API Server for VN ctest-vn-06866620 passed
2025-09-01 15:09:17,589 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/05220b0c-921d-40db-ab7f-79a9543f0e1d
2025-09-01 15:09:17,597 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/252e9910-bb44-4c53-ba17-f3cc6a61d8af
2025-09-01 15:09:17,603 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/252e9910-bb44-4c53-ba17-f3cc6a61d8af
2025-09-01 15:09:17,609 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fddac92a-13cc-4fde-891a-95a694b6b525
2025-09-01 15:09:17,620 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-06866620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72054184', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '369870268016705755', 'uuid-lslong': '12357729670697782813'}, 'enable': 'true', 'created': '2025-09-01T15:09:15', 'last-modified': '2025-09-01T15:09:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.114391'}
2025-09-01 15:09:17,625 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-01 15:09:17,625 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06866620 passed
2025-09-01 15:09:17,625 - DEBUG - ====Verifying policy data for ctest-vn-06866620 in API_Server ======
2025-09-01 15:09:17,625 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 15:09:17,630 - DEBUG - Requesting: http://10.0.0.254:8082/domain/78463fc5-d58e-4981-b96e-f0db1956b3d8
2025-09-01 15:09:17,640 - DEBUG - Requesting: http://10.0.0.254:8082/project/2151c657-595f-4cc4-972b-a6dbc5bca603
2025-09-01 15:09:17,706 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/05220b0c-921d-40db-ab7f-79a9543f0e1d
2025-09-01 15:09:17,716 - DEBUG - ==>Verifying data for policy with id: 185d3b70-54f7-48ae-8055-27f30f73f3d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-72054184', 'ctest-policy-allow-all-03631529']
2025-09-01 15:09:17,716 - INFO - VN ctest-vn-06866620 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-01 15:09:17,716 - DEBUG - Verifying the vn in opserver
2025-09-01 15:09:17,716 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-06866620 virtual network link through opserver 10.0.0.254
2025-09-01 15:09:17,716 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-01 15:09:18,046 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-01 15:09:18,100 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-06866620', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-06866620?flat'}
2025-09-01 15:09:18,100 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-06866620 is found in opserver
2025-09-01 15:09:18,109 - DEBUG - Do not have enough data to verify VN in agent
2025-09-01 15:09:18,113 - DEBUG - VRF ids for VN ctest-vn-06866620: {}
2025-09-01 15:09:18,113 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 15:09:18,118 - DEBUG - Requesting: http://10.0.0.254:8082/domain/78463fc5-d58e-4981-b96e-f0db1956b3d8
2025-09-01 15:09:18,128 - DEBUG - Requesting: http://10.0.0.254:8082/project/2151c657-595f-4cc4-972b-a6dbc5bca603
2025-09-01 15:09:18,196 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce
2025-09-01 15:09:18,208 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce
2025-09-01 15:09:18,216 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49f975d3-b57b-4705-9ad3-73c0f1f15b30
2025-09-01 15:09:18,221 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49f975d3-b57b-4705-9ad3-73c0f1f15b30
2025-09-01 15:09:18,227 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/126c4b75-fa20-41ff-af54-50246b70bb8c
2025-09-01 15:09:18,233 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-01 15:09:18,233 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce
2025-09-01 15:09:18,240 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49f975d3-b57b-4705-9ad3-73c0f1f15b30
2025-09-01 15:09:18,252 - INFO - Verified VN network id 13 for VN edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce
2025-09-01 15:09:18,252 - INFO - Verifications in API Server for VN ctest-vn-77248223 passed
2025-09-01 15:09:18,252 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce
2025-09-01 15:09:18,259 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49f975d3-b57b-4705-9ad3-73c0f1f15b30
2025-09-01 15:09:18,265 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49f975d3-b57b-4705-9ad3-73c0f1f15b30
2025-09-01 15:09:18,270 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/126c4b75-fa20-41ff-af54-50246b70bb8c
2025-09-01 15:09:18,280 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-77248223', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72054184', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17133001289620997056', 'uuid-lslong': '11503056317347912654'}, 'enable': 'true', 'created': '2025-09-01T15:09:15', 'last-modified': '2025-09-01T15:09:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439601'}
2025-09-01 15:09:18,285 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-01 15:09:18,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77248223 passed
2025-09-01 15:09:18,285 - DEBUG - ====Verifying policy data for ctest-vn-77248223 in API_Server ======
2025-09-01 15:09:18,285 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-01 15:09:18,290 - DEBUG - Requesting: http://10.0.0.254:8082/domain/78463fc5-d58e-4981-b96e-f0db1956b3d8
2025-09-01 15:09:18,299 - DEBUG - Requesting: http://10.0.0.254:8082/project/2151c657-595f-4cc4-972b-a6dbc5bca603
2025-09-01 15:09:18,367 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/edc4a5e5-fc2b-43c0-9fa3-10c65ad5dbce
2025-09-01 15:09:18,376 - DEBUG - ==>Verifying data for policy with id: 185d3b70-54f7-48ae-8055-27f30f73f3d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-72054184', 'ctest-policy-allow-all-03631529']
2025-09-01 15:09:18,376 - INFO - VN ctest-vn-77248223 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-01 15:09:18,376 - DEBUG - Verifying the vn in opserver
2025-09-01 15:09:18,376 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-77248223 virtual network link through opserver 10.0.0.254
2025-09-01 15:09:18,376 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-01 15:09:18,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-77248223', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-77248223?flat'}
2025-09-01 15:09:18,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72054184:ctest-vn-77248223 is found in opserver
2025-09-01 15:09:18,394 - DEBUG - Do not have enough data to verify VN in agent
2025-09-01 15:09:18,398 - DEBUG - VRF ids for VN ctest-vn-77248223: {}
2025-09-01 15:09:18,450 - DEBUG - Services list from nova: [