2025-09-11 09:25:55,376 - INFO - Domain Default found not creating
2025-09-11 09:25:55,507 - INFO - Project ctest-TestBasicPolicy-97945350 not found, creating it
2025-09-11 09:25:55,919 - INFO - Created Project:ctest-TestBasicPolicy-97945350, ID : 7492252d-f966-438d-a28a-753f5fd273b4
2025-09-11 09:25:57,262 - INFO - ================================================================================
2025-09-11 09:25:57,263 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 09:25:57,263 - 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-11 09:25:57,516 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-09-11 09:25:57,517 - INFO - Initial checks done. Running the testcase now
2025-09-11 09:25:57,517 - INFO -
2025-09-11 09:25:58,039 - DEBUG - Response for create_network : {'network': {'id': '83029aaa-0753-4a5e-82f5-284bad32e5fc', 'name': 'ctest-vn-93791563', 'tenant_id': '7492252df966438da28a753f5fd273b4', 'project_id': '7492252df966438da28a753f5fd273b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97945350', 'ctest-vn-93791563'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 09:25:58,232 - DEBUG - Response for create_subnet : {'subnet': {'id': '5bf21fb8-c9df-48b6-a9bc-59ce108faeff', 'name': '', 'tenant_id': '7492252df966438da28a753f5fd273b4', 'network_id': '83029aaa-0753-4a5e-82f5-284bad32e5fc', 'ip_version': 4, 'cidr': '213.101.176.64/26', 'allocation_pools': [{'start': '213.101.176.66', 'end': '213.101.176.126'}], 'gateway_ip': '213.101.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.101.176.66', 'tags': [], 'project_id': '7492252df966438da28a753f5fd273b4'}}
2025-09-11 09:25:58,246 - INFO - Created VN ctest-vn-93791563
2025-09-11 09:25:58,295 - DEBUG - VN ctest-vn-93791563 UUID is 83029aaa-0753-4a5e-82f5-284bad32e5fc
2025-09-11 09:25:58,637 - DEBUG - Response for create_network : {'network': {'id': '5c666499-f7ed-4f84-926e-619c272a3fc1', 'name': 'ctest-vn-51206624', 'tenant_id': '7492252df966438da28a753f5fd273b4', 'project_id': '7492252df966438da28a753f5fd273b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97945350', 'ctest-vn-51206624'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 09:25:58,768 - DEBUG - Response for create_subnet : {'subnet': {'id': '5bcbfed8-18f4-4a7a-9ce4-9a3e948e0f62', 'name': '', 'tenant_id': '7492252df966438da28a753f5fd273b4', 'network_id': '5c666499-f7ed-4f84-926e-619c272a3fc1', 'ip_version': 4, 'cidr': '34.54.88.64/26', 'allocation_pools': [{'start': '34.54.88.66', 'end': '34.54.88.126'}], 'gateway_ip': '34.54.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.54.88.66', 'tags': [], 'project_id': '7492252df966438da28a753f5fd273b4'}}
2025-09-11 09:25:58,785 - INFO - Created VN ctest-vn-51206624
2025-09-11 09:25:58,835 - DEBUG - VN ctest-vn-51206624 UUID is 5c666499-f7ed-4f84-926e-619c272a3fc1
2025-09-11 09:25:58,975 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-93791563, 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-97945350:ctest-vn-51206624, 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-11 09:25:59,260 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83029aaa-0753-4a5e-82f5-284bad32e5fc', 'name': 'ctest-vn-93791563', 'tenant_id': '7492252df966438da28a753f5fd273b4', 'project_id': '7492252df966438da28a753f5fd273b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5bf21fb8-c9df-48b6-a9bc-59ce108faeff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97945350', 'ctest-vn-93791563'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97945350', 'ctest-policy-allow-all-10903358']], 'subnet_ipam': [{'subnet_cidr': '213.101.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 09:25:59,538 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c666499-f7ed-4f84-926e-619c272a3fc1', 'name': 'ctest-vn-51206624', 'tenant_id': '7492252df966438da28a753f5fd273b4', 'project_id': '7492252df966438da28a753f5fd273b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5bcbfed8-18f4-4a7a-9ce4-9a3e948e0f62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97945350', 'ctest-vn-51206624'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97945350', 'ctest-policy-allow-all-10903358']], 'subnet_ipam': [{'subnet_cidr': '34.54.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 09:25:59,679 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 09:25:59,971 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 09:25:59,995 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19580de5-4ced-4cb6-9fe3-dd2072a9de08
2025-09-11 09:26:00,005 - DEBUG - Requesting: http://10.0.0.22:8082/project/7492252d-f966-438d-a28a-753f5fd273b4
2025-09-11 09:26:00,075 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83029aaa-0753-4a5e-82f5-284bad32e5fc
2025-09-11 09:26:00,084 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83029aaa-0753-4a5e-82f5-284bad32e5fc
2025-09-11 09:26:00,092 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7ecdb946-2b7e-4017-98f3-7dd962d5c92d
2025-09-11 09:26:00,097 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7ecdb946-2b7e-4017-98f3-7dd962d5c92d
2025-09-11 09:26:00,102 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e6e4182a-a04f-4544-a407-f4c7c181977d
2025-09-11 09:26:00,107 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 09:26:00,107 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83029aaa-0753-4a5e-82f5-284bad32e5fc
2025-09-11 09:26:00,114 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7ecdb946-2b7e-4017-98f3-7dd962d5c92d
2025-09-11 09:26:00,124 - INFO - Verified VN network id 12 for VN 83029aaa-0753-4a5e-82f5-284bad32e5fc
2025-09-11 09:26:00,124 - INFO - Verifications in API Server for VN ctest-vn-93791563 passed
2025-09-11 09:26:00,124 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83029aaa-0753-4a5e-82f5-284bad32e5fc
2025-09-11 09:26:00,131 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7ecdb946-2b7e-4017-98f3-7dd962d5c92d
2025-09-11 09:26:00,137 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7ecdb946-2b7e-4017-98f3-7dd962d5c92d
2025-09-11 09:26:00,142 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e6e4182a-a04f-4544-a407-f4c7c181977d
2025-09-11 09:26:00,152 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-93791563', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97945350', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9440277823979997790', 'uuid-lslong': '9436492899718194684'}, 'enable': 'true', 'created': '2025-09-11T09:25:58', 'last-modified': '2025-09-11T09:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913870'}
2025-09-11 09:26:00,157 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 09:26:00,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93791563 passed
2025-09-11 09:26:00,157 - DEBUG - ====Verifying policy data for ctest-vn-93791563 in API_Server ======
2025-09-11 09:26:00,157 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 09:26:00,162 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19580de5-4ced-4cb6-9fe3-dd2072a9de08
2025-09-11 09:26:00,174 - DEBUG - Requesting: http://10.0.0.22:8082/project/7492252d-f966-438d-a28a-753f5fd273b4
2025-09-11 09:26:00,238 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83029aaa-0753-4a5e-82f5-284bad32e5fc
2025-09-11 09:26:00,246 - DEBUG - ==>Verifying data for policy with id: 721b49e3-d2f1-44cf-a8cc-f95062da3873, fqn: ['default-domain', 'ctest-TestBasicPolicy-97945350', 'ctest-policy-allow-all-10903358']
2025-09-11 09:26:00,246 - INFO - VN ctest-vn-93791563 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 09:26:00,246 - DEBUG - Verifying the vn in opserver
2025-09-11 09:26:00,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-93791563 virtual network link through opserver 10.0.0.22
2025-09-11 09:26:00,246 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 09:26:00,534 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 09:26:00,591 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-93791563', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-93791563?flat'}
2025-09-11 09:26:00,591 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-93791563 is found in opserver
2025-09-11 09:26:00,600 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 09:26:00,604 - DEBUG - VRF ids for VN ctest-vn-93791563: {}
2025-09-11 09:26:00,604 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 09:26:00,609 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19580de5-4ced-4cb6-9fe3-dd2072a9de08
2025-09-11 09:26:00,618 - DEBUG - Requesting: http://10.0.0.22:8082/project/7492252d-f966-438d-a28a-753f5fd273b4
2025-09-11 09:26:00,683 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c666499-f7ed-4f84-926e-619c272a3fc1
2025-09-11 09:26:00,693 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c666499-f7ed-4f84-926e-619c272a3fc1
2025-09-11 09:26:00,701 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6d459aa-bfcb-492a-803e-9394c7d489ca
2025-09-11 09:26:00,707 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6d459aa-bfcb-492a-803e-9394c7d489ca
2025-09-11 09:26:00,712 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/12cab095-a7f6-43ad-9cac-7b1a0cfd0507
2025-09-11 09:26:00,717 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 09:26:00,717 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c666499-f7ed-4f84-926e-619c272a3fc1
2025-09-11 09:26:00,725 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6d459aa-bfcb-492a-803e-9394c7d489ca
2025-09-11 09:26:00,736 - INFO - Verified VN network id 13 for VN 5c666499-f7ed-4f84-926e-619c272a3fc1
2025-09-11 09:26:00,736 - INFO - Verifications in API Server for VN ctest-vn-51206624 passed
2025-09-11 09:26:00,736 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c666499-f7ed-4f84-926e-619c272a3fc1
2025-09-11 09:26:00,743 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6d459aa-bfcb-492a-803e-9394c7d489ca
2025-09-11 09:26:00,749 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6d459aa-bfcb-492a-803e-9394c7d489ca
2025-09-11 09:26:00,754 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/12cab095-a7f6-43ad-9cac-7b1a0cfd0507
2025-09-11 09:26:00,764 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-51206624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97945350', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6658119711566155652', 'uuid-lslong': '10551478300275523521'}, 'enable': 'true', 'created': '2025-09-11T09:25:58', 'last-modified': '2025-09-11T09:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299209'}
2025-09-11 09:26:00,769 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 09:26:00,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51206624 passed
2025-09-11 09:26:00,769 - DEBUG - ====Verifying policy data for ctest-vn-51206624 in API_Server ======
2025-09-11 09:26:00,769 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 09:26:00,773 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19580de5-4ced-4cb6-9fe3-dd2072a9de08
2025-09-11 09:26:00,782 - DEBUG - Requesting: http://10.0.0.22:8082/project/7492252d-f966-438d-a28a-753f5fd273b4
2025-09-11 09:26:00,847 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c666499-f7ed-4f84-926e-619c272a3fc1
2025-09-11 09:26:00,855 - DEBUG - ==>Verifying data for policy with id: 721b49e3-d2f1-44cf-a8cc-f95062da3873, fqn: ['default-domain', 'ctest-TestBasicPolicy-97945350', 'ctest-policy-allow-all-10903358']
2025-09-11 09:26:00,855 - INFO - VN ctest-vn-51206624 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 09:26:00,855 - DEBUG - Verifying the vn in opserver
2025-09-11 09:26:00,855 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-51206624 virtual network link through opserver 10.0.0.22
2025-09-11 09:26:00,855 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 09:26:00,863 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-51206624', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-51206624?flat'}
2025-09-11 09:26:00,863 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97945350:ctest-vn-51206624 is found in opserver
2025-09-11 09:26:00,872 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 09:26:00,875 - DEBUG - VRF ids for VN ctest-vn-51206624: {}
2025-09-11 09:26:00,925 - DEBUG - Services list from nova: [