2025-10-24 13:20:30,672 - INFO - Domain Default found not creating
2025-10-24 13:20:30,812 - INFO - Project ctest-TestBasicPolicy-69050350 not found, creating it
2025-10-24 13:20:31,232 - INFO - Created Project:ctest-TestBasicPolicy-69050350, ID : 1ecfd518-48d1-4476-a2aa-e0ac8cb26660
2025-10-24 13:20:32,631 - INFO - ================================================================================
2025-10-24 13:20:32,632 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-24 13:20:32,632 - 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-10-24 13:20:32,885 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-24 13:20:32,885 - INFO - Initial checks done. Running the testcase now
2025-10-24 13:20:32,885 - INFO -
2025-10-24 13:20:33,406 - DEBUG - Response for create_network : {'network': {'id': '49d442e8-a7df-4224-a510-98af3b0b9c0f', 'name': 'ctest-vn-19120731', 'tenant_id': '1ecfd51848d14476a2aae0ac8cb26660', 'project_id': '1ecfd51848d14476a2aae0ac8cb26660', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69050350', 'ctest-vn-19120731'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 13:20:33,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '65888a6b-8ab5-4293-8ff2-65a72628fd59', 'name': '', 'tenant_id': '1ecfd51848d14476a2aae0ac8cb26660', 'network_id': '49d442e8-a7df-4224-a510-98af3b0b9c0f', 'ip_version': 4, 'cidr': '52.83.137.192/26', 'allocation_pools': [{'start': '52.83.137.194', 'end': '52.83.137.254'}], 'gateway_ip': '52.83.137.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.83.137.194', 'tags': [], 'project_id': '1ecfd51848d14476a2aae0ac8cb26660'}}
2025-10-24 13:20:33,611 - INFO - Created VN ctest-vn-19120731
2025-10-24 13:20:33,661 - DEBUG - VN ctest-vn-19120731 UUID is 49d442e8-a7df-4224-a510-98af3b0b9c0f
2025-10-24 13:20:33,977 - DEBUG - Response for create_network : {'network': {'id': 'c76e85f3-e9ae-4c75-91ff-fd773bc0757a', 'name': 'ctest-vn-61580086', 'tenant_id': '1ecfd51848d14476a2aae0ac8cb26660', 'project_id': '1ecfd51848d14476a2aae0ac8cb26660', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69050350', 'ctest-vn-61580086'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 13:20:34,191 - DEBUG - Response for create_subnet : {'subnet': {'id': '975fb6ba-367d-4d43-a1bc-d5134cb96794', 'name': '', 'tenant_id': '1ecfd51848d14476a2aae0ac8cb26660', 'network_id': 'c76e85f3-e9ae-4c75-91ff-fd773bc0757a', 'ip_version': 4, 'cidr': '90.237.91.128/26', 'allocation_pools': [{'start': '90.237.91.130', 'end': '90.237.91.190'}], 'gateway_ip': '90.237.91.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.237.91.130', 'tags': [], 'project_id': '1ecfd51848d14476a2aae0ac8cb26660'}}
2025-10-24 13:20:34,208 - INFO - Created VN ctest-vn-61580086
2025-10-24 13:20:34,261 - DEBUG - VN ctest-vn-61580086 UUID is c76e85f3-e9ae-4c75-91ff-fd773bc0757a
2025-10-24 13:20:34,376 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-19120731, 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-69050350:ctest-vn-61580086, 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-10-24 13:20:34,660 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '49d442e8-a7df-4224-a510-98af3b0b9c0f', 'name': 'ctest-vn-19120731', 'tenant_id': '1ecfd51848d14476a2aae0ac8cb26660', 'project_id': '1ecfd51848d14476a2aae0ac8cb26660', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65888a6b-8ab5-4293-8ff2-65a72628fd59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69050350', 'ctest-vn-19120731'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69050350', 'ctest-policy-allow-all-85688384']], 'subnet_ipam': [{'subnet_cidr': '52.83.137.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 13:20:34,924 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c76e85f3-e9ae-4c75-91ff-fd773bc0757a', 'name': 'ctest-vn-61580086', 'tenant_id': '1ecfd51848d14476a2aae0ac8cb26660', 'project_id': '1ecfd51848d14476a2aae0ac8cb26660', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['975fb6ba-367d-4d43-a1bc-d5134cb96794'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69050350', 'ctest-vn-61580086'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69050350', 'ctest-policy-allow-all-85688384']], 'subnet_ipam': [{'subnet_cidr': '90.237.91.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 13:20:35,065 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 13:20:35,362 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 13:20:35,389 - DEBUG - Requesting: http://10.0.0.254:8082/domain/50c900fd-0a35-4530-8cfc-f3f20e598ed1
2025-10-24 13:20:35,400 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ecfd518-48d1-4476-a2aa-e0ac8cb26660
2025-10-24 13:20:35,470 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/49d442e8-a7df-4224-a510-98af3b0b9c0f
2025-10-24 13:20:35,479 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/49d442e8-a7df-4224-a510-98af3b0b9c0f
2025-10-24 13:20:35,487 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91ec2def-ebfe-4f76-86a1-768c340177af
2025-10-24 13:20:35,493 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91ec2def-ebfe-4f76-86a1-768c340177af
2025-10-24 13:20:35,498 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ac41a94f-d5cc-4b8c-a445-001dd1d1f4c3
2025-10-24 13:20:35,504 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 13:20:35,504 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/49d442e8-a7df-4224-a510-98af3b0b9c0f
2025-10-24 13:20:35,511 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91ec2def-ebfe-4f76-86a1-768c340177af
2025-10-24 13:20:35,523 - INFO - Verified VN network id 12 for VN 49d442e8-a7df-4224-a510-98af3b0b9c0f
2025-10-24 13:20:35,523 - INFO - Verifications in API Server for VN ctest-vn-19120731 passed
2025-10-24 13:20:35,523 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/49d442e8-a7df-4224-a510-98af3b0b9c0f
2025-10-24 13:20:35,531 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91ec2def-ebfe-4f76-86a1-768c340177af
2025-10-24 13:20:35,536 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91ec2def-ebfe-4f76-86a1-768c340177af
2025-10-24 13:20:35,542 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ac41a94f-d5cc-4b8c-a445-001dd1d1f4c3
2025-10-24 13:20:35,551 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-19120731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69050350', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5319950626847670820', 'uuid-lslong': '11894174494262795279'}, 'enable': 'true', 'created': '2025-10-24T13:20:33', 'last-modified': '2025-10-24T13:20:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913996'}
2025-10-24 13:20:35,557 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 13:20:35,557 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19120731 passed
2025-10-24 13:20:35,557 - DEBUG - ====Verifying policy data for ctest-vn-19120731 in API_Server ======
2025-10-24 13:20:35,557 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 13:20:35,562 - DEBUG - Requesting: http://10.0.0.254:8082/domain/50c900fd-0a35-4530-8cfc-f3f20e598ed1
2025-10-24 13:20:35,571 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ecfd518-48d1-4476-a2aa-e0ac8cb26660
2025-10-24 13:20:35,637 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/49d442e8-a7df-4224-a510-98af3b0b9c0f
2025-10-24 13:20:35,645 - DEBUG - ==>Verifying data for policy with id: b2a933ce-ed9b-4283-bdc1-32b499b24a3c, fqn: ['default-domain', 'ctest-TestBasicPolicy-69050350', 'ctest-policy-allow-all-85688384']
2025-10-24 13:20:35,645 - INFO - VN ctest-vn-19120731 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 13:20:35,645 - DEBUG - Verifying the vn in opserver
2025-10-24 13:20:35,645 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-19120731 virtual network link through opserver 10.0.0.254
2025-10-24 13:20:35,646 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 13:20:35,936 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 13:20:35,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-19120731', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-19120731?flat'}
2025-10-24 13:20:35,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-19120731 is found in opserver
2025-10-24 13:20:35,999 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 13:20:36,003 - DEBUG - VRF ids for VN ctest-vn-19120731: {}
2025-10-24 13:20:36,003 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 13:20:36,008 - DEBUG - Requesting: http://10.0.0.254:8082/domain/50c900fd-0a35-4530-8cfc-f3f20e598ed1
2025-10-24 13:20:36,019 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ecfd518-48d1-4476-a2aa-e0ac8cb26660
2025-10-24 13:20:36,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c76e85f3-e9ae-4c75-91ff-fd773bc0757a
2025-10-24 13:20:36,096 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c76e85f3-e9ae-4c75-91ff-fd773bc0757a
2025-10-24 13:20:36,105 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d7a4c2a4-9032-4541-b7b2-3bccd03da044
2025-10-24 13:20:36,111 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d7a4c2a4-9032-4541-b7b2-3bccd03da044
2025-10-24 13:20:36,118 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5b0e3f75-1cf4-48d1-af2a-7d79addcb1f3
2025-10-24 13:20:36,125 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 13:20:36,125 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c76e85f3-e9ae-4c75-91ff-fd773bc0757a
2025-10-24 13:20:36,133 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d7a4c2a4-9032-4541-b7b2-3bccd03da044
2025-10-24 13:20:36,146 - INFO - Verified VN network id 13 for VN c76e85f3-e9ae-4c75-91ff-fd773bc0757a
2025-10-24 13:20:36,146 - INFO - Verifications in API Server for VN ctest-vn-61580086 passed
2025-10-24 13:20:36,146 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c76e85f3-e9ae-4c75-91ff-fd773bc0757a
2025-10-24 13:20:36,154 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d7a4c2a4-9032-4541-b7b2-3bccd03da044
2025-10-24 13:20:36,161 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d7a4c2a4-9032-4541-b7b2-3bccd03da044
2025-10-24 13:20:36,166 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5b0e3f75-1cf4-48d1-af2a-7d79addcb1f3
2025-10-24 13:20:36,176 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-61580086', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69050350', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14370570743629892725', 'uuid-lslong': '10520405943106172282'}, 'enable': 'true', 'created': '2025-10-24T13:20:33', 'last-modified': '2025-10-24T13:20:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.317558'}
2025-10-24 13:20:36,181 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 13:20:36,182 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61580086 passed
2025-10-24 13:20:36,182 - DEBUG - ====Verifying policy data for ctest-vn-61580086 in API_Server ======
2025-10-24 13:20:36,182 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 13:20:36,187 - DEBUG - Requesting: http://10.0.0.254:8082/domain/50c900fd-0a35-4530-8cfc-f3f20e598ed1
2025-10-24 13:20:36,200 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ecfd518-48d1-4476-a2aa-e0ac8cb26660
2025-10-24 13:20:36,274 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c76e85f3-e9ae-4c75-91ff-fd773bc0757a
2025-10-24 13:20:36,284 - DEBUG - ==>Verifying data for policy with id: b2a933ce-ed9b-4283-bdc1-32b499b24a3c, fqn: ['default-domain', 'ctest-TestBasicPolicy-69050350', 'ctest-policy-allow-all-85688384']
2025-10-24 13:20:36,284 - INFO - VN ctest-vn-61580086 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 13:20:36,284 - DEBUG - Verifying the vn in opserver
2025-10-24 13:20:36,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-61580086 virtual network link through opserver 10.0.0.254
2025-10-24 13:20:36,284 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 13:20:36,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-61580086', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-61580086?flat'}
2025-10-24 13:20:36,294 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69050350:ctest-vn-61580086 is found in opserver
2025-10-24 13:20:36,304 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 13:20:36,308 - DEBUG - VRF ids for VN ctest-vn-61580086: {}
2025-10-24 13:20:36,370 - DEBUG - Services list from nova: [