2025-08-12 17:19:59,548 - INFO - Domain Default found not creating
2025-08-12 17:19:59,664 - INFO - Project ctest-TestBasicPolicy-15391595 not found, creating it
2025-08-12 17:20:00,175 - INFO - Created Project:ctest-TestBasicPolicy-15391595, ID : 01896d74-18b3-48df-9ed2-a23c4b8cd2fe
2025-08-12 17:20:01,561 - INFO - ================================================================================
2025-08-12 17:20:01,561 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 17:20:01,561 - 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-08-12 17:20:01,816 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-08-12 17:20:01,816 - INFO - Initial checks done. Running the testcase now
2025-08-12 17:20:01,817 - INFO -
2025-08-12 17:20:02,326 - DEBUG - Response for create_network : {'network': {'id': 'dd60b941-f3f7-4547-9776-e0eee462ea35', 'name': 'ctest-vn-46608786', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-vn-46608786'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 17:20:02,476 - DEBUG - Response for create_subnet : {'subnet': {'id': '2579a178-c2d0-4bab-8c14-0ba0cdc2b075', 'name': '', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'network_id': 'dd60b941-f3f7-4547-9776-e0eee462ea35', 'ip_version': 4, 'cidr': '165.247.74.64/26', 'allocation_pools': [{'start': '165.247.74.66', 'end': '165.247.74.126'}], 'gateway_ip': '165.247.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.247.74.66', 'tags': [], 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe'}}
2025-08-12 17:20:02,493 - INFO - Created VN ctest-vn-46608786
2025-08-12 17:20:02,542 - DEBUG - VN ctest-vn-46608786 UUID is dd60b941-f3f7-4547-9776-e0eee462ea35
2025-08-12 17:20:02,855 - DEBUG - Response for create_network : {'network': {'id': '03c6556b-8e46-48df-86d3-2bc5fb1c8025', 'name': 'ctest-vn-68401306', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-vn-68401306'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 17:20:03,064 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe592acb-994d-41ba-b5de-37d19a05a398', 'name': '', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'network_id': '03c6556b-8e46-48df-86d3-2bc5fb1c8025', 'ip_version': 4, 'cidr': '152.210.208.64/26', 'allocation_pools': [{'start': '152.210.208.66', 'end': '152.210.208.126'}], 'gateway_ip': '152.210.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.210.208.66', 'tags': [], 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe'}}
2025-08-12 17:20:03,080 - INFO - Created VN ctest-vn-68401306
2025-08-12 17:20:03,130 - DEBUG - VN ctest-vn-68401306 UUID is 03c6556b-8e46-48df-86d3-2bc5fb1c8025
2025-08-12 17:20:03,274 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786, 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-15391595:ctest-vn-68401306, 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-08-12 17:20:03,556 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd60b941-f3f7-4547-9776-e0eee462ea35', 'name': 'ctest-vn-46608786', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2579a178-c2d0-4bab-8c14-0ba0cdc2b075'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-vn-46608786'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-policy-allow-all-16770318']], 'subnet_ipam': [{'subnet_cidr': '165.247.74.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 17:20:03,771 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03c6556b-8e46-48df-86d3-2bc5fb1c8025', 'name': 'ctest-vn-68401306', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe592acb-994d-41ba-b5de-37d19a05a398'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-vn-68401306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-policy-allow-all-16770318']], 'subnet_ipam': [{'subnet_cidr': '152.210.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 17:20:03,935 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 17:20:04,225 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 17:20:04,250 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43
2025-08-12 17:20:04,264 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe
2025-08-12 17:20:04,337 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35
2025-08-12 17:20:04,347 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35
2025-08-12 17:20:04,355 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2
2025-08-12 17:20:04,361 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2
2025-08-12 17:20:04,366 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/627c7221-96f0-4454-9e5e-af0d0b231e7f
2025-08-12 17:20:04,372 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 17:20:04,372 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35
2025-08-12 17:20:04,379 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2
2025-08-12 17:20:04,391 - INFO - Verified VN network id 11 for VN dd60b941-f3f7-4547-9776-e0eee462ea35
2025-08-12 17:20:04,391 - INFO - Verifications in API Server for VN ctest-vn-46608786 passed
2025-08-12 17:20:04,391 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35
2025-08-12 17:20:04,399 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2
2025-08-12 17:20:04,405 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2
2025-08-12 17:20:04,411 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/627c7221-96f0-4454-9e5e-af0d0b231e7f
2025-08-12 17:20:04,421 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15391595', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15951953573063378247', 'uuid-lslong': '10914158063617501749'}, 'enable': 'true', 'created': '2025-08-12T17:20:02', 'last-modified': '2025-08-12T17:20:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886755'}
2025-08-12 17:20:04,427 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 17:20:04,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46608786 passed
2025-08-12 17:20:04,427 - DEBUG - ====Verifying policy data for ctest-vn-46608786 in API_Server ======
2025-08-12 17:20:04,427 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 17:20:04,432 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43
2025-08-12 17:20:04,442 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe
2025-08-12 17:20:04,509 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35
2025-08-12 17:20:04,518 - DEBUG - ==>Verifying data for policy with id: 525c1d27-c7a5-42bd-a310-a300c4852491, fqn: ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-policy-allow-all-16770318']
2025-08-12 17:20:04,518 - INFO - VN ctest-vn-46608786 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 17:20:04,518 - DEBUG - Verifying the vn in opserver
2025-08-12 17:20:04,518 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786 virtual network link through opserver 10.0.0.254
2025-08-12 17:20:04,518 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-12 17:20:04,804 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-12 17:20:04,850 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786?flat'}
2025-08-12 17:20:04,850 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786 is found in opserver
2025-08-12 17:20:04,861 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 17:20:04,865 - DEBUG - VRF ids for VN ctest-vn-46608786: {}
2025-08-12 17:20:04,865 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 17:20:04,870 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43
2025-08-12 17:20:04,880 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe
2025-08-12 17:20:04,952 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025
2025-08-12 17:20:04,963 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025
2025-08-12 17:20:04,972 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a
2025-08-12 17:20:04,978 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a
2025-08-12 17:20:04,984 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5004a877-c7bf-44d4-a52a-9e3fa0e60cee
2025-08-12 17:20:04,989 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 17:20:04,989 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025
2025-08-12 17:20:04,997 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a
2025-08-12 17:20:05,009 - INFO - Verified VN network id 12 for VN 03c6556b-8e46-48df-86d3-2bc5fb1c8025
2025-08-12 17:20:05,009 - INFO - Verifications in API Server for VN ctest-vn-68401306 passed
2025-08-12 17:20:05,009 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025
2025-08-12 17:20:05,018 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a
2025-08-12 17:20:05,024 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a
2025-08-12 17:20:05,030 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5004a877-c7bf-44d4-a52a-9e3fa0e60cee
2025-08-12 17:20:05,041 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15391595', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '271998747939326175', 'uuid-lslong': '9715156950489792549'}, 'enable': 'true', 'created': '2025-08-12T17:20:02', 'last-modified': '2025-08-12T17:20:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.289299'}
2025-08-12 17:20:05,046 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 17:20:05,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68401306 passed
2025-08-12 17:20:05,047 - DEBUG - ====Verifying policy data for ctest-vn-68401306 in API_Server ======
2025-08-12 17:20:05,047 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-12 17:20:05,053 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43
2025-08-12 17:20:05,063 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe
2025-08-12 17:20:05,134 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025
2025-08-12 17:20:05,145 - DEBUG - ==>Verifying data for policy with id: 525c1d27-c7a5-42bd-a310-a300c4852491, fqn: ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-policy-allow-all-16770318']
2025-08-12 17:20:05,146 - INFO - VN ctest-vn-68401306 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 17:20:05,146 - DEBUG - Verifying the vn in opserver
2025-08-12 17:20:05,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306 virtual network link through opserver 10.0.0.254
2025-08-12 17:20:05,146 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-12 17:20:05,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306?flat'}
2025-08-12 17:20:05,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306 is found in opserver
2025-08-12 17:20:05,166 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 17:20:05,171 - DEBUG - VRF ids for VN ctest-vn-68401306: {}
2025-08-12 17:20:05,219 - DEBUG - Services list from nova: [