2025-06-30 11:44:49,760 - INFO - Domain Default found not creating
2025-06-30 11:44:49,893 - INFO - Project ctest-TestBasicPolicy-94619882 not found, creating it
2025-06-30 11:44:50,331 - INFO - Created Project:ctest-TestBasicPolicy-94619882, ID : 73177827-4389-473d-9aff-c400e63a30ea
2025-06-30 11:44:51,731 - INFO - ================================================================================
2025-06-30 11:44:51,732 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-30 11:44:51,732 - 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-06-30 11:44:51,987 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-06-30 11:44:51,987 - INFO - Initial checks done. Running the testcase now
2025-06-30 11:44:51,987 - INFO -
2025-06-30 11:44:52,528 - DEBUG - Response for create_network : {'network': {'id': '47fd67b8-7151-4474-9c39-1c20a653a04d', 'name': 'ctest-vn-97677175', 'tenant_id': '731778274389473d9affc400e63a30ea', 'project_id': '731778274389473d9affc400e63a30ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94619882', 'ctest-vn-97677175'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 11:44:52,744 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd886c8b0-610a-4350-9eb6-d71fd2d4c464', 'name': '', 'tenant_id': '731778274389473d9affc400e63a30ea', 'network_id': '47fd67b8-7151-4474-9c39-1c20a653a04d', 'ip_version': 4, 'cidr': '98.247.119.64/26', 'allocation_pools': [{'start': '98.247.119.66', 'end': '98.247.119.126'}], 'gateway_ip': '98.247.119.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.247.119.66', 'tags': [], 'project_id': '731778274389473d9affc400e63a30ea'}}
2025-06-30 11:44:52,762 - INFO - Created VN ctest-vn-97677175
2025-06-30 11:44:52,816 - DEBUG - VN ctest-vn-97677175 UUID is 47fd67b8-7151-4474-9c39-1c20a653a04d
2025-06-30 11:44:53,111 - DEBUG - Response for create_network : {'network': {'id': '377d7f8d-096d-4b64-9318-6e1ec796e4fc', 'name': 'ctest-vn-60792214', 'tenant_id': '731778274389473d9affc400e63a30ea', 'project_id': '731778274389473d9affc400e63a30ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94619882', 'ctest-vn-60792214'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 11:44:53,336 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f06d628-e3f3-4ea3-9474-94b447675900', 'name': '', 'tenant_id': '731778274389473d9affc400e63a30ea', 'network_id': '377d7f8d-096d-4b64-9318-6e1ec796e4fc', 'ip_version': 4, 'cidr': '8.199.239.192/26', 'allocation_pools': [{'start': '8.199.239.194', 'end': '8.199.239.254'}], 'gateway_ip': '8.199.239.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.199.239.194', 'tags': [], 'project_id': '731778274389473d9affc400e63a30ea'}}
2025-06-30 11:44:53,355 - INFO - Created VN ctest-vn-60792214
2025-06-30 11:44:53,412 - DEBUG - VN ctest-vn-60792214 UUID is 377d7f8d-096d-4b64-9318-6e1ec796e4fc
2025-06-30 11:44:53,568 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-97677175, 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-94619882:ctest-vn-60792214, 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-06-30 11:44:53,879 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47fd67b8-7151-4474-9c39-1c20a653a04d', 'name': 'ctest-vn-97677175', 'tenant_id': '731778274389473d9affc400e63a30ea', 'project_id': '731778274389473d9affc400e63a30ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d886c8b0-610a-4350-9eb6-d71fd2d4c464'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94619882', 'ctest-vn-97677175'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94619882', 'ctest-policy-allow-all-29116458']], 'subnet_ipam': [{'subnet_cidr': '98.247.119.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 11:44:54,170 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '377d7f8d-096d-4b64-9318-6e1ec796e4fc', 'name': 'ctest-vn-60792214', 'tenant_id': '731778274389473d9affc400e63a30ea', 'project_id': '731778274389473d9affc400e63a30ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f06d628-e3f3-4ea3-9474-94b447675900'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94619882', 'ctest-vn-60792214'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94619882', 'ctest-policy-allow-all-29116458']], 'subnet_ipam': [{'subnet_cidr': '8.199.239.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 11:44:54,316 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-30 11:44:54,616 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-30 11:44:54,645 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b016d685-4cdf-48d6-93a5-9a3e5852dc92
2025-06-30 11:44:54,659 - DEBUG - Requesting: http://10.0.0.249:8082/project/73177827-4389-473d-9aff-c400e63a30ea
2025-06-30 11:44:54,734 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47fd67b8-7151-4474-9c39-1c20a653a04d
2025-06-30 11:44:54,745 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47fd67b8-7151-4474-9c39-1c20a653a04d
2025-06-30 11:44:54,756 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aa8019b5-40df-4226-8f2f-b7ec465b70c5
2025-06-30 11:44:54,763 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aa8019b5-40df-4226-8f2f-b7ec465b70c5
2025-06-30 11:44:54,770 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/cea02c88-a48b-40dd-9c93-60db5b59d8ac
2025-06-30 11:44:54,776 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 11:44:54,776 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47fd67b8-7151-4474-9c39-1c20a653a04d
2025-06-30 11:44:54,785 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aa8019b5-40df-4226-8f2f-b7ec465b70c5
2025-06-30 11:44:54,800 - INFO - Verified VN network id 8 for VN 47fd67b8-7151-4474-9c39-1c20a653a04d
2025-06-30 11:44:54,800 - INFO - Verifications in API Server for VN ctest-vn-97677175 passed
2025-06-30 11:44:54,800 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47fd67b8-7151-4474-9c39-1c20a653a04d
2025-06-30 11:44:54,811 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aa8019b5-40df-4226-8f2f-b7ec465b70c5
2025-06-30 11:44:54,820 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aa8019b5-40df-4226-8f2f-b7ec465b70c5
2025-06-30 11:44:54,827 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/cea02c88-a48b-40dd-9c93-60db5b59d8ac
2025-06-30 11:44:54,838 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-97677175', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94619882', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5187416387673474164', 'uuid-lslong': '11257059670144294989'}, 'enable': 'true', 'created': '2025-06-30T11:44:52', 'last-modified': '2025-06-30T11:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.992683'}
2025-06-30 11:44:54,845 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 11:44:54,845 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97677175 passed
2025-06-30 11:44:54,845 - DEBUG - ====Verifying policy data for ctest-vn-97677175 in API_Server ======
2025-06-30 11:44:54,845 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-30 11:44:54,850 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b016d685-4cdf-48d6-93a5-9a3e5852dc92
2025-06-30 11:44:54,861 - DEBUG - Requesting: http://10.0.0.249:8082/project/73177827-4389-473d-9aff-c400e63a30ea
2025-06-30 11:44:54,931 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47fd67b8-7151-4474-9c39-1c20a653a04d
2025-06-30 11:44:54,940 - DEBUG - ==>Verifying data for policy with id: 449d0514-642e-4430-9ff2-223e1e8e5d90, fqn: ['default-domain', 'ctest-TestBasicPolicy-94619882', 'ctest-policy-allow-all-29116458']
2025-06-30 11:44:54,940 - INFO - VN ctest-vn-97677175 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 11:44:54,940 - DEBUG - Verifying the vn in opserver
2025-06-30 11:44:54,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-97677175 virtual network link through opserver 10.0.0.249
2025-06-30 11:44:54,941 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-06-30 11:44:55,230 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-06-30 11:44:55,282 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-97677175', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-97677175?flat'}
2025-06-30 11:44:55,282 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-97677175 is found in opserver
2025-06-30 11:44:55,293 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 11:44:55,298 - DEBUG - VRF ids for VN ctest-vn-97677175: {}
2025-06-30 11:44:55,298 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-30 11:44:55,305 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b016d685-4cdf-48d6-93a5-9a3e5852dc92
2025-06-30 11:44:55,320 - DEBUG - Requesting: http://10.0.0.249:8082/project/73177827-4389-473d-9aff-c400e63a30ea
2025-06-30 11:44:55,391 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/377d7f8d-096d-4b64-9318-6e1ec796e4fc
2025-06-30 11:44:55,403 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/377d7f8d-096d-4b64-9318-6e1ec796e4fc
2025-06-30 11:44:55,414 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f570ff8a-0bf0-4ac8-8c5c-d1c5bdfc8e74
2025-06-30 11:44:55,422 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f570ff8a-0bf0-4ac8-8c5c-d1c5bdfc8e74
2025-06-30 11:44:55,430 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/31ccbcc9-0666-4c08-8f90-cf4225831678
2025-06-30 11:44:55,437 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 11:44:55,437 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/377d7f8d-096d-4b64-9318-6e1ec796e4fc
2025-06-30 11:44:55,448 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f570ff8a-0bf0-4ac8-8c5c-d1c5bdfc8e74
2025-06-30 11:44:55,464 - INFO - Verified VN network id 9 for VN 377d7f8d-096d-4b64-9318-6e1ec796e4fc
2025-06-30 11:44:55,464 - INFO - Verifications in API Server for VN ctest-vn-60792214 passed
2025-06-30 11:44:55,464 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/377d7f8d-096d-4b64-9318-6e1ec796e4fc
2025-06-30 11:44:55,475 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f570ff8a-0bf0-4ac8-8c5c-d1c5bdfc8e74
2025-06-30 11:44:55,483 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f570ff8a-0bf0-4ac8-8c5c-d1c5bdfc8e74
2025-06-30 11:44:55,490 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/31ccbcc9-0666-4c08-8f90-cf4225831678
2025-06-30 11:44:55,503 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-60792214', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94619882', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3998492287900142436', 'uuid-lslong': '10599342801493091580'}, 'enable': 'true', 'created': '2025-06-30T11:44:53', 'last-modified': '2025-06-30T11:44:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.412886'}
2025-06-30 11:44:55,509 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 11:44:55,509 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60792214 passed
2025-06-30 11:44:55,509 - DEBUG - ====Verifying policy data for ctest-vn-60792214 in API_Server ======
2025-06-30 11:44:55,509 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-30 11:44:55,515 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b016d685-4cdf-48d6-93a5-9a3e5852dc92
2025-06-30 11:44:55,527 - DEBUG - Requesting: http://10.0.0.249:8082/project/73177827-4389-473d-9aff-c400e63a30ea
2025-06-30 11:44:55,598 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/377d7f8d-096d-4b64-9318-6e1ec796e4fc
2025-06-30 11:44:55,609 - DEBUG - ==>Verifying data for policy with id: 449d0514-642e-4430-9ff2-223e1e8e5d90, fqn: ['default-domain', 'ctest-TestBasicPolicy-94619882', 'ctest-policy-allow-all-29116458']
2025-06-30 11:44:55,609 - INFO - VN ctest-vn-60792214 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 11:44:55,609 - DEBUG - Verifying the vn in opserver
2025-06-30 11:44:55,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-60792214 virtual network link through opserver 10.0.0.249
2025-06-30 11:44:55,609 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-06-30 11:44:55,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-60792214', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-60792214?flat'}
2025-06-30 11:44:55,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94619882:ctest-vn-60792214 is found in opserver
2025-06-30 11:44:55,630 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 11:44:55,635 - DEBUG - VRF ids for VN ctest-vn-60792214: {}
2025-06-30 11:44:55,685 - DEBUG - Services list from nova: [