2025-08-13 13:56:32,162 - INFO - Domain Default found not creating
2025-08-13 13:56:32,294 - INFO - Project ctest-TestBasicPolicy-12864948 not found, creating it
2025-08-13 13:56:32,746 - INFO - Created Project:ctest-TestBasicPolicy-12864948, ID : 5ac6a6fa-698f-4cd6-a27e-0aa20b0779b8
2025-08-13 13:56:34,317 - INFO - ================================================================================
2025-08-13 13:56:34,317 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-13 13:56:34,318 - 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-13 13:56:34,572 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-08-13 13:56:34,572 - INFO - Initial checks done. Running the testcase now
2025-08-13 13:56:34,572 - INFO -
2025-08-13 13:56:35,148 - DEBUG - Response for create_network : {'network': {'id': '1704a455-47e4-4495-bfee-04b1091234fb', 'name': 'ctest-vn-48812916', 'tenant_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'project_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12864948', 'ctest-vn-48812916'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 13:56:35,351 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d595892-59d1-448c-86aa-da145c63017e', 'name': '', 'tenant_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'network_id': '1704a455-47e4-4495-bfee-04b1091234fb', 'ip_version': 4, 'cidr': '75.145.123.64/26', 'allocation_pools': [{'start': '75.145.123.66', 'end': '75.145.123.126'}], 'gateway_ip': '75.145.123.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.145.123.66', 'tags': [], 'project_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8'}}
2025-08-13 13:56:35,367 - INFO - Created VN ctest-vn-48812916
2025-08-13 13:56:35,418 - DEBUG - VN ctest-vn-48812916 UUID is 1704a455-47e4-4495-bfee-04b1091234fb
2025-08-13 13:56:35,709 - DEBUG - Response for create_network : {'network': {'id': '69d6b7a3-2faa-4e19-863b-280091a17be4', 'name': 'ctest-vn-92430365', 'tenant_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'project_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12864948', 'ctest-vn-92430365'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 13:56:35,856 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6f3e558-c6bf-491d-8cbe-3f3776ebb5b1', 'name': '', 'tenant_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'network_id': '69d6b7a3-2faa-4e19-863b-280091a17be4', 'ip_version': 4, 'cidr': '218.157.104.128/26', 'allocation_pools': [{'start': '218.157.104.130', 'end': '218.157.104.190'}], 'gateway_ip': '218.157.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.157.104.130', 'tags': [], 'project_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8'}}
2025-08-13 13:56:35,874 - INFO - Created VN ctest-vn-92430365
2025-08-13 13:56:35,926 - DEBUG - VN ctest-vn-92430365 UUID is 69d6b7a3-2faa-4e19-863b-280091a17be4
2025-08-13 13:56:36,078 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-48812916, 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-12864948:ctest-vn-92430365, 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-13 13:56:36,375 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1704a455-47e4-4495-bfee-04b1091234fb', 'name': 'ctest-vn-48812916', 'tenant_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'project_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d595892-59d1-448c-86aa-da145c63017e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12864948', 'ctest-vn-48812916'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12864948', 'ctest-policy-allow-all-97971448']], 'subnet_ipam': [{'subnet_cidr': '75.145.123.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 13:56:36,619 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69d6b7a3-2faa-4e19-863b-280091a17be4', 'name': 'ctest-vn-92430365', 'tenant_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'project_id': '5ac6a6fa698f4cd6a27e0aa20b0779b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6f3e558-c6bf-491d-8cbe-3f3776ebb5b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12864948', 'ctest-vn-92430365'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12864948', 'ctest-policy-allow-all-97971448']], 'subnet_ipam': [{'subnet_cidr': '218.157.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 13:56:36,782 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-13 13:56:37,118 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-13 13:56:37,146 - DEBUG - Requesting: http://10.0.0.33:8082/domain/738767c0-abd5-4644-8089-665cf1bd6a42
2025-08-13 13:56:37,159 - DEBUG - Requesting: http://10.0.0.33:8082/project/5ac6a6fa-698f-4cd6-a27e-0aa20b0779b8
2025-08-13 13:56:37,232 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1704a455-47e4-4495-bfee-04b1091234fb
2025-08-13 13:56:37,243 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1704a455-47e4-4495-bfee-04b1091234fb
2025-08-13 13:56:37,252 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0c45e0a5-b7a9-4947-8684-e1cb98cfe98f
2025-08-13 13:56:37,259 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0c45e0a5-b7a9-4947-8684-e1cb98cfe98f
2025-08-13 13:56:37,266 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/42809fab-8b01-48e8-b0e4-148688eb5d42
2025-08-13 13:56:37,272 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 13:56:37,272 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1704a455-47e4-4495-bfee-04b1091234fb
2025-08-13 13:56:37,281 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0c45e0a5-b7a9-4947-8684-e1cb98cfe98f
2025-08-13 13:56:37,295 - INFO - Verified VN network id 12 for VN 1704a455-47e4-4495-bfee-04b1091234fb
2025-08-13 13:56:37,295 - INFO - Verifications in API Server for VN ctest-vn-48812916 passed
2025-08-13 13:56:37,295 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1704a455-47e4-4495-bfee-04b1091234fb
2025-08-13 13:56:37,305 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0c45e0a5-b7a9-4947-8684-e1cb98cfe98f
2025-08-13 13:56:37,312 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0c45e0a5-b7a9-4947-8684-e1cb98cfe98f
2025-08-13 13:56:37,319 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/42809fab-8b01-48e8-b0e4-148688eb5d42
2025-08-13 13:56:37,331 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-48812916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12864948', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1658631248964502677', 'uuid-lslong': '13829996664109282555'}, 'enable': 'true', 'created': '2025-08-13T13:56:35', 'last-modified': '2025-08-13T13:56:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980746'}
2025-08-13 13:56:37,338 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 13:56:37,338 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48812916 passed
2025-08-13 13:56:37,338 - DEBUG - ====Verifying policy data for ctest-vn-48812916 in API_Server ======
2025-08-13 13:56:37,338 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-13 13:56:37,343 - DEBUG - Requesting: http://10.0.0.33:8082/domain/738767c0-abd5-4644-8089-665cf1bd6a42
2025-08-13 13:56:37,354 - DEBUG - Requesting: http://10.0.0.33:8082/project/5ac6a6fa-698f-4cd6-a27e-0aa20b0779b8
2025-08-13 13:56:37,425 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1704a455-47e4-4495-bfee-04b1091234fb
2025-08-13 13:56:37,435 - DEBUG - ==>Verifying data for policy with id: 06ca8808-8215-46b2-928d-c943c986625e, fqn: ['default-domain', 'ctest-TestBasicPolicy-12864948', 'ctest-policy-allow-all-97971448']
2025-08-13 13:56:37,435 - INFO - VN ctest-vn-48812916 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 13:56:37,436 - DEBUG - Verifying the vn in opserver
2025-08-13 13:56:37,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-48812916 virtual network link through opserver 10.0.0.33
2025-08-13 13:56:37,436 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-13 13:56:37,769 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-13 13:56:37,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-48812916', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-48812916?flat'}
2025-08-13 13:56:37,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-48812916 is found in opserver
2025-08-13 13:56:37,833 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 13:56:37,838 - DEBUG - VRF ids for VN ctest-vn-48812916: {}
2025-08-13 13:56:37,838 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-13 13:56:37,843 - DEBUG - Requesting: http://10.0.0.33:8082/domain/738767c0-abd5-4644-8089-665cf1bd6a42
2025-08-13 13:56:37,855 - DEBUG - Requesting: http://10.0.0.33:8082/project/5ac6a6fa-698f-4cd6-a27e-0aa20b0779b8
2025-08-13 13:56:37,924 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69d6b7a3-2faa-4e19-863b-280091a17be4
2025-08-13 13:56:37,936 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69d6b7a3-2faa-4e19-863b-280091a17be4
2025-08-13 13:56:37,945 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ece6e02f-dff3-489d-a2a9-5a7c212ef25e
2025-08-13 13:56:37,952 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ece6e02f-dff3-489d-a2a9-5a7c212ef25e
2025-08-13 13:56:37,959 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/092d1306-57e7-444b-acbf-5dbce2c4e538
2025-08-13 13:56:37,965 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 13:56:37,965 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69d6b7a3-2faa-4e19-863b-280091a17be4
2025-08-13 13:56:37,974 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ece6e02f-dff3-489d-a2a9-5a7c212ef25e
2025-08-13 13:56:37,987 - INFO - Verified VN network id 13 for VN 69d6b7a3-2faa-4e19-863b-280091a17be4
2025-08-13 13:56:37,987 - INFO - Verifications in API Server for VN ctest-vn-92430365 passed
2025-08-13 13:56:37,987 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69d6b7a3-2faa-4e19-863b-280091a17be4
2025-08-13 13:56:37,997 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ece6e02f-dff3-489d-a2a9-5a7c212ef25e
2025-08-13 13:56:38,003 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ece6e02f-dff3-489d-a2a9-5a7c212ef25e
2025-08-13 13:56:38,010 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/092d1306-57e7-444b-acbf-5dbce2c4e538
2025-08-13 13:56:38,022 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-92430365', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12864948', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7626484930505756185', 'uuid-lslong': '9672368607616662500'}, 'enable': 'true', 'created': '2025-08-13T13:56:35', 'last-modified': '2025-08-13T13:56:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.434106'}
2025-08-13 13:56:38,028 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 13:56:38,028 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92430365 passed
2025-08-13 13:56:38,028 - DEBUG - ====Verifying policy data for ctest-vn-92430365 in API_Server ======
2025-08-13 13:56:38,028 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-13 13:56:38,033 - DEBUG - Requesting: http://10.0.0.33:8082/domain/738767c0-abd5-4644-8089-665cf1bd6a42
2025-08-13 13:56:38,045 - DEBUG - Requesting: http://10.0.0.33:8082/project/5ac6a6fa-698f-4cd6-a27e-0aa20b0779b8
2025-08-13 13:56:38,117 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69d6b7a3-2faa-4e19-863b-280091a17be4
2025-08-13 13:56:38,127 - DEBUG - ==>Verifying data for policy with id: 06ca8808-8215-46b2-928d-c943c986625e, fqn: ['default-domain', 'ctest-TestBasicPolicy-12864948', 'ctest-policy-allow-all-97971448']
2025-08-13 13:56:38,127 - INFO - VN ctest-vn-92430365 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 13:56:38,127 - DEBUG - Verifying the vn in opserver
2025-08-13 13:56:38,127 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-92430365 virtual network link through opserver 10.0.0.33
2025-08-13 13:56:38,128 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-13 13:56:38,138 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-92430365', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-92430365?flat'}
2025-08-13 13:56:38,138 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12864948:ctest-vn-92430365 is found in opserver
2025-08-13 13:56:38,148 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 13:56:38,154 - DEBUG - VRF ids for VN ctest-vn-92430365: {}
2025-08-13 13:56:38,206 - DEBUG - Services list from nova: [