2025-11-04 18:01:59,630 - INFO - Domain Default found not creating
2025-11-04 18:01:59,789 - INFO - Project ctest-TestBasicPolicy-16104484 not found, creating it
2025-11-04 18:02:00,297 - INFO - Created Project:ctest-TestBasicPolicy-16104484, ID : 4db94cfd-e1b2-40f6-b6af-dce46fb0d902
2025-11-04 18:02:01,908 - INFO - ================================================================================
2025-11-04 18:02:01,908 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 18:02:01,908 - 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-04 18:02:02,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-04 18:02:02,183 - INFO - Initial checks done. Running the testcase now
2025-11-04 18:02:02,183 - INFO -
2025-11-04 18:02:02,857 - DEBUG - Response for create_network : {'network': {'id': '2c284f24-3055-4a56-94bf-5c6c5f40a8d6', 'name': 'ctest-vn-56261563', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'project_id': '4db94cfde1b240f6b6afdce46fb0d902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-vn-56261563'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 18:02:03,024 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e88ebd7b-d7c5-4cfa-8885-2f5317a9f7c8', 'name': '', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'network_id': '2c284f24-3055-4a56-94bf-5c6c5f40a8d6', 'ip_version': 4, 'cidr': '148.177.169.64/26', 'allocation_pools': [{'start': '148.177.169.66', 'end': '148.177.169.126'}], 'gateway_ip': '148.177.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.177.169.66', 'tags': [], 'project_id': '4db94cfde1b240f6b6afdce46fb0d902'}}
2025-11-04 18:02:03,043 - INFO - Created VN ctest-vn-56261563
2025-11-04 18:02:03,102 - DEBUG - VN ctest-vn-56261563 UUID is 2c284f24-3055-4a56-94bf-5c6c5f40a8d6
2025-11-04 18:02:03,409 - DEBUG - Response for create_network : {'network': {'id': '67015a77-92c3-4ce5-b3b9-8113941e6744', 'name': 'ctest-vn-55375631', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'project_id': '4db94cfde1b240f6b6afdce46fb0d902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-vn-55375631'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 18:02:03,619 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e38b2476-38c2-4a00-ab95-2e935b0b92ba', 'name': '', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'network_id': '67015a77-92c3-4ce5-b3b9-8113941e6744', 'ip_version': 4, 'cidr': '174.64.118.64/26', 'allocation_pools': [{'start': '174.64.118.66', 'end': '174.64.118.126'}], 'gateway_ip': '174.64.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.64.118.66', 'tags': [], 'project_id': '4db94cfde1b240f6b6afdce46fb0d902'}}
2025-11-04 18:02:03,641 - INFO - Created VN ctest-vn-55375631
2025-11-04 18:02:03,694 - DEBUG - VN ctest-vn-55375631 UUID is 67015a77-92c3-4ce5-b3b9-8113941e6744
2025-11-04 18:02:03,812 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563, 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-16104484:ctest-vn-55375631, 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-04 18:02:04,122 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c284f24-3055-4a56-94bf-5c6c5f40a8d6', 'name': 'ctest-vn-56261563', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'project_id': '4db94cfde1b240f6b6afdce46fb0d902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e88ebd7b-d7c5-4cfa-8885-2f5317a9f7c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-vn-56261563'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-policy-allow-all-94903876']], 'subnet_ipam': [{'subnet_cidr': '148.177.169.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 18:02:04,374 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67015a77-92c3-4ce5-b3b9-8113941e6744', 'name': 'ctest-vn-55375631', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'project_id': '4db94cfde1b240f6b6afdce46fb0d902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e38b2476-38c2-4a00-ab95-2e935b0b92ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-vn-55375631'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-policy-allow-all-94903876']], 'subnet_ipam': [{'subnet_cidr': '174.64.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 18:02:04,550 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 18:02:04,859 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 18:02:04,891 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b
2025-11-04 18:02:04,903 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902
2025-11-04 18:02:04,979 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6
2025-11-04 18:02:04,991 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6
2025-11-04 18:02:05,002 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f
2025-11-04 18:02:05,010 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f
2025-11-04 18:02:05,017 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a56e1a00-6faf-4a3d-8fce-a292dea6919a
2025-11-04 18:02:05,024 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 18:02:05,024 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6
2025-11-04 18:02:05,036 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f
2025-11-04 18:02:05,052 - INFO - Verified VN network id 11 for VN 2c284f24-3055-4a56-94bf-5c6c5f40a8d6
2025-11-04 18:02:05,052 - INFO - Verifications in API Server for VN ctest-vn-56261563 passed
2025-11-04 18:02:05,052 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6
2025-11-04 18:02:05,062 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f
2025-11-04 18:02:05,071 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f
2025-11-04 18:02:05,079 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a56e1a00-6faf-4a3d-8fce-a292dea6919a
2025-11-04 18:02:05,093 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16104484', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3181880153585568342', 'uuid-lslong': '10718387258689366230'}, 'enable': 'true', 'created': '2025-11-04T18:02:02', 'last-modified': '2025-11-04T18:02:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994244'}
2025-11-04 18:02:05,100 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 18:02:05,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56261563 passed
2025-11-04 18:02:05,101 - DEBUG - ====Verifying policy data for ctest-vn-56261563 in API_Server ======
2025-11-04 18:02:05,101 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 18:02:05,107 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b
2025-11-04 18:02:05,119 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902
2025-11-04 18:02:05,204 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6
2025-11-04 18:02:05,213 - DEBUG - ==>Verifying data for policy with id: 335bf06d-3f79-45a0-8312-56706bbe26e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-policy-allow-all-94903876']
2025-11-04 18:02:05,213 - INFO - VN ctest-vn-56261563 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 18:02:05,213 - DEBUG - Verifying the vn in opserver
2025-11-04 18:02:05,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563 virtual network link through opserver 10.0.0.50
2025-11-04 18:02:05,213 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 18:02:05,519 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 18:02:05,590 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563?flat'}
2025-11-04 18:02:05,590 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563 is found in opserver
2025-11-04 18:02:05,600 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 18:02:05,605 - DEBUG - VRF ids for VN ctest-vn-56261563: {}
2025-11-04 18:02:05,605 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 18:02:05,611 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b
2025-11-04 18:02:05,621 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902
2025-11-04 18:02:05,697 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744
2025-11-04 18:02:05,711 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744
2025-11-04 18:02:05,723 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db
2025-11-04 18:02:05,731 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db
2025-11-04 18:02:05,738 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cdb75a32-494f-432d-a58b-dbaca88d2b6a
2025-11-04 18:02:05,747 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 18:02:05,747 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744
2025-11-04 18:02:05,758 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db
2025-11-04 18:02:05,785 - INFO - Verified VN network id 12 for VN 67015a77-92c3-4ce5-b3b9-8113941e6744
2025-11-04 18:02:05,785 - INFO - Verifications in API Server for VN ctest-vn-55375631 passed
2025-11-04 18:02:05,785 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744
2025-11-04 18:02:05,798 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db
2025-11-04 18:02:05,810 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db
2025-11-04 18:02:05,818 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cdb75a32-494f-432d-a58b-dbaca88d2b6a
2025-11-04 18:02:05,832 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16104484', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7422313130493168869', 'uuid-lslong': '12950524124569954116'}, 'enable': 'true', 'created': '2025-11-04T18:02:03', 'last-modified': '2025-11-04T18:02:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490658'}
2025-11-04 18:02:05,838 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 18:02:05,838 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55375631 passed
2025-11-04 18:02:05,838 - DEBUG - ====Verifying policy data for ctest-vn-55375631 in API_Server ======
2025-11-04 18:02:05,838 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 18:02:05,844 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b
2025-11-04 18:02:05,856 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902
2025-11-04 18:02:05,934 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744
2025-11-04 18:02:05,945 - DEBUG - ==>Verifying data for policy with id: 335bf06d-3f79-45a0-8312-56706bbe26e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-policy-allow-all-94903876']
2025-11-04 18:02:05,945 - INFO - VN ctest-vn-55375631 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 18:02:05,945 - DEBUG - Verifying the vn in opserver
2025-11-04 18:02:05,946 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631 virtual network link through opserver 10.0.0.50
2025-11-04 18:02:05,946 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 18:02:05,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631?flat'}
2025-11-04 18:02:05,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631 is found in opserver
2025-11-04 18:02:05,966 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 18:02:05,971 - DEBUG - VRF ids for VN ctest-vn-55375631: {}
2025-11-04 18:02:06,033 - DEBUG - Services list from nova: [