2025-11-06 06:33:13,378 - INFO - Domain Default found not creating
2025-11-06 06:33:13,527 - INFO - Project ctest-TestBasicPolicy-87424454 not found, creating it
2025-11-06 06:33:13,968 - INFO - Created Project:ctest-TestBasicPolicy-87424454, ID : 02ade58e-d291-40ad-8d1e-f6e802afe501
2025-11-06 06:33:15,447 - INFO - ================================================================================
2025-11-06 06:33:15,448 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-06 06:33:15,448 - 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-11-06 06:33:15,701 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with
2025-11-06 06:33:15,701 - INFO - Initial checks done. Running the testcase now
2025-11-06 06:33:15,701 - INFO -
2025-11-06 06:33:16,225 - DEBUG - Response for create_network : {'network': {'id': 'fa779940-7cc5-4e94-b4ea-dba3ea9188bd', 'name': 'ctest-vn-62827356', 'tenant_id': '02ade58ed29140ad8d1ef6e802afe501', 'project_id': '02ade58ed29140ad8d1ef6e802afe501', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87424454', 'ctest-vn-62827356'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 06:33:16,356 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1cc77f1-9bc2-4caa-b342-5296a6363114', 'name': '', 'tenant_id': '02ade58ed29140ad8d1ef6e802afe501', 'network_id': 'fa779940-7cc5-4e94-b4ea-dba3ea9188bd', 'ip_version': 4, 'cidr': '111.176.53.192/26', 'allocation_pools': [{'start': '111.176.53.194', 'end': '111.176.53.254'}], 'gateway_ip': '111.176.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.176.53.194', 'tags': [], 'project_id': '02ade58ed29140ad8d1ef6e802afe501'}}
2025-11-06 06:33:16,373 - INFO - Created VN ctest-vn-62827356
2025-11-06 06:33:16,424 - DEBUG - VN ctest-vn-62827356 UUID is fa779940-7cc5-4e94-b4ea-dba3ea9188bd
2025-11-06 06:33:16,732 - DEBUG - Response for create_network : {'network': {'id': 'b1f00b8a-b12e-4e15-a50d-9d1879cb781e', 'name': 'ctest-vn-94205426', 'tenant_id': '02ade58ed29140ad8d1ef6e802afe501', 'project_id': '02ade58ed29140ad8d1ef6e802afe501', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87424454', 'ctest-vn-94205426'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 06:33:16,892 - DEBUG - Response for create_subnet : {'subnet': {'id': '5bfdaf0f-dc18-49c4-9d1f-b5a6cad17db6', 'name': '', 'tenant_id': '02ade58ed29140ad8d1ef6e802afe501', 'network_id': 'b1f00b8a-b12e-4e15-a50d-9d1879cb781e', 'ip_version': 4, 'cidr': '205.133.200.192/26', 'allocation_pools': [{'start': '205.133.200.194', 'end': '205.133.200.254'}], 'gateway_ip': '205.133.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.133.200.194', 'tags': [], 'project_id': '02ade58ed29140ad8d1ef6e802afe501'}}
2025-11-06 06:33:16,912 - INFO - Created VN ctest-vn-94205426
2025-11-06 06:33:16,964 - DEBUG - VN ctest-vn-94205426 UUID is b1f00b8a-b12e-4e15-a50d-9d1879cb781e
2025-11-06 06:33:17,075 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-62827356, 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-87424454:ctest-vn-94205426, 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-11-06 06:33:17,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa779940-7cc5-4e94-b4ea-dba3ea9188bd', 'name': 'ctest-vn-62827356', 'tenant_id': '02ade58ed29140ad8d1ef6e802afe501', 'project_id': '02ade58ed29140ad8d1ef6e802afe501', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1cc77f1-9bc2-4caa-b342-5296a6363114'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87424454', 'ctest-vn-62827356'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87424454', 'ctest-policy-allow-all-84237272']], 'subnet_ipam': [{'subnet_cidr': '111.176.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 06:33:17,607 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1f00b8a-b12e-4e15-a50d-9d1879cb781e', 'name': 'ctest-vn-94205426', 'tenant_id': '02ade58ed29140ad8d1ef6e802afe501', 'project_id': '02ade58ed29140ad8d1ef6e802afe501', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5bfdaf0f-dc18-49c4-9d1f-b5a6cad17db6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87424454', 'ctest-vn-94205426'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87424454', 'ctest-policy-allow-all-84237272']], 'subnet_ipam': [{'subnet_cidr': '205.133.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 06:33:17,752 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 06:33:18,044 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 06:33:18,073 - DEBUG - Requesting: http://10.0.0.22:8082/domain/60626f23-fc59-43e2-9f52-5aeae7917696
2025-11-06 06:33:18,083 - DEBUG - Requesting: http://10.0.0.22:8082/project/02ade58e-d291-40ad-8d1e-f6e802afe501
2025-11-06 06:33:18,154 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa779940-7cc5-4e94-b4ea-dba3ea9188bd
2025-11-06 06:33:18,163 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa779940-7cc5-4e94-b4ea-dba3ea9188bd
2025-11-06 06:33:18,171 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6906a036-e7df-4e74-afd1-8b7cbcd71e75
2025-11-06 06:33:18,177 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6906a036-e7df-4e74-afd1-8b7cbcd71e75
2025-11-06 06:33:18,183 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f22defb8-6cf6-4061-9e30-b79acec993bc
2025-11-06 06:33:18,188 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 06:33:18,188 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa779940-7cc5-4e94-b4ea-dba3ea9188bd
2025-11-06 06:33:18,196 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6906a036-e7df-4e74-afd1-8b7cbcd71e75
2025-11-06 06:33:18,208 - INFO - Verified VN network id 12 for VN fa779940-7cc5-4e94-b4ea-dba3ea9188bd
2025-11-06 06:33:18,209 - INFO - Verifications in API Server for VN ctest-vn-62827356 passed
2025-11-06 06:33:18,209 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa779940-7cc5-4e94-b4ea-dba3ea9188bd
2025-11-06 06:33:18,217 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6906a036-e7df-4e74-afd1-8b7cbcd71e75
2025-11-06 06:33:18,223 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6906a036-e7df-4e74-afd1-8b7cbcd71e75
2025-11-06 06:33:18,230 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f22defb8-6cf6-4061-9e30-b79acec993bc
2025-11-06 06:33:18,240 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-62827356', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87424454', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18048062533960814228', 'uuid-lslong': '13036473568438880445'}, 'enable': 'true', 'created': '2025-11-06T06:33:16', 'last-modified': '2025-11-06T06:33:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.896595'}
2025-11-06 06:33:18,245 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 06:33:18,245 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62827356 passed
2025-11-06 06:33:18,245 - DEBUG - ====Verifying policy data for ctest-vn-62827356 in API_Server ======
2025-11-06 06:33:18,245 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 06:33:18,250 - DEBUG - Requesting: http://10.0.0.22:8082/domain/60626f23-fc59-43e2-9f52-5aeae7917696
2025-11-06 06:33:18,260 - DEBUG - Requesting: http://10.0.0.22:8082/project/02ade58e-d291-40ad-8d1e-f6e802afe501
2025-11-06 06:33:18,330 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa779940-7cc5-4e94-b4ea-dba3ea9188bd
2025-11-06 06:33:18,338 - DEBUG - ==>Verifying data for policy with id: 49ad50fe-2a61-42cb-87fe-7ac57a13bd78, fqn: ['default-domain', 'ctest-TestBasicPolicy-87424454', 'ctest-policy-allow-all-84237272']
2025-11-06 06:33:18,338 - INFO - VN ctest-vn-62827356 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 06:33:18,338 - DEBUG - Verifying the vn in opserver
2025-11-06 06:33:18,338 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-62827356 virtual network link through opserver 10.0.0.22
2025-11-06 06:33:18,338 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-06 06:33:18,627 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-06 06:33:18,689 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-62827356', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-62827356?flat'}
2025-11-06 06:33:18,689 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-62827356 is found in opserver
2025-11-06 06:33:18,697 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 06:33:18,702 - DEBUG - VRF ids for VN ctest-vn-62827356: {}
2025-11-06 06:33:18,702 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 06:33:18,709 - DEBUG - Requesting: http://10.0.0.22:8082/domain/60626f23-fc59-43e2-9f52-5aeae7917696
2025-11-06 06:33:18,718 - DEBUG - Requesting: http://10.0.0.22:8082/project/02ade58e-d291-40ad-8d1e-f6e802afe501
2025-11-06 06:33:18,783 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b1f00b8a-b12e-4e15-a50d-9d1879cb781e
2025-11-06 06:33:18,795 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b1f00b8a-b12e-4e15-a50d-9d1879cb781e
2025-11-06 06:33:18,804 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfc24e44-64b1-481c-b7f7-ab5d2ba58570
2025-11-06 06:33:18,811 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfc24e44-64b1-481c-b7f7-ab5d2ba58570
2025-11-06 06:33:18,819 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1e47dbda-98c9-4eca-a1da-9f06fa57d53f
2025-11-06 06:33:18,826 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 06:33:18,826 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b1f00b8a-b12e-4e15-a50d-9d1879cb781e
2025-11-06 06:33:18,834 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfc24e44-64b1-481c-b7f7-ab5d2ba58570
2025-11-06 06:33:18,847 - INFO - Verified VN network id 13 for VN b1f00b8a-b12e-4e15-a50d-9d1879cb781e
2025-11-06 06:33:18,847 - INFO - Verifications in API Server for VN ctest-vn-94205426 passed
2025-11-06 06:33:18,847 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b1f00b8a-b12e-4e15-a50d-9d1879cb781e
2025-11-06 06:33:18,855 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfc24e44-64b1-481c-b7f7-ab5d2ba58570
2025-11-06 06:33:18,861 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfc24e44-64b1-481c-b7f7-ab5d2ba58570
2025-11-06 06:33:18,868 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1e47dbda-98c9-4eca-a1da-9f06fa57d53f
2025-11-06 06:33:18,880 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-94205426', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87424454', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12821760829429796373', 'uuid-lslong': '11893334919403501598'}, 'enable': 'true', 'created': '2025-11-06T06:33:16', 'last-modified': '2025-11-06T06:33:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.291300'}
2025-11-06 06:33:18,886 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 06:33:18,886 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94205426 passed
2025-11-06 06:33:18,886 - DEBUG - ====Verifying policy data for ctest-vn-94205426 in API_Server ======
2025-11-06 06:33:18,887 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 06:33:18,891 - DEBUG - Requesting: http://10.0.0.22:8082/domain/60626f23-fc59-43e2-9f52-5aeae7917696
2025-11-06 06:33:18,901 - DEBUG - Requesting: http://10.0.0.22:8082/project/02ade58e-d291-40ad-8d1e-f6e802afe501
2025-11-06 06:33:18,974 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b1f00b8a-b12e-4e15-a50d-9d1879cb781e
2025-11-06 06:33:18,983 - DEBUG - ==>Verifying data for policy with id: 49ad50fe-2a61-42cb-87fe-7ac57a13bd78, fqn: ['default-domain', 'ctest-TestBasicPolicy-87424454', 'ctest-policy-allow-all-84237272']
2025-11-06 06:33:18,983 - INFO - VN ctest-vn-94205426 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 06:33:18,983 - DEBUG - Verifying the vn in opserver
2025-11-06 06:33:18,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-94205426 virtual network link through opserver 10.0.0.22
2025-11-06 06:33:18,984 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-06 06:33:18,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-94205426', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-94205426?flat'}
2025-11-06 06:33:18,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87424454:ctest-vn-94205426 is found in opserver
2025-11-06 06:33:19,003 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 06:33:19,009 - DEBUG - VRF ids for VN ctest-vn-94205426: {}
2025-11-06 06:33:19,066 - DEBUG - Services list from nova: [