2025-10-20 16:36:43,954 - INFO - Domain Default found not creating
2025-10-20 16:36:44,078 - INFO - Project ctest-TestBasicPolicy-92815940 not found, creating it
2025-10-20 16:36:44,493 - INFO - Created Project:ctest-TestBasicPolicy-92815940, ID : b7432e3e-da3a-4a55-8675-f4f4a881d836
2025-10-20 16:36:45,813 - INFO - ================================================================================
2025-10-20 16:36:45,813 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-20 16:36:45,814 - 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-10-20 16:36:46,072 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-10-20 16:36:46,072 - INFO - Initial checks done. Running the testcase now
2025-10-20 16:36:46,072 - INFO -
2025-10-20 16:36:46,580 - DEBUG - Response for create_network : {'network': {'id': '7ac92539-e3d4-4e9b-a5cc-47c6a51028dd', 'name': 'ctest-vn-93407832', 'tenant_id': 'b7432e3eda3a4a558675f4f4a881d836', 'project_id': 'b7432e3eda3a4a558675f4f4a881d836', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92815940', 'ctest-vn-93407832'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 16:36:46,780 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf521017-e05f-4ecf-9007-1fb86d3511e8', 'name': '', 'tenant_id': 'b7432e3eda3a4a558675f4f4a881d836', 'network_id': '7ac92539-e3d4-4e9b-a5cc-47c6a51028dd', 'ip_version': 4, 'cidr': '179.125.64.64/26', 'allocation_pools': [{'start': '179.125.64.66', 'end': '179.125.64.126'}], 'gateway_ip': '179.125.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.125.64.66', 'tags': [], 'project_id': 'b7432e3eda3a4a558675f4f4a881d836'}}
2025-10-20 16:36:46,794 - INFO - Created VN ctest-vn-93407832
2025-10-20 16:36:46,843 - DEBUG - VN ctest-vn-93407832 UUID is 7ac92539-e3d4-4e9b-a5cc-47c6a51028dd
2025-10-20 16:36:47,125 - DEBUG - Response for create_network : {'network': {'id': '530f9bdc-d9cd-47d1-9438-066bfeaf35db', 'name': 'ctest-vn-84388126', 'tenant_id': 'b7432e3eda3a4a558675f4f4a881d836', 'project_id': 'b7432e3eda3a4a558675f4f4a881d836', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92815940', 'ctest-vn-84388126'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 16:36:47,271 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f252f0d-8a5c-4dd5-ba28-5d2497c3a03b', 'name': '', 'tenant_id': 'b7432e3eda3a4a558675f4f4a881d836', 'network_id': '530f9bdc-d9cd-47d1-9438-066bfeaf35db', 'ip_version': 4, 'cidr': '47.191.160.64/26', 'allocation_pools': [{'start': '47.191.160.66', 'end': '47.191.160.126'}], 'gateway_ip': '47.191.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.191.160.66', 'tags': [], 'project_id': 'b7432e3eda3a4a558675f4f4a881d836'}}
2025-10-20 16:36:47,288 - INFO - Created VN ctest-vn-84388126
2025-10-20 16:36:47,339 - DEBUG - VN ctest-vn-84388126 UUID is 530f9bdc-d9cd-47d1-9438-066bfeaf35db
2025-10-20 16:36:47,491 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-93407832, 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-92815940:ctest-vn-84388126, 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-10-20 16:36:47,768 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ac92539-e3d4-4e9b-a5cc-47c6a51028dd', 'name': 'ctest-vn-93407832', 'tenant_id': 'b7432e3eda3a4a558675f4f4a881d836', 'project_id': 'b7432e3eda3a4a558675f4f4a881d836', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf521017-e05f-4ecf-9007-1fb86d3511e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92815940', 'ctest-vn-93407832'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92815940', 'ctest-policy-allow-all-23391851']], 'subnet_ipam': [{'subnet_cidr': '179.125.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 16:36:47,981 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '530f9bdc-d9cd-47d1-9438-066bfeaf35db', 'name': 'ctest-vn-84388126', 'tenant_id': 'b7432e3eda3a4a558675f4f4a881d836', 'project_id': 'b7432e3eda3a4a558675f4f4a881d836', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f252f0d-8a5c-4dd5-ba28-5d2497c3a03b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92815940', 'ctest-vn-84388126'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92815940', 'ctest-policy-allow-all-23391851']], 'subnet_ipam': [{'subnet_cidr': '47.191.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 16:36:48,139 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-20 16:36:48,434 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-20 16:36:48,459 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e6cad612-3c2e-44d9-8d0a-6e2812858f54
2025-10-20 16:36:48,469 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7432e3e-da3a-4a55-8675-f4f4a881d836
2025-10-20 16:36:48,537 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7ac92539-e3d4-4e9b-a5cc-47c6a51028dd
2025-10-20 16:36:48,546 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7ac92539-e3d4-4e9b-a5cc-47c6a51028dd
2025-10-20 16:36:48,553 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04f7ce2c-1e3b-4ef4-bc65-aa9f025a0b9a
2025-10-20 16:36:48,559 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04f7ce2c-1e3b-4ef4-bc65-aa9f025a0b9a
2025-10-20 16:36:48,563 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2922ad91-c1f8-4763-8597-679aa3b1ad78
2025-10-20 16:36:48,568 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 16:36:48,568 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7ac92539-e3d4-4e9b-a5cc-47c6a51028dd
2025-10-20 16:36:48,575 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04f7ce2c-1e3b-4ef4-bc65-aa9f025a0b9a
2025-10-20 16:36:48,585 - INFO - Verified VN network id 12 for VN 7ac92539-e3d4-4e9b-a5cc-47c6a51028dd
2025-10-20 16:36:48,585 - INFO - Verifications in API Server for VN ctest-vn-93407832 passed
2025-10-20 16:36:48,585 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7ac92539-e3d4-4e9b-a5cc-47c6a51028dd
2025-10-20 16:36:48,592 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04f7ce2c-1e3b-4ef4-bc65-aa9f025a0b9a
2025-10-20 16:36:48,596 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04f7ce2c-1e3b-4ef4-bc65-aa9f025a0b9a
2025-10-20 16:36:48,601 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2922ad91-c1f8-4763-8597-679aa3b1ad78
2025-10-20 16:36:48,609 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-93407832', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92815940', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8847643873511755419', 'uuid-lslong': '11947002830005479645'}, 'enable': 'true', 'created': '2025-10-20T16:36:46', 'last-modified': '2025-10-20T16:36:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860213'}
2025-10-20 16:36:48,614 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 16:36:48,614 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93407832 passed
2025-10-20 16:36:48,614 - DEBUG - ====Verifying policy data for ctest-vn-93407832 in API_Server ======
2025-10-20 16:36:48,614 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-20 16:36:48,618 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e6cad612-3c2e-44d9-8d0a-6e2812858f54
2025-10-20 16:36:48,627 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7432e3e-da3a-4a55-8675-f4f4a881d836
2025-10-20 16:36:48,702 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7ac92539-e3d4-4e9b-a5cc-47c6a51028dd
2025-10-20 16:36:48,710 - DEBUG - ==>Verifying data for policy with id: a1833c16-56b6-4768-9cc8-18d8d03fc3a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-92815940', 'ctest-policy-allow-all-23391851']
2025-10-20 16:36:48,710 - INFO - VN ctest-vn-93407832 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 16:36:48,710 - DEBUG - Verifying the vn in opserver
2025-10-20 16:36:48,710 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-93407832 virtual network link through opserver 10.0.0.33
2025-10-20 16:36:48,711 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-20 16:36:49,001 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-20 16:36:49,049 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-93407832', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-93407832?flat'}
2025-10-20 16:36:49,049 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-93407832 is found in opserver
2025-10-20 16:36:49,057 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 16:36:49,061 - DEBUG - VRF ids for VN ctest-vn-93407832: {}
2025-10-20 16:36:49,061 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-20 16:36:49,066 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e6cad612-3c2e-44d9-8d0a-6e2812858f54
2025-10-20 16:36:49,078 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7432e3e-da3a-4a55-8675-f4f4a881d836
2025-10-20 16:36:49,144 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/530f9bdc-d9cd-47d1-9438-066bfeaf35db
2025-10-20 16:36:49,154 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/530f9bdc-d9cd-47d1-9438-066bfeaf35db
2025-10-20 16:36:49,161 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e3dd487-7d3a-4cae-bb3a-a8f8a2d2566c
2025-10-20 16:36:49,167 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e3dd487-7d3a-4cae-bb3a-a8f8a2d2566c
2025-10-20 16:36:49,172 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/625ad359-ea5d-4f90-b93f-4a53295cad16
2025-10-20 16:36:49,178 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 16:36:49,178 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/530f9bdc-d9cd-47d1-9438-066bfeaf35db
2025-10-20 16:36:49,185 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e3dd487-7d3a-4cae-bb3a-a8f8a2d2566c
2025-10-20 16:36:49,196 - INFO - Verified VN network id 13 for VN 530f9bdc-d9cd-47d1-9438-066bfeaf35db
2025-10-20 16:36:49,196 - INFO - Verifications in API Server for VN ctest-vn-84388126 passed
2025-10-20 16:36:49,196 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/530f9bdc-d9cd-47d1-9438-066bfeaf35db
2025-10-20 16:36:49,203 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e3dd487-7d3a-4cae-bb3a-a8f8a2d2566c
2025-10-20 16:36:49,208 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e3dd487-7d3a-4cae-bb3a-a8f8a2d2566c
2025-10-20 16:36:49,213 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/625ad359-ea5d-4f90-b93f-4a53295cad16
2025-10-20 16:36:49,224 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-84388126', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92815940', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5985173802647898065', 'uuid-lslong': '10680293577213294043'}, 'enable': 'true', 'created': '2025-10-20T16:36:47', 'last-modified': '2025-10-20T16:36:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.262841'}
2025-10-20 16:36:49,230 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 16:36:49,230 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84388126 passed
2025-10-20 16:36:49,230 - DEBUG - ====Verifying policy data for ctest-vn-84388126 in API_Server ======
2025-10-20 16:36:49,230 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-20 16:36:49,235 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e6cad612-3c2e-44d9-8d0a-6e2812858f54
2025-10-20 16:36:49,245 - DEBUG - Requesting: http://10.0.0.33:8082/project/b7432e3e-da3a-4a55-8675-f4f4a881d836
2025-10-20 16:36:49,311 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/530f9bdc-d9cd-47d1-9438-066bfeaf35db
2025-10-20 16:36:49,319 - DEBUG - ==>Verifying data for policy with id: a1833c16-56b6-4768-9cc8-18d8d03fc3a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-92815940', 'ctest-policy-allow-all-23391851']
2025-10-20 16:36:49,319 - INFO - VN ctest-vn-84388126 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 16:36:49,319 - DEBUG - Verifying the vn in opserver
2025-10-20 16:36:49,319 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-84388126 virtual network link through opserver 10.0.0.33
2025-10-20 16:36:49,319 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-20 16:36:49,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-84388126', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-84388126?flat'}
2025-10-20 16:36:49,328 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92815940:ctest-vn-84388126 is found in opserver
2025-10-20 16:36:49,338 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 16:36:49,342 - DEBUG - VRF ids for VN ctest-vn-84388126: {}
2025-10-20 16:36:49,393 - DEBUG - Services list from nova: [