2026-02-09 10:09:08,261 - INFO - Domain Default found not creating
2026-02-09 10:09:08,408 - INFO - Project ctest-TestBasicPolicy-24117173 not found, creating it
2026-02-09 10:09:08,834 - INFO - Created Project:ctest-TestBasicPolicy-24117173, ID : 12cfc6cd-3e5e-4ad8-a1fd-ca94766238a8
2026-02-09 10:09:10,210 - INFO - ================================================================================
2026-02-09 10:09:10,210 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 10:09:10,210 - 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-02-09 10:09:10,465 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-02-09 10:09:10,465 - INFO - Initial checks done. Running the testcase now
2026-02-09 10:09:10,465 - INFO -
2026-02-09 10:09:10,998 - DEBUG - Response for create_network : {'network': {'id': '0569e90a-284a-4a64-8e9b-baa86d7e85e1', 'name': 'ctest-vn-83425227', 'tenant_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'project_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24117173', 'ctest-vn-83425227'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 10:09:11,160 - DEBUG - Response for create_subnet : {'subnet': {'id': '05ffe3c1-f50f-427f-99c6-f9c91d0605a5', 'name': '', 'tenant_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'network_id': '0569e90a-284a-4a64-8e9b-baa86d7e85e1', 'ip_version': 4, 'cidr': '156.45.77.0/26', 'allocation_pools': [{'start': '156.45.77.2', 'end': '156.45.77.62'}], 'gateway_ip': '156.45.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.45.77.2', 'tags': [], 'project_id': '12cfc6cd3e5e4ad8a1fdca94766238a8'}}
2026-02-09 10:09:11,176 - INFO - Created VN ctest-vn-83425227
2026-02-09 10:09:11,228 - DEBUG - VN ctest-vn-83425227 UUID is 0569e90a-284a-4a64-8e9b-baa86d7e85e1
2026-02-09 10:09:11,538 - DEBUG - Response for create_network : {'network': {'id': '4182e4ce-356c-469c-8526-376425093261', 'name': 'ctest-vn-00141072', 'tenant_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'project_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24117173', 'ctest-vn-00141072'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 10:09:11,727 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb6f7dda-9c83-4951-adda-4b6876b6187e', 'name': '', 'tenant_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'network_id': '4182e4ce-356c-469c-8526-376425093261', 'ip_version': 4, 'cidr': '182.69.164.64/26', 'allocation_pools': [{'start': '182.69.164.66', 'end': '182.69.164.126'}], 'gateway_ip': '182.69.164.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.69.164.66', 'tags': [], 'project_id': '12cfc6cd3e5e4ad8a1fdca94766238a8'}}
2026-02-09 10:09:11,743 - INFO - Created VN ctest-vn-00141072
2026-02-09 10:09:11,795 - DEBUG - VN ctest-vn-00141072 UUID is 4182e4ce-356c-469c-8526-376425093261
2026-02-09 10:09:11,935 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-83425227, 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-24117173:ctest-vn-00141072, 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-02-09 10:09:12,209 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0569e90a-284a-4a64-8e9b-baa86d7e85e1', 'name': 'ctest-vn-83425227', 'tenant_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'project_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05ffe3c1-f50f-427f-99c6-f9c91d0605a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24117173', 'ctest-vn-83425227'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24117173', 'ctest-policy-allow-all-26705044']], 'subnet_ipam': [{'subnet_cidr': '156.45.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 10:09:12,467 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4182e4ce-356c-469c-8526-376425093261', 'name': 'ctest-vn-00141072', 'tenant_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'project_id': '12cfc6cd3e5e4ad8a1fdca94766238a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb6f7dda-9c83-4951-adda-4b6876b6187e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24117173', 'ctest-vn-00141072'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24117173', 'ctest-policy-allow-all-26705044']], 'subnet_ipam': [{'subnet_cidr': '182.69.164.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 10:09:12,612 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 10:09:12,917 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 10:09:12,944 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f7a00dc9-c655-4412-867d-1a2ad32ca893
2026-02-09 10:09:12,954 - DEBUG - Requesting: http://10.0.0.38:8082/project/12cfc6cd-3e5e-4ad8-a1fd-ca94766238a8
2026-02-09 10:09:13,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0569e90a-284a-4a64-8e9b-baa86d7e85e1
2026-02-09 10:09:13,033 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0569e90a-284a-4a64-8e9b-baa86d7e85e1
2026-02-09 10:09:13,040 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ebc6a57-abce-400f-8ce0-a6d5a55de1f4
2026-02-09 10:09:13,047 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ebc6a57-abce-400f-8ce0-a6d5a55de1f4
2026-02-09 10:09:13,053 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/effd2033-9c26-42a8-8a81-8048cf4e8180
2026-02-09 10:09:13,059 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 10:09:13,059 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0569e90a-284a-4a64-8e9b-baa86d7e85e1
2026-02-09 10:09:13,066 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ebc6a57-abce-400f-8ce0-a6d5a55de1f4
2026-02-09 10:09:13,080 - INFO - Verified VN network id 11 for VN 0569e90a-284a-4a64-8e9b-baa86d7e85e1
2026-02-09 10:09:13,080 - INFO - Verifications in API Server for VN ctest-vn-83425227 passed
2026-02-09 10:09:13,080 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0569e90a-284a-4a64-8e9b-baa86d7e85e1
2026-02-09 10:09:13,089 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ebc6a57-abce-400f-8ce0-a6d5a55de1f4
2026-02-09 10:09:13,096 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ebc6a57-abce-400f-8ce0-a6d5a55de1f4
2026-02-09 10:09:13,102 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/effd2033-9c26-42a8-8a81-8048cf4e8180
2026-02-09 10:09:13,113 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-83425227', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24117173', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '390099072579160676', 'uuid-lslong': '10276012207330199009'}, 'enable': 'true', 'created': '2026-02-09T10:09:10', 'last-modified': '2026-02-09T10:09:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921704'}
2026-02-09 10:09:13,118 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 10:09:13,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83425227 passed
2026-02-09 10:09:13,119 - DEBUG - ====Verifying policy data for ctest-vn-83425227 in API_Server ======
2026-02-09 10:09:13,119 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 10:09:13,124 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f7a00dc9-c655-4412-867d-1a2ad32ca893
2026-02-09 10:09:13,133 - DEBUG - Requesting: http://10.0.0.38:8082/project/12cfc6cd-3e5e-4ad8-a1fd-ca94766238a8
2026-02-09 10:09:13,204 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0569e90a-284a-4a64-8e9b-baa86d7e85e1
2026-02-09 10:09:13,212 - DEBUG - ==>Verifying data for policy with id: 295b271e-7072-4f21-a286-a68a92666131, fqn: ['default-domain', 'ctest-TestBasicPolicy-24117173', 'ctest-policy-allow-all-26705044']
2026-02-09 10:09:13,212 - INFO - VN ctest-vn-83425227 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 10:09:13,212 - DEBUG - Verifying the vn in opserver
2026-02-09 10:09:13,212 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-83425227 virtual network link through opserver 10.0.0.38
2026-02-09 10:09:13,212 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-09 10:09:13,504 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-09 10:09:13,555 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-83425227', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-83425227?flat'}
2026-02-09 10:09:13,555 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-83425227 is found in opserver
2026-02-09 10:09:13,564 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 10:09:13,568 - DEBUG - VRF ids for VN ctest-vn-83425227: {}
2026-02-09 10:09:13,568 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 10:09:13,572 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f7a00dc9-c655-4412-867d-1a2ad32ca893
2026-02-09 10:09:13,581 - DEBUG - Requesting: http://10.0.0.38:8082/project/12cfc6cd-3e5e-4ad8-a1fd-ca94766238a8
2026-02-09 10:09:13,646 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4182e4ce-356c-469c-8526-376425093261
2026-02-09 10:09:13,656 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4182e4ce-356c-469c-8526-376425093261
2026-02-09 10:09:13,664 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dbd56925-2ab6-4d9c-a55f-a5e6ac075701
2026-02-09 10:09:13,669 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dbd56925-2ab6-4d9c-a55f-a5e6ac075701
2026-02-09 10:09:13,675 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/133411b1-f710-415c-aa2c-8e5d077f639c
2026-02-09 10:09:13,680 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 10:09:13,680 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4182e4ce-356c-469c-8526-376425093261
2026-02-09 10:09:13,687 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dbd56925-2ab6-4d9c-a55f-a5e6ac075701
2026-02-09 10:09:13,697 - INFO - Verified VN network id 12 for VN 4182e4ce-356c-469c-8526-376425093261
2026-02-09 10:09:13,698 - INFO - Verifications in API Server for VN ctest-vn-00141072 passed
2026-02-09 10:09:13,698 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4182e4ce-356c-469c-8526-376425093261
2026-02-09 10:09:13,705 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dbd56925-2ab6-4d9c-a55f-a5e6ac075701
2026-02-09 10:09:13,710 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dbd56925-2ab6-4d9c-a55f-a5e6ac075701
2026-02-09 10:09:13,715 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/133411b1-f710-415c-aa2c-8e5d077f639c
2026-02-09 10:09:13,724 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-00141072', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24117173', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4720586933748385436', 'uuid-lslong': '9594416959417037409'}, 'enable': 'true', 'created': '2026-02-09T10:09:11', 'last-modified': '2026-02-09T10:09:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320940'}
2026-02-09 10:09:13,729 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 10:09:13,729 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00141072 passed
2026-02-09 10:09:13,729 - DEBUG - ====Verifying policy data for ctest-vn-00141072 in API_Server ======
2026-02-09 10:09:13,729 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 10:09:13,733 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f7a00dc9-c655-4412-867d-1a2ad32ca893
2026-02-09 10:09:13,742 - DEBUG - Requesting: http://10.0.0.38:8082/project/12cfc6cd-3e5e-4ad8-a1fd-ca94766238a8
2026-02-09 10:09:13,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4182e4ce-356c-469c-8526-376425093261
2026-02-09 10:09:13,815 - DEBUG - ==>Verifying data for policy with id: 295b271e-7072-4f21-a286-a68a92666131, fqn: ['default-domain', 'ctest-TestBasicPolicy-24117173', 'ctest-policy-allow-all-26705044']
2026-02-09 10:09:13,815 - INFO - VN ctest-vn-00141072 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 10:09:13,816 - DEBUG - Verifying the vn in opserver
2026-02-09 10:09:13,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-00141072 virtual network link through opserver 10.0.0.38
2026-02-09 10:09:13,816 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-09 10:09:13,824 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-00141072', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-00141072?flat'}
2026-02-09 10:09:13,824 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24117173:ctest-vn-00141072 is found in opserver
2026-02-09 10:09:13,831 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 10:09:13,837 - DEBUG - VRF ids for VN ctest-vn-00141072: {}
2026-02-09 10:09:13,886 - DEBUG - Services list from nova: [