2026-04-18 02:58:05,406 - INFO - Domain Default found not creating
2026-04-18 02:58:05,567 - INFO - Project ctest-TestBasicPolicy-49485232 not found, creating it
2026-04-18 02:58:06,008 - INFO - Created Project:ctest-TestBasicPolicy-49485232, ID : 6ffdb04f-20b1-419b-8889-56131409b0ab
2026-04-18 02:58:07,493 - INFO - ================================================================================
2026-04-18 02:58:07,493 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-18 02:58:07,493 - 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
2026-04-18 02:58:07,751 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-18 02:58:07,751 - INFO - Initial checks done. Running the testcase now
2026-04-18 02:58:07,751 - INFO -
2026-04-18 02:58:08,291 - DEBUG - Response for create_network : {'network': {'id': '98b2e97f-83ce-40ad-972f-ca16b9e9c87b', 'name': 'ctest-vn-30905086', 'tenant_id': '6ffdb04f20b1419b888956131409b0ab', 'project_id': '6ffdb04f20b1419b888956131409b0ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49485232', 'ctest-vn-30905086'], 'port_security_enabled': True, 'description': ''}}
2026-04-18 02:58:08,524 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a8a1eef-9f5d-4355-b9f8-a979e776412e', 'name': '', 'tenant_id': '6ffdb04f20b1419b888956131409b0ab', 'network_id': '98b2e97f-83ce-40ad-972f-ca16b9e9c87b', 'ip_version': 4, 'cidr': '44.105.156.0/26', 'allocation_pools': [{'start': '44.105.156.2', 'end': '44.105.156.62'}], 'gateway_ip': '44.105.156.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.105.156.2', 'tags': [], 'project_id': '6ffdb04f20b1419b888956131409b0ab'}}
2026-04-18 02:58:08,544 - INFO - Created VN ctest-vn-30905086
2026-04-18 02:58:08,600 - DEBUG - VN ctest-vn-30905086 UUID is 98b2e97f-83ce-40ad-972f-ca16b9e9c87b
2026-04-18 02:58:08,910 - DEBUG - Response for create_network : {'network': {'id': '58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b', 'name': 'ctest-vn-51091273', 'tenant_id': '6ffdb04f20b1419b888956131409b0ab', 'project_id': '6ffdb04f20b1419b888956131409b0ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49485232', 'ctest-vn-51091273'], 'port_security_enabled': True, 'description': ''}}
2026-04-18 02:58:09,109 - DEBUG - Response for create_subnet : {'subnet': {'id': '717d35b1-3d81-4a9f-92f6-0b097315e78d', 'name': '', 'tenant_id': '6ffdb04f20b1419b888956131409b0ab', 'network_id': '58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b', 'ip_version': 4, 'cidr': '26.42.16.64/26', 'allocation_pools': [{'start': '26.42.16.66', 'end': '26.42.16.126'}], 'gateway_ip': '26.42.16.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.42.16.66', 'tags': [], 'project_id': '6ffdb04f20b1419b888956131409b0ab'}}
2026-04-18 02:58:09,128 - INFO - Created VN ctest-vn-51091273
2026-04-18 02:58:09,184 - DEBUG - VN ctest-vn-51091273 UUID is 58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b
2026-04-18 02:58:09,300 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-30905086, 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-49485232:ctest-vn-51091273, 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]
2026-04-18 02:58:09,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98b2e97f-83ce-40ad-972f-ca16b9e9c87b', 'name': 'ctest-vn-30905086', 'tenant_id': '6ffdb04f20b1419b888956131409b0ab', 'project_id': '6ffdb04f20b1419b888956131409b0ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a8a1eef-9f5d-4355-b9f8-a979e776412e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49485232', 'ctest-vn-30905086'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49485232', 'ctest-policy-allow-all-25939050']], 'subnet_ipam': [{'subnet_cidr': '44.105.156.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-18 02:58:09,852 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b', 'name': 'ctest-vn-51091273', 'tenant_id': '6ffdb04f20b1419b888956131409b0ab', 'project_id': '6ffdb04f20b1419b888956131409b0ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['717d35b1-3d81-4a9f-92f6-0b097315e78d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49485232', 'ctest-vn-51091273'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49485232', 'ctest-policy-allow-all-25939050']], 'subnet_ipam': [{'subnet_cidr': '26.42.16.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-18 02:58:10,012 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 02:58:10,288 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 02:58:10,320 - DEBUG - Requesting: http://10.0.0.38:8082/domain/50e1fa05-26b9-4d0b-9964-5a06d44ee100
2026-04-18 02:58:10,332 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ffdb04f-20b1-419b-8889-56131409b0ab
2026-04-18 02:58:10,405 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98b2e97f-83ce-40ad-972f-ca16b9e9c87b
2026-04-18 02:58:10,415 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98b2e97f-83ce-40ad-972f-ca16b9e9c87b
2026-04-18 02:58:10,425 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfe948a8-d58c-4143-b295-241207d34fc5
2026-04-18 02:58:10,431 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfe948a8-d58c-4143-b295-241207d34fc5
2026-04-18 02:58:10,437 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f50719ce-f652-40c2-b880-5b9f420e032d
2026-04-18 02:58:10,443 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-18 02:58:10,443 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98b2e97f-83ce-40ad-972f-ca16b9e9c87b
2026-04-18 02:58:10,452 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfe948a8-d58c-4143-b295-241207d34fc5
2026-04-18 02:58:10,464 - INFO - Verified VN network id 11 for VN 98b2e97f-83ce-40ad-972f-ca16b9e9c87b
2026-04-18 02:58:10,464 - INFO - Verifications in API Server for VN ctest-vn-30905086 passed
2026-04-18 02:58:10,465 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98b2e97f-83ce-40ad-972f-ca16b9e9c87b
2026-04-18 02:58:10,473 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfe948a8-d58c-4143-b295-241207d34fc5
2026-04-18 02:58:10,479 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bfe948a8-d58c-4143-b295-241207d34fc5
2026-04-18 02:58:10,485 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f50719ce-f652-40c2-b880-5b9f420e032d
2026-04-18 02:58:10,495 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-30905086', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49485232', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11003113573500993709', 'uuid-lslong': '10894148222589716603'}, 'enable': 'true', 'created': '2026-04-18T02:58:08', 'last-modified': '2026-04-18T02:58:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913071'}
2026-04-18 02:58:10,502 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-18 02:58:10,502 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30905086 passed
2026-04-18 02:58:10,502 - DEBUG - ====Verifying policy data for ctest-vn-30905086 in API_Server ======
2026-04-18 02:58:10,502 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 02:58:10,508 - DEBUG - Requesting: http://10.0.0.38:8082/domain/50e1fa05-26b9-4d0b-9964-5a06d44ee100
2026-04-18 02:58:10,520 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ffdb04f-20b1-419b-8889-56131409b0ab
2026-04-18 02:58:10,591 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98b2e97f-83ce-40ad-972f-ca16b9e9c87b
2026-04-18 02:58:10,600 - DEBUG - ==>Verifying data for policy with id: e751435c-19c3-4b63-97d7-8297b66b7b77, fqn: ['default-domain', 'ctest-TestBasicPolicy-49485232', 'ctest-policy-allow-all-25939050']
2026-04-18 02:58:10,600 - INFO - VN ctest-vn-30905086 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-18 02:58:10,600 - DEBUG - Verifying the vn in opserver
2026-04-18 02:58:10,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-30905086 virtual network link through opserver 10.0.0.38
2026-04-18 02:58:10,600 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-18 02:58:10,864 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-18 02:58:10,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-30905086', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-30905086?flat'}
2026-04-18 02:58:10,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-30905086 is found in opserver
2026-04-18 02:58:10,937 - DEBUG - Do not have enough data to verify VN in agent
2026-04-18 02:58:10,941 - DEBUG - VRF ids for VN ctest-vn-30905086: {}
2026-04-18 02:58:10,941 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 02:58:10,946 - DEBUG - Requesting: http://10.0.0.38:8082/domain/50e1fa05-26b9-4d0b-9964-5a06d44ee100
2026-04-18 02:58:10,959 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ffdb04f-20b1-419b-8889-56131409b0ab
2026-04-18 02:58:11,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b
2026-04-18 02:58:11,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b
2026-04-18 02:58:11,051 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6615ff29-8869-4134-8745-8977ec8a2922
2026-04-18 02:58:11,058 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6615ff29-8869-4134-8745-8977ec8a2922
2026-04-18 02:58:11,064 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5135c6f-b1c3-4554-8102-17546b574fc1
2026-04-18 02:58:11,070 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-18 02:58:11,071 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b
2026-04-18 02:58:11,078 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6615ff29-8869-4134-8745-8977ec8a2922
2026-04-18 02:58:11,091 - INFO - Verified VN network id 12 for VN 58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b
2026-04-18 02:58:11,091 - INFO - Verifications in API Server for VN ctest-vn-51091273 passed
2026-04-18 02:58:11,091 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b
2026-04-18 02:58:11,100 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6615ff29-8869-4134-8745-8977ec8a2922
2026-04-18 02:58:11,106 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6615ff29-8869-4134-8745-8977ec8a2922
2026-04-18 02:58:11,112 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5135c6f-b1c3-4554-8102-17546b574fc1
2026-04-18 02:58:11,125 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-51091273', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49485232', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6403148076280662932', 'uuid-lslong': '12221513944678785067'}, 'enable': 'true', 'created': '2026-04-18T02:58:08', 'last-modified': '2026-04-18T02:58:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299192'}
2026-04-18 02:58:11,131 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-18 02:58:11,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51091273 passed
2026-04-18 02:58:11,131 - DEBUG - ====Verifying policy data for ctest-vn-51091273 in API_Server ======
2026-04-18 02:58:11,131 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 02:58:11,137 - DEBUG - Requesting: http://10.0.0.38:8082/domain/50e1fa05-26b9-4d0b-9964-5a06d44ee100
2026-04-18 02:58:11,150 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ffdb04f-20b1-419b-8889-56131409b0ab
2026-04-18 02:58:11,215 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58dc8d40-02ef-4b94-a99b-8a2e2a0fe02b
2026-04-18 02:58:11,225 - DEBUG - ==>Verifying data for policy with id: e751435c-19c3-4b63-97d7-8297b66b7b77, fqn: ['default-domain', 'ctest-TestBasicPolicy-49485232', 'ctest-policy-allow-all-25939050']
2026-04-18 02:58:11,225 - INFO - VN ctest-vn-51091273 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-18 02:58:11,225 - DEBUG - Verifying the vn in opserver
2026-04-18 02:58:11,225 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-51091273 virtual network link through opserver 10.0.0.38
2026-04-18 02:58:11,225 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-18 02:58:11,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-51091273', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-51091273?flat'}
2026-04-18 02:58:11,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49485232:ctest-vn-51091273 is found in opserver
2026-04-18 02:58:11,245 - DEBUG - Do not have enough data to verify VN in agent
2026-04-18 02:58:11,249 - DEBUG - VRF ids for VN ctest-vn-51091273: {}
2026-04-18 02:58:11,307 - DEBUG - Services list from nova: [