2025-09-11 12:05:25,942 - INFO - Domain Default found not creating
2025-09-11 12:05:26,082 - INFO - Project ctest-TestBasicPolicy-26750572 not found, creating it
2025-09-11 12:05:26,525 - INFO - Created Project:ctest-TestBasicPolicy-26750572, ID : 6955806e-dcb0-4d55-9bd4-19b93fa3f9a0
2025-09-11 12:05:27,905 - INFO - ================================================================================
2025-09-11 12:05:27,905 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 12:05:27,905 - 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-09-11 12:05:28,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-09-11 12:05:28,165 - INFO - Initial checks done. Running the testcase now
2025-09-11 12:05:28,165 - INFO -
2025-09-11 12:05:28,690 - DEBUG - Response for create_network : {'network': {'id': 'd234b59a-5fdb-47fe-b629-69d935bc3f08', 'name': 'ctest-vn-90683007', 'tenant_id': '6955806edcb04d559bd419b93fa3f9a0', 'project_id': '6955806edcb04d559bd419b93fa3f9a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26750572', 'ctest-vn-90683007'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 12:05:28,872 - DEBUG - Response for create_subnet : {'subnet': {'id': '0af44bcc-5072-4bb0-8b8e-ab3a9fd27a74', 'name': '', 'tenant_id': '6955806edcb04d559bd419b93fa3f9a0', 'network_id': 'd234b59a-5fdb-47fe-b629-69d935bc3f08', 'ip_version': 4, 'cidr': '50.40.12.128/26', 'allocation_pools': [{'start': '50.40.12.130', 'end': '50.40.12.190'}], 'gateway_ip': '50.40.12.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.40.12.130', 'tags': [], 'project_id': '6955806edcb04d559bd419b93fa3f9a0'}}
2025-09-11 12:05:28,889 - INFO - Created VN ctest-vn-90683007
2025-09-11 12:05:28,939 - DEBUG - VN ctest-vn-90683007 UUID is d234b59a-5fdb-47fe-b629-69d935bc3f08
2025-09-11 12:05:29,254 - DEBUG - Response for create_network : {'network': {'id': '017c56b0-4d0a-4c0e-8ec3-6072cd192748', 'name': 'ctest-vn-49165099', 'tenant_id': '6955806edcb04d559bd419b93fa3f9a0', 'project_id': '6955806edcb04d559bd419b93fa3f9a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26750572', 'ctest-vn-49165099'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 12:05:29,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fe32dec-47e5-48c5-8f2f-71a9bd5be8a5', 'name': '', 'tenant_id': '6955806edcb04d559bd419b93fa3f9a0', 'network_id': '017c56b0-4d0a-4c0e-8ec3-6072cd192748', 'ip_version': 4, 'cidr': '55.221.42.192/26', 'allocation_pools': [{'start': '55.221.42.194', 'end': '55.221.42.254'}], 'gateway_ip': '55.221.42.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.221.42.194', 'tags': [], 'project_id': '6955806edcb04d559bd419b93fa3f9a0'}}
2025-09-11 12:05:29,415 - INFO - Created VN ctest-vn-49165099
2025-09-11 12:05:29,467 - DEBUG - VN ctest-vn-49165099 UUID is 017c56b0-4d0a-4c0e-8ec3-6072cd192748
2025-09-11 12:05:29,619 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-90683007, 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-26750572:ctest-vn-49165099, 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-09-11 12:05:29,918 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd234b59a-5fdb-47fe-b629-69d935bc3f08', 'name': 'ctest-vn-90683007', 'tenant_id': '6955806edcb04d559bd419b93fa3f9a0', 'project_id': '6955806edcb04d559bd419b93fa3f9a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0af44bcc-5072-4bb0-8b8e-ab3a9fd27a74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26750572', 'ctest-vn-90683007'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26750572', 'ctest-policy-allow-all-37389216']], 'subnet_ipam': [{'subnet_cidr': '50.40.12.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 12:05:30,183 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '017c56b0-4d0a-4c0e-8ec3-6072cd192748', 'name': 'ctest-vn-49165099', 'tenant_id': '6955806edcb04d559bd419b93fa3f9a0', 'project_id': '6955806edcb04d559bd419b93fa3f9a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fe32dec-47e5-48c5-8f2f-71a9bd5be8a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26750572', 'ctest-vn-49165099'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26750572', 'ctest-policy-allow-all-37389216']], 'subnet_ipam': [{'subnet_cidr': '55.221.42.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 12:05:30,327 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 12:05:30,622 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 12:05:30,648 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4fb5838d-32cc-41f1-a228-fe62c48cd237
2025-09-11 12:05:30,659 - DEBUG - Requesting: http://10.0.0.22:8082/project/6955806e-dcb0-4d55-9bd4-19b93fa3f9a0
2025-09-11 12:05:30,728 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d234b59a-5fdb-47fe-b629-69d935bc3f08
2025-09-11 12:05:30,738 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d234b59a-5fdb-47fe-b629-69d935bc3f08
2025-09-11 12:05:30,746 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/02bd34d6-1fec-41c6-a03a-28137547bec6
2025-09-11 12:05:30,752 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/02bd34d6-1fec-41c6-a03a-28137547bec6
2025-09-11 12:05:30,758 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fa3e0cb5-5eb1-4a1e-adbe-bf9c74940420
2025-09-11 12:05:30,764 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 12:05:30,764 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d234b59a-5fdb-47fe-b629-69d935bc3f08
2025-09-11 12:05:30,771 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/02bd34d6-1fec-41c6-a03a-28137547bec6
2025-09-11 12:05:30,783 - INFO - Verified VN network id 12 for VN d234b59a-5fdb-47fe-b629-69d935bc3f08
2025-09-11 12:05:30,783 - INFO - Verifications in API Server for VN ctest-vn-90683007 passed
2025-09-11 12:05:30,783 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d234b59a-5fdb-47fe-b629-69d935bc3f08
2025-09-11 12:05:30,793 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/02bd34d6-1fec-41c6-a03a-28137547bec6
2025-09-11 12:05:30,799 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/02bd34d6-1fec-41c6-a03a-28137547bec6
2025-09-11 12:05:30,805 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fa3e0cb5-5eb1-4a1e-adbe-bf9c74940420
2025-09-11 12:05:30,816 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-90683007', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26750572', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15146931121391618046', 'uuid-lslong': '13126138970578370312'}, 'enable': 'true', 'created': '2025-09-11T12:05:28', 'last-modified': '2025-09-11T12:05:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918480'}
2025-09-11 12:05:30,822 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 12:05:30,822 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90683007 passed
2025-09-11 12:05:30,823 - DEBUG - ====Verifying policy data for ctest-vn-90683007 in API_Server ======
2025-09-11 12:05:30,823 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 12:05:30,828 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4fb5838d-32cc-41f1-a228-fe62c48cd237
2025-09-11 12:05:30,840 - DEBUG - Requesting: http://10.0.0.22:8082/project/6955806e-dcb0-4d55-9bd4-19b93fa3f9a0
2025-09-11 12:05:30,908 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d234b59a-5fdb-47fe-b629-69d935bc3f08
2025-09-11 12:05:30,916 - DEBUG - ==>Verifying data for policy with id: 2cad4237-f8a2-4834-bf34-4ad38c369544, fqn: ['default-domain', 'ctest-TestBasicPolicy-26750572', 'ctest-policy-allow-all-37389216']
2025-09-11 12:05:30,917 - INFO - VN ctest-vn-90683007 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 12:05:30,917 - DEBUG - Verifying the vn in opserver
2025-09-11 12:05:30,917 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-90683007 virtual network link through opserver 10.0.0.22
2025-09-11 12:05:30,917 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 12:05:31,214 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 12:05:31,266 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-90683007', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-90683007?flat'}
2025-09-11 12:05:31,266 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-90683007 is found in opserver
2025-09-11 12:05:31,274 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 12:05:31,278 - DEBUG - VRF ids for VN ctest-vn-90683007: {}
2025-09-11 12:05:31,279 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 12:05:31,283 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4fb5838d-32cc-41f1-a228-fe62c48cd237
2025-09-11 12:05:31,293 - DEBUG - Requesting: http://10.0.0.22:8082/project/6955806e-dcb0-4d55-9bd4-19b93fa3f9a0
2025-09-11 12:05:31,362 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/017c56b0-4d0a-4c0e-8ec3-6072cd192748
2025-09-11 12:05:31,373 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/017c56b0-4d0a-4c0e-8ec3-6072cd192748
2025-09-11 12:05:31,381 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/15621c10-129d-40f0-8d58-47fbd1db2d05
2025-09-11 12:05:31,387 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/15621c10-129d-40f0-8d58-47fbd1db2d05
2025-09-11 12:05:31,393 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a41a3836-7f7d-43b3-9270-b3579fb5a88a
2025-09-11 12:05:31,399 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 12:05:31,399 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/017c56b0-4d0a-4c0e-8ec3-6072cd192748
2025-09-11 12:05:31,407 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/15621c10-129d-40f0-8d58-47fbd1db2d05
2025-09-11 12:05:31,419 - INFO - Verified VN network id 13 for VN 017c56b0-4d0a-4c0e-8ec3-6072cd192748
2025-09-11 12:05:31,419 - INFO - Verifications in API Server for VN ctest-vn-49165099 passed
2025-09-11 12:05:31,419 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/017c56b0-4d0a-4c0e-8ec3-6072cd192748
2025-09-11 12:05:31,427 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/15621c10-129d-40f0-8d58-47fbd1db2d05
2025-09-11 12:05:31,433 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/15621c10-129d-40f0-8d58-47fbd1db2d05
2025-09-11 12:05:31,439 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a41a3836-7f7d-43b3-9270-b3579fb5a88a
2025-09-11 12:05:31,451 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-49165099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26750572', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '107055806356802574', 'uuid-lslong': '10287172020027860808'}, 'enable': 'true', 'created': '2025-09-11T12:05:29', 'last-modified': '2025-09-11T12:05:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.331958'}
2025-09-11 12:05:31,457 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 12:05:31,459 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49165099 passed
2025-09-11 12:05:31,459 - DEBUG - ====Verifying policy data for ctest-vn-49165099 in API_Server ======
2025-09-11 12:05:31,459 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 12:05:31,465 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4fb5838d-32cc-41f1-a228-fe62c48cd237
2025-09-11 12:05:31,478 - DEBUG - Requesting: http://10.0.0.22:8082/project/6955806e-dcb0-4d55-9bd4-19b93fa3f9a0
2025-09-11 12:05:31,548 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/017c56b0-4d0a-4c0e-8ec3-6072cd192748
2025-09-11 12:05:31,557 - DEBUG - ==>Verifying data for policy with id: 2cad4237-f8a2-4834-bf34-4ad38c369544, fqn: ['default-domain', 'ctest-TestBasicPolicy-26750572', 'ctest-policy-allow-all-37389216']
2025-09-11 12:05:31,557 - INFO - VN ctest-vn-49165099 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 12:05:31,557 - DEBUG - Verifying the vn in opserver
2025-09-11 12:05:31,557 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-49165099 virtual network link through opserver 10.0.0.22
2025-09-11 12:05:31,557 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 12:05:31,565 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-49165099', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-49165099?flat'}
2025-09-11 12:05:31,565 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26750572:ctest-vn-49165099 is found in opserver
2025-09-11 12:05:31,574 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 12:05:31,578 - DEBUG - VRF ids for VN ctest-vn-49165099: {}
2025-09-11 12:05:31,638 - DEBUG - Services list from nova: [