2025-10-24 20:23:38,769 - INFO - Domain Default found not creating
2025-10-24 20:23:39,132 - INFO - Project ctest-TestBasicPolicy-10643907 not found, creating it
2025-10-24 20:23:39,881 - INFO - Created Project:ctest-TestBasicPolicy-10643907, ID : 1f14d19e-7707-4944-aa25-5680a5c15ac2 
2025-10-24 20:23:41,834 - INFO - ================================================================================
2025-10-24 20:23:41,835 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-24 20:23:41,835 - 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-24 20:23:42,167 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-10-24 20:23:42,167 - INFO - Initial checks done. Running the testcase now
2025-10-24 20:23:42,167 - INFO - 
2025-10-24 20:23:42,988 - DEBUG - Response for create_network : {'network': {'id': '553e7793-7385-4e5a-ad83-29c76fc9533b', 'name': 'ctest-vn-02822688', 'tenant_id': '1f14d19e77074944aa255680a5c15ac2', 'project_id': '1f14d19e77074944aa255680a5c15ac2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10643907', 'ctest-vn-02822688'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 20:23:43,236 - DEBUG - Response for create_subnet : {'subnet': {'id': '93d56977-664e-4f5d-a93e-88a4d7e38bbd', 'name': '', 'tenant_id': '1f14d19e77074944aa255680a5c15ac2', 'network_id': '553e7793-7385-4e5a-ad83-29c76fc9533b', 'ip_version': 4, 'cidr': '165.238.96.0/26', 'allocation_pools': [{'start': '165.238.96.2', 'end': '165.238.96.62'}], 'gateway_ip': '165.238.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.238.96.2', 'tags': [], 'project_id': '1f14d19e77074944aa255680a5c15ac2'}}
2025-10-24 20:23:43,266 - INFO - Created VN ctest-vn-02822688
2025-10-24 20:23:43,327 - DEBUG - VN ctest-vn-02822688 UUID is 553e7793-7385-4e5a-ad83-29c76fc9533b
2025-10-24 20:23:43,792 - DEBUG - Response for create_network : {'network': {'id': 'ecb02c07-9151-4cc0-8990-72f19ddb71c4', 'name': 'ctest-vn-80703178', 'tenant_id': '1f14d19e77074944aa255680a5c15ac2', 'project_id': '1f14d19e77074944aa255680a5c15ac2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10643907', 'ctest-vn-80703178'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 20:23:44,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '03cc29f3-4621-40e1-be56-3ffa07702389', 'name': '', 'tenant_id': '1f14d19e77074944aa255680a5c15ac2', 'network_id': 'ecb02c07-9151-4cc0-8990-72f19ddb71c4', 'ip_version': 4, 'cidr': '65.149.111.128/26', 'allocation_pools': [{'start': '65.149.111.130', 'end': '65.149.111.190'}], 'gateway_ip': '65.149.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.149.111.130', 'tags': [], 'project_id': '1f14d19e77074944aa255680a5c15ac2'}}
2025-10-24 20:23:44,052 - INFO - Created VN ctest-vn-80703178
2025-10-24 20:23:44,107 - DEBUG - VN ctest-vn-80703178 UUID is ecb02c07-9151-4cc0-8990-72f19ddb71c4
2025-10-24 20:23:44,253 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-02822688, 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-10643907:ctest-vn-80703178, 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-24 20:23:44,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '553e7793-7385-4e5a-ad83-29c76fc9533b', 'name': 'ctest-vn-02822688', 'tenant_id': '1f14d19e77074944aa255680a5c15ac2', 'project_id': '1f14d19e77074944aa255680a5c15ac2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93d56977-664e-4f5d-a93e-88a4d7e38bbd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10643907', 'ctest-vn-02822688'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10643907', 'ctest-policy-allow-all-67753839']], 'subnet_ipam': [{'subnet_cidr': '165.238.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 20:23:44,852 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ecb02c07-9151-4cc0-8990-72f19ddb71c4', 'name': 'ctest-vn-80703178', 'tenant_id': '1f14d19e77074944aa255680a5c15ac2', 'project_id': '1f14d19e77074944aa255680a5c15ac2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03cc29f3-4621-40e1-be56-3ffa07702389'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10643907', 'ctest-vn-80703178'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10643907', 'ctest-policy-allow-all-67753839']], 'subnet_ipam': [{'subnet_cidr': '65.149.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 20:23:45,007 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 20:23:45,317 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 20:23:45,394 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d58c87c-9580-41b5-9c39-fe0c3ac8cd45
2025-10-24 20:23:45,423 - DEBUG - Requesting: http://10.0.0.22:8082/project/1f14d19e-7707-4944-aa25-5680a5c15ac2
2025-10-24 20:23:45,512 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/553e7793-7385-4e5a-ad83-29c76fc9533b
2025-10-24 20:23:45,529 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/553e7793-7385-4e5a-ad83-29c76fc9533b
2025-10-24 20:23:45,543 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33175a17-ffa6-4be3-8619-f0d0c54282ec
2025-10-24 20:23:45,554 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33175a17-ffa6-4be3-8619-f0d0c54282ec
2025-10-24 20:23:45,563 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0c17e810-6841-4804-bda0-bf9adbe97f89
2025-10-24 20:23:45,574 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 20:23:45,574 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/553e7793-7385-4e5a-ad83-29c76fc9533b
2025-10-24 20:23:45,590 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33175a17-ffa6-4be3-8619-f0d0c54282ec
2025-10-24 20:23:45,607 - INFO - Verified VN network id 11 for VN 553e7793-7385-4e5a-ad83-29c76fc9533b
2025-10-24 20:23:45,607 - INFO - Verifications in API Server for VN ctest-vn-02822688 passed
2025-10-24 20:23:45,607 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/553e7793-7385-4e5a-ad83-29c76fc9533b
2025-10-24 20:23:45,619 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33175a17-ffa6-4be3-8619-f0d0c54282ec
2025-10-24 20:23:45,628 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33175a17-ffa6-4be3-8619-f0d0c54282ec
2025-10-24 20:23:45,638 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0c17e810-6841-4804-bda0-bf9adbe97f89
2025-10-24 20:23:45,655 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-02822688', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10643907', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6142478416961949274', 'uuid-lslong': '12502882927061324603'}, 'enable': 'true', 'created': '2025-10-24T20:23:42', 'last-modified': '2025-10-24T20:23:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058841'}
2025-10-24 20:23:45,665 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 20:23:45,665 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02822688 passed
2025-10-24 20:23:45,665 - DEBUG - ====Verifying policy data for ctest-vn-02822688 in API_Server ======
2025-10-24 20:23:45,665 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 20:23:45,673 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d58c87c-9580-41b5-9c39-fe0c3ac8cd45
2025-10-24 20:23:45,692 - DEBUG - Requesting: http://10.0.0.22:8082/project/1f14d19e-7707-4944-aa25-5680a5c15ac2
2025-10-24 20:23:45,782 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/553e7793-7385-4e5a-ad83-29c76fc9533b
2025-10-24 20:23:45,801 - DEBUG - ==>Verifying data for policy with id: 9a50c25e-0c00-469e-956e-c6aa339190f2, fqn: ['default-domain', 'ctest-TestBasicPolicy-10643907', 'ctest-policy-allow-all-67753839']
2025-10-24 20:23:45,801 - INFO - VN ctest-vn-02822688 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 20:23:45,801 - DEBUG - Verifying the vn in opserver
2025-10-24 20:23:45,802 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-02822688 virtual network link  through opserver 10.0.0.22
2025-10-24 20:23:45,802 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-24 20:23:46,150 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-24 20:23:46,278 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-02822688', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-02822688?flat'}
2025-10-24 20:23:46,278 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-02822688 is found in opserver
2025-10-24 20:23:46,296 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 20:23:46,310 - DEBUG - VRF ids for VN ctest-vn-02822688: {}
2025-10-24 20:23:46,310 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 20:23:46,323 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d58c87c-9580-41b5-9c39-fe0c3ac8cd45
2025-10-24 20:23:46,345 - DEBUG - Requesting: http://10.0.0.22:8082/project/1f14d19e-7707-4944-aa25-5680a5c15ac2
2025-10-24 20:23:46,442 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ecb02c07-9151-4cc0-8990-72f19ddb71c4
2025-10-24 20:23:46,460 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ecb02c07-9151-4cc0-8990-72f19ddb71c4
2025-10-24 20:23:46,477 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b488e7b-c0dd-4db3-b1e3-b61415d773f4
2025-10-24 20:23:46,488 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b488e7b-c0dd-4db3-b1e3-b61415d773f4
2025-10-24 20:23:46,496 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d550073d-5215-40c8-896a-11d37f75c717
2025-10-24 20:23:46,505 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 20:23:46,505 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ecb02c07-9151-4cc0-8990-72f19ddb71c4
2025-10-24 20:23:46,520 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b488e7b-c0dd-4db3-b1e3-b61415d773f4
2025-10-24 20:23:46,542 - INFO - Verified VN network id 12 for VN ecb02c07-9151-4cc0-8990-72f19ddb71c4
2025-10-24 20:23:46,542 - INFO - Verifications in API Server for VN ctest-vn-80703178 passed
2025-10-24 20:23:46,542 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ecb02c07-9151-4cc0-8990-72f19ddb71c4
2025-10-24 20:23:46,552 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b488e7b-c0dd-4db3-b1e3-b61415d773f4
2025-10-24 20:23:46,560 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b488e7b-c0dd-4db3-b1e3-b61415d773f4
2025-10-24 20:23:46,568 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d550073d-5215-40c8-896a-11d37f75c717
2025-10-24 20:23:46,583 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-80703178', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10643907', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17055180199866485952', 'uuid-lslong': '9912549161903550916'}, 'enable': 'true', 'created': '2025-10-24T20:23:43', 'last-modified': '2025-10-24T20:23:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.751940'}
2025-10-24 20:23:46,590 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 20:23:46,590 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80703178 passed
2025-10-24 20:23:46,590 - DEBUG - ====Verifying policy data for ctest-vn-80703178 in API_Server ======
2025-10-24 20:23:46,590 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 20:23:46,598 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d58c87c-9580-41b5-9c39-fe0c3ac8cd45
2025-10-24 20:23:46,615 - DEBUG - Requesting: http://10.0.0.22:8082/project/1f14d19e-7707-4944-aa25-5680a5c15ac2
2025-10-24 20:23:46,701 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ecb02c07-9151-4cc0-8990-72f19ddb71c4
2025-10-24 20:23:46,712 - DEBUG - ==>Verifying data for policy with id: 9a50c25e-0c00-469e-956e-c6aa339190f2, fqn: ['default-domain', 'ctest-TestBasicPolicy-10643907', 'ctest-policy-allow-all-67753839']
2025-10-24 20:23:46,712 - INFO - VN ctest-vn-80703178 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 20:23:46,712 - DEBUG - Verifying the vn in opserver
2025-10-24 20:23:46,712 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-80703178 virtual network link  through opserver 10.0.0.22
2025-10-24 20:23:46,712 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-24 20:23:46,724 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-80703178', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-80703178?flat'}
2025-10-24 20:23:46,725 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10643907:ctest-vn-80703178 is found in opserver
2025-10-24 20:23:46,739 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 20:23:46,746 - DEBUG - VRF ids for VN ctest-vn-80703178: {}
2025-10-24 20:23:46,856 - DEBUG - Services list from nova: [