2025-10-27 01:55:03,175 - INFO - Reading existing Domain with UUID 15e0ce75-9595-48f6-b10e-49e8c56bef44
2025-10-27 01:55:03,186 - INFO - Using existing domain ['admin_domain'](15e0ce75-9595-48f6-b10e-49e8c56bef44)
2025-10-27 01:55:03,388 - INFO - Project ctest-TestBasicPolicy-65152553 not found, creating it
2025-10-27 01:55:03,880 - INFO - Created Project:ctest-TestBasicPolicy-65152553, ID : a388eba1-6e52-4396-85a8-bf11d1693caa
2025-10-27 01:55:05,563 - INFO - ================================================================================
2025-10-27 01:55:05,563 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 01:55:05,563 - 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-27 01:55:05,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with
2025-10-27 01:55:05,958 - INFO - Initial checks done. Running the testcase now
2025-10-27 01:55:05,958 - INFO -
2025-10-27 01:55:06,720 - DEBUG - Response for create_network : {'network': {'id': 'b4bd57f0-d291-4072-82b7-4c095b5671fb', 'name': 'ctest-vn-78860873', 'tenant_id': 'a388eba16e52439685a8bf11d1693caa', 'project_id': 'a388eba16e52439685a8bf11d1693caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-65152553', 'ctest-vn-78860873'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-27 01:55:06,930 - DEBUG - Response for create_subnet : {'subnet': {'id': '75dba449-a016-431f-ae0b-457fc79b3a84', 'name': '', 'tenant_id': 'a388eba16e52439685a8bf11d1693caa', 'network_id': 'b4bd57f0-d291-4072-82b7-4c095b5671fb', 'ip_version': 4, 'cidr': '86.13.254.192/26', 'allocation_pools': [{'start': '86.13.254.194', 'end': '86.13.254.254'}], 'gateway_ip': '86.13.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-27T01:55:06.824444', 'updated_at': '2025-10-27T01:55:06.824444', 'dns_server_address': '86.13.254.194', 'tags': [], 'project_id': 'a388eba16e52439685a8bf11d1693caa'}}
2025-10-27 01:55:07,002 - INFO - Created VN ctest-vn-78860873
2025-10-27 01:55:07,056 - DEBUG - VN ctest-vn-78860873 UUID is b4bd57f0-d291-4072-82b7-4c095b5671fb
2025-10-27 01:55:07,562 - DEBUG - Response for create_network : {'network': {'id': 'd562a80c-0d97-4a75-87bf-dca138a84d62', 'name': 'ctest-vn-61631004', 'tenant_id': 'a388eba16e52439685a8bf11d1693caa', 'project_id': 'a388eba16e52439685a8bf11d1693caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-65152553', 'ctest-vn-61631004'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-27 01:55:07,800 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0a4d509-44a6-4484-9a4a-b32ddbf6487b', 'name': '', 'tenant_id': 'a388eba16e52439685a8bf11d1693caa', 'network_id': 'd562a80c-0d97-4a75-87bf-dca138a84d62', 'ip_version': 4, 'cidr': '74.83.166.128/26', 'allocation_pools': [{'start': '74.83.166.130', 'end': '74.83.166.190'}], 'gateway_ip': '74.83.166.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-27T01:55:07.693903', 'updated_at': '2025-10-27T01:55:07.693903', 'dns_server_address': '74.83.166.130', 'tags': [], 'project_id': 'a388eba16e52439685a8bf11d1693caa'}}
2025-10-27 01:55:07,866 - INFO - Created VN ctest-vn-61631004
2025-10-27 01:55:07,920 - DEBUG - VN ctest-vn-61631004 UUID is d562a80c-0d97-4a75-87bf-dca138a84d62
2025-10-27 01:55:08,136 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-78860873, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-61631004, 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-27 01:55:08,552 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4bd57f0-d291-4072-82b7-4c095b5671fb', 'name': 'ctest-vn-78860873', 'tenant_id': 'a388eba16e52439685a8bf11d1693caa', 'project_id': 'a388eba16e52439685a8bf11d1693caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75dba449-a016-431f-ae0b-457fc79b3a84'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-65152553', 'ctest-vn-78860873'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-65152553', 'ctest-policy-allow-all-75854759']], 'subnet_ipam': [{'subnet_cidr': '86.13.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-27T01:55:06.645773', 'updated_at': '2025-10-27T01:55:06.838411'}}
2025-10-27 01:55:08,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd562a80c-0d97-4a75-87bf-dca138a84d62', 'name': 'ctest-vn-61631004', 'tenant_id': 'a388eba16e52439685a8bf11d1693caa', 'project_id': 'a388eba16e52439685a8bf11d1693caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0a4d509-44a6-4484-9a4a-b32ddbf6487b'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-65152553', 'ctest-vn-61631004'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-65152553', 'ctest-policy-allow-all-75854759']], 'subnet_ipam': [{'subnet_cidr': '74.83.166.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-27T01:55:07.477782', 'updated_at': '2025-10-27T01:55:07.706071'}}
2025-10-27 01:55:09,104 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-27 01:55:09,458 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-27 01:55:09,536 - DEBUG - Requesting: https://10.0.0.27:8082/domain/15e0ce75-9595-48f6-b10e-49e8c56bef44
2025-10-27 01:55:09,593 - DEBUG - Requesting: https://10.0.0.27:8082/project/a388eba1-6e52-4396-85a8-bf11d1693caa
2025-10-27 01:55:09,677 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/b4bd57f0-d291-4072-82b7-4c095b5671fb
2025-10-27 01:55:09,733 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/b4bd57f0-d291-4072-82b7-4c095b5671fb
2025-10-27 01:55:09,790 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/bca52eb3-be8c-4a7e-8eb3-1fc6bae4e87c
2025-10-27 01:55:09,845 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/bca52eb3-be8c-4a7e-8eb3-1fc6bae4e87c
2025-10-27 01:55:09,897 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/fec1db93-c845-4c8d-9d6a-4342678c6ac8
2025-10-27 01:55:09,949 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 01:55:09,949 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/b4bd57f0-d291-4072-82b7-4c095b5671fb
2025-10-27 01:55:10,005 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/bca52eb3-be8c-4a7e-8eb3-1fc6bae4e87c
2025-10-27 01:55:10,064 - INFO - Verified VN network id 11 for VN b4bd57f0-d291-4072-82b7-4c095b5671fb
2025-10-27 01:55:10,064 - INFO - Verifications in API Server for VN ctest-vn-78860873 passed
2025-10-27 01:55:10,064 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/b4bd57f0-d291-4072-82b7-4c095b5671fb
2025-10-27 01:55:10,117 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/bca52eb3-be8c-4a7e-8eb3-1fc6bae4e87c
2025-10-27 01:55:10,170 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/bca52eb3-be8c-4a7e-8eb3-1fc6bae4e87c
2025-10-27 01:55:10,225 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/fec1db93-c845-4c8d-9d6a-4342678c6ac8
2025-10-27 01:55:10,333 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-78860873', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65152553', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13023662389261844594', 'uuid-lslong': '9419080748739490299'}, 'enable': 'true', 'created': '2025-10-27T01:55:06', 'last-modified': '2025-10-27T01:55:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.811346'}
2025-10-27 01:55:10,386 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 01:55:10,386 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78860873 passed
2025-10-27 01:55:10,386 - DEBUG - ====Verifying policy data for ctest-vn-78860873 in API_Server ======
2025-10-27 01:55:10,386 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-27 01:55:10,436 - DEBUG - Requesting: https://10.0.0.27:8082/domain/15e0ce75-9595-48f6-b10e-49e8c56bef44
2025-10-27 01:55:10,493 - DEBUG - Requesting: https://10.0.0.27:8082/project/a388eba1-6e52-4396-85a8-bf11d1693caa
2025-10-27 01:55:10,565 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/b4bd57f0-d291-4072-82b7-4c095b5671fb
2025-10-27 01:55:10,621 - DEBUG - ==>Verifying data for policy with id: 3177f0e9-6ec3-442f-9f89-61915354a8db, fqn: ['admin_domain', 'ctest-TestBasicPolicy-65152553', 'ctest-policy-allow-all-75854759']
2025-10-27 01:55:10,622 - INFO - VN ctest-vn-78860873 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 01:55:10,622 - DEBUG - Verifying the vn in opserver
2025-10-27 01:55:10,622 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-78860873 virtual network link through opserver 10.0.0.27
2025-10-27 01:55:10,622 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-27 01:55:10,971 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-27 01:55:11,088 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-78860873', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-78860873?flat'}
2025-10-27 01:55:11,088 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-78860873 is found in opserver
2025-10-27 01:55:11,184 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 01:55:11,232 - DEBUG - VRF ids for VN ctest-vn-78860873: {}
2025-10-27 01:55:11,232 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-27 01:55:11,284 - DEBUG - Requesting: https://10.0.0.27:8082/domain/15e0ce75-9595-48f6-b10e-49e8c56bef44
2025-10-27 01:55:11,341 - DEBUG - Requesting: https://10.0.0.27:8082/project/a388eba1-6e52-4396-85a8-bf11d1693caa
2025-10-27 01:55:11,421 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/d562a80c-0d97-4a75-87bf-dca138a84d62
2025-10-27 01:55:11,478 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/d562a80c-0d97-4a75-87bf-dca138a84d62
2025-10-27 01:55:11,533 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/f78eae6f-536d-44c8-aced-cd5dd7c5687a
2025-10-27 01:55:11,585 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/f78eae6f-536d-44c8-aced-cd5dd7c5687a
2025-10-27 01:55:11,637 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/a8c3df33-a440-4162-9a9b-27de8ba9706e
2025-10-27 01:55:11,692 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 01:55:11,692 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/d562a80c-0d97-4a75-87bf-dca138a84d62
2025-10-27 01:55:11,746 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/f78eae6f-536d-44c8-aced-cd5dd7c5687a
2025-10-27 01:55:11,809 - INFO - Verified VN network id 12 for VN d562a80c-0d97-4a75-87bf-dca138a84d62
2025-10-27 01:55:11,810 - INFO - Verifications in API Server for VN ctest-vn-61631004 passed
2025-10-27 01:55:11,810 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/d562a80c-0d97-4a75-87bf-dca138a84d62
2025-10-27 01:55:11,865 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/f78eae6f-536d-44c8-aced-cd5dd7c5687a
2025-10-27 01:55:11,921 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/f78eae6f-536d-44c8-aced-cd5dd7c5687a
2025-10-27 01:55:11,973 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/a8c3df33-a440-4162-9a9b-27de8ba9706e
2025-10-27 01:55:12,073 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-61631004', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65152553', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15376036847517387381', 'uuid-lslong': '9781779500670405986'}, 'enable': 'true', 'created': '2025-10-27T01:55:07', 'last-modified': '2025-10-27T01:55:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.202448'}
2025-10-27 01:55:12,129 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 01:55:12,130 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61631004 passed
2025-10-27 01:55:12,130 - DEBUG - ====Verifying policy data for ctest-vn-61631004 in API_Server ======
2025-10-27 01:55:12,130 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-27 01:55:12,180 - DEBUG - Requesting: https://10.0.0.27:8082/domain/15e0ce75-9595-48f6-b10e-49e8c56bef44
2025-10-27 01:55:12,237 - DEBUG - Requesting: https://10.0.0.27:8082/project/a388eba1-6e52-4396-85a8-bf11d1693caa
2025-10-27 01:55:12,314 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/d562a80c-0d97-4a75-87bf-dca138a84d62
2025-10-27 01:55:12,369 - DEBUG - ==>Verifying data for policy with id: 3177f0e9-6ec3-442f-9f89-61915354a8db, fqn: ['admin_domain', 'ctest-TestBasicPolicy-65152553', 'ctest-policy-allow-all-75854759']
2025-10-27 01:55:12,369 - INFO - VN ctest-vn-61631004 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 01:55:12,370 - DEBUG - Verifying the vn in opserver
2025-10-27 01:55:12,370 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-61631004 virtual network link through opserver 10.0.0.27
2025-10-27 01:55:12,370 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-27 01:55:12,429 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-61631004', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-61631004?flat'}
2025-10-27 01:55:12,429 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-65152553:ctest-vn-61631004 is found in opserver
2025-10-27 01:55:12,532 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 01:55:12,580 - DEBUG - VRF ids for VN ctest-vn-61631004: {}
2025-10-27 01:55:12,649 - DEBUG - Services list from nova: [