2025-08-14 14:14:09,800 - INFO - Domain Default found not creating
2025-08-14 14:14:09,962 - INFO - Project ctest-TestBasicPolicy-45353790 not found, creating it
2025-08-14 14:14:10,437 - INFO - Created Project:ctest-TestBasicPolicy-45353790, ID : 9991e5df-d195-49f0-9e82-7aeac0531c8d
2025-08-14 14:14:12,039 - INFO - ================================================================================
2025-08-14 14:14:12,039 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-14 14:14:12,039 - 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-08-14 14:14:12,302 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-14 14:14:12,302 - INFO - Initial checks done. Running the testcase now
2025-08-14 14:14:12,302 - INFO -
2025-08-14 14:14:12,898 - DEBUG - Response for create_network : {'network': {'id': 'cc87d13a-7c83-4b98-a1f7-c738d8f083fb', 'name': 'ctest-vn-96284123', 'tenant_id': '9991e5dfd19549f09e827aeac0531c8d', 'project_id': '9991e5dfd19549f09e827aeac0531c8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45353790', 'ctest-vn-96284123'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:14:13,055 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a50c09ad-088d-4b0d-8269-928d6ddbfa87', 'name': '', 'tenant_id': '9991e5dfd19549f09e827aeac0531c8d', 'network_id': 'cc87d13a-7c83-4b98-a1f7-c738d8f083fb', 'ip_version': 4, 'cidr': '106.60.223.64/26', 'allocation_pools': [{'start': '106.60.223.66', 'end': '106.60.223.126'}], 'gateway_ip': '106.60.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.60.223.66', 'tags': [], 'project_id': '9991e5dfd19549f09e827aeac0531c8d'}}
2025-08-14 14:14:13,074 - INFO - Created VN ctest-vn-96284123
2025-08-14 14:14:13,130 - DEBUG - VN ctest-vn-96284123 UUID is cc87d13a-7c83-4b98-a1f7-c738d8f083fb
2025-08-14 14:14:13,454 - DEBUG - Response for create_network : {'network': {'id': 'b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a', 'name': 'ctest-vn-54690861', 'tenant_id': '9991e5dfd19549f09e827aeac0531c8d', 'project_id': '9991e5dfd19549f09e827aeac0531c8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45353790', 'ctest-vn-54690861'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:14:13,648 - DEBUG - Response for create_subnet : {'subnet': {'id': '00a1d9a0-4313-4b10-82e4-d49c4e0e70a4', 'name': '', 'tenant_id': '9991e5dfd19549f09e827aeac0531c8d', 'network_id': 'b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a', 'ip_version': 4, 'cidr': '155.183.201.0/26', 'allocation_pools': [{'start': '155.183.201.2', 'end': '155.183.201.62'}], 'gateway_ip': '155.183.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.183.201.2', 'tags': [], 'project_id': '9991e5dfd19549f09e827aeac0531c8d'}}
2025-08-14 14:14:13,667 - INFO - Created VN ctest-vn-54690861
2025-08-14 14:14:13,722 - DEBUG - VN ctest-vn-54690861 UUID is b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a
2025-08-14 14:14:13,844 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-96284123, 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-45353790:ctest-vn-54690861, 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-08-14 14:14:14,145 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc87d13a-7c83-4b98-a1f7-c738d8f083fb', 'name': 'ctest-vn-96284123', 'tenant_id': '9991e5dfd19549f09e827aeac0531c8d', 'project_id': '9991e5dfd19549f09e827aeac0531c8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a50c09ad-088d-4b0d-8269-928d6ddbfa87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45353790', 'ctest-vn-96284123'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45353790', 'ctest-policy-allow-all-54831830']], 'subnet_ipam': [{'subnet_cidr': '106.60.223.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:14:14,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a', 'name': 'ctest-vn-54690861', 'tenant_id': '9991e5dfd19549f09e827aeac0531c8d', 'project_id': '9991e5dfd19549f09e827aeac0531c8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00a1d9a0-4313-4b10-82e4-d49c4e0e70a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45353790', 'ctest-vn-54690861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45353790', 'ctest-policy-allow-all-54831830']], 'subnet_ipam': [{'subnet_cidr': '155.183.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:14:14,583 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 14:14:14,949 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 14:14:15,000 - DEBUG - Requesting: http://10.0.0.38:8082/domain/de129236-0c26-46f5-915e-4c5c63d37cfa
2025-08-14 14:14:15,052 - DEBUG - Requesting: http://10.0.0.38:8082/project/9991e5df-d195-49f0-9e82-7aeac0531c8d
2025-08-14 14:14:15,196 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc87d13a-7c83-4b98-a1f7-c738d8f083fb
2025-08-14 14:14:15,225 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc87d13a-7c83-4b98-a1f7-c738d8f083fb
2025-08-14 14:14:15,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84241a0a-5f92-4c2f-a96b-46c83acb4446
2025-08-14 14:14:15,264 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84241a0a-5f92-4c2f-a96b-46c83acb4446
2025-08-14 14:14:15,276 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7d8e4681-3506-43eb-849e-c316cad58dbb
2025-08-14 14:14:15,296 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 14:14:15,296 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc87d13a-7c83-4b98-a1f7-c738d8f083fb
2025-08-14 14:14:15,310 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84241a0a-5f92-4c2f-a96b-46c83acb4446
2025-08-14 14:14:15,344 - INFO - Verified VN network id 12 for VN cc87d13a-7c83-4b98-a1f7-c738d8f083fb
2025-08-14 14:14:15,344 - INFO - Verifications in API Server for VN ctest-vn-96284123 passed
2025-08-14 14:14:15,345 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc87d13a-7c83-4b98-a1f7-c738d8f083fb
2025-08-14 14:14:15,359 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84241a0a-5f92-4c2f-a96b-46c83acb4446
2025-08-14 14:14:15,367 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/84241a0a-5f92-4c2f-a96b-46c83acb4446
2025-08-14 14:14:15,388 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7d8e4681-3506-43eb-849e-c316cad58dbb
2025-08-14 14:14:15,404 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-96284123', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45353790', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14737978354720525208', 'uuid-lslong': '11671016006325666811'}, 'enable': 'true', 'created': '2025-08-14T14:14:12', 'last-modified': '2025-08-14T14:14:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.281856'}
2025-08-14 14:14:15,411 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 14:14:15,412 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96284123 passed
2025-08-14 14:14:15,412 - DEBUG - ====Verifying policy data for ctest-vn-96284123 in API_Server ======
2025-08-14 14:14:15,412 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 14:14:15,418 - DEBUG - Requesting: http://10.0.0.38:8082/domain/de129236-0c26-46f5-915e-4c5c63d37cfa
2025-08-14 14:14:15,435 - DEBUG - Requesting: http://10.0.0.38:8082/project/9991e5df-d195-49f0-9e82-7aeac0531c8d
2025-08-14 14:14:15,514 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cc87d13a-7c83-4b98-a1f7-c738d8f083fb
2025-08-14 14:14:15,525 - DEBUG - ==>Verifying data for policy with id: 92e60ef2-9872-42b5-8a7d-ff10e58d4b15, fqn: ['default-domain', 'ctest-TestBasicPolicy-45353790', 'ctest-policy-allow-all-54831830']
2025-08-14 14:14:15,525 - INFO - VN ctest-vn-96284123 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 14:14:15,525 - DEBUG - Verifying the vn in opserver
2025-08-14 14:14:15,525 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-96284123 virtual network link through opserver 10.0.0.38
2025-08-14 14:14:15,525 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-14 14:14:15,835 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-14 14:14:15,909 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-96284123', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-96284123?flat'}
2025-08-14 14:14:15,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-96284123 is found in opserver
2025-08-14 14:14:15,923 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 14:14:15,930 - DEBUG - VRF ids for VN ctest-vn-96284123: {}
2025-08-14 14:14:15,931 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 14:14:15,938 - DEBUG - Requesting: http://10.0.0.38:8082/domain/de129236-0c26-46f5-915e-4c5c63d37cfa
2025-08-14 14:14:15,952 - DEBUG - Requesting: http://10.0.0.38:8082/project/9991e5df-d195-49f0-9e82-7aeac0531c8d
2025-08-14 14:14:16,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a
2025-08-14 14:14:16,047 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a
2025-08-14 14:14:16,060 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/081c4a70-fb5a-476f-9d97-7664ef78ed70
2025-08-14 14:14:16,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/081c4a70-fb5a-476f-9d97-7664ef78ed70
2025-08-14 14:14:16,083 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3f524b2f-90d5-4dd7-b7d7-a012d58acca3
2025-08-14 14:14:16,095 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 14:14:16,095 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a
2025-08-14 14:14:16,109 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/081c4a70-fb5a-476f-9d97-7664ef78ed70
2025-08-14 14:14:16,132 - INFO - Verified VN network id 13 for VN b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a
2025-08-14 14:14:16,132 - INFO - Verifications in API Server for VN ctest-vn-54690861 passed
2025-08-14 14:14:16,132 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a
2025-08-14 14:14:16,145 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/081c4a70-fb5a-476f-9d97-7664ef78ed70
2025-08-14 14:14:16,156 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/081c4a70-fb5a-476f-9d97-7664ef78ed70
2025-08-14 14:14:16,166 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3f524b2f-90d5-4dd7-b7d7-a012d58acca3
2025-08-14 14:14:16,185 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-54690861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45353790', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12910147831158555590', 'uuid-lslong': '11852978966264429898'}, 'enable': 'true', 'created': '2025-08-14T14:14:13', 'last-modified': '2025-08-14T14:14:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.820612'}
2025-08-14 14:14:16,192 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 14:14:16,192 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54690861 passed
2025-08-14 14:14:16,193 - DEBUG - ====Verifying policy data for ctest-vn-54690861 in API_Server ======
2025-08-14 14:14:16,193 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 14:14:16,199 - DEBUG - Requesting: http://10.0.0.38:8082/domain/de129236-0c26-46f5-915e-4c5c63d37cfa
2025-08-14 14:14:16,214 - DEBUG - Requesting: http://10.0.0.38:8082/project/9991e5df-d195-49f0-9e82-7aeac0531c8d
2025-08-14 14:14:16,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b32a0f0d-31fc-43c6-a47e-3d91ee5e3d4a
2025-08-14 14:14:16,300 - DEBUG - ==>Verifying data for policy with id: 92e60ef2-9872-42b5-8a7d-ff10e58d4b15, fqn: ['default-domain', 'ctest-TestBasicPolicy-45353790', 'ctest-policy-allow-all-54831830']
2025-08-14 14:14:16,300 - INFO - VN ctest-vn-54690861 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 14:14:16,300 - DEBUG - Verifying the vn in opserver
2025-08-14 14:14:16,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-54690861 virtual network link through opserver 10.0.0.38
2025-08-14 14:14:16,300 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-14 14:14:16,312 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-54690861', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-54690861?flat'}
2025-08-14 14:14:16,312 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45353790:ctest-vn-54690861 is found in opserver
2025-08-14 14:14:16,326 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 14:14:16,334 - DEBUG - VRF ids for VN ctest-vn-54690861: {}
2025-08-14 14:14:16,409 - DEBUG - Services list from nova: [