2025-08-28 21:26:49,664 - INFO - Domain Default found not creating
2025-08-28 21:26:49,781 - INFO - Project ctest-TestBasicPolicy-95303327 not found, creating it
2025-08-28 21:26:50,225 - INFO - Created Project:ctest-TestBasicPolicy-95303327, ID : e4c24e78-1b56-4198-9040-a223d99b7aea
2025-08-28 21:26:51,544 - INFO - ================================================================================
2025-08-28 21:26:51,544 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-28 21:26:51,544 - 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-28 21:26:51,800 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with
2025-08-28 21:26:51,800 - INFO - Initial checks done. Running the testcase now
2025-08-28 21:26:51,800 - INFO -
2025-08-28 21:26:52,316 - DEBUG - Response for create_network : {'network': {'id': '4509a7ec-e991-4174-b3ff-86828b5cd3dc', 'name': 'ctest-vn-57359767', 'tenant_id': 'e4c24e781b5641989040a223d99b7aea', 'project_id': 'e4c24e781b5641989040a223d99b7aea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95303327', 'ctest-vn-57359767'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 21:26:52,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '334e2ff7-608b-43b3-8bb5-d354bcda0c43', 'name': '', 'tenant_id': 'e4c24e781b5641989040a223d99b7aea', 'network_id': '4509a7ec-e991-4174-b3ff-86828b5cd3dc', 'ip_version': 4, 'cidr': '205.201.223.128/26', 'allocation_pools': [{'start': '205.201.223.130', 'end': '205.201.223.190'}], 'gateway_ip': '205.201.223.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.201.223.130', 'tags': [], 'project_id': 'e4c24e781b5641989040a223d99b7aea'}}
2025-08-28 21:26:52,496 - INFO - Created VN ctest-vn-57359767
2025-08-28 21:26:52,551 - DEBUG - VN ctest-vn-57359767 UUID is 4509a7ec-e991-4174-b3ff-86828b5cd3dc
2025-08-28 21:26:52,843 - DEBUG - Response for create_network : {'network': {'id': 'afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6', 'name': 'ctest-vn-90455175', 'tenant_id': 'e4c24e781b5641989040a223d99b7aea', 'project_id': 'e4c24e781b5641989040a223d99b7aea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95303327', 'ctest-vn-90455175'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 21:26:53,040 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb3fb2d5-f619-400a-85ca-f35316fd5e2d', 'name': '', 'tenant_id': 'e4c24e781b5641989040a223d99b7aea', 'network_id': 'afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6', 'ip_version': 4, 'cidr': '169.102.179.192/26', 'allocation_pools': [{'start': '169.102.179.194', 'end': '169.102.179.254'}], 'gateway_ip': '169.102.179.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.102.179.194', 'tags': [], 'project_id': 'e4c24e781b5641989040a223d99b7aea'}}
2025-08-28 21:26:53,055 - INFO - Created VN ctest-vn-90455175
2025-08-28 21:26:53,107 - DEBUG - VN ctest-vn-90455175 UUID is afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6
2025-08-28 21:26:53,254 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-57359767, 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-95303327:ctest-vn-90455175, 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-28 21:26:53,546 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4509a7ec-e991-4174-b3ff-86828b5cd3dc', 'name': 'ctest-vn-57359767', 'tenant_id': 'e4c24e781b5641989040a223d99b7aea', 'project_id': 'e4c24e781b5641989040a223d99b7aea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['334e2ff7-608b-43b3-8bb5-d354bcda0c43'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95303327', 'ctest-vn-57359767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95303327', 'ctest-policy-allow-all-67969717']], 'subnet_ipam': [{'subnet_cidr': '205.201.223.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 21:26:53,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6', 'name': 'ctest-vn-90455175', 'tenant_id': 'e4c24e781b5641989040a223d99b7aea', 'project_id': 'e4c24e781b5641989040a223d99b7aea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb3fb2d5-f619-400a-85ca-f35316fd5e2d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95303327', 'ctest-vn-90455175'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95303327', 'ctest-policy-allow-all-67969717']], 'subnet_ipam': [{'subnet_cidr': '169.102.179.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 21:26:53,907 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-28 21:26:54,198 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-28 21:26:54,228 - DEBUG - Requesting: http://10.0.0.48:8082/domain/042e84a8-87ca-463c-aa69-7b66a83f7a51
2025-08-28 21:26:54,238 - DEBUG - Requesting: http://10.0.0.48:8082/project/e4c24e78-1b56-4198-9040-a223d99b7aea
2025-08-28 21:26:54,306 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4509a7ec-e991-4174-b3ff-86828b5cd3dc
2025-08-28 21:26:54,315 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4509a7ec-e991-4174-b3ff-86828b5cd3dc
2025-08-28 21:26:54,322 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9f7c744e-fde1-4cea-bd63-e9d480f1ffd5
2025-08-28 21:26:54,327 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9f7c744e-fde1-4cea-bd63-e9d480f1ffd5
2025-08-28 21:26:54,332 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/8233f5c9-3d70-4792-8f2c-0d9258e2d67e
2025-08-28 21:26:54,336 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 21:26:54,336 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4509a7ec-e991-4174-b3ff-86828b5cd3dc
2025-08-28 21:26:54,343 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9f7c744e-fde1-4cea-bd63-e9d480f1ffd5
2025-08-28 21:26:54,354 - INFO - Verified VN network id 12 for VN 4509a7ec-e991-4174-b3ff-86828b5cd3dc
2025-08-28 21:26:54,354 - INFO - Verifications in API Server for VN ctest-vn-57359767 passed
2025-08-28 21:26:54,354 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4509a7ec-e991-4174-b3ff-86828b5cd3dc
2025-08-28 21:26:54,361 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9f7c744e-fde1-4cea-bd63-e9d480f1ffd5
2025-08-28 21:26:54,366 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9f7c744e-fde1-4cea-bd63-e9d480f1ffd5
2025-08-28 21:26:54,371 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/8233f5c9-3d70-4792-8f2c-0d9258e2d67e
2025-08-28 21:26:54,380 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-57359767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95303327', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4974691899380154740', 'uuid-lslong': '12970233347092304860'}, 'enable': 'true', 'created': '2025-08-28T21:26:52', 'last-modified': '2025-08-28T21:26:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859613'}
2025-08-28 21:26:54,385 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 21:26:54,385 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57359767 passed
2025-08-28 21:26:54,386 - DEBUG - ====Verifying policy data for ctest-vn-57359767 in API_Server ======
2025-08-28 21:26:54,386 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-28 21:26:54,390 - DEBUG - Requesting: http://10.0.0.48:8082/domain/042e84a8-87ca-463c-aa69-7b66a83f7a51
2025-08-28 21:26:54,400 - DEBUG - Requesting: http://10.0.0.48:8082/project/e4c24e78-1b56-4198-9040-a223d99b7aea
2025-08-28 21:26:54,464 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4509a7ec-e991-4174-b3ff-86828b5cd3dc
2025-08-28 21:26:54,472 - DEBUG - ==>Verifying data for policy with id: 70373cf4-aed8-473c-9156-88c69a124976, fqn: ['default-domain', 'ctest-TestBasicPolicy-95303327', 'ctest-policy-allow-all-67969717']
2025-08-28 21:26:54,472 - INFO - VN ctest-vn-57359767 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 21:26:54,472 - DEBUG - Verifying the vn in opserver
2025-08-28 21:26:54,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-57359767 virtual network link through opserver 10.0.0.48
2025-08-28 21:26:54,472 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-28 21:26:54,759 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-28 21:26:54,804 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-57359767', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-57359767?flat'}
2025-08-28 21:26:54,804 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-57359767 is found in opserver
2025-08-28 21:26:54,812 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 21:26:54,816 - DEBUG - VRF ids for VN ctest-vn-57359767: {}
2025-08-28 21:26:54,816 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-28 21:26:54,820 - DEBUG - Requesting: http://10.0.0.48:8082/domain/042e84a8-87ca-463c-aa69-7b66a83f7a51
2025-08-28 21:26:54,828 - DEBUG - Requesting: http://10.0.0.48:8082/project/e4c24e78-1b56-4198-9040-a223d99b7aea
2025-08-28 21:26:54,897 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6
2025-08-28 21:26:54,907 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6
2025-08-28 21:26:54,915 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/81d17b2f-a64a-4001-ae55-8944402542dc
2025-08-28 21:26:54,920 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/81d17b2f-a64a-4001-ae55-8944402542dc
2025-08-28 21:26:54,926 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/db5b8fbd-413a-4726-a52b-8730fe20b4de
2025-08-28 21:26:54,932 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 21:26:54,932 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6
2025-08-28 21:26:54,940 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/81d17b2f-a64a-4001-ae55-8944402542dc
2025-08-28 21:26:54,952 - INFO - Verified VN network id 13 for VN afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6
2025-08-28 21:26:54,952 - INFO - Verifications in API Server for VN ctest-vn-90455175 passed
2025-08-28 21:26:54,952 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6
2025-08-28 21:26:54,960 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/81d17b2f-a64a-4001-ae55-8944402542dc
2025-08-28 21:26:54,966 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/81d17b2f-a64a-4001-ae55-8944402542dc
2025-08-28 21:26:54,973 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/db5b8fbd-413a-4726-a52b-8730fe20b4de
2025-08-28 21:26:54,984 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-90455175', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95303327', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12670381185502105116', 'uuid-lslong': '10861095246611395782'}, 'enable': 'true', 'created': '2025-08-28T21:26:52', 'last-modified': '2025-08-28T21:26:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.243735'}
2025-08-28 21:26:54,989 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 21:26:54,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90455175 passed
2025-08-28 21:26:54,989 - DEBUG - ====Verifying policy data for ctest-vn-90455175 in API_Server ======
2025-08-28 21:26:54,989 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-28 21:26:54,994 - DEBUG - Requesting: http://10.0.0.48:8082/domain/042e84a8-87ca-463c-aa69-7b66a83f7a51
2025-08-28 21:26:55,004 - DEBUG - Requesting: http://10.0.0.48:8082/project/e4c24e78-1b56-4198-9040-a223d99b7aea
2025-08-28 21:26:55,071 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/afd63c8e-c2a5-4e1c-96ba-5c950df4b4c6
2025-08-28 21:26:55,081 - DEBUG - ==>Verifying data for policy with id: 70373cf4-aed8-473c-9156-88c69a124976, fqn: ['default-domain', 'ctest-TestBasicPolicy-95303327', 'ctest-policy-allow-all-67969717']
2025-08-28 21:26:55,081 - INFO - VN ctest-vn-90455175 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 21:26:55,081 - DEBUG - Verifying the vn in opserver
2025-08-28 21:26:55,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-90455175 virtual network link through opserver 10.0.0.48
2025-08-28 21:26:55,081 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-28 21:26:55,091 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-90455175', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-90455175?flat'}
2025-08-28 21:26:55,091 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95303327:ctest-vn-90455175 is found in opserver
2025-08-28 21:26:55,101 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 21:26:55,105 - DEBUG - VRF ids for VN ctest-vn-90455175: {}
2025-08-28 21:26:55,166 - DEBUG - Services list from nova: [