2025-07-17 17:13:01,228 - INFO - Domain Default found not creating
2025-07-17 17:13:01,447 - INFO - Project ctest-TestBasicPolicy-63545966 not found, creating it
2025-07-17 17:13:01,950 - INFO - Created Project:ctest-TestBasicPolicy-63545966, ID : 99287471-444d-4eb6-a0dd-7e321f3be160
2025-07-17 17:13:04,074 - INFO - ================================================================================
2025-07-17 17:13:04,074 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-17 17:13:04,074 - 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-07-17 17:13:04,364 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2025-07-17 17:13:04,364 - INFO - Initial checks done. Running the testcase now
2025-07-17 17:13:04,364 - INFO -
2025-07-17 17:13:05,062 - DEBUG - Response for create_network : {'network': {'id': '936b3c06-21aa-48cd-bda2-262183acaf7a', 'name': 'ctest-vn-74319597', 'tenant_id': '99287471444d4eb6a0dd7e321f3be160', 'project_id': '99287471444d4eb6a0dd7e321f3be160', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63545966', 'ctest-vn-74319597'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 17:13:05,228 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f991af9-0bbb-4719-ae15-1b4ace263fe7', 'name': '', 'tenant_id': '99287471444d4eb6a0dd7e321f3be160', 'network_id': '936b3c06-21aa-48cd-bda2-262183acaf7a', 'ip_version': 4, 'cidr': '72.33.215.0/26', 'allocation_pools': [{'start': '72.33.215.2', 'end': '72.33.215.62'}], 'gateway_ip': '72.33.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.33.215.2', 'tags': [], 'project_id': '99287471444d4eb6a0dd7e321f3be160'}}
2025-07-17 17:13:05,249 - INFO - Created VN ctest-vn-74319597
2025-07-17 17:13:05,302 - DEBUG - VN ctest-vn-74319597 UUID is 936b3c06-21aa-48cd-bda2-262183acaf7a
2025-07-17 17:13:05,755 - DEBUG - Response for create_network : {'network': {'id': '34c342c1-6686-4efa-81ea-2f26d9bf14f7', 'name': 'ctest-vn-78224955', 'tenant_id': '99287471444d4eb6a0dd7e321f3be160', 'project_id': '99287471444d4eb6a0dd7e321f3be160', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63545966', 'ctest-vn-78224955'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 17:13:05,980 - DEBUG - Response for create_subnet : {'subnet': {'id': '64fa1d93-67ea-4460-a08e-7848de899019', 'name': '', 'tenant_id': '99287471444d4eb6a0dd7e321f3be160', 'network_id': '34c342c1-6686-4efa-81ea-2f26d9bf14f7', 'ip_version': 4, 'cidr': '1.222.177.0/26', 'allocation_pools': [{'start': '1.222.177.2', 'end': '1.222.177.62'}], 'gateway_ip': '1.222.177.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.222.177.2', 'tags': [], 'project_id': '99287471444d4eb6a0dd7e321f3be160'}}
2025-07-17 17:13:06,009 - INFO - Created VN ctest-vn-78224955
2025-07-17 17:13:06,070 - DEBUG - VN ctest-vn-78224955 UUID is 34c342c1-6686-4efa-81ea-2f26d9bf14f7
2025-07-17 17:13:06,266 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-74319597, 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-63545966:ctest-vn-78224955, 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-07-17 17:13:06,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '936b3c06-21aa-48cd-bda2-262183acaf7a', 'name': 'ctest-vn-74319597', 'tenant_id': '99287471444d4eb6a0dd7e321f3be160', 'project_id': '99287471444d4eb6a0dd7e321f3be160', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f991af9-0bbb-4719-ae15-1b4ace263fe7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63545966', 'ctest-vn-74319597'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63545966', 'ctest-policy-allow-all-92590248']], 'subnet_ipam': [{'subnet_cidr': '72.33.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 17:13:06,981 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34c342c1-6686-4efa-81ea-2f26d9bf14f7', 'name': 'ctest-vn-78224955', 'tenant_id': '99287471444d4eb6a0dd7e321f3be160', 'project_id': '99287471444d4eb6a0dd7e321f3be160', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64fa1d93-67ea-4460-a08e-7848de899019'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63545966', 'ctest-vn-78224955'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63545966', 'ctest-policy-allow-all-92590248']], 'subnet_ipam': [{'subnet_cidr': '1.222.177.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 17:13:07,170 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-17 17:13:07,473 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-17 17:13:07,507 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d5c1c1f-6573-4833-a7a4-7ad050e7a8b1
2025-07-17 17:13:07,527 - DEBUG - Requesting: http://10.0.0.27:8082/project/99287471-444d-4eb6-a0dd-7e321f3be160
2025-07-17 17:13:07,671 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/936b3c06-21aa-48cd-bda2-262183acaf7a
2025-07-17 17:13:07,699 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/936b3c06-21aa-48cd-bda2-262183acaf7a
2025-07-17 17:13:07,721 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ad7e8f8-13fc-4488-a717-a4b52a6272d9
2025-07-17 17:13:07,736 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ad7e8f8-13fc-4488-a717-a4b52a6272d9
2025-07-17 17:13:07,747 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8119ec7e-80e6-4e8f-a9e6-f8b7325594dc
2025-07-17 17:13:07,758 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 17:13:07,758 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/936b3c06-21aa-48cd-bda2-262183acaf7a
2025-07-17 17:13:07,775 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ad7e8f8-13fc-4488-a717-a4b52a6272d9
2025-07-17 17:13:07,804 - INFO - Verified VN network id 8 for VN 936b3c06-21aa-48cd-bda2-262183acaf7a
2025-07-17 17:13:07,804 - INFO - Verifications in API Server for VN ctest-vn-74319597 passed
2025-07-17 17:13:07,804 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/936b3c06-21aa-48cd-bda2-262183acaf7a
2025-07-17 17:13:07,818 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ad7e8f8-13fc-4488-a717-a4b52a6272d9
2025-07-17 17:13:07,826 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ad7e8f8-13fc-4488-a717-a4b52a6272d9
2025-07-17 17:13:07,835 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8119ec7e-80e6-4e8f-a9e6-f8b7325594dc
2025-07-17 17:13:07,853 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-74319597', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63545966', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10622650143115725005', 'uuid-lslong': '13664526144780414842'}, 'enable': 'true', 'created': '2025-07-17T17:13:05', 'last-modified': '2025-07-17T17:13:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.200380'}
2025-07-17 17:13:07,862 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 17:13:07,862 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74319597 passed
2025-07-17 17:13:07,863 - DEBUG - ====Verifying policy data for ctest-vn-74319597 in API_Server ======
2025-07-17 17:13:07,863 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-17 17:13:07,870 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d5c1c1f-6573-4833-a7a4-7ad050e7a8b1
2025-07-17 17:13:07,886 - DEBUG - Requesting: http://10.0.0.27:8082/project/99287471-444d-4eb6-a0dd-7e321f3be160
2025-07-17 17:13:07,974 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/936b3c06-21aa-48cd-bda2-262183acaf7a
2025-07-17 17:13:07,990 - DEBUG - ==>Verifying data for policy with id: e2599f70-4a70-4507-9f51-162afd5c5961, fqn: ['default-domain', 'ctest-TestBasicPolicy-63545966', 'ctest-policy-allow-all-92590248']
2025-07-17 17:13:07,990 - INFO - VN ctest-vn-74319597 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 17:13:07,991 - DEBUG - Verifying the vn in opserver
2025-07-17 17:13:07,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-74319597 virtual network link through opserver 10.0.0.27
2025-07-17 17:13:07,991 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-17 17:13:08,299 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-17 17:13:08,382 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-74319597', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-74319597?flat'}
2025-07-17 17:13:08,382 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-74319597 is found in opserver
2025-07-17 17:13:08,404 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 17:13:08,415 - DEBUG - VRF ids for VN ctest-vn-74319597: {}
2025-07-17 17:13:08,416 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-17 17:13:08,426 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d5c1c1f-6573-4833-a7a4-7ad050e7a8b1
2025-07-17 17:13:08,447 - DEBUG - Requesting: http://10.0.0.27:8082/project/99287471-444d-4eb6-a0dd-7e321f3be160
2025-07-17 17:13:08,539 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/34c342c1-6686-4efa-81ea-2f26d9bf14f7
2025-07-17 17:13:08,557 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/34c342c1-6686-4efa-81ea-2f26d9bf14f7
2025-07-17 17:13:08,571 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bc05a27e-def5-445f-a237-d14893ee188b
2025-07-17 17:13:08,581 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bc05a27e-def5-445f-a237-d14893ee188b
2025-07-17 17:13:08,591 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2ceb2285-8baa-47e4-9999-c174b6052147
2025-07-17 17:13:08,605 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 17:13:08,605 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/34c342c1-6686-4efa-81ea-2f26d9bf14f7
2025-07-17 17:13:08,619 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bc05a27e-def5-445f-a237-d14893ee188b
2025-07-17 17:13:08,639 - INFO - Verified VN network id 9 for VN 34c342c1-6686-4efa-81ea-2f26d9bf14f7
2025-07-17 17:13:08,639 - INFO - Verifications in API Server for VN ctest-vn-78224955 passed
2025-07-17 17:13:08,640 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/34c342c1-6686-4efa-81ea-2f26d9bf14f7
2025-07-17 17:13:08,653 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bc05a27e-def5-445f-a237-d14893ee188b
2025-07-17 17:13:08,665 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bc05a27e-def5-445f-a237-d14893ee188b
2025-07-17 17:13:08,675 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2ceb2285-8baa-47e4-9999-c174b6052147
2025-07-17 17:13:08,692 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-78224955', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63545966', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3801955908847030010', 'uuid-lslong': '9361346619351438583'}, 'enable': 'true', 'created': '2025-07-17T17:13:05', 'last-modified': '2025-07-17T17:13:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.746643'}
2025-07-17 17:13:08,701 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 17:13:08,701 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78224955 passed
2025-07-17 17:13:08,701 - DEBUG - ====Verifying policy data for ctest-vn-78224955 in API_Server ======
2025-07-17 17:13:08,701 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-17 17:13:08,711 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d5c1c1f-6573-4833-a7a4-7ad050e7a8b1
2025-07-17 17:13:08,730 - DEBUG - Requesting: http://10.0.0.27:8082/project/99287471-444d-4eb6-a0dd-7e321f3be160
2025-07-17 17:13:08,835 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/34c342c1-6686-4efa-81ea-2f26d9bf14f7
2025-07-17 17:13:08,853 - DEBUG - ==>Verifying data for policy with id: e2599f70-4a70-4507-9f51-162afd5c5961, fqn: ['default-domain', 'ctest-TestBasicPolicy-63545966', 'ctest-policy-allow-all-92590248']
2025-07-17 17:13:08,853 - INFO - VN ctest-vn-78224955 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 17:13:08,853 - DEBUG - Verifying the vn in opserver
2025-07-17 17:13:08,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-78224955 virtual network link through opserver 10.0.0.27
2025-07-17 17:13:08,853 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-17 17:13:08,868 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-78224955', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-78224955?flat'}
2025-07-17 17:13:08,868 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63545966:ctest-vn-78224955 is found in opserver
2025-07-17 17:13:08,883 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 17:13:08,891 - DEBUG - VRF ids for VN ctest-vn-78224955: {}
2025-07-17 17:13:08,963 - DEBUG - Services list from nova: [