2025-06-20 06:47:18,335 - INFO - Domain Default found not creating
2025-06-20 06:47:18,502 - INFO - Project ctest-TestBasicPolicy-86591975 not found, creating it
2025-06-20 06:47:18,983 - INFO - Created Project:ctest-TestBasicPolicy-86591975, ID : 53a2a0af-9704-45d6-babf-e42b0b98add6
2025-06-20 06:47:20,418 - INFO - ================================================================================
2025-06-20 06:47:20,418 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-20 06:47:20,418 - 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-20 06:47:20,690 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-06-20 06:47:20,690 - INFO - Initial checks done. Running the testcase now
2025-06-20 06:47:20,690 - INFO -
2025-06-20 06:47:21,281 - DEBUG - Response for create_network : {'network': {'id': '87a65c58-aa47-4403-92fc-32dcfec51f96', 'name': 'ctest-vn-01424756', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'project_id': '53a2a0af970445d6babfe42b0b98add6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-vn-01424756'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 06:47:21,469 - DEBUG - Response for create_subnet : {'subnet': {'id': '75be0426-1d1e-4553-803e-60072c2b942d', 'name': '', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'network_id': '87a65c58-aa47-4403-92fc-32dcfec51f96', 'ip_version': 4, 'cidr': '46.101.127.192/26', 'allocation_pools': [{'start': '46.101.127.194', 'end': '46.101.127.254'}], 'gateway_ip': '46.101.127.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.101.127.194', 'tags': [], 'project_id': '53a2a0af970445d6babfe42b0b98add6'}}
2025-06-20 06:47:21,487 - INFO - Created VN ctest-vn-01424756
2025-06-20 06:47:21,540 - DEBUG - VN ctest-vn-01424756 UUID is 87a65c58-aa47-4403-92fc-32dcfec51f96
2025-06-20 06:47:21,837 - DEBUG - Response for create_network : {'network': {'id': '2499141c-2cf1-407a-8052-79c098ab8733', 'name': 'ctest-vn-14930553', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'project_id': '53a2a0af970445d6babfe42b0b98add6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-vn-14930553'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 06:47:22,065 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a07ac4e-9bc3-4e24-b392-31b4fa0725c9', 'name': '', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'network_id': '2499141c-2cf1-407a-8052-79c098ab8733', 'ip_version': 4, 'cidr': '174.231.24.192/26', 'allocation_pools': [{'start': '174.231.24.194', 'end': '174.231.24.254'}], 'gateway_ip': '174.231.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.231.24.194', 'tags': [], 'project_id': '53a2a0af970445d6babfe42b0b98add6'}}
2025-06-20 06:47:22,084 - INFO - Created VN ctest-vn-14930553
2025-06-20 06:47:22,136 - DEBUG - VN ctest-vn-14930553 UUID is 2499141c-2cf1-407a-8052-79c098ab8733
2025-06-20 06:47:22,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756, 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-86591975:ctest-vn-14930553, 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-20 06:47:22,587 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87a65c58-aa47-4403-92fc-32dcfec51f96', 'name': 'ctest-vn-01424756', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'project_id': '53a2a0af970445d6babfe42b0b98add6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75be0426-1d1e-4553-803e-60072c2b942d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-vn-01424756'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-policy-allow-all-58790445']], 'subnet_ipam': [{'subnet_cidr': '46.101.127.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 06:47:22,822 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2499141c-2cf1-407a-8052-79c098ab8733', 'name': 'ctest-vn-14930553', 'tenant_id': '53a2a0af970445d6babfe42b0b98add6', 'project_id': '53a2a0af970445d6babfe42b0b98add6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a07ac4e-9bc3-4e24-b392-31b4fa0725c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-vn-14930553'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-policy-allow-all-58790445']], 'subnet_ipam': [{'subnet_cidr': '174.231.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 06:47:22,980 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-20 06:47:23,272 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-20 06:47:23,301 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946
2025-06-20 06:47:23,316 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6
2025-06-20 06:47:23,397 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96
2025-06-20 06:47:23,408 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96
2025-06-20 06:47:23,418 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988
2025-06-20 06:47:23,426 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988
2025-06-20 06:47:23,433 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c8c5a730-2cda-40e2-a125-55103b03e8e4
2025-06-20 06:47:23,440 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 06:47:23,440 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96
2025-06-20 06:47:23,449 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988
2025-06-20 06:47:23,461 - INFO - Verified VN network id 9 for VN 87a65c58-aa47-4403-92fc-32dcfec51f96
2025-06-20 06:47:23,461 - INFO - Verifications in API Server for VN ctest-vn-01424756 passed
2025-06-20 06:47:23,461 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96
2025-06-20 06:47:23,538 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988
2025-06-20 06:47:23,546 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9ce43ea6-1d6c-406c-9d06-65393160c988
2025-06-20 06:47:23,555 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c8c5a730-2cda-40e2-a125-55103b03e8e4
2025-06-20 06:47:23,568 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86591975', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9774601577137914883', 'uuid-lslong': '10591396348417089430'}, 'enable': 'true', 'created': '2025-06-20T06:47:21', 'last-modified': '2025-06-20T06:47:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003012'}
2025-06-20 06:47:23,576 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 06:47:23,576 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01424756 passed
2025-06-20 06:47:23,576 - DEBUG - ====Verifying policy data for ctest-vn-01424756 in API_Server ======
2025-06-20 06:47:23,576 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-20 06:47:23,583 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946
2025-06-20 06:47:23,596 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6
2025-06-20 06:47:23,677 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/87a65c58-aa47-4403-92fc-32dcfec51f96
2025-06-20 06:47:23,688 - DEBUG - ==>Verifying data for policy with id: 83740b54-31f5-42e3-b84f-c4e1399a220c, fqn: ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-policy-allow-all-58790445']
2025-06-20 06:47:23,688 - INFO - VN ctest-vn-01424756 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 06:47:23,688 - DEBUG - Verifying the vn in opserver
2025-06-20 06:47:23,688 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756 virtual network link through opserver 10.0.0.27
2025-06-20 06:47:23,689 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-20 06:47:23,984 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-20 06:47:24,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756?flat'}
2025-06-20 06:47:24,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-01424756 is found in opserver
2025-06-20 06:47:24,053 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 06:47:24,058 - DEBUG - VRF ids for VN ctest-vn-01424756: {}
2025-06-20 06:47:24,058 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-20 06:47:24,064 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946
2025-06-20 06:47:24,076 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6
2025-06-20 06:47:24,151 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733
2025-06-20 06:47:24,164 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733
2025-06-20 06:47:24,174 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857
2025-06-20 06:47:24,182 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857
2025-06-20 06:47:24,191 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/96fd84b3-1d56-47c6-9036-25202c26c7e8
2025-06-20 06:47:24,202 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 06:47:24,202 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733
2025-06-20 06:47:24,213 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857
2025-06-20 06:47:24,231 - INFO - Verified VN network id 10 for VN 2499141c-2cf1-407a-8052-79c098ab8733
2025-06-20 06:47:24,231 - INFO - Verifications in API Server for VN ctest-vn-14930553 passed
2025-06-20 06:47:24,232 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733
2025-06-20 06:47:24,246 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857
2025-06-20 06:47:24,258 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c43bb04d-f2f3-4805-b958-e3f323033857
2025-06-20 06:47:24,270 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/96fd84b3-1d56-47c6-9036-25202c26c7e8
2025-06-20 06:47:24,291 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86591975', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2637161168047784058', 'uuid-lslong': '9246586853047109427'}, 'enable': 'true', 'created': '2025-06-20T06:47:21', 'last-modified': '2025-06-20T06:47:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488262'}
2025-06-20 06:47:24,298 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 06:47:24,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14930553 passed
2025-06-20 06:47:24,298 - DEBUG - ====Verifying policy data for ctest-vn-14930553 in API_Server ======
2025-06-20 06:47:24,298 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-20 06:47:24,305 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee96a10e-d6c4-4de7-9a00-ace46c004946
2025-06-20 06:47:24,319 - DEBUG - Requesting: http://10.0.0.27:8082/project/53a2a0af-9704-45d6-babf-e42b0b98add6
2025-06-20 06:47:24,410 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2499141c-2cf1-407a-8052-79c098ab8733
2025-06-20 06:47:24,421 - DEBUG - ==>Verifying data for policy with id: 83740b54-31f5-42e3-b84f-c4e1399a220c, fqn: ['default-domain', 'ctest-TestBasicPolicy-86591975', 'ctest-policy-allow-all-58790445']
2025-06-20 06:47:24,422 - INFO - VN ctest-vn-14930553 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 06:47:24,422 - DEBUG - Verifying the vn in opserver
2025-06-20 06:47:24,422 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553 virtual network link through opserver 10.0.0.27
2025-06-20 06:47:24,422 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-20 06:47:24,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553?flat'}
2025-06-20 06:47:24,435 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86591975:ctest-vn-14930553 is found in opserver
2025-06-20 06:47:24,446 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 06:47:24,451 - DEBUG - VRF ids for VN ctest-vn-14930553: {}
2025-06-20 06:47:24,512 - DEBUG - Services list from nova: [