2025-09-29 01:50:48,824 - INFO - Domain Default found not creating
2025-09-29 01:50:48,959 - INFO - Project ctest-TestBasicPolicy-52691299 not found, creating it
2025-09-29 01:50:49,408 - INFO - Created Project:ctest-TestBasicPolicy-52691299, ID : 4f2ca41a-e07f-4b34-acc9-c6cfd7268032
2025-09-29 01:50:50,803 - INFO - ================================================================================
2025-09-29 01:50:50,804 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-29 01:50:50,804 - 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-29 01:50:51,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with
2025-09-29 01:50:51,059 - INFO - Initial checks done. Running the testcase now
2025-09-29 01:50:51,059 - INFO -
2025-09-29 01:50:51,615 - DEBUG - Response for create_network : {'network': {'id': '62fa53d5-d22c-4054-99f1-0762122fb946', 'name': 'ctest-vn-94953015', 'tenant_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'project_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52691299', 'ctest-vn-94953015'], 'port_security_enabled': True, 'description': ''}}
2025-09-29 01:50:51,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '86249155-cb7e-40aa-9542-3c57365c8ba7', 'name': '', 'tenant_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'network_id': '62fa53d5-d22c-4054-99f1-0762122fb946', 'ip_version': 4, 'cidr': '78.192.246.192/26', 'allocation_pools': [{'start': '78.192.246.194', 'end': '78.192.246.254'}], 'gateway_ip': '78.192.246.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.192.246.194', 'tags': [], 'project_id': '4f2ca41ae07f4b34acc9c6cfd7268032'}}
2025-09-29 01:50:51,784 - INFO - Created VN ctest-vn-94953015
2025-09-29 01:50:51,834 - DEBUG - VN ctest-vn-94953015 UUID is 62fa53d5-d22c-4054-99f1-0762122fb946
2025-09-29 01:50:52,170 - DEBUG - Response for create_network : {'network': {'id': 'fd4151cb-ab41-4ef9-abab-bf425f4ee392', 'name': 'ctest-vn-96115027', 'tenant_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'project_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52691299', 'ctest-vn-96115027'], 'port_security_enabled': True, 'description': ''}}
2025-09-29 01:50:52,357 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d46dc87-3e87-494a-8b17-9d50f5d71d72', 'name': '', 'tenant_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'network_id': 'fd4151cb-ab41-4ef9-abab-bf425f4ee392', 'ip_version': 4, 'cidr': '74.21.106.64/26', 'allocation_pools': [{'start': '74.21.106.66', 'end': '74.21.106.126'}], 'gateway_ip': '74.21.106.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.21.106.66', 'tags': [], 'project_id': '4f2ca41ae07f4b34acc9c6cfd7268032'}}
2025-09-29 01:50:52,374 - INFO - Created VN ctest-vn-96115027
2025-09-29 01:50:52,426 - DEBUG - VN ctest-vn-96115027 UUID is fd4151cb-ab41-4ef9-abab-bf425f4ee392
2025-09-29 01:50:52,574 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-94953015, 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-52691299:ctest-vn-96115027, 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-29 01:50:52,867 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62fa53d5-d22c-4054-99f1-0762122fb946', 'name': 'ctest-vn-94953015', 'tenant_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'project_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86249155-cb7e-40aa-9542-3c57365c8ba7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52691299', 'ctest-vn-94953015'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52691299', 'ctest-policy-allow-all-36159962']], 'subnet_ipam': [{'subnet_cidr': '78.192.246.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-29 01:50:53,094 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd4151cb-ab41-4ef9-abab-bf425f4ee392', 'name': 'ctest-vn-96115027', 'tenant_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'project_id': '4f2ca41ae07f4b34acc9c6cfd7268032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d46dc87-3e87-494a-8b17-9d50f5d71d72'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52691299', 'ctest-vn-96115027'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52691299', 'ctest-policy-allow-all-36159962']], 'subnet_ipam': [{'subnet_cidr': '74.21.106.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-29 01:50:53,258 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-09-29 01:50:53,551 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-09-29 01:50:53,577 - DEBUG - Requesting: http://10.0.0.130:8082/domain/137491c9-af0d-4881-aa86-970d73b1f58a
2025-09-29 01:50:53,592 - DEBUG - Requesting: http://10.0.0.130:8082/project/4f2ca41a-e07f-4b34-acc9-c6cfd7268032
2025-09-29 01:50:53,663 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/62fa53d5-d22c-4054-99f1-0762122fb946
2025-09-29 01:50:53,673 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/62fa53d5-d22c-4054-99f1-0762122fb946
2025-09-29 01:50:53,684 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/61fcbbfc-0a3f-44e5-ad5b-7a195048bae9
2025-09-29 01:50:53,692 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/61fcbbfc-0a3f-44e5-ad5b-7a195048bae9
2025-09-29 01:50:53,698 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5c7dcca0-e052-4812-b439-dd9ba09010e0
2025-09-29 01:50:53,705 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-29 01:50:53,705 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/62fa53d5-d22c-4054-99f1-0762122fb946
2025-09-29 01:50:53,713 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/61fcbbfc-0a3f-44e5-ad5b-7a195048bae9
2025-09-29 01:50:53,725 - INFO - Verified VN network id 11 for VN 62fa53d5-d22c-4054-99f1-0762122fb946
2025-09-29 01:50:53,725 - INFO - Verifications in API Server for VN ctest-vn-94953015 passed
2025-09-29 01:50:53,726 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/62fa53d5-d22c-4054-99f1-0762122fb946
2025-09-29 01:50:53,734 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/61fcbbfc-0a3f-44e5-ad5b-7a195048bae9
2025-09-29 01:50:53,740 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/61fcbbfc-0a3f-44e5-ad5b-7a195048bae9
2025-09-29 01:50:53,746 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5c7dcca0-e052-4812-b439-dd9ba09010e0
2025-09-29 01:50:53,758 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-94953015', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52691299', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7132105137713856596', 'uuid-lslong': '11092655474983549254'}, 'enable': 'true', 'created': '2025-09-29T01:50:51', 'last-modified': '2025-09-29T01:50:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919994'}
2025-09-29 01:50:53,765 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-29 01:50:53,765 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94953015 passed
2025-09-29 01:50:53,765 - DEBUG - ====Verifying policy data for ctest-vn-94953015 in API_Server ======
2025-09-29 01:50:53,765 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-09-29 01:50:53,771 - DEBUG - Requesting: http://10.0.0.130:8082/domain/137491c9-af0d-4881-aa86-970d73b1f58a
2025-09-29 01:50:53,781 - DEBUG - Requesting: http://10.0.0.130:8082/project/4f2ca41a-e07f-4b34-acc9-c6cfd7268032
2025-09-29 01:50:53,851 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/62fa53d5-d22c-4054-99f1-0762122fb946
2025-09-29 01:50:53,859 - DEBUG - ==>Verifying data for policy with id: 36aa5011-8895-4d09-9a04-5365f371f731, fqn: ['default-domain', 'ctest-TestBasicPolicy-52691299', 'ctest-policy-allow-all-36159962']
2025-09-29 01:50:53,859 - INFO - VN ctest-vn-94953015 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-29 01:50:53,859 - DEBUG - Verifying the vn in opserver
2025-09-29 01:50:53,859 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-94953015 virtual network link through opserver 10.0.0.130
2025-09-29 01:50:53,859 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-09-29 01:50:54,154 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-09-29 01:50:54,208 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-94953015', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-94953015?flat'}
2025-09-29 01:50:54,208 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-94953015 is found in opserver
2025-09-29 01:50:54,217 - DEBUG - Do not have enough data to verify VN in agent
2025-09-29 01:50:54,222 - DEBUG - VRF ids for VN ctest-vn-94953015: {}
2025-09-29 01:50:54,222 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-09-29 01:50:54,227 - DEBUG - Requesting: http://10.0.0.130:8082/domain/137491c9-af0d-4881-aa86-970d73b1f58a
2025-09-29 01:50:54,237 - DEBUG - Requesting: http://10.0.0.130:8082/project/4f2ca41a-e07f-4b34-acc9-c6cfd7268032
2025-09-29 01:50:54,304 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fd4151cb-ab41-4ef9-abab-bf425f4ee392
2025-09-29 01:50:54,320 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fd4151cb-ab41-4ef9-abab-bf425f4ee392
2025-09-29 01:50:54,331 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6213455-7994-496f-b263-d783dbf47223
2025-09-29 01:50:54,342 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6213455-7994-496f-b263-d783dbf47223
2025-09-29 01:50:54,351 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d29cb509-5b01-495d-bfb6-50ac2337bd24
2025-09-29 01:50:54,358 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-29 01:50:54,358 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fd4151cb-ab41-4ef9-abab-bf425f4ee392
2025-09-29 01:50:54,367 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6213455-7994-496f-b263-d783dbf47223
2025-09-29 01:50:54,380 - INFO - Verified VN network id 12 for VN fd4151cb-ab41-4ef9-abab-bf425f4ee392
2025-09-29 01:50:54,380 - INFO - Verifications in API Server for VN ctest-vn-96115027 passed
2025-09-29 01:50:54,380 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fd4151cb-ab41-4ef9-abab-bf425f4ee392
2025-09-29 01:50:54,389 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6213455-7994-496f-b263-d783dbf47223
2025-09-29 01:50:54,416 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b6213455-7994-496f-b263-d783dbf47223
2025-09-29 01:50:54,422 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d29cb509-5b01-495d-bfb6-50ac2337bd24
2025-09-29 01:50:54,433 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-96115027', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52691299', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18248957100275355385', 'uuid-lslong': '12370191093290951570'}, 'enable': 'true', 'created': '2025-09-29T01:50:52', 'last-modified': '2025-09-29T01:50:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.359247'}
2025-09-29 01:50:54,439 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-29 01:50:54,439 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96115027 passed
2025-09-29 01:50:54,439 - DEBUG - ====Verifying policy data for ctest-vn-96115027 in API_Server ======
2025-09-29 01:50:54,439 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-09-29 01:50:54,445 - DEBUG - Requesting: http://10.0.0.130:8082/domain/137491c9-af0d-4881-aa86-970d73b1f58a
2025-09-29 01:50:54,455 - DEBUG - Requesting: http://10.0.0.130:8082/project/4f2ca41a-e07f-4b34-acc9-c6cfd7268032
2025-09-29 01:50:54,522 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fd4151cb-ab41-4ef9-abab-bf425f4ee392
2025-09-29 01:50:54,531 - DEBUG - ==>Verifying data for policy with id: 36aa5011-8895-4d09-9a04-5365f371f731, fqn: ['default-domain', 'ctest-TestBasicPolicy-52691299', 'ctest-policy-allow-all-36159962']
2025-09-29 01:50:54,531 - INFO - VN ctest-vn-96115027 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-29 01:50:54,531 - DEBUG - Verifying the vn in opserver
2025-09-29 01:50:54,531 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-96115027 virtual network link through opserver 10.0.0.130
2025-09-29 01:50:54,531 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-09-29 01:50:54,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-96115027', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-96115027?flat'}
2025-09-29 01:50:54,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52691299:ctest-vn-96115027 is found in opserver
2025-09-29 01:50:54,550 - DEBUG - Do not have enough data to verify VN in agent
2025-09-29 01:50:54,554 - DEBUG - VRF ids for VN ctest-vn-96115027: {}
2025-09-29 01:50:54,609 - DEBUG - Services list from nova: [