2025-10-13 20:56:44,859 - INFO - Domain Default found not creating
2025-10-13 20:56:44,993 - INFO - Project ctest-TestBasicPolicy-91968875 not found, creating it
2025-10-13 20:56:45,437 - INFO - Created Project:ctest-TestBasicPolicy-91968875, ID : d3651a2e-90e2-4941-ae39-61593d1c5c60 
2025-10-13 20:56:46,788 - INFO - ================================================================================
2025-10-13 20:56:46,788 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-13 20:56:46,788 - 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-13 20:56:47,039 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-13 20:56:47,039 - INFO - Initial checks done. Running the testcase now
2025-10-13 20:56:47,040 - INFO - 
2025-10-13 20:56:47,564 - DEBUG - Response for create_network : {'network': {'id': 'c9ce86ef-f2d7-4e02-a88b-857983b29ccf', 'name': 'ctest-vn-24155477', 'tenant_id': 'd3651a2e90e24941ae3961593d1c5c60', 'project_id': 'd3651a2e90e24941ae3961593d1c5c60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91968875', 'ctest-vn-24155477'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 20:56:47,744 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8bb0150-4f00-4b67-9e65-de72c38ea47d', 'name': '', 'tenant_id': 'd3651a2e90e24941ae3961593d1c5c60', 'network_id': 'c9ce86ef-f2d7-4e02-a88b-857983b29ccf', 'ip_version': 4, 'cidr': '58.163.238.64/26', 'allocation_pools': [{'start': '58.163.238.66', 'end': '58.163.238.126'}], 'gateway_ip': '58.163.238.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.163.238.66', 'tags': [], 'project_id': 'd3651a2e90e24941ae3961593d1c5c60'}}
2025-10-13 20:56:47,758 - INFO - Created VN ctest-vn-24155477
2025-10-13 20:56:47,810 - DEBUG - VN ctest-vn-24155477 UUID is c9ce86ef-f2d7-4e02-a88b-857983b29ccf
2025-10-13 20:56:48,113 - DEBUG - Response for create_network : {'network': {'id': '5bd5504f-32bb-436c-a5d1-4acdea6fec62', 'name': 'ctest-vn-74946579', 'tenant_id': 'd3651a2e90e24941ae3961593d1c5c60', 'project_id': 'd3651a2e90e24941ae3961593d1c5c60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91968875', 'ctest-vn-74946579'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 20:56:48,253 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a476bda4-83ac-4142-97ca-2ee3de9a1108', 'name': '', 'tenant_id': 'd3651a2e90e24941ae3961593d1c5c60', 'network_id': '5bd5504f-32bb-436c-a5d1-4acdea6fec62', 'ip_version': 4, 'cidr': '157.220.247.192/26', 'allocation_pools': [{'start': '157.220.247.194', 'end': '157.220.247.254'}], 'gateway_ip': '157.220.247.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.220.247.194', 'tags': [], 'project_id': 'd3651a2e90e24941ae3961593d1c5c60'}}
2025-10-13 20:56:48,272 - INFO - Created VN ctest-vn-74946579
2025-10-13 20:56:48,323 - DEBUG - VN ctest-vn-74946579 UUID is 5bd5504f-32bb-436c-a5d1-4acdea6fec62
2025-10-13 20:56:48,470 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-24155477, 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-91968875:ctest-vn-74946579, 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-13 20:56:48,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9ce86ef-f2d7-4e02-a88b-857983b29ccf', 'name': 'ctest-vn-24155477', 'tenant_id': 'd3651a2e90e24941ae3961593d1c5c60', 'project_id': 'd3651a2e90e24941ae3961593d1c5c60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8bb0150-4f00-4b67-9e65-de72c38ea47d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91968875', 'ctest-vn-24155477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91968875', 'ctest-policy-allow-all-35599239']], 'subnet_ipam': [{'subnet_cidr': '58.163.238.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 20:56:48,971 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5bd5504f-32bb-436c-a5d1-4acdea6fec62', 'name': 'ctest-vn-74946579', 'tenant_id': 'd3651a2e90e24941ae3961593d1c5c60', 'project_id': 'd3651a2e90e24941ae3961593d1c5c60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a476bda4-83ac-4142-97ca-2ee3de9a1108'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91968875', 'ctest-vn-74946579'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91968875', 'ctest-policy-allow-all-35599239']], 'subnet_ipam': [{'subnet_cidr': '157.220.247.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 20:56:49,138 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 20:56:49,430 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 20:56:49,457 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d51c86b7-829c-4bd4-a0b8-0335f4678f98
2025-10-13 20:56:49,467 - DEBUG - Requesting: http://10.0.0.254:8082/project/d3651a2e-90e2-4941-ae39-61593d1c5c60
2025-10-13 20:56:49,536 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9ce86ef-f2d7-4e02-a88b-857983b29ccf
2025-10-13 20:56:49,545 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9ce86ef-f2d7-4e02-a88b-857983b29ccf
2025-10-13 20:56:49,553 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41e7fdc9-74b3-4712-afb5-d3f620ec19e2
2025-10-13 20:56:49,559 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41e7fdc9-74b3-4712-afb5-d3f620ec19e2
2025-10-13 20:56:49,565 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b356b84f-0231-4e8f-8d5c-9eb94057b576
2025-10-13 20:56:49,571 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 20:56:49,571 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9ce86ef-f2d7-4e02-a88b-857983b29ccf
2025-10-13 20:56:49,578 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41e7fdc9-74b3-4712-afb5-d3f620ec19e2
2025-10-13 20:56:49,592 - INFO - Verified VN network id 12 for VN c9ce86ef-f2d7-4e02-a88b-857983b29ccf
2025-10-13 20:56:49,593 - INFO - Verifications in API Server for VN ctest-vn-24155477 passed
2025-10-13 20:56:49,593 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9ce86ef-f2d7-4e02-a88b-857983b29ccf
2025-10-13 20:56:49,601 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41e7fdc9-74b3-4712-afb5-d3f620ec19e2
2025-10-13 20:56:49,607 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41e7fdc9-74b3-4712-afb5-d3f620ec19e2
2025-10-13 20:56:49,613 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b356b84f-0231-4e8f-8d5c-9eb94057b576
2025-10-13 20:56:49,624 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-24155477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91968875', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14541708611955412482', 'uuid-lslong': '12144947577081732303'}, 'enable': 'true', 'created': '2025-10-13T20:56:47', 'last-modified': '2025-10-13T20:56:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886345'}
2025-10-13 20:56:49,630 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 20:56:49,630 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24155477 passed
2025-10-13 20:56:49,630 - DEBUG - ====Verifying policy data for ctest-vn-24155477 in API_Server ======
2025-10-13 20:56:49,630 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 20:56:49,635 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d51c86b7-829c-4bd4-a0b8-0335f4678f98
2025-10-13 20:56:49,645 - DEBUG - Requesting: http://10.0.0.254:8082/project/d3651a2e-90e2-4941-ae39-61593d1c5c60
2025-10-13 20:56:49,716 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9ce86ef-f2d7-4e02-a88b-857983b29ccf
2025-10-13 20:56:49,724 - DEBUG - ==>Verifying data for policy with id: cac21a1f-5642-44f8-b6e7-dbbd4721f2c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-91968875', 'ctest-policy-allow-all-35599239']
2025-10-13 20:56:49,724 - INFO - VN ctest-vn-24155477 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 20:56:49,724 - DEBUG - Verifying the vn in opserver
2025-10-13 20:56:49,724 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-24155477 virtual network link  through opserver 10.0.0.254
2025-10-13 20:56:49,724 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-13 20:56:50,011 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-13 20:56:50,064 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-24155477', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-24155477?flat'}
2025-10-13 20:56:50,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-24155477 is found in opserver
2025-10-13 20:56:50,073 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 20:56:50,077 - DEBUG - VRF ids for VN ctest-vn-24155477: {}
2025-10-13 20:56:50,077 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 20:56:50,082 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d51c86b7-829c-4bd4-a0b8-0335f4678f98
2025-10-13 20:56:50,092 - DEBUG - Requesting: http://10.0.0.254:8082/project/d3651a2e-90e2-4941-ae39-61593d1c5c60
2025-10-13 20:56:50,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd5504f-32bb-436c-a5d1-4acdea6fec62
2025-10-13 20:56:50,165 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd5504f-32bb-436c-a5d1-4acdea6fec62
2025-10-13 20:56:50,173 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01adf8ed-f504-4e2a-992f-0d6f02d67cf0
2025-10-13 20:56:50,179 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01adf8ed-f504-4e2a-992f-0d6f02d67cf0
2025-10-13 20:56:50,185 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3f4905c4-1535-4f5c-99e9-50cb041decda
2025-10-13 20:56:50,190 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 20:56:50,190 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd5504f-32bb-436c-a5d1-4acdea6fec62
2025-10-13 20:56:50,198 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01adf8ed-f504-4e2a-992f-0d6f02d67cf0
2025-10-13 20:56:50,208 - INFO - Verified VN network id 13 for VN 5bd5504f-32bb-436c-a5d1-4acdea6fec62
2025-10-13 20:56:50,209 - INFO - Verifications in API Server for VN ctest-vn-74946579 passed
2025-10-13 20:56:50,209 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd5504f-32bb-436c-a5d1-4acdea6fec62
2025-10-13 20:56:50,215 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01adf8ed-f504-4e2a-992f-0d6f02d67cf0
2025-10-13 20:56:50,221 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01adf8ed-f504-4e2a-992f-0d6f02d67cf0
2025-10-13 20:56:50,226 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3f4905c4-1535-4f5c-99e9-50cb041decda
2025-10-13 20:56:50,235 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-74946579', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91968875', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6617283528574583660', 'uuid-lslong': '11948413534652591202'}, 'enable': 'true', 'created': '2025-10-13T20:56:48', 'last-modified': '2025-10-13T20:56:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.284261'}
2025-10-13 20:56:50,240 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 20:56:50,240 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74946579 passed
2025-10-13 20:56:50,241 - DEBUG - ====Verifying policy data for ctest-vn-74946579 in API_Server ======
2025-10-13 20:56:50,241 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 20:56:50,245 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d51c86b7-829c-4bd4-a0b8-0335f4678f98
2025-10-13 20:56:50,253 - DEBUG - Requesting: http://10.0.0.254:8082/project/d3651a2e-90e2-4941-ae39-61593d1c5c60
2025-10-13 20:56:50,320 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd5504f-32bb-436c-a5d1-4acdea6fec62
2025-10-13 20:56:50,328 - DEBUG - ==>Verifying data for policy with id: cac21a1f-5642-44f8-b6e7-dbbd4721f2c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-91968875', 'ctest-policy-allow-all-35599239']
2025-10-13 20:56:50,328 - INFO - VN ctest-vn-74946579 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 20:56:50,328 - DEBUG - Verifying the vn in opserver
2025-10-13 20:56:50,328 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-74946579 virtual network link  through opserver 10.0.0.254
2025-10-13 20:56:50,328 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-13 20:56:50,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-74946579', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-74946579?flat'}
2025-10-13 20:56:50,336 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91968875:ctest-vn-74946579 is found in opserver
2025-10-13 20:56:50,343 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 20:56:50,347 - DEBUG - VRF ids for VN ctest-vn-74946579: {}
2025-10-13 20:56:50,400 - DEBUG - Services list from nova: [