2025-06-24 12:26:32,177 - INFO - Domain Default found not creating
2025-06-24 12:26:32,335 - INFO - Project ctest-TestBasicPolicy-06663654 not found, creating it
2025-06-24 12:26:32,806 - INFO - Created Project:ctest-TestBasicPolicy-06663654, ID : e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03
2025-06-24 12:26:34,351 - INFO - ================================================================================
2025-06-24 12:26:34,352 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 12:26:34,352 - 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-24 12:26:34,608 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-06-24 12:26:34,608 - INFO - Initial checks done. Running the testcase now
2025-06-24 12:26:34,608 - INFO -
2025-06-24 12:26:35,197 - DEBUG - Response for create_network : {'network': {'id': 'd3e7e73e-668a-4a90-9ef5-118bcb02fbce', 'name': 'ctest-vn-25401462', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-vn-25401462'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:26:35,366 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c96a4a3-7452-4505-89f1-e7f43256a417', 'name': '', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'network_id': 'd3e7e73e-668a-4a90-9ef5-118bcb02fbce', 'ip_version': 4, 'cidr': '171.208.72.64/26', 'allocation_pools': [{'start': '171.208.72.66', 'end': '171.208.72.126'}], 'gateway_ip': '171.208.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.208.72.66', 'tags': [], 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03'}}
2025-06-24 12:26:35,389 - INFO - Created VN ctest-vn-25401462
2025-06-24 12:26:35,442 - DEBUG - VN ctest-vn-25401462 UUID is d3e7e73e-668a-4a90-9ef5-118bcb02fbce
2025-06-24 12:26:35,753 - DEBUG - Response for create_network : {'network': {'id': '5154a519-a1af-4538-90cc-3e91f226f88b', 'name': 'ctest-vn-42383199', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-vn-42383199'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:26:35,976 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f3163ae-a4e2-4c5b-bf52-da2825a79ccb', 'name': '', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'network_id': '5154a519-a1af-4538-90cc-3e91f226f88b', 'ip_version': 4, 'cidr': '185.110.123.128/26', 'allocation_pools': [{'start': '185.110.123.130', 'end': '185.110.123.190'}], 'gateway_ip': '185.110.123.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.110.123.130', 'tags': [], 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03'}}
2025-06-24 12:26:35,998 - INFO - Created VN ctest-vn-42383199
2025-06-24 12:26:36,054 - DEBUG - VN ctest-vn-42383199 UUID is 5154a519-a1af-4538-90cc-3e91f226f88b
2025-06-24 12:26:36,178 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462, 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-06663654:ctest-vn-42383199, 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-24 12:26:36,484 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3e7e73e-668a-4a90-9ef5-118bcb02fbce', 'name': 'ctest-vn-25401462', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c96a4a3-7452-4505-89f1-e7f43256a417'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-vn-25401462'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-policy-allow-all-44427251']], 'subnet_ipam': [{'subnet_cidr': '171.208.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:26:36,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5154a519-a1af-4538-90cc-3e91f226f88b', 'name': 'ctest-vn-42383199', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f3163ae-a4e2-4c5b-bf52-da2825a79ccb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-vn-42383199'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-policy-allow-all-44427251']], 'subnet_ipam': [{'subnet_cidr': '185.110.123.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 12:26:36,918 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-24 12:26:37,229 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-24 12:26:37,262 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7
2025-06-24 12:26:37,276 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03
2025-06-24 12:26:37,364 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce
2025-06-24 12:26:37,377 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce
2025-06-24 12:26:37,388 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b
2025-06-24 12:26:37,397 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b
2025-06-24 12:26:37,405 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/73f16fa5-f566-43b5-a568-01b7d438d10e
2025-06-24 12:26:37,413 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 12:26:37,413 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce
2025-06-24 12:26:37,424 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b
2025-06-24 12:26:37,455 - INFO - Verified VN network id 8 for VN d3e7e73e-668a-4a90-9ef5-118bcb02fbce
2025-06-24 12:26:37,455 - INFO - Verifications in API Server for VN ctest-vn-25401462 passed
2025-06-24 12:26:37,455 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce
2025-06-24 12:26:37,466 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b
2025-06-24 12:26:37,474 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b
2025-06-24 12:26:37,483 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/73f16fa5-f566-43b5-a568-01b7d438d10e
2025-06-24 12:26:37,496 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06663654', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15269427316817283728', 'uuid-lslong': '11454080519390821326'}, 'enable': 'true', 'created': '2025-06-24T12:26:35', 'last-modified': '2025-06-24T12:26:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030169'}
2025-06-24 12:26:37,504 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 12:26:37,504 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25401462 passed
2025-06-24 12:26:37,504 - DEBUG - ====Verifying policy data for ctest-vn-25401462 in API_Server ======
2025-06-24 12:26:37,504 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-24 12:26:37,512 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7
2025-06-24 12:26:37,526 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03
2025-06-24 12:26:37,610 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce
2025-06-24 12:26:37,620 - DEBUG - ==>Verifying data for policy with id: 8bf2a95a-1916-42ea-a558-91cab906cd98, fqn: ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-policy-allow-all-44427251']
2025-06-24 12:26:37,620 - INFO - VN ctest-vn-25401462 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 12:26:37,620 - DEBUG - Verifying the vn in opserver
2025-06-24 12:26:37,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462 virtual network link through opserver 10.0.0.130
2025-06-24 12:26:37,621 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-24 12:26:37,912 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-24 12:26:37,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462?flat'}
2025-06-24 12:26:37,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462 is found in opserver
2025-06-24 12:26:37,998 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 12:26:38,005 - DEBUG - VRF ids for VN ctest-vn-25401462: {}
2025-06-24 12:26:38,005 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-24 12:26:38,012 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7
2025-06-24 12:26:38,025 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03
2025-06-24 12:26:38,104 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b
2025-06-24 12:26:38,120 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b
2025-06-24 12:26:38,133 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e
2025-06-24 12:26:38,143 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e
2025-06-24 12:26:38,153 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d1867354-8e5b-4659-a478-051e4b61beb4
2025-06-24 12:26:38,161 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 12:26:38,161 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b
2025-06-24 12:26:38,171 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e
2025-06-24 12:26:38,189 - INFO - Verified VN network id 9 for VN 5154a519-a1af-4538-90cc-3e91f226f88b
2025-06-24 12:26:38,189 - INFO - Verifications in API Server for VN ctest-vn-42383199 passed
2025-06-24 12:26:38,190 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b
2025-06-24 12:26:38,202 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e
2025-06-24 12:26:38,212 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e
2025-06-24 12:26:38,223 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d1867354-8e5b-4659-a478-051e4b61beb4
2025-06-24 12:26:38,240 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06663654', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5860490544621241656', 'uuid-lslong': '10433783233264416907'}, 'enable': 'true', 'created': '2025-06-24T12:26:35', 'last-modified': '2025-06-24T12:26:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.547715'}
2025-06-24 12:26:38,249 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 12:26:38,249 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42383199 passed
2025-06-24 12:26:38,250 - DEBUG - ====Verifying policy data for ctest-vn-42383199 in API_Server ======
2025-06-24 12:26:38,250 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-24 12:26:38,257 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7
2025-06-24 12:26:38,272 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03
2025-06-24 12:26:38,347 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b
2025-06-24 12:26:38,360 - DEBUG - ==>Verifying data for policy with id: 8bf2a95a-1916-42ea-a558-91cab906cd98, fqn: ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-policy-allow-all-44427251']
2025-06-24 12:26:38,360 - INFO - VN ctest-vn-42383199 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 12:26:38,360 - DEBUG - Verifying the vn in opserver
2025-06-24 12:26:38,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199 virtual network link through opserver 10.0.0.130
2025-06-24 12:26:38,360 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-24 12:26:38,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199?flat'}
2025-06-24 12:26:38,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199 is found in opserver
2025-06-24 12:26:38,384 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 12:26:38,390 - DEBUG - VRF ids for VN ctest-vn-42383199: {}
2025-06-24 12:26:38,461 - DEBUG - Services list from nova: [