2025-09-22 15:48:08,808 - INFO - Domain Default found not creating
2025-09-22 15:48:08,968 - INFO - Project ctest-TestBasicPolicy-46533384 not found, creating it
2025-09-22 15:48:09,439 - INFO - Created Project:ctest-TestBasicPolicy-46533384, ID : b1a0205f-ca38-4d42-9b6b-60d1f2eb91b2
2025-09-22 15:48:10,970 - INFO - ================================================================================
2025-09-22 15:48:10,970 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-22 15:48:10,970 - 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-22 15:48:11,227 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-09-22 15:48:11,227 - INFO - Initial checks done. Running the testcase now
2025-09-22 15:48:11,227 - INFO -
2025-09-22 15:48:12,142 - DEBUG - Response for create_network : {'network': {'id': 'ac31cef5-c562-4784-8be4-1ceecab0502a', 'name': 'ctest-vn-98898350', 'tenant_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'project_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46533384', 'ctest-vn-98898350'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 15:48:12,337 - DEBUG - Response for create_subnet : {'subnet': {'id': '893d91cc-0a57-454e-bc4f-13c4cdfcdb11', 'name': '', 'tenant_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'network_id': 'ac31cef5-c562-4784-8be4-1ceecab0502a', 'ip_version': 4, 'cidr': '90.90.121.64/26', 'allocation_pools': [{'start': '90.90.121.66', 'end': '90.90.121.126'}], 'gateway_ip': '90.90.121.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.90.121.66', 'tags': [], 'project_id': 'b1a0205fca384d429b6b60d1f2eb91b2'}}
2025-09-22 15:48:12,356 - INFO - Created VN ctest-vn-98898350
2025-09-22 15:48:12,409 - DEBUG - VN ctest-vn-98898350 UUID is ac31cef5-c562-4784-8be4-1ceecab0502a
2025-09-22 15:48:12,714 - DEBUG - Response for create_network : {'network': {'id': '6c8caa0f-e510-4866-a6ad-9d20f80c69ea', 'name': 'ctest-vn-05903233', 'tenant_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'project_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46533384', 'ctest-vn-05903233'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 15:48:12,871 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f6c1ce5-4d0b-483b-950f-4601c6ddef85', 'name': '', 'tenant_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'network_id': '6c8caa0f-e510-4866-a6ad-9d20f80c69ea', 'ip_version': 4, 'cidr': '175.111.103.192/26', 'allocation_pools': [{'start': '175.111.103.194', 'end': '175.111.103.254'}], 'gateway_ip': '175.111.103.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.111.103.194', 'tags': [], 'project_id': 'b1a0205fca384d429b6b60d1f2eb91b2'}}
2025-09-22 15:48:12,890 - INFO - Created VN ctest-vn-05903233
2025-09-22 15:48:12,945 - DEBUG - VN ctest-vn-05903233 UUID is 6c8caa0f-e510-4866-a6ad-9d20f80c69ea
2025-09-22 15:48:13,067 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-98898350, 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-46533384:ctest-vn-05903233, 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-22 15:48:13,398 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac31cef5-c562-4784-8be4-1ceecab0502a', 'name': 'ctest-vn-98898350', 'tenant_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'project_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['893d91cc-0a57-454e-bc4f-13c4cdfcdb11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46533384', 'ctest-vn-98898350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46533384', 'ctest-policy-allow-all-51564842']], 'subnet_ipam': [{'subnet_cidr': '90.90.121.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 15:48:13,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c8caa0f-e510-4866-a6ad-9d20f80c69ea', 'name': 'ctest-vn-05903233', 'tenant_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'project_id': 'b1a0205fca384d429b6b60d1f2eb91b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f6c1ce5-4d0b-483b-950f-4601c6ddef85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46533384', 'ctest-vn-05903233'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46533384', 'ctest-policy-allow-all-51564842']], 'subnet_ipam': [{'subnet_cidr': '175.111.103.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 15:48:13,845 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-22 15:48:14,145 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-22 15:48:14,176 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5be2a09d-55a1-4e10-91f1-abe4458ff22c
2025-09-22 15:48:14,189 - DEBUG - Requesting: http://10.0.0.254:8082/project/b1a0205f-ca38-4d42-9b6b-60d1f2eb91b2
2025-09-22 15:48:14,275 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac31cef5-c562-4784-8be4-1ceecab0502a
2025-09-22 15:48:14,287 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac31cef5-c562-4784-8be4-1ceecab0502a
2025-09-22 15:48:14,297 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbb4adac-9a35-492e-9e17-424a8e3a5070
2025-09-22 15:48:14,305 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbb4adac-9a35-492e-9e17-424a8e3a5070
2025-09-22 15:48:14,314 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d0618aa5-9c06-43a2-9783-268addc6baf6
2025-09-22 15:48:14,323 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 15:48:14,323 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac31cef5-c562-4784-8be4-1ceecab0502a
2025-09-22 15:48:14,332 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbb4adac-9a35-492e-9e17-424a8e3a5070
2025-09-22 15:48:14,350 - INFO - Verified VN network id 11 for VN ac31cef5-c562-4784-8be4-1ceecab0502a
2025-09-22 15:48:14,350 - INFO - Verifications in API Server for VN ctest-vn-98898350 passed
2025-09-22 15:48:14,350 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac31cef5-c562-4784-8be4-1ceecab0502a
2025-09-22 15:48:14,360 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbb4adac-9a35-492e-9e17-424a8e3a5070
2025-09-22 15:48:14,372 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fbb4adac-9a35-492e-9e17-424a8e3a5070
2025-09-22 15:48:14,380 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d0618aa5-9c06-43a2-9783-268addc6baf6
2025-09-22 15:48:14,390 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-98898350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46533384', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12407926003356288900', 'uuid-lslong': '10080213677890359338'}, 'enable': 'true', 'created': '2025-09-22T15:48:12', 'last-modified': '2025-09-22T15:48:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031362'}
2025-09-22 15:48:14,396 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 15:48:14,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98898350 passed
2025-09-22 15:48:14,397 - DEBUG - ====Verifying policy data for ctest-vn-98898350 in API_Server ======
2025-09-22 15:48:14,397 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-22 15:48:14,403 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5be2a09d-55a1-4e10-91f1-abe4458ff22c
2025-09-22 15:48:14,413 - DEBUG - Requesting: http://10.0.0.254:8082/project/b1a0205f-ca38-4d42-9b6b-60d1f2eb91b2
2025-09-22 15:48:14,493 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac31cef5-c562-4784-8be4-1ceecab0502a
2025-09-22 15:48:14,503 - DEBUG - ==>Verifying data for policy with id: 4d7a8489-41c5-49b8-90c3-8b2dce9eb379, fqn: ['default-domain', 'ctest-TestBasicPolicy-46533384', 'ctest-policy-allow-all-51564842']
2025-09-22 15:48:14,503 - INFO - VN ctest-vn-98898350 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 15:48:14,503 - DEBUG - Verifying the vn in opserver
2025-09-22 15:48:14,503 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-98898350 virtual network link through opserver 10.0.0.254
2025-09-22 15:48:14,504 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-22 15:48:14,798 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-22 15:48:14,852 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-98898350', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-98898350?flat'}
2025-09-22 15:48:14,852 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-98898350 is found in opserver
2025-09-22 15:48:14,862 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 15:48:14,869 - DEBUG - VRF ids for VN ctest-vn-98898350: {}
2025-09-22 15:48:14,869 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-22 15:48:14,875 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5be2a09d-55a1-4e10-91f1-abe4458ff22c
2025-09-22 15:48:14,885 - DEBUG - Requesting: http://10.0.0.254:8082/project/b1a0205f-ca38-4d42-9b6b-60d1f2eb91b2
2025-09-22 15:48:14,957 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c8caa0f-e510-4866-a6ad-9d20f80c69ea
2025-09-22 15:48:14,969 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c8caa0f-e510-4866-a6ad-9d20f80c69ea
2025-09-22 15:48:14,977 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ee752bae-ab76-4562-a90d-ada250d8bd05
2025-09-22 15:48:14,985 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ee752bae-ab76-4562-a90d-ada250d8bd05
2025-09-22 15:48:14,993 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/05c177d9-38c1-461e-a48e-0298d36d4c5f
2025-09-22 15:48:15,000 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 15:48:15,001 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c8caa0f-e510-4866-a6ad-9d20f80c69ea
2025-09-22 15:48:15,010 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ee752bae-ab76-4562-a90d-ada250d8bd05
2025-09-22 15:48:15,026 - INFO - Verified VN network id 12 for VN 6c8caa0f-e510-4866-a6ad-9d20f80c69ea
2025-09-22 15:48:15,026 - INFO - Verifications in API Server for VN ctest-vn-05903233 passed
2025-09-22 15:48:15,026 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c8caa0f-e510-4866-a6ad-9d20f80c69ea
2025-09-22 15:48:15,036 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ee752bae-ab76-4562-a90d-ada250d8bd05
2025-09-22 15:48:15,043 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ee752bae-ab76-4562-a90d-ada250d8bd05
2025-09-22 15:48:15,051 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/05c177d9-38c1-461e-a48e-0298d36d4c5f
2025-09-22 15:48:15,064 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-05903233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46533384', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7821813638079989862', 'uuid-lslong': '12010428546193058282'}, 'enable': 'true', 'created': '2025-09-22T15:48:12', 'last-modified': '2025-09-22T15:48:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.445842'}
2025-09-22 15:48:15,069 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 15:48:15,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05903233 passed
2025-09-22 15:48:15,070 - DEBUG - ====Verifying policy data for ctest-vn-05903233 in API_Server ======
2025-09-22 15:48:15,070 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-22 15:48:15,076 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5be2a09d-55a1-4e10-91f1-abe4458ff22c
2025-09-22 15:48:15,087 - DEBUG - Requesting: http://10.0.0.254:8082/project/b1a0205f-ca38-4d42-9b6b-60d1f2eb91b2
2025-09-22 15:48:15,159 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c8caa0f-e510-4866-a6ad-9d20f80c69ea
2025-09-22 15:48:15,169 - DEBUG - ==>Verifying data for policy with id: 4d7a8489-41c5-49b8-90c3-8b2dce9eb379, fqn: ['default-domain', 'ctest-TestBasicPolicy-46533384', 'ctest-policy-allow-all-51564842']
2025-09-22 15:48:15,169 - INFO - VN ctest-vn-05903233 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 15:48:15,169 - DEBUG - Verifying the vn in opserver
2025-09-22 15:48:15,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-05903233 virtual network link through opserver 10.0.0.254
2025-09-22 15:48:15,169 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-22 15:48:15,194 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-05903233', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-05903233?flat'}
2025-09-22 15:48:15,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46533384:ctest-vn-05903233 is found in opserver
2025-09-22 15:48:15,205 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 15:48:15,209 - DEBUG - VRF ids for VN ctest-vn-05903233: {}
2025-09-22 15:48:15,264 - DEBUG - Services list from nova: [