2026-09-18 04:19:55,114 - INFO - Domain Default found not creating
2026-09-18 04:19:55,274 - INFO - Project ctest-TestBasicPolicy-34774009 not found, creating it
2026-09-18 04:19:55,759 - INFO - Created Project:ctest-TestBasicPolicy-34774009, ID : 488b82df-6265-4c07-b596-c6cbfc2fff12
2026-09-18 04:19:57,346 - INFO - ================================================================================
2026-09-18 04:19:57,346 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-18 04:19:57,346 - 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-09-18 04:19:57,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-09-18 04:19:57,606 - INFO - Initial checks done. Running the testcase now
2026-09-18 04:19:57,606 - INFO -
2026-09-18 04:19:58,218 - DEBUG - Response for create_network : {'network': {'id': '94771889-dc82-444a-a637-95d5119da213', 'name': 'ctest-vn-13904326', 'tenant_id': '488b82df62654c07b596c6cbfc2fff12', 'project_id': '488b82df62654c07b596c6cbfc2fff12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34774009', 'ctest-vn-13904326'], 'port_security_enabled': True, 'description': ''}}
2026-09-18 04:19:58,382 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0d28395-12fb-491c-90bd-2950f81169ef', 'name': '', 'tenant_id': '488b82df62654c07b596c6cbfc2fff12', 'network_id': '94771889-dc82-444a-a637-95d5119da213', 'ip_version': 4, 'cidr': '159.43.132.128/26', 'allocation_pools': [{'start': '159.43.132.130', 'end': '159.43.132.190'}], 'gateway_ip': '159.43.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.43.132.130', 'tags': [], 'project_id': '488b82df62654c07b596c6cbfc2fff12'}}
2026-09-18 04:19:58,398 - INFO - Created VN ctest-vn-13904326
2026-09-18 04:19:58,448 - DEBUG - VN ctest-vn-13904326 UUID is 94771889-dc82-444a-a637-95d5119da213
2026-09-18 04:19:58,821 - DEBUG - Response for create_network : {'network': {'id': '6c8b0cdd-7aad-4284-ab3a-929c4764c85e', 'name': 'ctest-vn-90403338', 'tenant_id': '488b82df62654c07b596c6cbfc2fff12', 'project_id': '488b82df62654c07b596c6cbfc2fff12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34774009', 'ctest-vn-90403338'], 'port_security_enabled': True, 'description': ''}}
2026-09-18 04:19:59,036 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b576e76-0fe3-4747-8ecc-61fc39b9ba91', 'name': '', 'tenant_id': '488b82df62654c07b596c6cbfc2fff12', 'network_id': '6c8b0cdd-7aad-4284-ab3a-929c4764c85e', 'ip_version': 4, 'cidr': '17.238.211.128/26', 'allocation_pools': [{'start': '17.238.211.130', 'end': '17.238.211.190'}], 'gateway_ip': '17.238.211.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.238.211.130', 'tags': [], 'project_id': '488b82df62654c07b596c6cbfc2fff12'}}
2026-09-18 04:19:59,054 - INFO - Created VN ctest-vn-90403338
2026-09-18 04:19:59,108 - DEBUG - VN ctest-vn-90403338 UUID is 6c8b0cdd-7aad-4284-ab3a-929c4764c85e
2026-09-18 04:19:59,228 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-13904326, 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-34774009:ctest-vn-90403338, 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-09-18 04:19:59,545 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94771889-dc82-444a-a637-95d5119da213', 'name': 'ctest-vn-13904326', 'tenant_id': '488b82df62654c07b596c6cbfc2fff12', 'project_id': '488b82df62654c07b596c6cbfc2fff12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a0d28395-12fb-491c-90bd-2950f81169ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34774009', 'ctest-vn-13904326'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34774009', 'ctest-policy-allow-all-90344698']], 'subnet_ipam': [{'subnet_cidr': '159.43.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-18 04:19:59,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c8b0cdd-7aad-4284-ab3a-929c4764c85e', 'name': 'ctest-vn-90403338', 'tenant_id': '488b82df62654c07b596c6cbfc2fff12', 'project_id': '488b82df62654c07b596c6cbfc2fff12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7b576e76-0fe3-4747-8ecc-61fc39b9ba91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34774009', 'ctest-vn-90403338'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34774009', 'ctest-policy-allow-all-90344698']], 'subnet_ipam': [{'subnet_cidr': '17.238.211.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-18 04:19:59,960 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-18 04:20:00,293 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-18 04:20:00,324 - DEBUG - Requesting: http://10.0.0.38:8082/domain/001c0a2a-f384-4310-9d55-4b79fe4423f3
2026-09-18 04:20:00,339 - DEBUG - Requesting: http://10.0.0.38:8082/project/488b82df-6265-4c07-b596-c6cbfc2fff12
2026-09-18 04:20:00,421 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94771889-dc82-444a-a637-95d5119da213
2026-09-18 04:20:00,435 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94771889-dc82-444a-a637-95d5119da213
2026-09-18 04:20:00,445 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eef1fa04-7d0a-48f2-b4ba-992a1a3f1133
2026-09-18 04:20:00,452 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eef1fa04-7d0a-48f2-b4ba-992a1a3f1133
2026-09-18 04:20:00,460 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e2b08e45-6895-4ab7-ac3a-bf90141b8bb2
2026-09-18 04:20:00,467 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-18 04:20:00,467 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94771889-dc82-444a-a637-95d5119da213
2026-09-18 04:20:00,476 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eef1fa04-7d0a-48f2-b4ba-992a1a3f1133
2026-09-18 04:20:00,493 - INFO - Verified VN network id 12 for VN 94771889-dc82-444a-a637-95d5119da213
2026-09-18 04:20:00,493 - INFO - Verifications in API Server for VN ctest-vn-13904326 passed
2026-09-18 04:20:00,493 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94771889-dc82-444a-a637-95d5119da213
2026-09-18 04:20:00,504 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eef1fa04-7d0a-48f2-b4ba-992a1a3f1133
2026-09-18 04:20:00,512 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eef1fa04-7d0a-48f2-b4ba-992a1a3f1133
2026-09-18 04:20:00,521 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e2b08e45-6895-4ab7-ac3a-bf90141b8bb2
2026-09-18 04:20:00,536 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-13904326', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34774009', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10698046420231013450', 'uuid-lslong': '11977206476371239443'}, 'enable': 'true', 'created': '2026-09-18T04:19:58', 'last-modified': '2026-09-18T04:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014938'}
2026-09-18 04:20:00,544 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-18 04:20:00,544 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13904326 passed
2026-09-18 04:20:00,545 - DEBUG - ====Verifying policy data for ctest-vn-13904326 in API_Server ======
2026-09-18 04:20:00,545 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-18 04:20:00,551 - DEBUG - Requesting: http://10.0.0.38:8082/domain/001c0a2a-f384-4310-9d55-4b79fe4423f3
2026-09-18 04:20:00,564 - DEBUG - Requesting: http://10.0.0.38:8082/project/488b82df-6265-4c07-b596-c6cbfc2fff12
2026-09-18 04:20:00,643 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/94771889-dc82-444a-a637-95d5119da213
2026-09-18 04:20:00,654 - DEBUG - ==>Verifying data for policy with id: e5af51be-257d-4d3c-8e5d-fe8c437981a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-34774009', 'ctest-policy-allow-all-90344698']
2026-09-18 04:20:00,654 - INFO - VN ctest-vn-13904326 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-18 04:20:00,654 - DEBUG - Verifying the vn in opserver
2026-09-18 04:20:00,654 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-13904326 virtual network link through opserver 10.0.0.38
2026-09-18 04:20:00,654 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-18 04:20:00,977 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-18 04:20:01,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-13904326', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-13904326?flat'}
2026-09-18 04:20:01,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-13904326 is found in opserver
2026-09-18 04:20:01,045 - DEBUG - Do not have enough data to verify VN in agent
2026-09-18 04:20:01,050 - DEBUG - VRF ids for VN ctest-vn-13904326: {}
2026-09-18 04:20:01,050 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-18 04:20:01,057 - DEBUG - Requesting: http://10.0.0.38:8082/domain/001c0a2a-f384-4310-9d55-4b79fe4423f3
2026-09-18 04:20:01,070 - DEBUG - Requesting: http://10.0.0.38:8082/project/488b82df-6265-4c07-b596-c6cbfc2fff12
2026-09-18 04:20:01,148 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c8b0cdd-7aad-4284-ab3a-929c4764c85e
2026-09-18 04:20:01,162 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c8b0cdd-7aad-4284-ab3a-929c4764c85e
2026-09-18 04:20:01,173 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b803991d-b313-459f-884a-22aefd939130
2026-09-18 04:20:01,181 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b803991d-b313-459f-884a-22aefd939130
2026-09-18 04:20:01,189 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/731a8391-6f9d-481c-9e56-dbc5b6ae5b95
2026-09-18 04:20:01,197 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-18 04:20:01,197 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c8b0cdd-7aad-4284-ab3a-929c4764c85e
2026-09-18 04:20:01,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b803991d-b313-459f-884a-22aefd939130
2026-09-18 04:20:01,223 - INFO - Verified VN network id 13 for VN 6c8b0cdd-7aad-4284-ab3a-929c4764c85e
2026-09-18 04:20:01,223 - INFO - Verifications in API Server for VN ctest-vn-90403338 passed
2026-09-18 04:20:01,223 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c8b0cdd-7aad-4284-ab3a-929c4764c85e
2026-09-18 04:20:01,234 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b803991d-b313-459f-884a-22aefd939130
2026-09-18 04:20:01,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b803991d-b313-459f-884a-22aefd939130
2026-09-18 04:20:01,250 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/731a8391-6f9d-481c-9e56-dbc5b6ae5b95
2026-09-18 04:20:01,262 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-90403338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34774009', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7821359323244479108', 'uuid-lslong': '12338335329045235806'}, 'enable': 'true', 'created': '2026-09-18T04:19:58', 'last-modified': '2026-09-18T04:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.506187'}
2026-09-18 04:20:01,269 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-18 04:20:01,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90403338 passed
2026-09-18 04:20:01,270 - DEBUG - ====Verifying policy data for ctest-vn-90403338 in API_Server ======
2026-09-18 04:20:01,270 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-18 04:20:01,277 - DEBUG - Requesting: http://10.0.0.38:8082/domain/001c0a2a-f384-4310-9d55-4b79fe4423f3
2026-09-18 04:20:01,288 - DEBUG - Requesting: http://10.0.0.38:8082/project/488b82df-6265-4c07-b596-c6cbfc2fff12
2026-09-18 04:20:01,373 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c8b0cdd-7aad-4284-ab3a-929c4764c85e
2026-09-18 04:20:01,385 - DEBUG - ==>Verifying data for policy with id: e5af51be-257d-4d3c-8e5d-fe8c437981a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-34774009', 'ctest-policy-allow-all-90344698']
2026-09-18 04:20:01,385 - INFO - VN ctest-vn-90403338 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-18 04:20:01,385 - DEBUG - Verifying the vn in opserver
2026-09-18 04:20:01,385 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-90403338 virtual network link through opserver 10.0.0.38
2026-09-18 04:20:01,385 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-18 04:20:01,396 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-90403338', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-90403338?flat'}
2026-09-18 04:20:01,396 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34774009:ctest-vn-90403338 is found in opserver
2026-09-18 04:20:01,410 - DEBUG - Do not have enough data to verify VN in agent
2026-09-18 04:20:01,416 - DEBUG - VRF ids for VN ctest-vn-90403338: {}
2026-09-18 04:20:01,490 - DEBUG - Services list from nova: [