2025-10-09 02:01:27,799 - INFO - Domain Default found not creating
2025-10-09 02:01:27,933 - INFO - Project ctest-TestBasicPolicy-96809937 not found, creating it
2025-10-09 02:01:28,383 - INFO - Created Project:ctest-TestBasicPolicy-96809937, ID : 918421cd-4120-4d37-92ca-b12789b43e6f
2025-10-09 02:01:29,757 - INFO - ================================================================================
2025-10-09 02:01:29,757 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 02:01:29,757 - 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-09 02:01:30,012 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-10-09 02:01:30,012 - INFO - Initial checks done. Running the testcase now
2025-10-09 02:01:30,012 - INFO -
2025-10-09 02:01:30,535 - DEBUG - Response for create_network : {'network': {'id': '6f280651-ccbe-4b53-98f7-2d8a9da64a27', 'name': 'ctest-vn-10531359', 'tenant_id': '918421cd41204d3792cab12789b43e6f', 'project_id': '918421cd41204d3792cab12789b43e6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96809937', 'ctest-vn-10531359'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 02:01:30,730 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edb1d6ac-a405-48fe-aa6c-4c1c924af133', 'name': '', 'tenant_id': '918421cd41204d3792cab12789b43e6f', 'network_id': '6f280651-ccbe-4b53-98f7-2d8a9da64a27', 'ip_version': 4, 'cidr': '118.247.36.0/26', 'allocation_pools': [{'start': '118.247.36.2', 'end': '118.247.36.62'}], 'gateway_ip': '118.247.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.247.36.2', 'tags': [], 'project_id': '918421cd41204d3792cab12789b43e6f'}}
2025-10-09 02:01:30,746 - INFO - Created VN ctest-vn-10531359
2025-10-09 02:01:30,801 - DEBUG - VN ctest-vn-10531359 UUID is 6f280651-ccbe-4b53-98f7-2d8a9da64a27
2025-10-09 02:01:31,136 - DEBUG - Response for create_network : {'network': {'id': '65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63', 'name': 'ctest-vn-80068437', 'tenant_id': '918421cd41204d3792cab12789b43e6f', 'project_id': '918421cd41204d3792cab12789b43e6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96809937', 'ctest-vn-80068437'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 02:01:31,314 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d64aa86-e44c-4d39-8766-9170438913cc', 'name': '', 'tenant_id': '918421cd41204d3792cab12789b43e6f', 'network_id': '65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63', 'ip_version': 4, 'cidr': '202.69.233.64/26', 'allocation_pools': [{'start': '202.69.233.66', 'end': '202.69.233.126'}], 'gateway_ip': '202.69.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.69.233.66', 'tags': [], 'project_id': '918421cd41204d3792cab12789b43e6f'}}
2025-10-09 02:01:31,332 - INFO - Created VN ctest-vn-80068437
2025-10-09 02:01:31,385 - DEBUG - VN ctest-vn-80068437 UUID is 65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63
2025-10-09 02:01:31,537 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-10531359, 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-96809937:ctest-vn-80068437, 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-09 02:01:31,825 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f280651-ccbe-4b53-98f7-2d8a9da64a27', 'name': 'ctest-vn-10531359', 'tenant_id': '918421cd41204d3792cab12789b43e6f', 'project_id': '918421cd41204d3792cab12789b43e6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['edb1d6ac-a405-48fe-aa6c-4c1c924af133'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96809937', 'ctest-vn-10531359'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96809937', 'ctest-policy-allow-all-97668764']], 'subnet_ipam': [{'subnet_cidr': '118.247.36.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 02:01:32,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63', 'name': 'ctest-vn-80068437', 'tenant_id': '918421cd41204d3792cab12789b43e6f', 'project_id': '918421cd41204d3792cab12789b43e6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d64aa86-e44c-4d39-8766-9170438913cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96809937', 'ctest-vn-80068437'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96809937', 'ctest-policy-allow-all-97668764']], 'subnet_ipam': [{'subnet_cidr': '202.69.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 02:01:32,197 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 02:01:32,489 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 02:01:32,518 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86448381-0e5c-46f2-937e-94571e0d2d9d
2025-10-09 02:01:32,530 - DEBUG - Requesting: http://10.0.0.50:8082/project/918421cd-4120-4d37-92ca-b12789b43e6f
2025-10-09 02:01:32,603 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f280651-ccbe-4b53-98f7-2d8a9da64a27
2025-10-09 02:01:32,614 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f280651-ccbe-4b53-98f7-2d8a9da64a27
2025-10-09 02:01:32,623 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ca21828-dfe6-4184-b5e1-e213d60e2850
2025-10-09 02:01:32,631 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ca21828-dfe6-4184-b5e1-e213d60e2850
2025-10-09 02:01:32,637 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/996bcbf4-8eba-416a-9726-9d0a8cd41d17
2025-10-09 02:01:32,643 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 02:01:32,643 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f280651-ccbe-4b53-98f7-2d8a9da64a27
2025-10-09 02:01:32,651 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ca21828-dfe6-4184-b5e1-e213d60e2850
2025-10-09 02:01:32,663 - INFO - Verified VN network id 12 for VN 6f280651-ccbe-4b53-98f7-2d8a9da64a27
2025-10-09 02:01:32,663 - INFO - Verifications in API Server for VN ctest-vn-10531359 passed
2025-10-09 02:01:32,663 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f280651-ccbe-4b53-98f7-2d8a9da64a27
2025-10-09 02:01:32,672 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ca21828-dfe6-4184-b5e1-e213d60e2850
2025-10-09 02:01:32,679 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ca21828-dfe6-4184-b5e1-e213d60e2850
2025-10-09 02:01:32,684 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/996bcbf4-8eba-416a-9726-9d0a8cd41d17
2025-10-09 02:01:32,695 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-10531359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96809937', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8009658885675567955', 'uuid-lslong': '11022328686386235943'}, 'enable': 'true', 'created': '2025-10-09T02:01:30', 'last-modified': '2025-10-09T02:01:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.892879'}
2025-10-09 02:01:32,701 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 02:01:32,701 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10531359 passed
2025-10-09 02:01:32,702 - DEBUG - ====Verifying policy data for ctest-vn-10531359 in API_Server ======
2025-10-09 02:01:32,702 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 02:01:32,707 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86448381-0e5c-46f2-937e-94571e0d2d9d
2025-10-09 02:01:32,716 - DEBUG - Requesting: http://10.0.0.50:8082/project/918421cd-4120-4d37-92ca-b12789b43e6f
2025-10-09 02:01:32,783 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f280651-ccbe-4b53-98f7-2d8a9da64a27
2025-10-09 02:01:32,791 - DEBUG - ==>Verifying data for policy with id: ff112d88-4326-4182-8cfa-6a7bfb36eeeb, fqn: ['default-domain', 'ctest-TestBasicPolicy-96809937', 'ctest-policy-allow-all-97668764']
2025-10-09 02:01:32,791 - INFO - VN ctest-vn-10531359 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 02:01:32,791 - DEBUG - Verifying the vn in opserver
2025-10-09 02:01:32,791 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-10531359 virtual network link through opserver 10.0.0.50
2025-10-09 02:01:32,792 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-09 02:01:33,080 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-09 02:01:33,133 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-10531359', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-10531359?flat'}
2025-10-09 02:01:33,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-10531359 is found in opserver
2025-10-09 02:01:33,142 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 02:01:33,147 - DEBUG - VRF ids for VN ctest-vn-10531359: {}
2025-10-09 02:01:33,147 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 02:01:33,155 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86448381-0e5c-46f2-937e-94571e0d2d9d
2025-10-09 02:01:33,165 - DEBUG - Requesting: http://10.0.0.50:8082/project/918421cd-4120-4d37-92ca-b12789b43e6f
2025-10-09 02:01:33,239 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63
2025-10-09 02:01:33,250 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63
2025-10-09 02:01:33,261 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6ce5fc3-3064-4c35-90e0-1ac97acd1d32
2025-10-09 02:01:33,268 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6ce5fc3-3064-4c35-90e0-1ac97acd1d32
2025-10-09 02:01:33,276 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be9951ec-8247-4a84-a239-642fc5f8bded
2025-10-09 02:01:33,284 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 02:01:33,284 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63
2025-10-09 02:01:33,295 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6ce5fc3-3064-4c35-90e0-1ac97acd1d32
2025-10-09 02:01:33,310 - INFO - Verified VN network id 13 for VN 65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63
2025-10-09 02:01:33,310 - INFO - Verifications in API Server for VN ctest-vn-80068437 passed
2025-10-09 02:01:33,310 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63
2025-10-09 02:01:33,320 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6ce5fc3-3064-4c35-90e0-1ac97acd1d32
2025-10-09 02:01:33,327 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6ce5fc3-3064-4c35-90e0-1ac97acd1d32
2025-10-09 02:01:33,334 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be9951ec-8247-4a84-a239-642fc5f8bded
2025-10-09 02:01:33,345 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-80068437', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96809937', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7327610189916229179', 'uuid-lslong': '11502559812286720867'}, 'enable': 'true', 'created': '2025-10-09T02:01:31', 'last-modified': '2025-10-09T02:01:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318020'}
2025-10-09 02:01:33,351 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 02:01:33,351 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80068437 passed
2025-10-09 02:01:33,351 - DEBUG - ====Verifying policy data for ctest-vn-80068437 in API_Server ======
2025-10-09 02:01:33,351 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 02:01:33,356 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86448381-0e5c-46f2-937e-94571e0d2d9d
2025-10-09 02:01:33,365 - DEBUG - Requesting: http://10.0.0.50:8082/project/918421cd-4120-4d37-92ca-b12789b43e6f
2025-10-09 02:01:33,431 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/65b0e6a4-f67d-4e3b-9fa1-4d34c308ab63
2025-10-09 02:01:33,440 - DEBUG - ==>Verifying data for policy with id: ff112d88-4326-4182-8cfa-6a7bfb36eeeb, fqn: ['default-domain', 'ctest-TestBasicPolicy-96809937', 'ctest-policy-allow-all-97668764']
2025-10-09 02:01:33,440 - INFO - VN ctest-vn-80068437 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 02:01:33,440 - DEBUG - Verifying the vn in opserver
2025-10-09 02:01:33,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-80068437 virtual network link through opserver 10.0.0.50
2025-10-09 02:01:33,440 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-09 02:01:33,449 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-80068437', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-80068437?flat'}
2025-10-09 02:01:33,449 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96809937:ctest-vn-80068437 is found in opserver
2025-10-09 02:01:33,457 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 02:01:33,462 - DEBUG - VRF ids for VN ctest-vn-80068437: {}
2025-10-09 02:01:33,519 - DEBUG - Services list from nova: [