2025-10-30 02:16:39,013 - INFO - Domain Default found not creating
2025-10-30 02:16:39,163 - INFO - Project ctest-TestBasicPolicy-86480531 not found, creating it
2025-10-30 02:16:39,611 - INFO - Created Project:ctest-TestBasicPolicy-86480531, ID : 769fdce4-9da3-483f-bc64-0202c6665ad3
2025-10-30 02:16:40,998 - INFO - ================================================================================
2025-10-30 02:16:40,998 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 02:16:40,998 - 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-10-30 02:16:41,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.252': '0'}} with
2025-10-30 02:16:41,253 - INFO - Initial checks done. Running the testcase now
2025-10-30 02:16:41,253 - INFO -
2025-10-30 02:16:41,783 - DEBUG - Response for create_network : {'network': {'id': '4343bf5f-df02-4a7e-8e3f-74198329cc4f', 'name': 'ctest-vn-00494671', 'tenant_id': '769fdce49da3483fbc640202c6665ad3', 'project_id': '769fdce49da3483fbc640202c6665ad3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86480531', 'ctest-vn-00494671'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:16:41,966 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d0cf4cd-ad1e-4cd0-a5d5-2ad281d37811', 'name': '', 'tenant_id': '769fdce49da3483fbc640202c6665ad3', 'network_id': '4343bf5f-df02-4a7e-8e3f-74198329cc4f', 'ip_version': 4, 'cidr': '7.186.176.0/26', 'allocation_pools': [{'start': '7.186.176.2', 'end': '7.186.176.62'}], 'gateway_ip': '7.186.176.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.186.176.2', 'tags': [], 'project_id': '769fdce49da3483fbc640202c6665ad3'}}
2025-10-30 02:16:41,981 - INFO - Created VN ctest-vn-00494671
2025-10-30 02:16:42,031 - DEBUG - VN ctest-vn-00494671 UUID is 4343bf5f-df02-4a7e-8e3f-74198329cc4f
2025-10-30 02:16:42,343 - DEBUG - Response for create_network : {'network': {'id': 'b0190e31-e9ec-4afa-bf9a-3076b15aedcf', 'name': 'ctest-vn-79302474', 'tenant_id': '769fdce49da3483fbc640202c6665ad3', 'project_id': '769fdce49da3483fbc640202c6665ad3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86480531', 'ctest-vn-79302474'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:16:42,538 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd5fc152-e616-4b62-86f7-fd94eae4b1a4', 'name': '', 'tenant_id': '769fdce49da3483fbc640202c6665ad3', 'network_id': 'b0190e31-e9ec-4afa-bf9a-3076b15aedcf', 'ip_version': 4, 'cidr': '77.55.14.128/26', 'allocation_pools': [{'start': '77.55.14.130', 'end': '77.55.14.190'}], 'gateway_ip': '77.55.14.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.55.14.130', 'tags': [], 'project_id': '769fdce49da3483fbc640202c6665ad3'}}
2025-10-30 02:16:42,557 - INFO - Created VN ctest-vn-79302474
2025-10-30 02:16:42,607 - DEBUG - VN ctest-vn-79302474 UUID is b0190e31-e9ec-4afa-bf9a-3076b15aedcf
2025-10-30 02:16:42,755 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-00494671, 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-86480531:ctest-vn-79302474, 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-10-30 02:16:43,045 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4343bf5f-df02-4a7e-8e3f-74198329cc4f', 'name': 'ctest-vn-00494671', 'tenant_id': '769fdce49da3483fbc640202c6665ad3', 'project_id': '769fdce49da3483fbc640202c6665ad3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d0cf4cd-ad1e-4cd0-a5d5-2ad281d37811'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86480531', 'ctest-vn-00494671'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86480531', 'ctest-policy-allow-all-44635441']], 'subnet_ipam': [{'subnet_cidr': '7.186.176.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:16:43,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0190e31-e9ec-4afa-bf9a-3076b15aedcf', 'name': 'ctest-vn-79302474', 'tenant_id': '769fdce49da3483fbc640202c6665ad3', 'project_id': '769fdce49da3483fbc640202c6665ad3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd5fc152-e616-4b62-86f7-fd94eae4b1a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86480531', 'ctest-vn-79302474'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86480531', 'ctest-policy-allow-all-44635441']], 'subnet_ipam': [{'subnet_cidr': '77.55.14.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:16:43,463 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-30 02:16:43,772 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-30 02:16:43,802 - DEBUG - Requesting: http://10.0.0.249:8082/domain/30afc504-f48e-4286-8ac3-f99274dbb366
2025-10-30 02:16:43,816 - DEBUG - Requesting: http://10.0.0.249:8082/project/769fdce4-9da3-483f-bc64-0202c6665ad3
2025-10-30 02:16:43,889 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4343bf5f-df02-4a7e-8e3f-74198329cc4f
2025-10-30 02:16:43,899 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4343bf5f-df02-4a7e-8e3f-74198329cc4f
2025-10-30 02:16:43,908 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4fa1e12e-c0c8-412b-b51a-a00295f5ee49
2025-10-30 02:16:43,915 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4fa1e12e-c0c8-412b-b51a-a00295f5ee49
2025-10-30 02:16:43,921 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/37d9a956-61aa-48d4-8423-4e4209f7b226
2025-10-30 02:16:43,927 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 02:16:43,927 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4343bf5f-df02-4a7e-8e3f-74198329cc4f
2025-10-30 02:16:43,934 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4fa1e12e-c0c8-412b-b51a-a00295f5ee49
2025-10-30 02:16:43,946 - INFO - Verified VN network id 11 for VN 4343bf5f-df02-4a7e-8e3f-74198329cc4f
2025-10-30 02:16:43,946 - INFO - Verifications in API Server for VN ctest-vn-00494671 passed
2025-10-30 02:16:43,946 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4343bf5f-df02-4a7e-8e3f-74198329cc4f
2025-10-30 02:16:43,954 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4fa1e12e-c0c8-412b-b51a-a00295f5ee49
2025-10-30 02:16:43,961 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4fa1e12e-c0c8-412b-b51a-a00295f5ee49
2025-10-30 02:16:43,967 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/37d9a956-61aa-48d4-8423-4e4209f7b226
2025-10-30 02:16:43,980 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-00494671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86480531', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4846928042465053310', 'uuid-lslong': '10250038929842097231'}, 'enable': 'true', 'created': '2025-10-30T02:16:41', 'last-modified': '2025-10-30T02:16:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950072'}
2025-10-30 02:16:43,990 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 02:16:43,990 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00494671 passed
2025-10-30 02:16:43,990 - DEBUG - ====Verifying policy data for ctest-vn-00494671 in API_Server ======
2025-10-30 02:16:43,990 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-30 02:16:43,996 - DEBUG - Requesting: http://10.0.0.249:8082/domain/30afc504-f48e-4286-8ac3-f99274dbb366
2025-10-30 02:16:44,022 - DEBUG - Requesting: http://10.0.0.249:8082/project/769fdce4-9da3-483f-bc64-0202c6665ad3
2025-10-30 02:16:44,093 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4343bf5f-df02-4a7e-8e3f-74198329cc4f
2025-10-30 02:16:44,113 - DEBUG - ==>Verifying data for policy with id: d56249a2-e88f-4af5-8af5-f2d49cb9bb96, fqn: ['default-domain', 'ctest-TestBasicPolicy-86480531', 'ctest-policy-allow-all-44635441']
2025-10-30 02:16:44,113 - INFO - VN ctest-vn-00494671 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 02:16:44,113 - DEBUG - Verifying the vn in opserver
2025-10-30 02:16:44,113 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-00494671 virtual network link through opserver 10.0.0.249
2025-10-30 02:16:44,113 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-30 02:16:44,405 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-30 02:16:44,456 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-00494671', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-00494671?flat'}
2025-10-30 02:16:44,456 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-00494671 is found in opserver
2025-10-30 02:16:44,468 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 02:16:44,474 - DEBUG - VRF ids for VN ctest-vn-00494671: {}
2025-10-30 02:16:44,474 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-30 02:16:44,480 - DEBUG - Requesting: http://10.0.0.249:8082/domain/30afc504-f48e-4286-8ac3-f99274dbb366
2025-10-30 02:16:44,490 - DEBUG - Requesting: http://10.0.0.249:8082/project/769fdce4-9da3-483f-bc64-0202c6665ad3
2025-10-30 02:16:44,573 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b0190e31-e9ec-4afa-bf9a-3076b15aedcf
2025-10-30 02:16:44,584 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b0190e31-e9ec-4afa-bf9a-3076b15aedcf
2025-10-30 02:16:44,592 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bc3dee51-cb6c-4d40-98d9-0f6da7260787
2025-10-30 02:16:44,602 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bc3dee51-cb6c-4d40-98d9-0f6da7260787
2025-10-30 02:16:44,608 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0a3d9a46-4b6c-444f-9732-8f849573fa06
2025-10-30 02:16:44,614 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 02:16:44,614 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b0190e31-e9ec-4afa-bf9a-3076b15aedcf
2025-10-30 02:16:44,623 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bc3dee51-cb6c-4d40-98d9-0f6da7260787
2025-10-30 02:16:44,635 - INFO - Verified VN network id 12 for VN b0190e31-e9ec-4afa-bf9a-3076b15aedcf
2025-10-30 02:16:44,635 - INFO - Verifications in API Server for VN ctest-vn-79302474 passed
2025-10-30 02:16:44,635 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b0190e31-e9ec-4afa-bf9a-3076b15aedcf
2025-10-30 02:16:44,643 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bc3dee51-cb6c-4d40-98d9-0f6da7260787
2025-10-30 02:16:44,648 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bc3dee51-cb6c-4d40-98d9-0f6da7260787
2025-10-30 02:16:44,655 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0a3d9a46-4b6c-444f-9732-8f849573fa06
2025-10-30 02:16:44,668 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-79302474', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86480531', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12689189032633846522', 'uuid-lslong': '13806400893997477327'}, 'enable': 'true', 'created': '2025-10-30T02:16:42', 'last-modified': '2025-10-30T02:16:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.404042'}
2025-10-30 02:16:44,674 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 02:16:44,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79302474 passed
2025-10-30 02:16:44,675 - DEBUG - ====Verifying policy data for ctest-vn-79302474 in API_Server ======
2025-10-30 02:16:44,675 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-30 02:16:44,681 - DEBUG - Requesting: http://10.0.0.249:8082/domain/30afc504-f48e-4286-8ac3-f99274dbb366
2025-10-30 02:16:44,691 - DEBUG - Requesting: http://10.0.0.249:8082/project/769fdce4-9da3-483f-bc64-0202c6665ad3
2025-10-30 02:16:44,761 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b0190e31-e9ec-4afa-bf9a-3076b15aedcf
2025-10-30 02:16:44,771 - DEBUG - ==>Verifying data for policy with id: d56249a2-e88f-4af5-8af5-f2d49cb9bb96, fqn: ['default-domain', 'ctest-TestBasicPolicy-86480531', 'ctest-policy-allow-all-44635441']
2025-10-30 02:16:44,771 - INFO - VN ctest-vn-79302474 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 02:16:44,771 - DEBUG - Verifying the vn in opserver
2025-10-30 02:16:44,771 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-79302474 virtual network link through opserver 10.0.0.249
2025-10-30 02:16:44,771 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-30 02:16:44,782 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-79302474', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-79302474?flat'}
2025-10-30 02:16:44,782 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86480531:ctest-vn-79302474 is found in opserver
2025-10-30 02:16:44,792 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 02:16:44,797 - DEBUG - VRF ids for VN ctest-vn-79302474: {}
2025-10-30 02:16:44,851 - DEBUG - Services list from nova: [