2025-07-09 14:16:45,897 - INFO - Domain Default found not creating
2025-07-09 14:16:46,270 - INFO - Project ctest-TestBasicPolicy-20312235 not found, creating it
2025-07-09 14:16:47,039 - INFO - Created Project:ctest-TestBasicPolicy-20312235, ID : eb99bc46-f2a6-496f-b944-b3df79445fb3
2025-07-09 14:16:49,076 - INFO - ================================================================================
2025-07-09 14:16:49,076 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-09 14:16:49,077 - 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-07-09 14:16:49,390 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0'}} with
2025-07-09 14:16:49,390 - INFO - Initial checks done. Running the testcase now
2025-07-09 14:16:49,391 - INFO -
2025-07-09 14:16:50,137 - DEBUG - Response for create_network : {'network': {'id': 'a2a48ccc-a19c-4dc6-9037-a3b2166e2657', 'name': 'ctest-vn-75118373', 'tenant_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'project_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20312235', 'ctest-vn-75118373'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 14:16:50,365 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a03a4fdd-f7a5-43bb-b5a3-5f5113091a88', 'name': '', 'tenant_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'network_id': 'a2a48ccc-a19c-4dc6-9037-a3b2166e2657', 'ip_version': 4, 'cidr': '104.115.170.0/26', 'allocation_pools': [{'start': '104.115.170.2', 'end': '104.115.170.62'}], 'gateway_ip': '104.115.170.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.115.170.2', 'tags': [], 'project_id': 'eb99bc46f2a6496fb944b3df79445fb3'}}
2025-07-09 14:16:50,392 - INFO - Created VN ctest-vn-75118373
2025-07-09 14:16:50,448 - DEBUG - VN ctest-vn-75118373 UUID is a2a48ccc-a19c-4dc6-9037-a3b2166e2657
2025-07-09 14:16:50,935 - DEBUG - Response for create_network : {'network': {'id': '043ec13e-06a0-4519-8be0-c6b56e2ef2f3', 'name': 'ctest-vn-54745323', 'tenant_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'project_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20312235', 'ctest-vn-54745323'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 14:16:51,156 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b60fe670-9662-402d-8e88-78024803dcb2', 'name': '', 'tenant_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'network_id': '043ec13e-06a0-4519-8be0-c6b56e2ef2f3', 'ip_version': 4, 'cidr': '203.61.10.192/26', 'allocation_pools': [{'start': '203.61.10.194', 'end': '203.61.10.254'}], 'gateway_ip': '203.61.10.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.61.10.194', 'tags': [], 'project_id': 'eb99bc46f2a6496fb944b3df79445fb3'}}
2025-07-09 14:16:51,178 - INFO - Created VN ctest-vn-54745323
2025-07-09 14:16:51,236 - DEBUG - VN ctest-vn-54745323 UUID is 043ec13e-06a0-4519-8be0-c6b56e2ef2f3
2025-07-09 14:16:51,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-75118373, 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-20312235:ctest-vn-54745323, 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-07-09 14:16:51,762 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2a48ccc-a19c-4dc6-9037-a3b2166e2657', 'name': 'ctest-vn-75118373', 'tenant_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'project_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a03a4fdd-f7a5-43bb-b5a3-5f5113091a88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20312235', 'ctest-vn-75118373'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20312235', 'ctest-policy-allow-all-13925892']], 'subnet_ipam': [{'subnet_cidr': '104.115.170.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 14:16:52,072 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '043ec13e-06a0-4519-8be0-c6b56e2ef2f3', 'name': 'ctest-vn-54745323', 'tenant_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'project_id': 'eb99bc46f2a6496fb944b3df79445fb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b60fe670-9662-402d-8e88-78024803dcb2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20312235', 'ctest-vn-54745323'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20312235', 'ctest-policy-allow-all-13925892']], 'subnet_ipam': [{'subnet_cidr': '203.61.10.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 14:16:52,256 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-09 14:16:52,577 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-09 14:16:52,628 - DEBUG - Requesting: http://10.0.0.65:8082/domain/efe773b4-0e10-4caa-a961-3036404beeb6
2025-07-09 14:16:52,660 - DEBUG - Requesting: http://10.0.0.65:8082/project/eb99bc46-f2a6-496f-b944-b3df79445fb3
2025-07-09 14:16:52,786 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2a48ccc-a19c-4dc6-9037-a3b2166e2657
2025-07-09 14:16:52,802 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2a48ccc-a19c-4dc6-9037-a3b2166e2657
2025-07-09 14:16:52,823 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cf84fb6b-c6b4-4160-84fe-c65bb84056fe
2025-07-09 14:16:52,839 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cf84fb6b-c6b4-4160-84fe-c65bb84056fe
2025-07-09 14:16:52,852 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a857f5a7-5bd1-4d75-ae59-56571bb6d170
2025-07-09 14:16:52,863 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 14:16:52,863 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2a48ccc-a19c-4dc6-9037-a3b2166e2657
2025-07-09 14:16:52,882 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cf84fb6b-c6b4-4160-84fe-c65bb84056fe
2025-07-09 14:16:52,913 - INFO - Verified VN network id 7 for VN a2a48ccc-a19c-4dc6-9037-a3b2166e2657
2025-07-09 14:16:52,914 - INFO - Verifications in API Server for VN ctest-vn-75118373 passed
2025-07-09 14:16:52,914 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2a48ccc-a19c-4dc6-9037-a3b2166e2657
2025-07-09 14:16:52,934 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cf84fb6b-c6b4-4160-84fe-c65bb84056fe
2025-07-09 14:16:52,950 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cf84fb6b-c6b4-4160-84fe-c65bb84056fe
2025-07-09 14:16:52,960 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a857f5a7-5bd1-4d75-ae59-56571bb6d170
2025-07-09 14:16:52,981 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-75118373', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20312235', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11719646940837465542', 'uuid-lslong': '10391954650456532567'}, 'enable': 'true', 'created': '2025-07-09T14:16:50', 'last-modified': '2025-07-09T14:16:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.254333'}
2025-07-09 14:16:52,991 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 14:16:52,992 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75118373 passed
2025-07-09 14:16:52,992 - DEBUG - ====Verifying policy data for ctest-vn-75118373 in API_Server ======
2025-07-09 14:16:52,992 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-09 14:16:53,003 - DEBUG - Requesting: http://10.0.0.65:8082/domain/efe773b4-0e10-4caa-a961-3036404beeb6
2025-07-09 14:16:53,029 - DEBUG - Requesting: http://10.0.0.65:8082/project/eb99bc46-f2a6-496f-b944-b3df79445fb3
2025-07-09 14:16:53,145 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a2a48ccc-a19c-4dc6-9037-a3b2166e2657
2025-07-09 14:16:53,168 - DEBUG - ==>Verifying data for policy with id: 1bdb8f71-9d6e-4168-be3a-4c6a39cfb7de, fqn: ['default-domain', 'ctest-TestBasicPolicy-20312235', 'ctest-policy-allow-all-13925892']
2025-07-09 14:16:53,168 - INFO - VN ctest-vn-75118373 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 14:16:53,168 - DEBUG - Verifying the vn in opserver
2025-07-09 14:16:53,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-75118373 virtual network link through opserver 10.0.0.65
2025-07-09 14:16:53,169 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-09 14:16:53,510 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-09 14:16:53,599 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-75118373', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-75118373?flat'}
2025-07-09 14:16:53,599 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-75118373 is found in opserver
2025-07-09 14:16:53,628 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 14:16:53,638 - DEBUG - VRF ids for VN ctest-vn-75118373: {}
2025-07-09 14:16:53,638 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-09 14:16:53,651 - DEBUG - Requesting: http://10.0.0.65:8082/domain/efe773b4-0e10-4caa-a961-3036404beeb6
2025-07-09 14:16:53,682 - DEBUG - Requesting: http://10.0.0.65:8082/project/eb99bc46-f2a6-496f-b944-b3df79445fb3
2025-07-09 14:16:53,817 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/043ec13e-06a0-4519-8be0-c6b56e2ef2f3
2025-07-09 14:16:53,837 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/043ec13e-06a0-4519-8be0-c6b56e2ef2f3
2025-07-09 14:16:53,858 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ecf8dc21-9ca1-43ab-bda4-0795b09d2df4
2025-07-09 14:16:53,874 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ecf8dc21-9ca1-43ab-bda4-0795b09d2df4
2025-07-09 14:16:53,891 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/e4981467-a10a-4444-9b30-cc9ab19a0156
2025-07-09 14:16:53,909 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 14:16:53,909 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/043ec13e-06a0-4519-8be0-c6b56e2ef2f3
2025-07-09 14:16:53,934 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ecf8dc21-9ca1-43ab-bda4-0795b09d2df4
2025-07-09 14:16:53,963 - INFO - Verified VN network id 8 for VN 043ec13e-06a0-4519-8be0-c6b56e2ef2f3
2025-07-09 14:16:53,963 - INFO - Verifications in API Server for VN ctest-vn-54745323 passed
2025-07-09 14:16:53,963 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/043ec13e-06a0-4519-8be0-c6b56e2ef2f3
2025-07-09 14:16:53,984 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ecf8dc21-9ca1-43ab-bda4-0795b09d2df4
2025-07-09 14:16:53,998 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ecf8dc21-9ca1-43ab-bda4-0795b09d2df4
2025-07-09 14:16:54,012 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/e4981467-a10a-4444-9b30-cc9ab19a0156
2025-07-09 14:16:54,039 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-54745323', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20312235', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '305894296851072281', 'uuid-lslong': '10079274448595120883'}, 'enable': 'true', 'created': '2025-07-09T14:16:50', 'last-modified': '2025-07-09T14:16:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.011407'}
2025-07-09 14:16:54,058 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 14:16:54,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54745323 passed
2025-07-09 14:16:54,059 - DEBUG - ====Verifying policy data for ctest-vn-54745323 in API_Server ======
2025-07-09 14:16:54,059 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-09 14:16:54,074 - DEBUG - Requesting: http://10.0.0.65:8082/domain/efe773b4-0e10-4caa-a961-3036404beeb6
2025-07-09 14:16:54,097 - DEBUG - Requesting: http://10.0.0.65:8082/project/eb99bc46-f2a6-496f-b944-b3df79445fb3
2025-07-09 14:16:54,195 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/043ec13e-06a0-4519-8be0-c6b56e2ef2f3
2025-07-09 14:16:54,213 - DEBUG - ==>Verifying data for policy with id: 1bdb8f71-9d6e-4168-be3a-4c6a39cfb7de, fqn: ['default-domain', 'ctest-TestBasicPolicy-20312235', 'ctest-policy-allow-all-13925892']
2025-07-09 14:16:54,214 - INFO - VN ctest-vn-54745323 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 14:16:54,214 - DEBUG - Verifying the vn in opserver
2025-07-09 14:16:54,214 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-54745323 virtual network link through opserver 10.0.0.65
2025-07-09 14:16:54,214 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-09 14:16:54,237 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-54745323', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-54745323?flat'}
2025-07-09 14:16:54,237 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20312235:ctest-vn-54745323 is found in opserver
2025-07-09 14:16:54,262 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 14:16:54,274 - DEBUG - VRF ids for VN ctest-vn-54745323: {}
2025-07-09 14:16:54,366 - DEBUG - Services list from nova: [