2026-07-17 18:09:00,446 - INFO - Domain Default found not creating
2026-07-17 18:09:00,644 - INFO - Project ctest-TestBasicPolicy-87161483 not found, creating it
2026-07-17 18:09:01,169 - INFO - Created Project:ctest-TestBasicPolicy-87161483, ID : 4e0a0462-be19-4219-bfc0-92c59e4e2434
2026-07-17 18:09:02,945 - INFO - ================================================================================
2026-07-17 18:09:02,945 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-17 18:09:02,945 - 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-07-17 18:09:03,222 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-07-17 18:09:03,222 - INFO - Initial checks done. Running the testcase now
2026-07-17 18:09:03,222 - INFO -
2026-07-17 18:09:03,905 - DEBUG - Response for create_network : {'network': {'id': '1f05b48a-4ea9-4d93-b1b8-ce057c943305', 'name': 'ctest-vn-45416041', 'tenant_id': '4e0a0462be194219bfc092c59e4e2434', 'project_id': '4e0a0462be194219bfc092c59e4e2434', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87161483', 'ctest-vn-45416041'], 'port_security_enabled': True, 'description': ''}}
2026-07-17 18:09:04,097 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b80575e4-18e9-4a8f-a285-cd8a1102485b', 'name': '', 'tenant_id': '4e0a0462be194219bfc092c59e4e2434', 'network_id': '1f05b48a-4ea9-4d93-b1b8-ce057c943305', 'ip_version': 4, 'cidr': '65.110.44.192/26', 'allocation_pools': [{'start': '65.110.44.194', 'end': '65.110.44.254'}], 'gateway_ip': '65.110.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.110.44.194', 'tags': [], 'project_id': '4e0a0462be194219bfc092c59e4e2434'}}
2026-07-17 18:09:04,117 - INFO - Created VN ctest-vn-45416041
2026-07-17 18:09:04,174 - DEBUG - VN ctest-vn-45416041 UUID is 1f05b48a-4ea9-4d93-b1b8-ce057c943305
2026-07-17 18:09:04,488 - DEBUG - Response for create_network : {'network': {'id': '6931af6f-7a01-4bf2-b1ae-88ce0b5624e4', 'name': 'ctest-vn-05430835', 'tenant_id': '4e0a0462be194219bfc092c59e4e2434', 'project_id': '4e0a0462be194219bfc092c59e4e2434', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87161483', 'ctest-vn-05430835'], 'port_security_enabled': True, 'description': ''}}
2026-07-17 18:09:04,704 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c3a713b-98a6-4e42-a894-10e9f887971c', 'name': '', 'tenant_id': '4e0a0462be194219bfc092c59e4e2434', 'network_id': '6931af6f-7a01-4bf2-b1ae-88ce0b5624e4', 'ip_version': 4, 'cidr': '81.245.58.128/26', 'allocation_pools': [{'start': '81.245.58.130', 'end': '81.245.58.190'}], 'gateway_ip': '81.245.58.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.245.58.130', 'tags': [], 'project_id': '4e0a0462be194219bfc092c59e4e2434'}}
2026-07-17 18:09:04,722 - INFO - Created VN ctest-vn-05430835
2026-07-17 18:09:04,782 - DEBUG - VN ctest-vn-05430835 UUID is 6931af6f-7a01-4bf2-b1ae-88ce0b5624e4
2026-07-17 18:09:04,929 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-45416041, 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-87161483:ctest-vn-05430835, 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-07-17 18:09:05,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1f05b48a-4ea9-4d93-b1b8-ce057c943305', 'name': 'ctest-vn-45416041', 'tenant_id': '4e0a0462be194219bfc092c59e4e2434', 'project_id': '4e0a0462be194219bfc092c59e4e2434', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b80575e4-18e9-4a8f-a285-cd8a1102485b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87161483', 'ctest-vn-45416041'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87161483', 'ctest-policy-allow-all-52095680']], 'subnet_ipam': [{'subnet_cidr': '65.110.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-17 18:09:05,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6931af6f-7a01-4bf2-b1ae-88ce0b5624e4', 'name': 'ctest-vn-05430835', 'tenant_id': '4e0a0462be194219bfc092c59e4e2434', 'project_id': '4e0a0462be194219bfc092c59e4e2434', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c3a713b-98a6-4e42-a894-10e9f887971c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87161483', 'ctest-vn-05430835'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87161483', 'ctest-policy-allow-all-52095680']], 'subnet_ipam': [{'subnet_cidr': '81.245.58.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-17 18:09:05,698 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-17 18:09:06,083 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-17 18:09:06,118 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f880a7f-de93-44ce-aa16-f69437742e26
2026-07-17 18:09:06,134 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e0a0462-be19-4219-bfc0-92c59e4e2434
2026-07-17 18:09:06,213 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1f05b48a-4ea9-4d93-b1b8-ce057c943305
2026-07-17 18:09:06,226 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1f05b48a-4ea9-4d93-b1b8-ce057c943305
2026-07-17 18:09:06,236 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/717b2ed8-97e4-4bcd-bc89-316906c6db21
2026-07-17 18:09:06,244 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/717b2ed8-97e4-4bcd-bc89-316906c6db21
2026-07-17 18:09:06,250 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6094c0e5-53c6-4284-9c72-a9868e8b8c42
2026-07-17 18:09:06,257 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-17 18:09:06,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1f05b48a-4ea9-4d93-b1b8-ce057c943305
2026-07-17 18:09:06,266 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/717b2ed8-97e4-4bcd-bc89-316906c6db21
2026-07-17 18:09:06,282 - INFO - Verified VN network id 11 for VN 1f05b48a-4ea9-4d93-b1b8-ce057c943305
2026-07-17 18:09:06,282 - INFO - Verifications in API Server for VN ctest-vn-45416041 passed
2026-07-17 18:09:06,282 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1f05b48a-4ea9-4d93-b1b8-ce057c943305
2026-07-17 18:09:06,293 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/717b2ed8-97e4-4bcd-bc89-316906c6db21
2026-07-17 18:09:06,300 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/717b2ed8-97e4-4bcd-bc89-316906c6db21
2026-07-17 18:09:06,307 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6094c0e5-53c6-4284-9c72-a9868e8b8c42
2026-07-17 18:09:06,321 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-45416041', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87161483', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2235391296177524115', 'uuid-lslong': '12806212063388250885'}, 'enable': 'true', 'created': '2026-07-17T18:09:03', 'last-modified': '2026-07-17T18:09:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.090718'}
2026-07-17 18:09:06,329 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-17 18:09:06,329 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45416041 passed
2026-07-17 18:09:06,329 - DEBUG - ====Verifying policy data for ctest-vn-45416041 in API_Server ======
2026-07-17 18:09:06,329 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-17 18:09:06,337 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f880a7f-de93-44ce-aa16-f69437742e26
2026-07-17 18:09:06,353 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e0a0462-be19-4219-bfc0-92c59e4e2434
2026-07-17 18:09:06,433 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1f05b48a-4ea9-4d93-b1b8-ce057c943305
2026-07-17 18:09:06,445 - DEBUG - ==>Verifying data for policy with id: 28f8fb24-49e4-4118-9c89-0b562adaa29b, fqn: ['default-domain', 'ctest-TestBasicPolicy-87161483', 'ctest-policy-allow-all-52095680']
2026-07-17 18:09:06,446 - INFO - VN ctest-vn-45416041 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-17 18:09:06,446 - DEBUG - Verifying the vn in opserver
2026-07-17 18:09:06,446 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-45416041 virtual network link through opserver 10.0.0.38
2026-07-17 18:09:06,446 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-17 18:09:06,812 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-17 18:09:06,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-45416041', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-45416041?flat'}
2026-07-17 18:09:06,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-45416041 is found in opserver
2026-07-17 18:09:06,881 - DEBUG - Do not have enough data to verify VN in agent
2026-07-17 18:09:06,887 - DEBUG - VRF ids for VN ctest-vn-45416041: {}
2026-07-17 18:09:06,887 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-17 18:09:06,893 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f880a7f-de93-44ce-aa16-f69437742e26
2026-07-17 18:09:06,904 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e0a0462-be19-4219-bfc0-92c59e4e2434
2026-07-17 18:09:06,978 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6931af6f-7a01-4bf2-b1ae-88ce0b5624e4
2026-07-17 18:09:06,990 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6931af6f-7a01-4bf2-b1ae-88ce0b5624e4
2026-07-17 18:09:06,999 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a12d829d-53c4-4738-a116-4587c7fbed4e
2026-07-17 18:09:07,007 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a12d829d-53c4-4738-a116-4587c7fbed4e
2026-07-17 18:09:07,014 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/059fcf25-046e-4431-a466-1ee136ed284c
2026-07-17 18:09:07,021 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-17 18:09:07,021 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6931af6f-7a01-4bf2-b1ae-88ce0b5624e4
2026-07-17 18:09:07,031 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a12d829d-53c4-4738-a116-4587c7fbed4e
2026-07-17 18:09:07,045 - INFO - Verified VN network id 12 for VN 6931af6f-7a01-4bf2-b1ae-88ce0b5624e4
2026-07-17 18:09:07,046 - INFO - Verifications in API Server for VN ctest-vn-05430835 passed
2026-07-17 18:09:07,046 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6931af6f-7a01-4bf2-b1ae-88ce0b5624e4
2026-07-17 18:09:07,054 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a12d829d-53c4-4738-a116-4587c7fbed4e
2026-07-17 18:09:07,062 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a12d829d-53c4-4738-a116-4587c7fbed4e
2026-07-17 18:09:07,070 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/059fcf25-046e-4431-a466-1ee136ed284c
2026-07-17 18:09:07,089 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-05430835', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87161483', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7580032541164391410', 'uuid-lslong': '12803321209195734244'}, 'enable': 'true', 'created': '2026-07-17T18:09:04', 'last-modified': '2026-07-17T18:09:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598236'}
2026-07-17 18:09:07,096 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-17 18:09:07,096 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05430835 passed
2026-07-17 18:09:07,096 - DEBUG - ====Verifying policy data for ctest-vn-05430835 in API_Server ======
2026-07-17 18:09:07,097 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-17 18:09:07,103 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f880a7f-de93-44ce-aa16-f69437742e26
2026-07-17 18:09:07,116 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e0a0462-be19-4219-bfc0-92c59e4e2434
2026-07-17 18:09:07,190 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6931af6f-7a01-4bf2-b1ae-88ce0b5624e4
2026-07-17 18:09:07,202 - DEBUG - ==>Verifying data for policy with id: 28f8fb24-49e4-4118-9c89-0b562adaa29b, fqn: ['default-domain', 'ctest-TestBasicPolicy-87161483', 'ctest-policy-allow-all-52095680']
2026-07-17 18:09:07,202 - INFO - VN ctest-vn-05430835 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-17 18:09:07,202 - DEBUG - Verifying the vn in opserver
2026-07-17 18:09:07,202 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-05430835 virtual network link through opserver 10.0.0.38
2026-07-17 18:09:07,202 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-17 18:09:07,214 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-05430835', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-05430835?flat'}
2026-07-17 18:09:07,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87161483:ctest-vn-05430835 is found in opserver
2026-07-17 18:09:07,226 - DEBUG - Do not have enough data to verify VN in agent
2026-07-17 18:09:07,232 - DEBUG - VRF ids for VN ctest-vn-05430835: {}
2026-07-17 18:09:07,303 - DEBUG - Services list from nova: [