2025-08-08 00:39:07,091 - INFO - Domain Default found not creating
2025-08-08 00:39:07,255 - INFO - Project ctest-TestBasicPolicy-09203076 not found, creating it
2025-08-08 00:39:07,798 - INFO - Created Project:ctest-TestBasicPolicy-09203076, ID : acd45c65-a64a-4607-9191-7cdae9ebd408
2025-08-08 00:39:09,336 - INFO - ================================================================================
2025-08-08 00:39:09,336 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-08 00:39:09,336 - 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-08-08 00:39:09,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-08 00:39:09,612 - INFO - Initial checks done. Running the testcase now
2025-08-08 00:39:09,613 - INFO -
2025-08-08 00:39:10,227 - DEBUG - Response for create_network : {'network': {'id': 'da5802ca-aeb7-48a8-96a8-5eff975c74a2', 'name': 'ctest-vn-74767752', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'project_id': 'acd45c65a64a460791917cdae9ebd408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-vn-74767752'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 00:39:10,393 - DEBUG - Response for create_subnet : {'subnet': {'id': '36b2082d-8a07-4829-9446-499a434ed395', 'name': '', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'network_id': 'da5802ca-aeb7-48a8-96a8-5eff975c74a2', 'ip_version': 4, 'cidr': '24.171.250.128/26', 'allocation_pools': [{'start': '24.171.250.130', 'end': '24.171.250.190'}], 'gateway_ip': '24.171.250.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.171.250.130', 'tags': [], 'project_id': 'acd45c65a64a460791917cdae9ebd408'}}
2025-08-08 00:39:10,412 - INFO - Created VN ctest-vn-74767752
2025-08-08 00:39:10,468 - DEBUG - VN ctest-vn-74767752 UUID is da5802ca-aeb7-48a8-96a8-5eff975c74a2
2025-08-08 00:39:10,800 - DEBUG - Response for create_network : {'network': {'id': '7f47802c-551b-46f8-bb53-794ae8d70bc4', 'name': 'ctest-vn-76809090', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'project_id': 'acd45c65a64a460791917cdae9ebd408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-vn-76809090'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 00:39:11,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '12095da7-5050-40a9-8b81-7559dd58f84b', 'name': '', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'network_id': '7f47802c-551b-46f8-bb53-794ae8d70bc4', 'ip_version': 4, 'cidr': '124.143.82.128/26', 'allocation_pools': [{'start': '124.143.82.130', 'end': '124.143.82.190'}], 'gateway_ip': '124.143.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.143.82.130', 'tags': [], 'project_id': 'acd45c65a64a460791917cdae9ebd408'}}
2025-08-08 00:39:11,051 - INFO - Created VN ctest-vn-76809090
2025-08-08 00:39:11,104 - DEBUG - VN ctest-vn-76809090 UUID is 7f47802c-551b-46f8-bb53-794ae8d70bc4
2025-08-08 00:39:11,226 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752, 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-09203076:ctest-vn-76809090, 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-08-08 00:39:11,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da5802ca-aeb7-48a8-96a8-5eff975c74a2', 'name': 'ctest-vn-74767752', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'project_id': 'acd45c65a64a460791917cdae9ebd408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36b2082d-8a07-4829-9446-499a434ed395'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-vn-74767752'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-policy-allow-all-72628581']], 'subnet_ipam': [{'subnet_cidr': '24.171.250.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 00:39:11,784 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f47802c-551b-46f8-bb53-794ae8d70bc4', 'name': 'ctest-vn-76809090', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'project_id': 'acd45c65a64a460791917cdae9ebd408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12095da7-5050-40a9-8b81-7559dd58f84b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-vn-76809090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-policy-allow-all-72628581']], 'subnet_ipam': [{'subnet_cidr': '124.143.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 00:39:11,956 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 00:39:12,256 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 00:39:12,287 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3
2025-08-08 00:39:12,302 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408
2025-08-08 00:39:12,378 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2
2025-08-08 00:39:12,390 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2
2025-08-08 00:39:12,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957
2025-08-08 00:39:12,411 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957
2025-08-08 00:39:12,418 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ecdca698-4425-46c5-b153-2db51ce44743
2025-08-08 00:39:12,426 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 00:39:12,426 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2
2025-08-08 00:39:12,435 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957
2025-08-08 00:39:12,451 - INFO - Verified VN network id 11 for VN da5802ca-aeb7-48a8-96a8-5eff975c74a2
2025-08-08 00:39:12,451 - INFO - Verifications in API Server for VN ctest-vn-74767752 passed
2025-08-08 00:39:12,451 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2
2025-08-08 00:39:12,463 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957
2025-08-08 00:39:12,472 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957
2025-08-08 00:39:12,481 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ecdca698-4425-46c5-b153-2db51ce44743
2025-08-08 00:39:12,496 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09203076', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15733328367756724392', 'uuid-lslong': '10856031353625670818'}, 'enable': 'true', 'created': '2025-08-08T00:39:10', 'last-modified': '2025-08-08T00:39:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983520'}
2025-08-08 00:39:12,505 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 00:39:12,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74767752 passed
2025-08-08 00:39:12,506 - DEBUG - ====Verifying policy data for ctest-vn-74767752 in API_Server ======
2025-08-08 00:39:12,506 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 00:39:12,512 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3
2025-08-08 00:39:12,526 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408
2025-08-08 00:39:12,605 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2
2025-08-08 00:39:12,617 - DEBUG - ==>Verifying data for policy with id: 91ad5cf4-1758-47bd-99d3-ec66af2bd61f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-policy-allow-all-72628581']
2025-08-08 00:39:12,618 - INFO - VN ctest-vn-74767752 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 00:39:12,618 - DEBUG - Verifying the vn in opserver
2025-08-08 00:39:12,618 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752 virtual network link through opserver 10.0.0.38
2025-08-08 00:39:12,618 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-08 00:39:12,919 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-08 00:39:12,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752?flat'}
2025-08-08 00:39:12,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752 is found in opserver
2025-08-08 00:39:13,006 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 00:39:13,012 - DEBUG - VRF ids for VN ctest-vn-74767752: {}
2025-08-08 00:39:13,012 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 00:39:13,021 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3
2025-08-08 00:39:13,033 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408
2025-08-08 00:39:13,114 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4
2025-08-08 00:39:13,132 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4
2025-08-08 00:39:13,145 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4
2025-08-08 00:39:13,158 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4
2025-08-08 00:39:13,168 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99f76f05-7d53-4722-9eb0-93475783e2d7
2025-08-08 00:39:13,176 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 00:39:13,176 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4
2025-08-08 00:39:13,190 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4
2025-08-08 00:39:13,212 - INFO - Verified VN network id 12 for VN 7f47802c-551b-46f8-bb53-794ae8d70bc4
2025-08-08 00:39:13,212 - INFO - Verifications in API Server for VN ctest-vn-76809090 passed
2025-08-08 00:39:13,213 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4
2025-08-08 00:39:13,230 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4
2025-08-08 00:39:13,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4
2025-08-08 00:39:13,253 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99f76f05-7d53-4722-9eb0-93475783e2d7
2025-08-08 00:39:13,268 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09203076', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9171440094058071800', 'uuid-lslong': '13498265870800456644'}, 'enable': 'true', 'created': '2025-08-08T00:39:10', 'last-modified': '2025-08-08T00:39:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509886'}
2025-08-08 00:39:13,279 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 00:39:13,279 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76809090 passed
2025-08-08 00:39:13,280 - DEBUG - ====Verifying policy data for ctest-vn-76809090 in API_Server ======
2025-08-08 00:39:13,280 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 00:39:13,294 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3
2025-08-08 00:39:13,313 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408
2025-08-08 00:39:13,405 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4
2025-08-08 00:39:13,419 - DEBUG - ==>Verifying data for policy with id: 91ad5cf4-1758-47bd-99d3-ec66af2bd61f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-policy-allow-all-72628581']
2025-08-08 00:39:13,419 - INFO - VN ctest-vn-76809090 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 00:39:13,419 - DEBUG - Verifying the vn in opserver
2025-08-08 00:39:13,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090 virtual network link through opserver 10.0.0.38
2025-08-08 00:39:13,419 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-08 00:39:13,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090?flat'}
2025-08-08 00:39:13,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090 is found in opserver
2025-08-08 00:39:13,446 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 00:39:13,451 - DEBUG - VRF ids for VN ctest-vn-76809090: {}
2025-08-08 00:39:13,511 - DEBUG - Services list from nova: [