2025-11-03 17:16:00,685 - INFO - Domain Default found not creating
2025-11-03 17:16:00,847 - INFO - Project ctest-TestBasicPolicy-99094677 not found, creating it
2025-11-03 17:16:01,296 - INFO - Created Project:ctest-TestBasicPolicy-99094677, ID : 4db0bacb-0c86-4c72-bf82-deb7a6487f9c
2025-11-03 17:16:02,733 - INFO - ================================================================================
2025-11-03 17:16:02,733 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 17:16:02,733 - 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-03 17:16:02,999 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-11-03 17:16:02,999 - INFO - Initial checks done. Running the testcase now
2025-11-03 17:16:02,999 - INFO -
2025-11-03 17:16:03,552 - DEBUG - Response for create_network : {'network': {'id': '7af293a1-3933-47f9-aad0-6ece69bc6f40', 'name': 'ctest-vn-56334099', 'tenant_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'project_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99094677', 'ctest-vn-56334099'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 17:16:03,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '64f8ad0d-fc72-413a-b342-e0347c64bc22', 'name': '', 'tenant_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'network_id': '7af293a1-3933-47f9-aad0-6ece69bc6f40', 'ip_version': 4, 'cidr': '115.168.189.192/26', 'allocation_pools': [{'start': '115.168.189.194', 'end': '115.168.189.254'}], 'gateway_ip': '115.168.189.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.168.189.194', 'tags': [], 'project_id': '4db0bacb0c864c72bf82deb7a6487f9c'}}
2025-11-03 17:16:03,773 - INFO - Created VN ctest-vn-56334099
2025-11-03 17:16:03,829 - DEBUG - VN ctest-vn-56334099 UUID is 7af293a1-3933-47f9-aad0-6ece69bc6f40
2025-11-03 17:16:04,108 - DEBUG - Response for create_network : {'network': {'id': '3024309e-c711-4d0e-8c90-e6291bb9c291', 'name': 'ctest-vn-20228524', 'tenant_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'project_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99094677', 'ctest-vn-20228524'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 17:16:04,320 - DEBUG - Response for create_subnet : {'subnet': {'id': '76b1e0be-671e-4aee-8145-fffa496281ae', 'name': '', 'tenant_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'network_id': '3024309e-c711-4d0e-8c90-e6291bb9c291', 'ip_version': 4, 'cidr': '74.1.229.64/26', 'allocation_pools': [{'start': '74.1.229.66', 'end': '74.1.229.126'}], 'gateway_ip': '74.1.229.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.1.229.66', 'tags': [], 'project_id': '4db0bacb0c864c72bf82deb7a6487f9c'}}
2025-11-03 17:16:04,337 - INFO - Created VN ctest-vn-20228524
2025-11-03 17:16:04,393 - DEBUG - VN ctest-vn-20228524 UUID is 3024309e-c711-4d0e-8c90-e6291bb9c291
2025-11-03 17:16:04,549 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-56334099, 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-99094677:ctest-vn-20228524, 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-03 17:16:04,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7af293a1-3933-47f9-aad0-6ece69bc6f40', 'name': 'ctest-vn-56334099', 'tenant_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'project_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64f8ad0d-fc72-413a-b342-e0347c64bc22'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99094677', 'ctest-vn-56334099'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99094677', 'ctest-policy-allow-all-34999966']], 'subnet_ipam': [{'subnet_cidr': '115.168.189.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 17:16:05,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3024309e-c711-4d0e-8c90-e6291bb9c291', 'name': 'ctest-vn-20228524', 'tenant_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'project_id': '4db0bacb0c864c72bf82deb7a6487f9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76b1e0be-671e-4aee-8145-fffa496281ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99094677', 'ctest-vn-20228524'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99094677', 'ctest-policy-allow-all-34999966']], 'subnet_ipam': [{'subnet_cidr': '74.1.229.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 17:16:05,241 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 17:16:05,541 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 17:16:05,568 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2214998f-7a6f-4dac-be9b-2b8564cf2288
2025-11-03 17:16:05,581 - DEBUG - Requesting: http://10.0.0.22:8082/project/4db0bacb-0c86-4c72-bf82-deb7a6487f9c
2025-11-03 17:16:05,657 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7af293a1-3933-47f9-aad0-6ece69bc6f40
2025-11-03 17:16:05,669 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7af293a1-3933-47f9-aad0-6ece69bc6f40
2025-11-03 17:16:05,679 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f2eff82-df2b-47de-853c-918e78716223
2025-11-03 17:16:05,687 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f2eff82-df2b-47de-853c-918e78716223
2025-11-03 17:16:05,694 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1129d48c-d8fa-4aec-b789-589e8011481f
2025-11-03 17:16:05,700 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 17:16:05,700 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7af293a1-3933-47f9-aad0-6ece69bc6f40
2025-11-03 17:16:05,712 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f2eff82-df2b-47de-853c-918e78716223
2025-11-03 17:16:05,729 - INFO - Verified VN network id 11 for VN 7af293a1-3933-47f9-aad0-6ece69bc6f40
2025-11-03 17:16:05,729 - INFO - Verifications in API Server for VN ctest-vn-56334099 passed
2025-11-03 17:16:05,729 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7af293a1-3933-47f9-aad0-6ece69bc6f40
2025-11-03 17:16:05,738 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f2eff82-df2b-47de-853c-918e78716223
2025-11-03 17:16:05,745 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f2eff82-df2b-47de-853c-918e78716223
2025-11-03 17:16:05,752 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1129d48c-d8fa-4aec-b789-589e8011481f
2025-11-03 17:16:05,763 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-56334099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99094677', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8859305737649866745', 'uuid-lslong': '12308459614419840832'}, 'enable': 'true', 'created': '2025-11-03T17:16:03', 'last-modified': '2025-11-03T17:16:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941899'}
2025-11-03 17:16:05,768 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 17:16:05,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56334099 passed
2025-11-03 17:16:05,769 - DEBUG - ====Verifying policy data for ctest-vn-56334099 in API_Server ======
2025-11-03 17:16:05,769 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 17:16:05,774 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2214998f-7a6f-4dac-be9b-2b8564cf2288
2025-11-03 17:16:05,784 - DEBUG - Requesting: http://10.0.0.22:8082/project/4db0bacb-0c86-4c72-bf82-deb7a6487f9c
2025-11-03 17:16:05,856 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7af293a1-3933-47f9-aad0-6ece69bc6f40
2025-11-03 17:16:05,865 - DEBUG - ==>Verifying data for policy with id: b98815b5-f880-4635-a450-f624dc18c082, fqn: ['default-domain', 'ctest-TestBasicPolicy-99094677', 'ctest-policy-allow-all-34999966']
2025-11-03 17:16:05,865 - INFO - VN ctest-vn-56334099 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 17:16:05,865 - DEBUG - Verifying the vn in opserver
2025-11-03 17:16:05,865 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-56334099 virtual network link through opserver 10.0.0.22
2025-11-03 17:16:05,865 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-03 17:16:06,161 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-03 17:16:06,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-56334099', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-56334099?flat'}
2025-11-03 17:16:06,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-56334099 is found in opserver
2025-11-03 17:16:06,227 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 17:16:06,232 - DEBUG - VRF ids for VN ctest-vn-56334099: {}
2025-11-03 17:16:06,232 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 17:16:06,238 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2214998f-7a6f-4dac-be9b-2b8564cf2288
2025-11-03 17:16:06,248 - DEBUG - Requesting: http://10.0.0.22:8082/project/4db0bacb-0c86-4c72-bf82-deb7a6487f9c
2025-11-03 17:16:06,313 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3024309e-c711-4d0e-8c90-e6291bb9c291
2025-11-03 17:16:06,324 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3024309e-c711-4d0e-8c90-e6291bb9c291
2025-11-03 17:16:06,333 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/16d9c687-aac9-4832-9a79-52e482b10c5f
2025-11-03 17:16:06,339 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/16d9c687-aac9-4832-9a79-52e482b10c5f
2025-11-03 17:16:06,345 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/01829954-5876-4917-af7e-1efc73b2eba7
2025-11-03 17:16:06,351 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 17:16:06,351 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3024309e-c711-4d0e-8c90-e6291bb9c291
2025-11-03 17:16:06,359 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/16d9c687-aac9-4832-9a79-52e482b10c5f
2025-11-03 17:16:06,371 - INFO - Verified VN network id 12 for VN 3024309e-c711-4d0e-8c90-e6291bb9c291
2025-11-03 17:16:06,372 - INFO - Verifications in API Server for VN ctest-vn-20228524 passed
2025-11-03 17:16:06,372 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3024309e-c711-4d0e-8c90-e6291bb9c291
2025-11-03 17:16:06,379 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/16d9c687-aac9-4832-9a79-52e482b10c5f
2025-11-03 17:16:06,385 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/16d9c687-aac9-4832-9a79-52e482b10c5f
2025-11-03 17:16:06,391 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/01829954-5876-4917-af7e-1efc73b2eba7
2025-11-03 17:16:06,401 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-20228524', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99094677', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3468951071484890382', 'uuid-lslong': '10128848626189451921'}, 'enable': 'true', 'created': '2025-11-03T17:16:04', 'last-modified': '2025-11-03T17:16:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352959'}
2025-11-03 17:16:06,406 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 17:16:06,406 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20228524 passed
2025-11-03 17:16:06,407 - DEBUG - ====Verifying policy data for ctest-vn-20228524 in API_Server ======
2025-11-03 17:16:06,407 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 17:16:06,411 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2214998f-7a6f-4dac-be9b-2b8564cf2288
2025-11-03 17:16:06,422 - DEBUG - Requesting: http://10.0.0.22:8082/project/4db0bacb-0c86-4c72-bf82-deb7a6487f9c
2025-11-03 17:16:06,490 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3024309e-c711-4d0e-8c90-e6291bb9c291
2025-11-03 17:16:06,499 - DEBUG - ==>Verifying data for policy with id: b98815b5-f880-4635-a450-f624dc18c082, fqn: ['default-domain', 'ctest-TestBasicPolicy-99094677', 'ctest-policy-allow-all-34999966']
2025-11-03 17:16:06,500 - INFO - VN ctest-vn-20228524 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 17:16:06,500 - DEBUG - Verifying the vn in opserver
2025-11-03 17:16:06,500 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-20228524 virtual network link through opserver 10.0.0.22
2025-11-03 17:16:06,500 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-03 17:16:06,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-20228524', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-20228524?flat'}
2025-11-03 17:16:06,509 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99094677:ctest-vn-20228524 is found in opserver
2025-11-03 17:16:06,517 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 17:16:06,522 - DEBUG - VRF ids for VN ctest-vn-20228524: {}
2025-11-03 17:16:06,575 - DEBUG - Services list from nova: [