2025-08-11 13:38:08,236 - INFO - Domain Default found not creating
2025-08-11 13:38:08,358 - INFO - Project ctest-TestBasicPolicy-65683294 not found, creating it
2025-08-11 13:38:08,781 - INFO - Created Project:ctest-TestBasicPolicy-65683294, ID : 28cafb7d-6f9e-454e-9e0d-c6add7deb6cb
2025-08-11 13:38:10,102 - INFO - ================================================================================
2025-08-11 13:38:10,103 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 13:38:10,103 - 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 13:38:10,356 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with
2025-08-11 13:38:10,356 - INFO - Initial checks done. Running the testcase now
2025-08-11 13:38:10,356 - INFO -
2025-08-11 13:38:10,868 - DEBUG - Response for create_network : {'network': {'id': '0e0f8327-a41a-4f36-8442-d6c61d872379', 'name': 'ctest-vn-33769911', 'tenant_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'project_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65683294', 'ctest-vn-33769911'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 13:38:11,015 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd175a0db-cc16-4a22-8fe0-daafe42084bb', 'name': '', 'tenant_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'network_id': '0e0f8327-a41a-4f36-8442-d6c61d872379', 'ip_version': 4, 'cidr': '62.199.54.192/26', 'allocation_pools': [{'start': '62.199.54.194', 'end': '62.199.54.254'}], 'gateway_ip': '62.199.54.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.199.54.194', 'tags': [], 'project_id': '28cafb7d6f9e454e9e0dc6add7deb6cb'}}
2025-08-11 13:38:11,031 - INFO - Created VN ctest-vn-33769911
2025-08-11 13:38:11,083 - DEBUG - VN ctest-vn-33769911 UUID is 0e0f8327-a41a-4f36-8442-d6c61d872379
2025-08-11 13:38:11,394 - DEBUG - Response for create_network : {'network': {'id': '081737c2-6514-4066-9d72-52e14f07e291', 'name': 'ctest-vn-92649622', 'tenant_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'project_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65683294', 'ctest-vn-92649622'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 13:38:11,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '5985ff39-2f50-49d9-8606-1e50b664e8f0', 'name': '', 'tenant_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'network_id': '081737c2-6514-4066-9d72-52e14f07e291', 'ip_version': 4, 'cidr': '124.218.216.64/26', 'allocation_pools': [{'start': '124.218.216.66', 'end': '124.218.216.126'}], 'gateway_ip': '124.218.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.218.216.66', 'tags': [], 'project_id': '28cafb7d6f9e454e9e0dc6add7deb6cb'}}
2025-08-11 13:38:11,607 - INFO - Created VN ctest-vn-92649622
2025-08-11 13:38:11,659 - DEBUG - VN ctest-vn-92649622 UUID is 081737c2-6514-4066-9d72-52e14f07e291
2025-08-11 13:38:11,811 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-33769911, 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-65683294:ctest-vn-92649622, 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 13:38:12,098 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e0f8327-a41a-4f36-8442-d6c61d872379', 'name': 'ctest-vn-33769911', 'tenant_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'project_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d175a0db-cc16-4a22-8fe0-daafe42084bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65683294', 'ctest-vn-33769911'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65683294', 'ctest-policy-allow-all-54340824']], 'subnet_ipam': [{'subnet_cidr': '62.199.54.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 13:38:12,322 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '081737c2-6514-4066-9d72-52e14f07e291', 'name': 'ctest-vn-92649622', 'tenant_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'project_id': '28cafb7d6f9e454e9e0dc6add7deb6cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5985ff39-2f50-49d9-8606-1e50b664e8f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65683294', 'ctest-vn-92649622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65683294', 'ctest-policy-allow-all-54340824']], 'subnet_ipam': [{'subnet_cidr': '124.218.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 13:38:12,479 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 13:38:12,770 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 13:38:12,797 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fef88cc7-f02d-47d8-987a-9214c09b2062
2025-08-11 13:38:12,810 - DEBUG - Requesting: http://10.0.0.50:8082/project/28cafb7d-6f9e-454e-9e0d-c6add7deb6cb
2025-08-11 13:38:12,882 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0e0f8327-a41a-4f36-8442-d6c61d872379
2025-08-11 13:38:12,893 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0e0f8327-a41a-4f36-8442-d6c61d872379
2025-08-11 13:38:12,903 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32a2d9d8-2561-4fdd-b14b-3d1af2a0effc
2025-08-11 13:38:12,909 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32a2d9d8-2561-4fdd-b14b-3d1af2a0effc
2025-08-11 13:38:12,915 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/66f8d0ff-8519-44e9-9d9b-78f33809e504
2025-08-11 13:38:12,920 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 13:38:12,920 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0e0f8327-a41a-4f36-8442-d6c61d872379
2025-08-11 13:38:12,928 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32a2d9d8-2561-4fdd-b14b-3d1af2a0effc
2025-08-11 13:38:12,940 - INFO - Verified VN network id 11 for VN 0e0f8327-a41a-4f36-8442-d6c61d872379
2025-08-11 13:38:12,940 - INFO - Verifications in API Server for VN ctest-vn-33769911 passed
2025-08-11 13:38:12,940 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0e0f8327-a41a-4f36-8442-d6c61d872379
2025-08-11 13:38:12,949 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32a2d9d8-2561-4fdd-b14b-3d1af2a0effc
2025-08-11 13:38:12,955 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/32a2d9d8-2561-4fdd-b14b-3d1af2a0effc
2025-08-11 13:38:12,961 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/66f8d0ff-8519-44e9-9d9b-78f33809e504
2025-08-11 13:38:12,971 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-33769911', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65683294', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1013172647461801782', 'uuid-lslong': '9530415907856655225'}, 'enable': 'true', 'created': '2025-08-11T13:38:10', 'last-modified': '2025-08-11T13:38:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.896731'}
2025-08-11 13:38:12,977 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 13:38:12,977 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33769911 passed
2025-08-11 13:38:12,977 - DEBUG - ====Verifying policy data for ctest-vn-33769911 in API_Server ======
2025-08-11 13:38:12,977 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 13:38:12,982 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fef88cc7-f02d-47d8-987a-9214c09b2062
2025-08-11 13:38:12,992 - DEBUG - Requesting: http://10.0.0.50:8082/project/28cafb7d-6f9e-454e-9e0d-c6add7deb6cb
2025-08-11 13:38:13,059 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0e0f8327-a41a-4f36-8442-d6c61d872379
2025-08-11 13:38:13,070 - DEBUG - ==>Verifying data for policy with id: 476b8d97-14c9-489a-8ff5-7ee0089fed2d, fqn: ['default-domain', 'ctest-TestBasicPolicy-65683294', 'ctest-policy-allow-all-54340824']
2025-08-11 13:38:13,070 - INFO - VN ctest-vn-33769911 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 13:38:13,070 - DEBUG - Verifying the vn in opserver
2025-08-11 13:38:13,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-33769911 virtual network link through opserver 10.0.0.50
2025-08-11 13:38:13,070 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 13:38:13,358 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 13:38:13,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-33769911', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-33769911?flat'}
2025-08-11 13:38:13,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-33769911 is found in opserver
2025-08-11 13:38:13,419 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 13:38:13,424 - DEBUG - VRF ids for VN ctest-vn-33769911: {}
2025-08-11 13:38:13,424 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 13:38:13,429 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fef88cc7-f02d-47d8-987a-9214c09b2062
2025-08-11 13:38:13,439 - DEBUG - Requesting: http://10.0.0.50:8082/project/28cafb7d-6f9e-454e-9e0d-c6add7deb6cb
2025-08-11 13:38:13,510 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/081737c2-6514-4066-9d72-52e14f07e291
2025-08-11 13:38:13,523 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/081737c2-6514-4066-9d72-52e14f07e291
2025-08-11 13:38:13,533 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a14a234-2149-4c7f-a74c-2cd607dfda9b
2025-08-11 13:38:13,539 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a14a234-2149-4c7f-a74c-2cd607dfda9b
2025-08-11 13:38:13,545 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/527ee629-9c05-43d2-a46c-90a8270c778b
2025-08-11 13:38:13,551 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 13:38:13,551 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/081737c2-6514-4066-9d72-52e14f07e291
2025-08-11 13:38:13,560 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a14a234-2149-4c7f-a74c-2cd607dfda9b
2025-08-11 13:38:13,572 - INFO - Verified VN network id 12 for VN 081737c2-6514-4066-9d72-52e14f07e291
2025-08-11 13:38:13,572 - INFO - Verifications in API Server for VN ctest-vn-92649622 passed
2025-08-11 13:38:13,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/081737c2-6514-4066-9d72-52e14f07e291
2025-08-11 13:38:13,580 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a14a234-2149-4c7f-a74c-2cd607dfda9b
2025-08-11 13:38:13,586 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a14a234-2149-4c7f-a74c-2cd607dfda9b
2025-08-11 13:38:13,592 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/527ee629-9c05-43d2-a46c-90a8270c778b
2025-08-11 13:38:13,603 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-92649622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65683294', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '582995984826777702', 'uuid-lslong': '11345221538946736785'}, 'enable': 'true', 'created': '2025-08-11T13:38:11', 'last-modified': '2025-08-11T13:38:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.304674'}
2025-08-11 13:38:13,609 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 13:38:13,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92649622 passed
2025-08-11 13:38:13,609 - DEBUG - ====Verifying policy data for ctest-vn-92649622 in API_Server ======
2025-08-11 13:38:13,609 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 13:38:13,614 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fef88cc7-f02d-47d8-987a-9214c09b2062
2025-08-11 13:38:13,624 - DEBUG - Requesting: http://10.0.0.50:8082/project/28cafb7d-6f9e-454e-9e0d-c6add7deb6cb
2025-08-11 13:38:13,693 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/081737c2-6514-4066-9d72-52e14f07e291
2025-08-11 13:38:13,702 - DEBUG - ==>Verifying data for policy with id: 476b8d97-14c9-489a-8ff5-7ee0089fed2d, fqn: ['default-domain', 'ctest-TestBasicPolicy-65683294', 'ctest-policy-allow-all-54340824']
2025-08-11 13:38:13,702 - INFO - VN ctest-vn-92649622 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 13:38:13,702 - DEBUG - Verifying the vn in opserver
2025-08-11 13:38:13,702 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-92649622 virtual network link through opserver 10.0.0.50
2025-08-11 13:38:13,703 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 13:38:13,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-92649622', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-92649622?flat'}
2025-08-11 13:38:13,712 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65683294:ctest-vn-92649622 is found in opserver
2025-08-11 13:38:13,721 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 13:38:13,726 - DEBUG - VRF ids for VN ctest-vn-92649622: {}
2025-08-11 13:38:13,776 - DEBUG - Services list from nova: [