2025-12-04 13:46:21,835 - INFO - Domain Default found not creating
2025-12-04 13:46:22,065 - INFO - Project ctest-TestBasicPolicy-55246224 not found, creating it
2025-12-04 13:46:22,619 - INFO - Created Project:ctest-TestBasicPolicy-55246224, ID : ba20aaba-9a63-4c8f-8920-fb14f9241aa4
2025-12-04 13:46:24,402 - INFO - ================================================================================
2025-12-04 13:46:24,402 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-04 13:46:24,402 - 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-12-04 13:46:24,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with
2025-12-04 13:46:24,676 - INFO - Initial checks done. Running the testcase now
2025-12-04 13:46:24,676 - INFO -
2025-12-04 13:46:25,327 - DEBUG - Response for create_network : {'network': {'id': 'bbbe242b-f0bc-48ba-8bbe-9e07c516a378', 'name': 'ctest-vn-63134679', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-vn-63134679'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 13:46:25,558 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1673f0b-dd3c-4523-9961-2b8dd59b9fca', 'name': '', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'network_id': 'bbbe242b-f0bc-48ba-8bbe-9e07c516a378', 'ip_version': 4, 'cidr': '8.136.34.128/26', 'allocation_pools': [{'start': '8.136.34.130', 'end': '8.136.34.190'}], 'gateway_ip': '8.136.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.136.34.130', 'tags': [], 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4'}}
2025-12-04 13:46:25,584 - INFO - Created VN ctest-vn-63134679
2025-12-04 13:46:25,642 - DEBUG - VN ctest-vn-63134679 UUID is bbbe242b-f0bc-48ba-8bbe-9e07c516a378
2025-12-04 13:46:26,015 - DEBUG - Response for create_network : {'network': {'id': 'd93d3a9a-5c72-4abf-9e4a-136687aa57f4', 'name': 'ctest-vn-14918059', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-vn-14918059'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 13:46:26,268 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4f377fa-8b60-4812-9bd7-a56b23612103', 'name': '', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'network_id': 'd93d3a9a-5c72-4abf-9e4a-136687aa57f4', 'ip_version': 4, 'cidr': '123.111.114.64/26', 'allocation_pools': [{'start': '123.111.114.66', 'end': '123.111.114.126'}], 'gateway_ip': '123.111.114.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.111.114.66', 'tags': [], 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4'}}
2025-12-04 13:46:26,294 - INFO - Created VN ctest-vn-14918059
2025-12-04 13:46:26,350 - DEBUG - VN ctest-vn-14918059 UUID is d93d3a9a-5c72-4abf-9e4a-136687aa57f4
2025-12-04 13:46:26,482 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679, 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-55246224:ctest-vn-14918059, 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-12-04 13:46:26,829 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bbbe242b-f0bc-48ba-8bbe-9e07c516a378', 'name': 'ctest-vn-63134679', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1673f0b-dd3c-4523-9961-2b8dd59b9fca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-vn-63134679'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-policy-allow-all-75706064']], 'subnet_ipam': [{'subnet_cidr': '8.136.34.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 13:46:27,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd93d3a9a-5c72-4abf-9e4a-136687aa57f4', 'name': 'ctest-vn-14918059', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4f377fa-8b60-4812-9bd7-a56b23612103'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-vn-14918059'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-policy-allow-all-75706064']], 'subnet_ipam': [{'subnet_cidr': '123.111.114.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 13:46:27,294 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-04 13:46:27,611 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-04 13:46:27,651 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1
2025-12-04 13:46:27,667 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4
2025-12-04 13:46:27,752 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378
2025-12-04 13:46:27,764 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378
2025-12-04 13:46:27,775 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3
2025-12-04 13:46:27,785 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3
2025-12-04 13:46:27,794 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/59006122-c2af-4c44-8ea4-614c5c45272a
2025-12-04 13:46:27,802 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 13:46:27,803 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378
2025-12-04 13:46:27,815 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3
2025-12-04 13:46:27,834 - INFO - Verified VN network id 11 for VN bbbe242b-f0bc-48ba-8bbe-9e07c516a378
2025-12-04 13:46:27,834 - INFO - Verifications in API Server for VN ctest-vn-63134679 passed
2025-12-04 13:46:27,834 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378
2025-12-04 13:46:27,846 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3
2025-12-04 13:46:27,856 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3
2025-12-04 13:46:27,865 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/59006122-c2af-4c44-8ea4-614c5c45272a
2025-12-04 13:46:27,882 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55246224', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13528290101808613562', 'uuid-lslong': '10069659573055562616'}, 'enable': 'true', 'created': '2025-12-04T13:46:25', 'last-modified': '2025-12-04T13:46:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.088831'}
2025-12-04 13:46:27,891 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 13:46:27,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63134679 passed
2025-12-04 13:46:27,892 - DEBUG - ====Verifying policy data for ctest-vn-63134679 in API_Server ======
2025-12-04 13:46:27,892 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-04 13:46:27,904 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1
2025-12-04 13:46:27,925 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4
2025-12-04 13:46:28,004 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378
2025-12-04 13:46:28,016 - DEBUG - ==>Verifying data for policy with id: 38af229a-803a-448d-9689-2fcb98eef2ed, fqn: ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-policy-allow-all-75706064']
2025-12-04 13:46:28,016 - INFO - VN ctest-vn-63134679 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 13:46:28,017 - DEBUG - Verifying the vn in opserver
2025-12-04 13:46:28,017 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679 virtual network link through opserver 10.0.0.141
2025-12-04 13:46:28,017 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-12-04 13:46:28,332 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-12-04 13:46:28,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679?flat'}
2025-12-04 13:46:28,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679 is found in opserver
2025-12-04 13:46:28,427 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 13:46:28,433 - DEBUG - VRF ids for VN ctest-vn-63134679: {}
2025-12-04 13:46:28,433 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-04 13:46:28,439 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1
2025-12-04 13:46:28,452 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4
2025-12-04 13:46:28,527 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4
2025-12-04 13:46:28,543 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4
2025-12-04 13:46:28,557 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9
2025-12-04 13:46:28,567 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9
2025-12-04 13:46:28,577 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/48f87811-eff4-4854-ad79-199f138246f6
2025-12-04 13:46:28,586 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 13:46:28,587 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4
2025-12-04 13:46:28,598 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9
2025-12-04 13:46:28,616 - INFO - Verified VN network id 12 for VN d93d3a9a-5c72-4abf-9e4a-136687aa57f4
2025-12-04 13:46:28,616 - INFO - Verifications in API Server for VN ctest-vn-14918059 passed
2025-12-04 13:46:28,616 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4
2025-12-04 13:46:28,627 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9
2025-12-04 13:46:28,638 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9
2025-12-04 13:46:28,648 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/48f87811-eff4-4854-ad79-199f138246f6
2025-12-04 13:46:28,663 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55246224', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15653732314460080831', 'uuid-lslong': '11405950337352882164'}, 'enable': 'true', 'created': '2025-12-04T13:46:25', 'last-modified': '2025-12-04T13:46:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.606816'}
2025-12-04 13:46:28,670 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 13:46:28,670 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14918059 passed
2025-12-04 13:46:28,671 - DEBUG - ====Verifying policy data for ctest-vn-14918059 in API_Server ======
2025-12-04 13:46:28,671 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-04 13:46:28,678 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1
2025-12-04 13:46:28,691 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4
2025-12-04 13:46:28,769 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4
2025-12-04 13:46:28,781 - DEBUG - ==>Verifying data for policy with id: 38af229a-803a-448d-9689-2fcb98eef2ed, fqn: ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-policy-allow-all-75706064']
2025-12-04 13:46:28,781 - INFO - VN ctest-vn-14918059 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 13:46:28,781 - DEBUG - Verifying the vn in opserver
2025-12-04 13:46:28,781 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059 virtual network link through opserver 10.0.0.141
2025-12-04 13:46:28,781 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-12-04 13:46:28,794 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059?flat'}
2025-12-04 13:46:28,794 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059 is found in opserver
2025-12-04 13:46:28,806 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 13:46:28,811 - DEBUG - VRF ids for VN ctest-vn-14918059: {}
2025-12-04 13:46:28,891 - DEBUG - Services list from nova: [