2025-11-14 17:18:19,652 - INFO - Domain Default found not creating
2025-11-14 17:18:20,110 - INFO - Project ctest-TestBasicPolicy-26910084 not found, creating it
2025-11-14 17:18:20,797 - INFO - Created Project:ctest-TestBasicPolicy-26910084, ID : 71b1d5d1-50f0-4bf0-b9e8-155723598c19
2025-11-14 17:18:23,026 - INFO - ================================================================================
2025-11-14 17:18:23,027 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-14 17:18:23,027 - 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-11-14 17:18:23,356 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-11-14 17:18:23,356 - INFO - Initial checks done. Running the testcase now
2025-11-14 17:18:23,356 - INFO -
2025-11-14 17:18:24,388 - DEBUG - Response for create_network : {'network': {'id': 'c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe', 'name': 'ctest-vn-28559045', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'project_id': '71b1d5d150f04bf0b9e8155723598c19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-vn-28559045'], 'port_security_enabled': True, 'description': ''}}
2025-11-14 17:18:24,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '91477808-d8bb-4e29-8e98-509555b477e3', 'name': '', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'network_id': 'c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe', 'ip_version': 4, 'cidr': '182.111.14.128/26', 'allocation_pools': [{'start': '182.111.14.130', 'end': '182.111.14.190'}], 'gateway_ip': '182.111.14.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.111.14.130', 'tags': [], 'project_id': '71b1d5d150f04bf0b9e8155723598c19'}}
2025-11-14 17:18:24,611 - INFO - Created VN ctest-vn-28559045
2025-11-14 17:18:24,663 - DEBUG - VN ctest-vn-28559045 UUID is c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe
2025-11-14 17:18:25,014 - DEBUG - Response for create_network : {'network': {'id': 'a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1', 'name': 'ctest-vn-76463234', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'project_id': '71b1d5d150f04bf0b9e8155723598c19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-vn-76463234'], 'port_security_enabled': True, 'description': ''}}
2025-11-14 17:18:25,173 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd51922ba-aef0-4221-b399-937ee7ce1a6f', 'name': '', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'network_id': 'a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1', 'ip_version': 4, 'cidr': '30.246.219.64/26', 'allocation_pools': [{'start': '30.246.219.66', 'end': '30.246.219.126'}], 'gateway_ip': '30.246.219.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.246.219.66', 'tags': [], 'project_id': '71b1d5d150f04bf0b9e8155723598c19'}}
2025-11-14 17:18:25,196 - INFO - Created VN ctest-vn-76463234
2025-11-14 17:18:25,251 - DEBUG - VN ctest-vn-76463234 UUID is a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1
2025-11-14 17:18:25,424 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045, 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-26910084:ctest-vn-76463234, 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-11-14 17:18:25,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe', 'name': 'ctest-vn-28559045', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'project_id': '71b1d5d150f04bf0b9e8155723598c19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91477808-d8bb-4e29-8e98-509555b477e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-vn-28559045'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-policy-allow-all-41999776']], 'subnet_ipam': [{'subnet_cidr': '182.111.14.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-14 17:18:26,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1', 'name': 'ctest-vn-76463234', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'project_id': '71b1d5d150f04bf0b9e8155723598c19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d51922ba-aef0-4221-b399-937ee7ce1a6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-vn-76463234'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-policy-allow-all-41999776']], 'subnet_ipam': [{'subnet_cidr': '30.246.219.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-14 17:18:26,419 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-14 17:18:26,754 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-14 17:18:26,825 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2
2025-11-14 17:18:26,850 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19
2025-11-14 17:18:26,962 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe
2025-11-14 17:18:26,983 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe
2025-11-14 17:18:26,996 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea
2025-11-14 17:18:27,004 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea
2025-11-14 17:18:27,014 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/40b9ca33-9cfa-4e79-a1d3-634e23fcc0bf
2025-11-14 17:18:27,024 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-14 17:18:27,024 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe
2025-11-14 17:18:27,043 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea
2025-11-14 17:18:27,074 - INFO - Verified VN network id 11 for VN c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe
2025-11-14 17:18:27,075 - INFO - Verifications in API Server for VN ctest-vn-28559045 passed
2025-11-14 17:18:27,075 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe
2025-11-14 17:18:27,096 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea
2025-11-14 17:18:27,110 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea
2025-11-14 17:18:27,128 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/40b9ca33-9cfa-4e79-a1d3-634e23fcc0bf
2025-11-14 17:18:27,162 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26910084', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14330708901775230443', 'uuid-lslong': '12460667877352542974'}, 'enable': 'true', 'created': '2025-11-14T17:18:24', 'last-modified': '2025-11-14T17:18:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.308643'}
2025-11-14 17:18:27,180 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-14 17:18:27,180 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28559045 passed
2025-11-14 17:18:27,180 - DEBUG - ====Verifying policy data for ctest-vn-28559045 in API_Server ======
2025-11-14 17:18:27,180 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-14 17:18:27,193 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2
2025-11-14 17:18:27,210 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19
2025-11-14 17:18:27,324 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe
2025-11-14 17:18:27,352 - DEBUG - ==>Verifying data for policy with id: 7851013f-d7b5-4807-94dd-7b768f1d0e95, fqn: ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-policy-allow-all-41999776']
2025-11-14 17:18:27,352 - INFO - VN ctest-vn-28559045 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-14 17:18:27,352 - DEBUG - Verifying the vn in opserver
2025-11-14 17:18:27,352 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045 virtual network link through opserver 10.0.0.249
2025-11-14 17:18:27,352 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-14 17:18:27,717 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-14 17:18:27,800 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045?flat'}
2025-11-14 17:18:27,800 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045 is found in opserver
2025-11-14 17:18:27,826 - DEBUG - Do not have enough data to verify VN in agent
2025-11-14 17:18:27,836 - DEBUG - VRF ids for VN ctest-vn-28559045: {}
2025-11-14 17:18:27,836 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-14 17:18:27,847 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2
2025-11-14 17:18:27,880 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19
2025-11-14 17:18:27,982 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1
2025-11-14 17:18:28,010 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1
2025-11-14 17:18:28,034 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b
2025-11-14 17:18:28,050 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b
2025-11-14 17:18:28,066 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/567d69ac-3d65-42f7-8357-f0a3f54b6fee
2025-11-14 17:18:28,081 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-14 17:18:28,081 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1
2025-11-14 17:18:28,100 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b
2025-11-14 17:18:28,133 - INFO - Verified VN network id 12 for VN a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1
2025-11-14 17:18:28,133 - INFO - Verifications in API Server for VN ctest-vn-76463234 passed
2025-11-14 17:18:28,133 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1
2025-11-14 17:18:28,158 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b
2025-11-14 17:18:28,175 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b
2025-11-14 17:18:28,194 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/567d69ac-3d65-42f7-8357-f0a3f54b6fee
2025-11-14 17:18:28,219 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26910084', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12101723164629290727', 'uuid-lslong': '13528415302179608529'}, 'enable': 'true', 'created': '2025-11-14T17:18:24', 'last-modified': '2025-11-14T17:18:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.061320'}
2025-11-14 17:18:28,235 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-14 17:18:28,235 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76463234 passed
2025-11-14 17:18:28,235 - DEBUG - ====Verifying policy data for ctest-vn-76463234 in API_Server ======
2025-11-14 17:18:28,236 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-14 17:18:28,250 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2
2025-11-14 17:18:28,277 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19
2025-11-14 17:18:28,369 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1
2025-11-14 17:18:28,389 - DEBUG - ==>Verifying data for policy with id: 7851013f-d7b5-4807-94dd-7b768f1d0e95, fqn: ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-policy-allow-all-41999776']
2025-11-14 17:18:28,390 - INFO - VN ctest-vn-76463234 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-14 17:18:28,390 - DEBUG - Verifying the vn in opserver
2025-11-14 17:18:28,390 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234 virtual network link through opserver 10.0.0.249
2025-11-14 17:18:28,390 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-14 17:18:28,411 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234?flat'}
2025-11-14 17:18:28,411 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234 is found in opserver
2025-11-14 17:18:28,434 - DEBUG - Do not have enough data to verify VN in agent
2025-11-14 17:18:28,446 - DEBUG - VRF ids for VN ctest-vn-76463234: {}
2025-11-14 17:18:28,553 - DEBUG - Services list from nova: [