2026-11-01 04:09:09,020 - INFO - Domain Default found not creating
2026-11-01 04:09:09,146 - INFO - Project ctest-TestBasicPolicy-04009671 not found, creating it
2026-11-01 04:09:09,594 - INFO - Created Project:ctest-TestBasicPolicy-04009671, ID : fd2035a3-25fa-4f82-82e4-dd094a9ffb42
2026-11-01 04:09:10,997 - INFO - ================================================================================
2026-11-01 04:09:10,997 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-01 04:09:10,998 - 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-11-01 04:09:11,259 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-11-01 04:09:11,259 - INFO - Initial checks done. Running the testcase now
2026-11-01 04:09:11,259 - INFO -
2026-11-01 04:09:11,819 - DEBUG - Response for create_network : {'network': {'id': 'e81ec67d-7ea2-4a76-8e29-4555ea2eb31c', 'name': 'ctest-vn-12617265', 'tenant_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'project_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04009671', 'ctest-vn-12617265'], 'port_security_enabled': True, 'description': ''}}
2026-11-01 04:09:12,039 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a91491e1-5e13-4cd2-8ac2-f67e3974adb9', 'name': '', 'tenant_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'network_id': 'e81ec67d-7ea2-4a76-8e29-4555ea2eb31c', 'ip_version': 4, 'cidr': '105.245.75.128/26', 'allocation_pools': [{'start': '105.245.75.130', 'end': '105.245.75.190'}], 'gateway_ip': '105.245.75.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.245.75.130', 'tags': [], 'project_id': 'fd2035a325fa4f8282e4dd094a9ffb42'}}
2026-11-01 04:09:12,051 - INFO - Created VN ctest-vn-12617265
2026-11-01 04:09:12,102 - DEBUG - VN ctest-vn-12617265 UUID is e81ec67d-7ea2-4a76-8e29-4555ea2eb31c
2026-11-01 04:09:12,388 - DEBUG - Response for create_network : {'network': {'id': '8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0', 'name': 'ctest-vn-38985227', 'tenant_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'project_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04009671', 'ctest-vn-38985227'], 'port_security_enabled': True, 'description': ''}}
2026-11-01 04:09:12,558 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e535e7d8-cbb4-49ab-ae61-4427e03b7a38', 'name': '', 'tenant_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'network_id': '8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0', 'ip_version': 4, 'cidr': '185.76.219.128/26', 'allocation_pools': [{'start': '185.76.219.130', 'end': '185.76.219.190'}], 'gateway_ip': '185.76.219.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.76.219.130', 'tags': [], 'project_id': 'fd2035a325fa4f8282e4dd094a9ffb42'}}
2026-11-01 04:09:12,570 - INFO - Created VN ctest-vn-38985227
2026-11-01 04:09:12,622 - DEBUG - VN ctest-vn-38985227 UUID is 8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0
2026-11-01 04:09:12,754 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-12617265, 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-04009671:ctest-vn-38985227, 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-11-01 04:09:13,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e81ec67d-7ea2-4a76-8e29-4555ea2eb31c', 'name': 'ctest-vn-12617265', 'tenant_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'project_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a91491e1-5e13-4cd2-8ac2-f67e3974adb9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04009671', 'ctest-vn-12617265'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04009671', 'ctest-policy-allow-all-34036698']], 'subnet_ipam': [{'subnet_cidr': '105.245.75.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-01 04:09:13,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0', 'name': 'ctest-vn-38985227', 'tenant_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'project_id': 'fd2035a325fa4f8282e4dd094a9ffb42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e535e7d8-cbb4-49ab-ae61-4427e03b7a38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04009671', 'ctest-vn-38985227'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04009671', 'ctest-policy-allow-all-34036698']], 'subnet_ipam': [{'subnet_cidr': '185.76.219.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-01 04:09:13,410 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-01 04:09:13,722 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-01 04:09:13,745 - DEBUG - Requesting: http://10.0.0.161:8082/domain/1182fa42-43d7-4661-ad1c-0f1294ce4374
2026-11-01 04:09:13,756 - DEBUG - Requesting: http://10.0.0.161:8082/project/fd2035a3-25fa-4f82-82e4-dd094a9ffb42
2026-11-01 04:09:13,824 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e81ec67d-7ea2-4a76-8e29-4555ea2eb31c
2026-11-01 04:09:13,834 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e81ec67d-7ea2-4a76-8e29-4555ea2eb31c
2026-11-01 04:09:13,841 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5bbab3e-a2c1-4aa5-abf2-4eed2068e420
2026-11-01 04:09:13,847 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5bbab3e-a2c1-4aa5-abf2-4eed2068e420
2026-11-01 04:09:13,852 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/d130c08c-4956-4aec-bc4d-4495a625ab33
2026-11-01 04:09:13,857 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-01 04:09:13,857 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e81ec67d-7ea2-4a76-8e29-4555ea2eb31c
2026-11-01 04:09:13,864 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5bbab3e-a2c1-4aa5-abf2-4eed2068e420
2026-11-01 04:09:13,874 - INFO - Verified VN network id 10 for VN e81ec67d-7ea2-4a76-8e29-4555ea2eb31c
2026-11-01 04:09:13,874 - INFO - Verifications in API Server for VN ctest-vn-12617265 passed
2026-11-01 04:09:13,874 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e81ec67d-7ea2-4a76-8e29-4555ea2eb31c
2026-11-01 04:09:13,881 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5bbab3e-a2c1-4aa5-abf2-4eed2068e420
2026-11-01 04:09:13,885 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5bbab3e-a2c1-4aa5-abf2-4eed2068e420
2026-11-01 04:09:13,891 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/d130c08c-4956-4aec-bc4d-4495a625ab33
2026-11-01 04:09:13,901 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-12617265', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04009671', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16726024308398377590', 'uuid-lslong': '10243795062734369564'}, 'enable': 'true', 'created': '2026-11-01T04:09:11', 'last-modified': '2026-11-01T04:09:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.878455'}
2026-11-01 04:09:13,907 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-01 04:09:13,907 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12617265 passed
2026-11-01 04:09:13,907 - DEBUG - ====Verifying policy data for ctest-vn-12617265 in API_Server ======
2026-11-01 04:09:13,907 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-01 04:09:13,911 - DEBUG - Requesting: http://10.0.0.161:8082/domain/1182fa42-43d7-4661-ad1c-0f1294ce4374
2026-11-01 04:09:13,920 - DEBUG - Requesting: http://10.0.0.161:8082/project/fd2035a3-25fa-4f82-82e4-dd094a9ffb42
2026-11-01 04:09:13,987 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e81ec67d-7ea2-4a76-8e29-4555ea2eb31c
2026-11-01 04:09:13,994 - DEBUG - ==>Verifying data for policy with id: 0aa609c8-4c1e-43d5-ae21-d59e44f3cb5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-04009671', 'ctest-policy-allow-all-34036698']
2026-11-01 04:09:13,994 - INFO - VN ctest-vn-12617265 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-01 04:09:13,995 - DEBUG - Verifying the vn in opserver
2026-11-01 04:09:13,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-12617265 virtual network link through opserver 10.0.0.161
2026-11-01 04:09:13,995 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-11-01 04:09:14,306 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-11-01 04:09:14,349 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-12617265', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-12617265?flat'}
2026-11-01 04:09:14,349 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-12617265 is found in opserver
2026-11-01 04:09:14,358 - DEBUG - Do not have enough data to verify VN in agent
2026-11-01 04:09:14,361 - DEBUG - VRF ids for VN ctest-vn-12617265: {}
2026-11-01 04:09:14,361 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-01 04:09:14,366 - DEBUG - Requesting: http://10.0.0.161:8082/domain/1182fa42-43d7-4661-ad1c-0f1294ce4374
2026-11-01 04:09:14,374 - DEBUG - Requesting: http://10.0.0.161:8082/project/fd2035a3-25fa-4f82-82e4-dd094a9ffb42
2026-11-01 04:09:14,444 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0
2026-11-01 04:09:14,453 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0
2026-11-01 04:09:14,460 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5a9a710a-836f-4c19-96ad-10ac16129f8c
2026-11-01 04:09:14,466 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5a9a710a-836f-4c19-96ad-10ac16129f8c
2026-11-01 04:09:14,471 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/74f44aa2-25e0-4a87-a756-97d9a6ec520c
2026-11-01 04:09:14,475 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-01 04:09:14,475 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0
2026-11-01 04:09:14,482 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5a9a710a-836f-4c19-96ad-10ac16129f8c
2026-11-01 04:09:14,492 - INFO - Verified VN network id 11 for VN 8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0
2026-11-01 04:09:14,492 - INFO - Verifications in API Server for VN ctest-vn-38985227 passed
2026-11-01 04:09:14,492 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0
2026-11-01 04:09:14,499 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5a9a710a-836f-4c19-96ad-10ac16129f8c
2026-11-01 04:09:14,503 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5a9a710a-836f-4c19-96ad-10ac16129f8c
2026-11-01 04:09:14,508 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/74f44aa2-25e0-4a87-a756-97d9a6ec520c
2026-11-01 04:09:14,517 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-38985227', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04009671', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9974968351776719423', 'uuid-lslong': '10134703058854062288'}, 'enable': 'true', 'created': '2026-11-01T04:09:12', 'last-modified': '2026-11-01T04:09:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.278538'}
2026-11-01 04:09:14,524 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-01 04:09:14,524 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38985227 passed
2026-11-01 04:09:14,524 - DEBUG - ====Verifying policy data for ctest-vn-38985227 in API_Server ======
2026-11-01 04:09:14,524 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-01 04:09:14,528 - DEBUG - Requesting: http://10.0.0.161:8082/domain/1182fa42-43d7-4661-ad1c-0f1294ce4374
2026-11-01 04:09:14,536 - DEBUG - Requesting: http://10.0.0.161:8082/project/fd2035a3-25fa-4f82-82e4-dd094a9ffb42
2026-11-01 04:09:14,604 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8a6e34dd-c56a-423f-8ca5-b2bc6f0fa8d0
2026-11-01 04:09:14,611 - DEBUG - ==>Verifying data for policy with id: 0aa609c8-4c1e-43d5-ae21-d59e44f3cb5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-04009671', 'ctest-policy-allow-all-34036698']
2026-11-01 04:09:14,611 - INFO - VN ctest-vn-38985227 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-01 04:09:14,611 - DEBUG - Verifying the vn in opserver
2026-11-01 04:09:14,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-38985227 virtual network link through opserver 10.0.0.161
2026-11-01 04:09:14,612 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-11-01 04:09:14,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-38985227', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-38985227?flat'}
2026-11-01 04:09:14,620 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04009671:ctest-vn-38985227 is found in opserver
2026-11-01 04:09:14,628 - DEBUG - Do not have enough data to verify VN in agent
2026-11-01 04:09:14,632 - DEBUG - VRF ids for VN ctest-vn-38985227: {}
2026-11-01 04:09:14,678 - DEBUG - Services list from nova: [