2025-10-15 12:44:50,698 - INFO - Domain Default found not creating
2025-10-15 12:44:50,862 - INFO - Project ctest-TestBasicPolicy-59755258 not found, creating it
2025-10-15 12:44:51,308 - INFO - Created Project:ctest-TestBasicPolicy-59755258, ID : 1bd86e67-e8d7-4223-afa6-9615c3d60f95 
2025-10-15 12:44:52,663 - INFO - ================================================================================
2025-10-15 12:44:52,663 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-15 12:44:52,663 - 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-15 12:44:52,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.145': '0'}} with
2025-10-15 12:44:52,915 - INFO - Initial checks done. Running the testcase now
2025-10-15 12:44:52,915 - INFO - 
2025-10-15 12:44:53,424 - DEBUG - Response for create_network : {'network': {'id': '4310a6ac-e6c0-40a3-815e-cab842c55f17', 'name': 'ctest-vn-75128513', 'tenant_id': '1bd86e67e8d74223afa69615c3d60f95', 'project_id': '1bd86e67e8d74223afa69615c3d60f95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59755258', 'ctest-vn-75128513'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 12:44:53,591 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ae485de-29c4-4681-a60f-c404201fc221', 'name': '', 'tenant_id': '1bd86e67e8d74223afa69615c3d60f95', 'network_id': '4310a6ac-e6c0-40a3-815e-cab842c55f17', 'ip_version': 4, 'cidr': '26.145.109.192/26', 'allocation_pools': [{'start': '26.145.109.194', 'end': '26.145.109.254'}], 'gateway_ip': '26.145.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.145.109.194', 'tags': [], 'project_id': '1bd86e67e8d74223afa69615c3d60f95'}}
2025-10-15 12:44:53,607 - INFO - Created VN ctest-vn-75128513
2025-10-15 12:44:53,659 - DEBUG - VN ctest-vn-75128513 UUID is 4310a6ac-e6c0-40a3-815e-cab842c55f17
2025-10-15 12:44:53,969 - DEBUG - Response for create_network : {'network': {'id': '24757647-fec2-4b96-9bfd-6b334852675a', 'name': 'ctest-vn-67476841', 'tenant_id': '1bd86e67e8d74223afa69615c3d60f95', 'project_id': '1bd86e67e8d74223afa69615c3d60f95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59755258', 'ctest-vn-67476841'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 12:44:54,181 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f8274ca-898f-4242-ad8f-86bb31e218b5', 'name': '', 'tenant_id': '1bd86e67e8d74223afa69615c3d60f95', 'network_id': '24757647-fec2-4b96-9bfd-6b334852675a', 'ip_version': 4, 'cidr': '114.226.59.0/26', 'allocation_pools': [{'start': '114.226.59.2', 'end': '114.226.59.62'}], 'gateway_ip': '114.226.59.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.226.59.2', 'tags': [], 'project_id': '1bd86e67e8d74223afa69615c3d60f95'}}
2025-10-15 12:44:54,197 - INFO - Created VN ctest-vn-67476841
2025-10-15 12:44:54,251 - DEBUG - VN ctest-vn-67476841 UUID is 24757647-fec2-4b96-9bfd-6b334852675a
2025-10-15 12:44:54,399 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-75128513, 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-59755258:ctest-vn-67476841, 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-15 12:44:54,685 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4310a6ac-e6c0-40a3-815e-cab842c55f17', 'name': 'ctest-vn-75128513', 'tenant_id': '1bd86e67e8d74223afa69615c3d60f95', 'project_id': '1bd86e67e8d74223afa69615c3d60f95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ae485de-29c4-4681-a60f-c404201fc221'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59755258', 'ctest-vn-75128513'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59755258', 'ctest-policy-allow-all-82608669']], 'subnet_ipam': [{'subnet_cidr': '26.145.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 12:44:54,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24757647-fec2-4b96-9bfd-6b334852675a', 'name': 'ctest-vn-67476841', 'tenant_id': '1bd86e67e8d74223afa69615c3d60f95', 'project_id': '1bd86e67e8d74223afa69615c3d60f95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f8274ca-898f-4242-ad8f-86bb31e218b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59755258', 'ctest-vn-67476841'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59755258', 'ctest-policy-allow-all-82608669']], 'subnet_ipam': [{'subnet_cidr': '114.226.59.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 12:44:55,095 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-15 12:44:55,386 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-15 12:44:55,413 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2dbc06a8-a315-4d0f-8b78-a4c5f1f9b3b0
2025-10-15 12:44:55,423 - DEBUG - Requesting: http://10.0.0.38:8082/project/1bd86e67-e8d7-4223-afa6-9615c3d60f95
2025-10-15 12:44:55,493 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4310a6ac-e6c0-40a3-815e-cab842c55f17
2025-10-15 12:44:55,502 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4310a6ac-e6c0-40a3-815e-cab842c55f17
2025-10-15 12:44:55,510 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b24d415e-e93d-4cea-a90f-2a56766073e8
2025-10-15 12:44:55,516 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b24d415e-e93d-4cea-a90f-2a56766073e8
2025-10-15 12:44:55,522 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4e9ad831-c7cb-4a49-95d5-d8c30bd1981c
2025-10-15 12:44:55,527 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 12:44:55,527 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4310a6ac-e6c0-40a3-815e-cab842c55f17
2025-10-15 12:44:55,535 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b24d415e-e93d-4cea-a90f-2a56766073e8
2025-10-15 12:44:55,547 - INFO - Verified VN network id 12 for VN 4310a6ac-e6c0-40a3-815e-cab842c55f17
2025-10-15 12:44:55,547 - INFO - Verifications in API Server for VN ctest-vn-75128513 passed
2025-10-15 12:44:55,547 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4310a6ac-e6c0-40a3-815e-cab842c55f17
2025-10-15 12:44:55,554 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b24d415e-e93d-4cea-a90f-2a56766073e8
2025-10-15 12:44:55,560 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b24d415e-e93d-4cea-a90f-2a56766073e8
2025-10-15 12:44:55,566 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4e9ad831-c7cb-4a49-95d5-d8c30bd1981c
2025-10-15 12:44:55,576 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-75128513', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59755258', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4832545661704487075', 'uuid-lslong': '9322111171446529815'}, 'enable': 'true', 'created': '2025-10-15T12:44:53', 'last-modified': '2025-10-15T12:44:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912683'}
2025-10-15 12:44:55,581 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 12:44:55,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75128513 passed
2025-10-15 12:44:55,582 - DEBUG - ====Verifying policy data for ctest-vn-75128513 in API_Server ======
2025-10-15 12:44:55,582 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-15 12:44:55,587 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2dbc06a8-a315-4d0f-8b78-a4c5f1f9b3b0
2025-10-15 12:44:55,597 - DEBUG - Requesting: http://10.0.0.38:8082/project/1bd86e67-e8d7-4223-afa6-9615c3d60f95
2025-10-15 12:44:55,662 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4310a6ac-e6c0-40a3-815e-cab842c55f17
2025-10-15 12:44:55,670 - DEBUG - ==>Verifying data for policy with id: f047fabb-9cfb-40c7-8d06-60348aa9f2c2, fqn: ['default-domain', 'ctest-TestBasicPolicy-59755258', 'ctest-policy-allow-all-82608669']
2025-10-15 12:44:55,670 - INFO - VN ctest-vn-75128513 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 12:44:55,670 - DEBUG - Verifying the vn in opserver
2025-10-15 12:44:55,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-75128513 virtual network link  through opserver 10.0.0.38
2025-10-15 12:44:55,670 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-15 12:44:55,961 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-15 12:44:56,014 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-75128513', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-75128513?flat'}
2025-10-15 12:44:56,014 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-75128513 is found in opserver
2025-10-15 12:44:56,022 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 12:44:56,026 - DEBUG - VRF ids for VN ctest-vn-75128513: {}
2025-10-15 12:44:56,026 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-15 12:44:56,031 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2dbc06a8-a315-4d0f-8b78-a4c5f1f9b3b0
2025-10-15 12:44:56,040 - DEBUG - Requesting: http://10.0.0.38:8082/project/1bd86e67-e8d7-4223-afa6-9615c3d60f95
2025-10-15 12:44:56,106 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/24757647-fec2-4b96-9bfd-6b334852675a
2025-10-15 12:44:56,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/24757647-fec2-4b96-9bfd-6b334852675a
2025-10-15 12:44:56,123 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25e3ffde-defd-47dd-8793-b461f925cdb3
2025-10-15 12:44:56,129 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25e3ffde-defd-47dd-8793-b461f925cdb3
2025-10-15 12:44:56,134 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f8e08c43-6a07-44c5-bda2-adee09e081f7
2025-10-15 12:44:56,139 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 12:44:56,139 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/24757647-fec2-4b96-9bfd-6b334852675a
2025-10-15 12:44:56,146 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25e3ffde-defd-47dd-8793-b461f925cdb3
2025-10-15 12:44:56,156 - INFO - Verified VN network id 13 for VN 24757647-fec2-4b96-9bfd-6b334852675a
2025-10-15 12:44:56,156 - INFO - Verifications in API Server for VN ctest-vn-67476841 passed
2025-10-15 12:44:56,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/24757647-fec2-4b96-9bfd-6b334852675a
2025-10-15 12:44:56,164 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25e3ffde-defd-47dd-8793-b461f925cdb3
2025-10-15 12:44:56,169 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25e3ffde-defd-47dd-8793-b461f925cdb3
2025-10-15 12:44:56,176 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f8e08c43-6a07-44c5-bda2-adee09e081f7
2025-10-15 12:44:56,186 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-67476841', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59755258', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2627136009229454230', 'uuid-lslong': '11240258112987490138'}, 'enable': 'true', 'created': '2025-10-15T12:44:53', 'last-modified': '2025-10-15T12:44:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299996'}
2025-10-15 12:44:56,191 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 12:44:56,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67476841 passed
2025-10-15 12:44:56,191 - DEBUG - ====Verifying policy data for ctest-vn-67476841 in API_Server ======
2025-10-15 12:44:56,191 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-15 12:44:56,196 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2dbc06a8-a315-4d0f-8b78-a4c5f1f9b3b0
2025-10-15 12:44:56,204 - DEBUG - Requesting: http://10.0.0.38:8082/project/1bd86e67-e8d7-4223-afa6-9615c3d60f95
2025-10-15 12:44:56,271 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/24757647-fec2-4b96-9bfd-6b334852675a
2025-10-15 12:44:56,279 - DEBUG - ==>Verifying data for policy with id: f047fabb-9cfb-40c7-8d06-60348aa9f2c2, fqn: ['default-domain', 'ctest-TestBasicPolicy-59755258', 'ctest-policy-allow-all-82608669']
2025-10-15 12:44:56,279 - INFO - VN ctest-vn-67476841 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 12:44:56,279 - DEBUG - Verifying the vn in opserver
2025-10-15 12:44:56,279 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-67476841 virtual network link  through opserver 10.0.0.38
2025-10-15 12:44:56,279 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-15 12:44:56,287 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-67476841', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-67476841?flat'}
2025-10-15 12:44:56,287 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59755258:ctest-vn-67476841 is found in opserver
2025-10-15 12:44:56,294 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 12:44:56,298 - DEBUG - VRF ids for VN ctest-vn-67476841: {}
2025-10-15 12:44:56,347 - DEBUG - Services list from nova: [