2025-11-24 02:12:24,898 - INFO - Domain Default found not creating
2025-11-24 02:12:25,059 - INFO - Project ctest-TestBasicPolicy-85811803 not found, creating it
2025-11-24 02:12:25,519 - INFO - Created Project:ctest-TestBasicPolicy-85811803, ID : 5e087938-201a-42ab-8a12-58a1e19fec80
2025-11-24 02:12:27,003 - INFO - ================================================================================
2025-11-24 02:12:27,004 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 02:12:27,004 - 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-24 02:12:27,259 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.201': '0'}} with
2025-11-24 02:12:27,259 - INFO - Initial checks done. Running the testcase now
2025-11-24 02:12:27,259 - INFO -
2025-11-24 02:12:27,825 - DEBUG - Response for create_network : {'network': {'id': '9b141284-415a-402d-9a63-2cc68949ac91', 'name': 'ctest-vn-08974979', 'tenant_id': '5e087938201a42ab8a1258a1e19fec80', 'project_id': '5e087938201a42ab8a1258a1e19fec80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85811803', 'ctest-vn-08974979'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:12:27,960 - DEBUG - Response for create_subnet : {'subnet': {'id': '81c3e7f3-3401-42ae-8ab3-3ea2c62bebe7', 'name': '', 'tenant_id': '5e087938201a42ab8a1258a1e19fec80', 'network_id': '9b141284-415a-402d-9a63-2cc68949ac91', 'ip_version': 4, 'cidr': '201.196.56.64/26', 'allocation_pools': [{'start': '201.196.56.66', 'end': '201.196.56.126'}], 'gateway_ip': '201.196.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.196.56.66', 'tags': [], 'project_id': '5e087938201a42ab8a1258a1e19fec80'}}
2025-11-24 02:12:27,976 - INFO - Created VN ctest-vn-08974979
2025-11-24 02:12:28,026 - DEBUG - VN ctest-vn-08974979 UUID is 9b141284-415a-402d-9a63-2cc68949ac91
2025-11-24 02:12:28,337 - DEBUG - Response for create_network : {'network': {'id': 'a8aef88c-bf6a-4b56-a5fd-aa85f0633832', 'name': 'ctest-vn-53667915', 'tenant_id': '5e087938201a42ab8a1258a1e19fec80', 'project_id': '5e087938201a42ab8a1258a1e19fec80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85811803', 'ctest-vn-53667915'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:12:28,550 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d88bc94-98b6-4ffd-bf8d-b9bdbde5de24', 'name': '', 'tenant_id': '5e087938201a42ab8a1258a1e19fec80', 'network_id': 'a8aef88c-bf6a-4b56-a5fd-aa85f0633832', 'ip_version': 4, 'cidr': '75.137.142.128/26', 'allocation_pools': [{'start': '75.137.142.130', 'end': '75.137.142.190'}], 'gateway_ip': '75.137.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.137.142.130', 'tags': [], 'project_id': '5e087938201a42ab8a1258a1e19fec80'}}
2025-11-24 02:12:28,567 - INFO - Created VN ctest-vn-53667915
2025-11-24 02:12:28,622 - DEBUG - VN ctest-vn-53667915 UUID is a8aef88c-bf6a-4b56-a5fd-aa85f0633832
2025-11-24 02:12:28,766 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-08974979, 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-85811803:ctest-vn-53667915, 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-24 02:12:29,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b141284-415a-402d-9a63-2cc68949ac91', 'name': 'ctest-vn-08974979', 'tenant_id': '5e087938201a42ab8a1258a1e19fec80', 'project_id': '5e087938201a42ab8a1258a1e19fec80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81c3e7f3-3401-42ae-8ab3-3ea2c62bebe7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85811803', 'ctest-vn-08974979'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85811803', 'ctest-policy-allow-all-92631379']], 'subnet_ipam': [{'subnet_cidr': '201.196.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:12:29,282 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8aef88c-bf6a-4b56-a5fd-aa85f0633832', 'name': 'ctest-vn-53667915', 'tenant_id': '5e087938201a42ab8a1258a1e19fec80', 'project_id': '5e087938201a42ab8a1258a1e19fec80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d88bc94-98b6-4ffd-bf8d-b9bdbde5de24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85811803', 'ctest-vn-53667915'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85811803', 'ctest-policy-allow-all-92631379']], 'subnet_ipam': [{'subnet_cidr': '75.137.142.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:12:29,458 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 02:12:29,753 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 02:12:29,781 - DEBUG - Requesting: http://10.0.0.33:8082/domain/69131fcb-056a-4af4-990e-8dab6bac755f
2025-11-24 02:12:29,793 - DEBUG - Requesting: http://10.0.0.33:8082/project/5e087938-201a-42ab-8a12-58a1e19fec80
2025-11-24 02:12:29,864 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b141284-415a-402d-9a63-2cc68949ac91
2025-11-24 02:12:29,878 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b141284-415a-402d-9a63-2cc68949ac91
2025-11-24 02:12:29,887 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8635f0ff-be67-4c05-9ea0-589ef8162509
2025-11-24 02:12:29,893 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8635f0ff-be67-4c05-9ea0-589ef8162509
2025-11-24 02:12:29,900 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bc5a4548-6a4e-42bc-83d6-426491105b51
2025-11-24 02:12:29,906 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 02:12:29,906 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b141284-415a-402d-9a63-2cc68949ac91
2025-11-24 02:12:29,913 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8635f0ff-be67-4c05-9ea0-589ef8162509
2025-11-24 02:12:29,924 - INFO - Verified VN network id 12 for VN 9b141284-415a-402d-9a63-2cc68949ac91
2025-11-24 02:12:29,924 - INFO - Verifications in API Server for VN ctest-vn-08974979 passed
2025-11-24 02:12:29,924 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b141284-415a-402d-9a63-2cc68949ac91
2025-11-24 02:12:29,932 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8635f0ff-be67-4c05-9ea0-589ef8162509
2025-11-24 02:12:29,938 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8635f0ff-be67-4c05-9ea0-589ef8162509
2025-11-24 02:12:29,944 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bc5a4548-6a4e-42bc-83d6-426491105b51
2025-11-24 02:12:29,955 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-08974979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85811803', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11174576934654459949', 'uuid-lslong': '11124784735753710737'}, 'enable': 'true', 'created': '2025-11-24T02:12:27', 'last-modified': '2025-11-24T02:12:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.925746'}
2025-11-24 02:12:29,960 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 02:12:29,962 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08974979 passed
2025-11-24 02:12:29,962 - DEBUG - ====Verifying policy data for ctest-vn-08974979 in API_Server ======
2025-11-24 02:12:29,963 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 02:12:29,968 - DEBUG - Requesting: http://10.0.0.33:8082/domain/69131fcb-056a-4af4-990e-8dab6bac755f
2025-11-24 02:12:29,978 - DEBUG - Requesting: http://10.0.0.33:8082/project/5e087938-201a-42ab-8a12-58a1e19fec80
2025-11-24 02:12:30,047 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b141284-415a-402d-9a63-2cc68949ac91
2025-11-24 02:12:30,056 - DEBUG - ==>Verifying data for policy with id: b82efdc2-a698-47ef-98de-1b1267610a93, fqn: ['default-domain', 'ctest-TestBasicPolicy-85811803', 'ctest-policy-allow-all-92631379']
2025-11-24 02:12:30,056 - INFO - VN ctest-vn-08974979 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 02:12:30,056 - DEBUG - Verifying the vn in opserver
2025-11-24 02:12:30,056 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-08974979 virtual network link through opserver 10.0.0.33
2025-11-24 02:12:30,056 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-24 02:12:30,352 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-24 02:12:30,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-08974979', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-08974979?flat'}
2025-11-24 02:12:30,408 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-08974979 is found in opserver
2025-11-24 02:12:30,419 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 02:12:30,423 - DEBUG - VRF ids for VN ctest-vn-08974979: {}
2025-11-24 02:12:30,423 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 02:12:30,427 - DEBUG - Requesting: http://10.0.0.33:8082/domain/69131fcb-056a-4af4-990e-8dab6bac755f
2025-11-24 02:12:30,437 - DEBUG - Requesting: http://10.0.0.33:8082/project/5e087938-201a-42ab-8a12-58a1e19fec80
2025-11-24 02:12:30,511 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a8aef88c-bf6a-4b56-a5fd-aa85f0633832
2025-11-24 02:12:30,523 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a8aef88c-bf6a-4b56-a5fd-aa85f0633832
2025-11-24 02:12:30,531 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7d931ecc-ca82-4f4f-bc09-2c1de2c77cc6
2025-11-24 02:12:30,537 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7d931ecc-ca82-4f4f-bc09-2c1de2c77cc6
2025-11-24 02:12:30,543 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0cb8c316-01c4-4b46-9566-78048e2e0381
2025-11-24 02:12:30,548 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 02:12:30,548 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a8aef88c-bf6a-4b56-a5fd-aa85f0633832
2025-11-24 02:12:30,556 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7d931ecc-ca82-4f4f-bc09-2c1de2c77cc6
2025-11-24 02:12:30,567 - INFO - Verified VN network id 13 for VN a8aef88c-bf6a-4b56-a5fd-aa85f0633832
2025-11-24 02:12:30,568 - INFO - Verifications in API Server for VN ctest-vn-53667915 passed
2025-11-24 02:12:30,568 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a8aef88c-bf6a-4b56-a5fd-aa85f0633832
2025-11-24 02:12:30,575 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7d931ecc-ca82-4f4f-bc09-2c1de2c77cc6
2025-11-24 02:12:30,580 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7d931ecc-ca82-4f4f-bc09-2c1de2c77cc6
2025-11-24 02:12:30,586 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0cb8c316-01c4-4b46-9566-78048e2e0381
2025-11-24 02:12:30,596 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-53667915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85811803', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12154925727710071638', 'uuid-lslong': '11960903677606311986'}, 'enable': 'true', 'created': '2025-11-24T02:12:28', 'last-modified': '2025-11-24T02:12:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.331586'}
2025-11-24 02:12:30,601 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 02:12:30,601 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53667915 passed
2025-11-24 02:12:30,601 - DEBUG - ====Verifying policy data for ctest-vn-53667915 in API_Server ======
2025-11-24 02:12:30,601 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 02:12:30,606 - DEBUG - Requesting: http://10.0.0.33:8082/domain/69131fcb-056a-4af4-990e-8dab6bac755f
2025-11-24 02:12:30,615 - DEBUG - Requesting: http://10.0.0.33:8082/project/5e087938-201a-42ab-8a12-58a1e19fec80
2025-11-24 02:12:30,684 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a8aef88c-bf6a-4b56-a5fd-aa85f0633832
2025-11-24 02:12:30,692 - DEBUG - ==>Verifying data for policy with id: b82efdc2-a698-47ef-98de-1b1267610a93, fqn: ['default-domain', 'ctest-TestBasicPolicy-85811803', 'ctest-policy-allow-all-92631379']
2025-11-24 02:12:30,692 - INFO - VN ctest-vn-53667915 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 02:12:30,692 - DEBUG - Verifying the vn in opserver
2025-11-24 02:12:30,692 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-53667915 virtual network link through opserver 10.0.0.33
2025-11-24 02:12:30,692 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-24 02:12:30,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-53667915', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-53667915?flat'}
2025-11-24 02:12:30,700 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85811803:ctest-vn-53667915 is found in opserver
2025-11-24 02:12:30,709 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 02:12:30,713 - DEBUG - VRF ids for VN ctest-vn-53667915: {}
2025-11-24 02:12:30,768 - DEBUG - Services list from nova: [