2025-08-11 10:51:34,524 - INFO - Domain Default found not creating
2025-08-11 10:51:34,642 - INFO - Project ctest-TestBasicPolicy-40091876 not found, creating it
2025-08-11 10:51:35,070 - INFO - Created Project:ctest-TestBasicPolicy-40091876, ID : b12252e9-3d88-431e-94a0-f4b387344ef8
2025-08-11 10:51:36,468 - INFO - ================================================================================
2025-08-11 10:51:36,468 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 10:51:36,468 - 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-11 10:51:36,730 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-08-11 10:51:36,730 - INFO - Initial checks done. Running the testcase now
2025-08-11 10:51:36,731 - INFO -
2025-08-11 10:51:37,276 - DEBUG - Response for create_network : {'network': {'id': '01b50760-3663-4a02-bb9d-38c58d6ca7e5', 'name': 'ctest-vn-30204606', 'tenant_id': 'b12252e93d88431e94a0f4b387344ef8', 'project_id': 'b12252e93d88431e94a0f4b387344ef8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40091876', 'ctest-vn-30204606'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 10:51:37,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '24db4007-f464-4dd8-a44d-c5eacb409f7a', 'name': '', 'tenant_id': 'b12252e93d88431e94a0f4b387344ef8', 'network_id': '01b50760-3663-4a02-bb9d-38c58d6ca7e5', 'ip_version': 4, 'cidr': '141.69.132.64/26', 'allocation_pools': [{'start': '141.69.132.66', 'end': '141.69.132.126'}], 'gateway_ip': '141.69.132.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.69.132.66', 'tags': [], 'project_id': 'b12252e93d88431e94a0f4b387344ef8'}}
2025-08-11 10:51:37,468 - INFO - Created VN ctest-vn-30204606
2025-08-11 10:51:37,517 - DEBUG - VN ctest-vn-30204606 UUID is 01b50760-3663-4a02-bb9d-38c58d6ca7e5
2025-08-11 10:51:37,814 - DEBUG - Response for create_network : {'network': {'id': '0df90c08-2dbf-469e-84b1-34a31ae9017b', 'name': 'ctest-vn-00833664', 'tenant_id': 'b12252e93d88431e94a0f4b387344ef8', 'project_id': 'b12252e93d88431e94a0f4b387344ef8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40091876', 'ctest-vn-00833664'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 10:51:38,005 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfccef3a-9783-4706-95a0-920b6fa76a61', 'name': '', 'tenant_id': 'b12252e93d88431e94a0f4b387344ef8', 'network_id': '0df90c08-2dbf-469e-84b1-34a31ae9017b', 'ip_version': 4, 'cidr': '80.122.77.192/26', 'allocation_pools': [{'start': '80.122.77.194', 'end': '80.122.77.254'}], 'gateway_ip': '80.122.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.122.77.194', 'tags': [], 'project_id': 'b12252e93d88431e94a0f4b387344ef8'}}
2025-08-11 10:51:38,021 - INFO - Created VN ctest-vn-00833664
2025-08-11 10:51:38,077 - DEBUG - VN ctest-vn-00833664 UUID is 0df90c08-2dbf-469e-84b1-34a31ae9017b
2025-08-11 10:51:38,217 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-30204606, 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-40091876:ctest-vn-00833664, 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-11 10:51:38,500 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01b50760-3663-4a02-bb9d-38c58d6ca7e5', 'name': 'ctest-vn-30204606', 'tenant_id': 'b12252e93d88431e94a0f4b387344ef8', 'project_id': 'b12252e93d88431e94a0f4b387344ef8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['24db4007-f464-4dd8-a44d-c5eacb409f7a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40091876', 'ctest-vn-30204606'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40091876', 'ctest-policy-allow-all-42530356']], 'subnet_ipam': [{'subnet_cidr': '141.69.132.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 10:51:38,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0df90c08-2dbf-469e-84b1-34a31ae9017b', 'name': 'ctest-vn-00833664', 'tenant_id': 'b12252e93d88431e94a0f4b387344ef8', 'project_id': 'b12252e93d88431e94a0f4b387344ef8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfccef3a-9783-4706-95a0-920b6fa76a61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40091876', 'ctest-vn-00833664'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40091876', 'ctest-policy-allow-all-42530356']], 'subnet_ipam': [{'subnet_cidr': '80.122.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 10:51:38,873 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 10:51:39,163 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 10:51:39,187 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2b35dbf8-2e90-4696-a23c-75b3c0f12a8c
2025-08-11 10:51:39,199 - DEBUG - Requesting: http://10.0.0.249:8082/project/b12252e9-3d88-431e-94a0-f4b387344ef8
2025-08-11 10:51:39,271 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/01b50760-3663-4a02-bb9d-38c58d6ca7e5
2025-08-11 10:51:39,281 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/01b50760-3663-4a02-bb9d-38c58d6ca7e5
2025-08-11 10:51:39,289 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8acfe91e-4d3b-4ae3-a162-4ba33d95297a
2025-08-11 10:51:39,295 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8acfe91e-4d3b-4ae3-a162-4ba33d95297a
2025-08-11 10:51:39,301 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e57207b7-5e55-4b09-aedb-eb045f8309c7
2025-08-11 10:51:39,306 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 10:51:39,306 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/01b50760-3663-4a02-bb9d-38c58d6ca7e5
2025-08-11 10:51:39,314 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8acfe91e-4d3b-4ae3-a162-4ba33d95297a
2025-08-11 10:51:39,326 - INFO - Verified VN network id 12 for VN 01b50760-3663-4a02-bb9d-38c58d6ca7e5
2025-08-11 10:51:39,326 - INFO - Verifications in API Server for VN ctest-vn-30204606 passed
2025-08-11 10:51:39,326 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/01b50760-3663-4a02-bb9d-38c58d6ca7e5
2025-08-11 10:51:39,334 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8acfe91e-4d3b-4ae3-a162-4ba33d95297a
2025-08-11 10:51:39,340 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8acfe91e-4d3b-4ae3-a162-4ba33d95297a
2025-08-11 10:51:39,346 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e57207b7-5e55-4b09-aedb-eb045f8309c7
2025-08-11 10:51:39,356 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-30204606', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40091876', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '123012674633288194', 'uuid-lslong': '13519024077568518117'}, 'enable': 'true', 'created': '2025-08-11T10:51:37', 'last-modified': '2025-08-11T10:51:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.879601'}
2025-08-11 10:51:39,361 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 10:51:39,362 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30204606 passed
2025-08-11 10:51:39,362 - DEBUG - ====Verifying policy data for ctest-vn-30204606 in API_Server ======
2025-08-11 10:51:39,362 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 10:51:39,366 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2b35dbf8-2e90-4696-a23c-75b3c0f12a8c
2025-08-11 10:51:39,376 - DEBUG - Requesting: http://10.0.0.249:8082/project/b12252e9-3d88-431e-94a0-f4b387344ef8
2025-08-11 10:51:39,444 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/01b50760-3663-4a02-bb9d-38c58d6ca7e5
2025-08-11 10:51:39,452 - DEBUG - ==>Verifying data for policy with id: 54cc4d78-d6c8-487e-8def-14ba18d6a33e, fqn: ['default-domain', 'ctest-TestBasicPolicy-40091876', 'ctest-policy-allow-all-42530356']
2025-08-11 10:51:39,452 - INFO - VN ctest-vn-30204606 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 10:51:39,452 - DEBUG - Verifying the vn in opserver
2025-08-11 10:51:39,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-30204606 virtual network link through opserver 10.0.0.249
2025-08-11 10:51:39,452 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-11 10:51:39,738 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-11 10:51:39,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-30204606', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-30204606?flat'}
2025-08-11 10:51:39,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-30204606 is found in opserver
2025-08-11 10:51:39,794 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 10:51:39,798 - DEBUG - VRF ids for VN ctest-vn-30204606: {}
2025-08-11 10:51:39,798 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 10:51:39,803 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2b35dbf8-2e90-4696-a23c-75b3c0f12a8c
2025-08-11 10:51:39,813 - DEBUG - Requesting: http://10.0.0.249:8082/project/b12252e9-3d88-431e-94a0-f4b387344ef8
2025-08-11 10:51:39,884 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0df90c08-2dbf-469e-84b1-34a31ae9017b
2025-08-11 10:51:39,894 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0df90c08-2dbf-469e-84b1-34a31ae9017b
2025-08-11 10:51:39,902 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a2d773db-8aa7-4e58-b0f3-f07c1cd7cc75
2025-08-11 10:51:39,908 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a2d773db-8aa7-4e58-b0f3-f07c1cd7cc75
2025-08-11 10:51:39,913 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/bd606590-20dc-4878-9324-0752d133a4b3
2025-08-11 10:51:39,918 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 10:51:39,918 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0df90c08-2dbf-469e-84b1-34a31ae9017b
2025-08-11 10:51:39,926 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a2d773db-8aa7-4e58-b0f3-f07c1cd7cc75
2025-08-11 10:51:39,939 - INFO - Verified VN network id 13 for VN 0df90c08-2dbf-469e-84b1-34a31ae9017b
2025-08-11 10:51:39,939 - INFO - Verifications in API Server for VN ctest-vn-00833664 passed
2025-08-11 10:51:39,939 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0df90c08-2dbf-469e-84b1-34a31ae9017b
2025-08-11 10:51:39,948 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a2d773db-8aa7-4e58-b0f3-f07c1cd7cc75
2025-08-11 10:51:39,953 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a2d773db-8aa7-4e58-b0f3-f07c1cd7cc75
2025-08-11 10:51:39,959 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/bd606590-20dc-4878-9324-0752d133a4b3
2025-08-11 10:51:39,969 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-00833664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40091876', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1006849220960798366', 'uuid-lslong': '9561481359020065147'}, 'enable': 'true', 'created': '2025-08-11T10:51:37', 'last-modified': '2025-08-11T10:51:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.282594'}
2025-08-11 10:51:39,974 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 10:51:39,974 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00833664 passed
2025-08-11 10:51:39,974 - DEBUG - ====Verifying policy data for ctest-vn-00833664 in API_Server ======
2025-08-11 10:51:39,974 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 10:51:39,978 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2b35dbf8-2e90-4696-a23c-75b3c0f12a8c
2025-08-11 10:51:39,988 - DEBUG - Requesting: http://10.0.0.249:8082/project/b12252e9-3d88-431e-94a0-f4b387344ef8
2025-08-11 10:51:40,057 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0df90c08-2dbf-469e-84b1-34a31ae9017b
2025-08-11 10:51:40,065 - DEBUG - ==>Verifying data for policy with id: 54cc4d78-d6c8-487e-8def-14ba18d6a33e, fqn: ['default-domain', 'ctest-TestBasicPolicy-40091876', 'ctest-policy-allow-all-42530356']
2025-08-11 10:51:40,065 - INFO - VN ctest-vn-00833664 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 10:51:40,065 - DEBUG - Verifying the vn in opserver
2025-08-11 10:51:40,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-00833664 virtual network link through opserver 10.0.0.249
2025-08-11 10:51:40,065 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-11 10:51:40,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-00833664', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-00833664?flat'}
2025-08-11 10:51:40,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40091876:ctest-vn-00833664 is found in opserver
2025-08-11 10:51:40,083 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 10:51:40,088 - DEBUG - VRF ids for VN ctest-vn-00833664: {}
2025-08-11 10:51:40,135 - DEBUG - Services list from nova: [