2026-05-05 17:18:37,149 - INFO - Domain Default found not creating
2026-05-05 17:18:37,355 - INFO - Project ctest-TestBasicPolicy-43083747 not found, creating it
2026-05-05 17:18:37,830 - INFO - Created Project:ctest-TestBasicPolicy-43083747, ID : 600cc19e-46db-4751-955b-fe3421a00545
2026-05-05 17:18:39,392 - INFO - ================================================================================
2026-05-05 17:18:39,392 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-05 17:18:39,392 - 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-05-05 17:18:39,661 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-05-05 17:18:39,661 - INFO - Initial checks done. Running the testcase now
2026-05-05 17:18:39,661 - INFO -
2026-05-05 17:18:40,243 - DEBUG - Response for create_network : {'network': {'id': '4ed53280-5a51-4581-b7a1-cd9082eb3f17', 'name': 'ctest-vn-38974105', 'tenant_id': '600cc19e46db4751955bfe3421a00545', 'project_id': '600cc19e46db4751955bfe3421a00545', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43083747', 'ctest-vn-38974105'], 'port_security_enabled': True, 'description': ''}}
2026-05-05 17:18:40,422 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e641c99-a143-47a7-b52d-ad4e2ec813c9', 'name': '', 'tenant_id': '600cc19e46db4751955bfe3421a00545', 'network_id': '4ed53280-5a51-4581-b7a1-cd9082eb3f17', 'ip_version': 4, 'cidr': '69.80.250.64/26', 'allocation_pools': [{'start': '69.80.250.66', 'end': '69.80.250.126'}], 'gateway_ip': '69.80.250.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.80.250.66', 'tags': [], 'project_id': '600cc19e46db4751955bfe3421a00545'}}
2026-05-05 17:18:40,441 - INFO - Created VN ctest-vn-38974105
2026-05-05 17:18:40,495 - DEBUG - VN ctest-vn-38974105 UUID is 4ed53280-5a51-4581-b7a1-cd9082eb3f17
2026-05-05 17:18:40,812 - DEBUG - Response for create_network : {'network': {'id': '110a159a-3a00-46ee-b19e-5bbe7e3fb8cc', 'name': 'ctest-vn-23965476', 'tenant_id': '600cc19e46db4751955bfe3421a00545', 'project_id': '600cc19e46db4751955bfe3421a00545', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43083747', 'ctest-vn-23965476'], 'port_security_enabled': True, 'description': ''}}
2026-05-05 17:18:41,017 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb5a56b1-9843-4c35-bfd3-623c0859a3b4', 'name': '', 'tenant_id': '600cc19e46db4751955bfe3421a00545', 'network_id': '110a159a-3a00-46ee-b19e-5bbe7e3fb8cc', 'ip_version': 4, 'cidr': '38.131.143.192/26', 'allocation_pools': [{'start': '38.131.143.194', 'end': '38.131.143.254'}], 'gateway_ip': '38.131.143.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.131.143.194', 'tags': [], 'project_id': '600cc19e46db4751955bfe3421a00545'}}
2026-05-05 17:18:41,037 - INFO - Created VN ctest-vn-23965476
2026-05-05 17:18:41,091 - DEBUG - VN ctest-vn-23965476 UUID is 110a159a-3a00-46ee-b19e-5bbe7e3fb8cc
2026-05-05 17:18:41,222 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-38974105, 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-43083747:ctest-vn-23965476, 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-05-05 17:18:41,521 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ed53280-5a51-4581-b7a1-cd9082eb3f17', 'name': 'ctest-vn-38974105', 'tenant_id': '600cc19e46db4751955bfe3421a00545', 'project_id': '600cc19e46db4751955bfe3421a00545', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e641c99-a143-47a7-b52d-ad4e2ec813c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43083747', 'ctest-vn-38974105'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43083747', 'ctest-policy-allow-all-02138410']], 'subnet_ipam': [{'subnet_cidr': '69.80.250.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-05 17:18:41,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '110a159a-3a00-46ee-b19e-5bbe7e3fb8cc', 'name': 'ctest-vn-23965476', 'tenant_id': '600cc19e46db4751955bfe3421a00545', 'project_id': '600cc19e46db4751955bfe3421a00545', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb5a56b1-9843-4c35-bfd3-623c0859a3b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43083747', 'ctest-vn-23965476'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43083747', 'ctest-policy-allow-all-02138410']], 'subnet_ipam': [{'subnet_cidr': '38.131.143.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-05 17:18:41,922 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 17:18:42,219 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 17:18:42,256 - DEBUG - Requesting: http://10.0.0.50:8082/domain/129f68c7-3876-4ce5-ae57-19602b868f83
2026-05-05 17:18:42,270 - DEBUG - Requesting: http://10.0.0.50:8082/project/600cc19e-46db-4751-955b-fe3421a00545
2026-05-05 17:18:42,343 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ed53280-5a51-4581-b7a1-cd9082eb3f17
2026-05-05 17:18:42,356 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ed53280-5a51-4581-b7a1-cd9082eb3f17
2026-05-05 17:18:42,365 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3bff92cf-2d18-4a78-b9ad-07c4eb5e3001
2026-05-05 17:18:42,374 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3bff92cf-2d18-4a78-b9ad-07c4eb5e3001
2026-05-05 17:18:42,382 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b0c8189e-dea1-45ef-8949-731e96e13702
2026-05-05 17:18:42,390 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-05 17:18:42,390 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ed53280-5a51-4581-b7a1-cd9082eb3f17
2026-05-05 17:18:42,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3bff92cf-2d18-4a78-b9ad-07c4eb5e3001
2026-05-05 17:18:42,415 - INFO - Verified VN network id 11 for VN 4ed53280-5a51-4581-b7a1-cd9082eb3f17
2026-05-05 17:18:42,415 - INFO - Verifications in API Server for VN ctest-vn-38974105 passed
2026-05-05 17:18:42,415 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ed53280-5a51-4581-b7a1-cd9082eb3f17
2026-05-05 17:18:42,427 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3bff92cf-2d18-4a78-b9ad-07c4eb5e3001
2026-05-05 17:18:42,435 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3bff92cf-2d18-4a78-b9ad-07c4eb5e3001
2026-05-05 17:18:42,443 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b0c8189e-dea1-45ef-8949-731e96e13702
2026-05-05 17:18:42,454 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-38974105', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43083747', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5680502031850227073', 'uuid-lslong': '13232083200746667799'}, 'enable': 'true', 'created': '2026-05-05T17:18:40', 'last-modified': '2026-05-05T17:18:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953269'}
2026-05-05 17:18:42,460 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-05 17:18:42,460 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38974105 passed
2026-05-05 17:18:42,460 - DEBUG - ====Verifying policy data for ctest-vn-38974105 in API_Server ======
2026-05-05 17:18:42,460 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 17:18:42,465 - DEBUG - Requesting: http://10.0.0.50:8082/domain/129f68c7-3876-4ce5-ae57-19602b868f83
2026-05-05 17:18:42,475 - DEBUG - Requesting: http://10.0.0.50:8082/project/600cc19e-46db-4751-955b-fe3421a00545
2026-05-05 17:18:42,545 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ed53280-5a51-4581-b7a1-cd9082eb3f17
2026-05-05 17:18:42,555 - DEBUG - ==>Verifying data for policy with id: 9afc0f8b-57db-43eb-9fa0-7fe068e05977, fqn: ['default-domain', 'ctest-TestBasicPolicy-43083747', 'ctest-policy-allow-all-02138410']
2026-05-05 17:18:42,555 - INFO - VN ctest-vn-38974105 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-05 17:18:42,556 - DEBUG - Verifying the vn in opserver
2026-05-05 17:18:42,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-38974105 virtual network link through opserver 10.0.0.50
2026-05-05 17:18:42,556 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-05 17:18:42,853 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-05 17:18:42,923 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-38974105', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-38974105?flat'}
2026-05-05 17:18:42,923 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-38974105 is found in opserver
2026-05-05 17:18:42,933 - DEBUG - Do not have enough data to verify VN in agent
2026-05-05 17:18:42,937 - DEBUG - VRF ids for VN ctest-vn-38974105: {}
2026-05-05 17:18:42,937 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 17:18:42,943 - DEBUG - Requesting: http://10.0.0.50:8082/domain/129f68c7-3876-4ce5-ae57-19602b868f83
2026-05-05 17:18:42,953 - DEBUG - Requesting: http://10.0.0.50:8082/project/600cc19e-46db-4751-955b-fe3421a00545
2026-05-05 17:18:43,021 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/110a159a-3a00-46ee-b19e-5bbe7e3fb8cc
2026-05-05 17:18:43,034 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/110a159a-3a00-46ee-b19e-5bbe7e3fb8cc
2026-05-05 17:18:43,043 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a2f3218-52ad-4b22-aa84-725dd8896c0b
2026-05-05 17:18:43,051 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a2f3218-52ad-4b22-aa84-725dd8896c0b
2026-05-05 17:18:43,058 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/10ce5cd0-cd4c-4031-8a2b-3131d8586dc6
2026-05-05 17:18:43,065 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-05 17:18:43,065 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/110a159a-3a00-46ee-b19e-5bbe7e3fb8cc
2026-05-05 17:18:43,076 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a2f3218-52ad-4b22-aa84-725dd8896c0b
2026-05-05 17:18:43,090 - INFO - Verified VN network id 12 for VN 110a159a-3a00-46ee-b19e-5bbe7e3fb8cc
2026-05-05 17:18:43,090 - INFO - Verifications in API Server for VN ctest-vn-23965476 passed
2026-05-05 17:18:43,090 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/110a159a-3a00-46ee-b19e-5bbe7e3fb8cc
2026-05-05 17:18:43,099 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a2f3218-52ad-4b22-aa84-725dd8896c0b
2026-05-05 17:18:43,105 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a2f3218-52ad-4b22-aa84-725dd8896c0b
2026-05-05 17:18:43,112 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/10ce5cd0-cd4c-4031-8a2b-3131d8586dc6
2026-05-05 17:18:43,124 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-23965476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43083747', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1227817600554125038', 'uuid-lslong': '12798768064753547468'}, 'enable': 'true', 'created': '2026-05-05T17:18:40', 'last-modified': '2026-05-05T17:18:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.390638'}
2026-05-05 17:18:43,131 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-05 17:18:43,132 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23965476 passed
2026-05-05 17:18:43,132 - DEBUG - ====Verifying policy data for ctest-vn-23965476 in API_Server ======
2026-05-05 17:18:43,132 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-05 17:18:43,138 - DEBUG - Requesting: http://10.0.0.50:8082/domain/129f68c7-3876-4ce5-ae57-19602b868f83
2026-05-05 17:18:43,153 - DEBUG - Requesting: http://10.0.0.50:8082/project/600cc19e-46db-4751-955b-fe3421a00545
2026-05-05 17:18:43,221 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/110a159a-3a00-46ee-b19e-5bbe7e3fb8cc
2026-05-05 17:18:43,231 - DEBUG - ==>Verifying data for policy with id: 9afc0f8b-57db-43eb-9fa0-7fe068e05977, fqn: ['default-domain', 'ctest-TestBasicPolicy-43083747', 'ctest-policy-allow-all-02138410']
2026-05-05 17:18:43,231 - INFO - VN ctest-vn-23965476 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-05 17:18:43,231 - DEBUG - Verifying the vn in opserver
2026-05-05 17:18:43,231 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-23965476 virtual network link through opserver 10.0.0.50
2026-05-05 17:18:43,231 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-05 17:18:43,241 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-23965476', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-23965476?flat'}
2026-05-05 17:18:43,241 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43083747:ctest-vn-23965476 is found in opserver
2026-05-05 17:18:43,250 - DEBUG - Do not have enough data to verify VN in agent
2026-05-05 17:18:43,255 - DEBUG - VRF ids for VN ctest-vn-23965476: {}
2026-05-05 17:18:43,315 - DEBUG - Services list from nova: [