2025-08-03 07:11:58,230 - INFO - Domain Default found not creating
2025-08-03 07:11:58,384 - INFO - Project ctest-TestBasicPolicy-48736878 not found, creating it
2025-08-03 07:11:58,842 - INFO - Created Project:ctest-TestBasicPolicy-48736878, ID : 2eca378c-d87b-43fd-8e78-b2304a33c5f5
2025-08-03 07:12:00,303 - INFO - ================================================================================
2025-08-03 07:12:00,304 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-03 07:12:00,304 - 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-03 07:12:00,557 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-03 07:12:00,557 - INFO - Initial checks done. Running the testcase now
2025-08-03 07:12:00,557 - INFO -
2025-08-03 07:12:01,143 - DEBUG - Response for create_network : {'network': {'id': '493b5318-28dc-4c07-a48f-b8df289163d3', 'name': 'ctest-vn-22462511', 'tenant_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'project_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48736878', 'ctest-vn-22462511'], 'port_security_enabled': True, 'description': ''}}
2025-08-03 07:12:01,328 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d3b4ff1-3d02-4ed9-a0c4-0def4048805d', 'name': '', 'tenant_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'network_id': '493b5318-28dc-4c07-a48f-b8df289163d3', 'ip_version': 4, 'cidr': '117.228.104.0/26', 'allocation_pools': [{'start': '117.228.104.2', 'end': '117.228.104.62'}], 'gateway_ip': '117.228.104.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.228.104.2', 'tags': [], 'project_id': '2eca378cd87b43fd8e78b2304a33c5f5'}}
2025-08-03 07:12:01,346 - INFO - Created VN ctest-vn-22462511
2025-08-03 07:12:01,400 - DEBUG - VN ctest-vn-22462511 UUID is 493b5318-28dc-4c07-a48f-b8df289163d3
2025-08-03 07:12:01,700 - DEBUG - Response for create_network : {'network': {'id': 'd6fa1631-076d-499f-ae1a-b4dd227ddd22', 'name': 'ctest-vn-24377913', 'tenant_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'project_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48736878', 'ctest-vn-24377913'], 'port_security_enabled': True, 'description': ''}}
2025-08-03 07:12:01,912 - DEBUG - Response for create_subnet : {'subnet': {'id': '06d81b34-5081-40cd-a3bb-40675d3e7d87', 'name': '', 'tenant_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'network_id': 'd6fa1631-076d-499f-ae1a-b4dd227ddd22', 'ip_version': 4, 'cidr': '39.221.150.128/26', 'allocation_pools': [{'start': '39.221.150.130', 'end': '39.221.150.190'}], 'gateway_ip': '39.221.150.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.221.150.130', 'tags': [], 'project_id': '2eca378cd87b43fd8e78b2304a33c5f5'}}
2025-08-03 07:12:01,929 - INFO - Created VN ctest-vn-24377913
2025-08-03 07:12:01,984 - DEBUG - VN ctest-vn-24377913 UUID is d6fa1631-076d-499f-ae1a-b4dd227ddd22
2025-08-03 07:12:02,100 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-22462511, 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-48736878:ctest-vn-24377913, 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-03 07:12:02,405 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '493b5318-28dc-4c07-a48f-b8df289163d3', 'name': 'ctest-vn-22462511', 'tenant_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'project_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d3b4ff1-3d02-4ed9-a0c4-0def4048805d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48736878', 'ctest-vn-22462511'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48736878', 'ctest-policy-allow-all-88229430']], 'subnet_ipam': [{'subnet_cidr': '117.228.104.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-03 07:12:02,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6fa1631-076d-499f-ae1a-b4dd227ddd22', 'name': 'ctest-vn-24377913', 'tenant_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'project_id': '2eca378cd87b43fd8e78b2304a33c5f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06d81b34-5081-40cd-a3bb-40675d3e7d87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48736878', 'ctest-vn-24377913'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48736878', 'ctest-policy-allow-all-88229430']], 'subnet_ipam': [{'subnet_cidr': '39.221.150.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-03 07:12:02,832 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-03 07:12:03,128 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-03 07:12:03,155 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6874d71b-f512-4e18-8b72-b150f0987cc7
2025-08-03 07:12:03,169 - DEBUG - Requesting: http://10.0.0.38:8082/project/2eca378c-d87b-43fd-8e78-b2304a33c5f5
2025-08-03 07:12:03,242 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/493b5318-28dc-4c07-a48f-b8df289163d3
2025-08-03 07:12:03,254 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/493b5318-28dc-4c07-a48f-b8df289163d3
2025-08-03 07:12:03,265 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee77b2c8-6c07-4688-9bc8-f5cf90385583
2025-08-03 07:12:03,274 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee77b2c8-6c07-4688-9bc8-f5cf90385583
2025-08-03 07:12:03,282 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/615082e0-6709-40f2-8908-2feab2ec6fb5
2025-08-03 07:12:03,289 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-03 07:12:03,289 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/493b5318-28dc-4c07-a48f-b8df289163d3
2025-08-03 07:12:03,300 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee77b2c8-6c07-4688-9bc8-f5cf90385583
2025-08-03 07:12:03,315 - INFO - Verified VN network id 10 for VN 493b5318-28dc-4c07-a48f-b8df289163d3
2025-08-03 07:12:03,315 - INFO - Verifications in API Server for VN ctest-vn-22462511 passed
2025-08-03 07:12:03,315 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/493b5318-28dc-4c07-a48f-b8df289163d3
2025-08-03 07:12:03,327 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee77b2c8-6c07-4688-9bc8-f5cf90385583
2025-08-03 07:12:03,336 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ee77b2c8-6c07-4688-9bc8-f5cf90385583
2025-08-03 07:12:03,345 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/615082e0-6709-40f2-8908-2feab2ec6fb5
2025-08-03 07:12:03,358 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-22462511', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48736878', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5276902751624514567', 'uuid-lslong': '11857899612487640019'}, 'enable': 'true', 'created': '2025-08-03T07:12:01', 'last-modified': '2025-08-03T07:12:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978409'}
2025-08-03 07:12:03,366 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-03 07:12:03,366 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22462511 passed
2025-08-03 07:12:03,366 - DEBUG - ====Verifying policy data for ctest-vn-22462511 in API_Server ======
2025-08-03 07:12:03,366 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-03 07:12:03,373 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6874d71b-f512-4e18-8b72-b150f0987cc7
2025-08-03 07:12:03,387 - DEBUG - Requesting: http://10.0.0.38:8082/project/2eca378c-d87b-43fd-8e78-b2304a33c5f5
2025-08-03 07:12:03,469 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/493b5318-28dc-4c07-a48f-b8df289163d3
2025-08-03 07:12:03,480 - DEBUG - ==>Verifying data for policy with id: 46620a97-1e53-471f-aba5-1fa2b05edc4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-48736878', 'ctest-policy-allow-all-88229430']
2025-08-03 07:12:03,480 - INFO - VN ctest-vn-22462511 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-03 07:12:03,480 - DEBUG - Verifying the vn in opserver
2025-08-03 07:12:03,480 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-22462511 virtual network link through opserver 10.0.0.38
2025-08-03 07:12:03,480 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-03 07:12:03,771 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-03 07:12:03,831 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-22462511', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-22462511?flat'}
2025-08-03 07:12:03,831 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-22462511 is found in opserver
2025-08-03 07:12:03,843 - DEBUG - Do not have enough data to verify VN in agent
2025-08-03 07:12:03,848 - DEBUG - VRF ids for VN ctest-vn-22462511: {}
2025-08-03 07:12:03,848 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-03 07:12:03,854 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6874d71b-f512-4e18-8b72-b150f0987cc7
2025-08-03 07:12:03,866 - DEBUG - Requesting: http://10.0.0.38:8082/project/2eca378c-d87b-43fd-8e78-b2304a33c5f5
2025-08-03 07:12:03,940 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6fa1631-076d-499f-ae1a-b4dd227ddd22
2025-08-03 07:12:03,953 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6fa1631-076d-499f-ae1a-b4dd227ddd22
2025-08-03 07:12:03,964 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191e22a9-6191-429f-bf4f-19aa6ec9ab8c
2025-08-03 07:12:03,973 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191e22a9-6191-429f-bf4f-19aa6ec9ab8c
2025-08-03 07:12:03,981 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2d1dadca-da81-4dc8-a555-69ce2b66154f
2025-08-03 07:12:03,989 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-03 07:12:03,989 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6fa1631-076d-499f-ae1a-b4dd227ddd22
2025-08-03 07:12:04,001 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191e22a9-6191-429f-bf4f-19aa6ec9ab8c
2025-08-03 07:12:04,021 - INFO - Verified VN network id 11 for VN d6fa1631-076d-499f-ae1a-b4dd227ddd22
2025-08-03 07:12:04,023 - INFO - Verifications in API Server for VN ctest-vn-24377913 passed
2025-08-03 07:12:04,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6fa1631-076d-499f-ae1a-b4dd227ddd22
2025-08-03 07:12:04,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191e22a9-6191-429f-bf4f-19aa6ec9ab8c
2025-08-03 07:12:04,047 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191e22a9-6191-429f-bf4f-19aa6ec9ab8c
2025-08-03 07:12:04,056 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2d1dadca-da81-4dc8-a555-69ce2b66154f
2025-08-03 07:12:04,071 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-24377913', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48736878', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15490718268128053663', 'uuid-lslong': '12545538573853383970'}, 'enable': 'true', 'created': '2025-08-03T07:12:01', 'last-modified': '2025-08-03T07:12:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441266'}
2025-08-03 07:12:04,077 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-03 07:12:04,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24377913 passed
2025-08-03 07:12:04,077 - DEBUG - ====Verifying policy data for ctest-vn-24377913 in API_Server ======
2025-08-03 07:12:04,077 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-03 07:12:04,084 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6874d71b-f512-4e18-8b72-b150f0987cc7
2025-08-03 07:12:04,100 - DEBUG - Requesting: http://10.0.0.38:8082/project/2eca378c-d87b-43fd-8e78-b2304a33c5f5
2025-08-03 07:12:04,173 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6fa1631-076d-499f-ae1a-b4dd227ddd22
2025-08-03 07:12:04,185 - DEBUG - ==>Verifying data for policy with id: 46620a97-1e53-471f-aba5-1fa2b05edc4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-48736878', 'ctest-policy-allow-all-88229430']
2025-08-03 07:12:04,185 - INFO - VN ctest-vn-24377913 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-03 07:12:04,186 - DEBUG - Verifying the vn in opserver
2025-08-03 07:12:04,186 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-24377913 virtual network link through opserver 10.0.0.38
2025-08-03 07:12:04,186 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-03 07:12:04,197 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-24377913', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-24377913?flat'}
2025-08-03 07:12:04,197 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48736878:ctest-vn-24377913 is found in opserver
2025-08-03 07:12:04,210 - DEBUG - Do not have enough data to verify VN in agent
2025-08-03 07:12:04,216 - DEBUG - VRF ids for VN ctest-vn-24377913: {}
2025-08-03 07:12:04,277 - DEBUG - Services list from nova: [