2025-06-17 14:53:24,235 - INFO - Domain Default found not creating
2025-06-17 14:53:24,411 - INFO - Project ctest-TestBasicPolicy-77906016 not found, creating it
2025-06-17 14:53:24,936 - INFO - Created Project:ctest-TestBasicPolicy-77906016, ID : a3cfab62-aeb9-4655-939a-80755d8fbf83
2025-06-17 14:53:26,530 - INFO - ================================================================================
2025-06-17 14:53:26,530 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-17 14:53:26,531 - 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-17 14:53:26,799 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-17 14:53:26,799 - INFO - Initial checks done. Running the testcase now
2025-06-17 14:53:26,800 - INFO -
2025-06-17 14:53:27,400 - DEBUG - Response for create_network : {'network': {'id': 'c12f2e61-227b-4c2a-9be8-1e064a5de0a2', 'name': 'ctest-vn-22542687', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'project_id': 'a3cfab62aeb94655939a80755d8fbf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-vn-22542687'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 14:53:27,646 - DEBUG - Response for create_subnet : {'subnet': {'id': '207da45a-fd81-4b4f-b40c-5cc3152f9c8f', 'name': '', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'network_id': 'c12f2e61-227b-4c2a-9be8-1e064a5de0a2', 'ip_version': 4, 'cidr': '202.228.191.0/26', 'allocation_pools': [{'start': '202.228.191.2', 'end': '202.228.191.62'}], 'gateway_ip': '202.228.191.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.228.191.2', 'tags': [], 'project_id': 'a3cfab62aeb94655939a80755d8fbf83'}}
2025-06-17 14:53:27,670 - INFO - Created VN ctest-vn-22542687
2025-06-17 14:53:27,725 - DEBUG - VN ctest-vn-22542687 UUID is c12f2e61-227b-4c2a-9be8-1e064a5de0a2
2025-06-17 14:53:28,046 - DEBUG - Response for create_network : {'network': {'id': '410286aa-9f1f-45cf-a72e-e24cbb8156c6', 'name': 'ctest-vn-86706395', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'project_id': 'a3cfab62aeb94655939a80755d8fbf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-vn-86706395'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 14:53:28,247 - DEBUG - Response for create_subnet : {'subnet': {'id': '04f2f85c-5b82-4dc2-b589-473b6619f520', 'name': '', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'network_id': '410286aa-9f1f-45cf-a72e-e24cbb8156c6', 'ip_version': 4, 'cidr': '112.201.187.0/26', 'allocation_pools': [{'start': '112.201.187.2', 'end': '112.201.187.62'}], 'gateway_ip': '112.201.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.201.187.2', 'tags': [], 'project_id': 'a3cfab62aeb94655939a80755d8fbf83'}}
2025-06-17 14:53:28,267 - INFO - Created VN ctest-vn-86706395
2025-06-17 14:53:28,321 - DEBUG - VN ctest-vn-86706395 UUID is 410286aa-9f1f-45cf-a72e-e24cbb8156c6
2025-06-17 14:53:28,440 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687, 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-77906016:ctest-vn-86706395, 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-17 14:53:28,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c12f2e61-227b-4c2a-9be8-1e064a5de0a2', 'name': 'ctest-vn-22542687', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'project_id': 'a3cfab62aeb94655939a80755d8fbf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['207da45a-fd81-4b4f-b40c-5cc3152f9c8f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-vn-22542687'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-policy-allow-all-95039986']], 'subnet_ipam': [{'subnet_cidr': '202.228.191.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 14:53:29,004 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '410286aa-9f1f-45cf-a72e-e24cbb8156c6', 'name': 'ctest-vn-86706395', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'project_id': 'a3cfab62aeb94655939a80755d8fbf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04f2f85c-5b82-4dc2-b589-473b6619f520'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-vn-86706395'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-policy-allow-all-95039986']], 'subnet_ipam': [{'subnet_cidr': '112.201.187.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 14:53:29,181 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 14:53:29,488 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 14:53:29,522 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253
2025-06-17 14:53:29,538 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83
2025-06-17 14:53:29,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2
2025-06-17 14:53:29,638 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2
2025-06-17 14:53:29,650 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9
2025-06-17 14:53:29,659 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9
2025-06-17 14:53:29,668 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8f81b30-947b-4d57-acab-c27f7327c959
2025-06-17 14:53:29,676 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 14:53:29,676 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2
2025-06-17 14:53:29,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9
2025-06-17 14:53:29,706 - INFO - Verified VN network id 8 for VN c12f2e61-227b-4c2a-9be8-1e064a5de0a2
2025-06-17 14:53:29,706 - INFO - Verifications in API Server for VN ctest-vn-22542687 passed
2025-06-17 14:53:29,706 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2
2025-06-17 14:53:29,717 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9
2025-06-17 14:53:29,727 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9
2025-06-17 14:53:29,737 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8f81b30-947b-4d57-acab-c27f7327c959
2025-06-17 14:53:29,751 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77906016', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13920395967950703658', 'uuid-lslong': '11234262282842005666'}, 'enable': 'true', 'created': '2025-06-17T14:53:27', 'last-modified': '2025-06-17T14:53:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020957'}
2025-06-17 14:53:29,759 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 14:53:29,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22542687 passed
2025-06-17 14:53:29,759 - DEBUG - ====Verifying policy data for ctest-vn-22542687 in API_Server ======
2025-06-17 14:53:29,759 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 14:53:29,765 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253
2025-06-17 14:53:29,779 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83
2025-06-17 14:53:29,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2
2025-06-17 14:53:29,866 - DEBUG - ==>Verifying data for policy with id: 8bc64425-eeed-442b-bd61-0a807d2a4127, fqn: ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-policy-allow-all-95039986']
2025-06-17 14:53:29,866 - INFO - VN ctest-vn-22542687 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 14:53:29,866 - DEBUG - Verifying the vn in opserver
2025-06-17 14:53:29,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687 virtual network link through opserver 10.0.0.254
2025-06-17 14:53:29,867 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-17 14:53:30,179 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-17 14:53:30,241 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687?flat'}
2025-06-17 14:53:30,241 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687 is found in opserver
2025-06-17 14:53:30,254 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 14:53:30,260 - DEBUG - VRF ids for VN ctest-vn-22542687: {}
2025-06-17 14:53:30,260 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 14:53:30,267 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253
2025-06-17 14:53:30,281 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83
2025-06-17 14:53:30,360 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6
2025-06-17 14:53:30,375 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6
2025-06-17 14:53:30,386 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7
2025-06-17 14:53:30,394 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7
2025-06-17 14:53:30,404 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1bedd073-fe85-4829-8005-ce73658d518d
2025-06-17 14:53:30,425 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 14:53:30,425 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6
2025-06-17 14:53:30,437 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7
2025-06-17 14:53:30,460 - INFO - Verified VN network id 9 for VN 410286aa-9f1f-45cf-a72e-e24cbb8156c6
2025-06-17 14:53:30,460 - INFO - Verifications in API Server for VN ctest-vn-86706395 passed
2025-06-17 14:53:30,460 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6
2025-06-17 14:53:30,471 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7
2025-06-17 14:53:30,479 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7
2025-06-17 14:53:30,488 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1bedd073-fe85-4829-8005-ce73658d518d
2025-06-17 14:53:30,504 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77906016', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4684454629790926287', 'uuid-lslong': '12046814872453863110'}, 'enable': 'true', 'created': '2025-06-17T14:53:28', 'last-modified': '2025-06-17T14:53:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530113'}
2025-06-17 14:53:30,512 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 14:53:30,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86706395 passed
2025-06-17 14:53:30,512 - DEBUG - ====Verifying policy data for ctest-vn-86706395 in API_Server ======
2025-06-17 14:53:30,512 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 14:53:30,519 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253
2025-06-17 14:53:30,535 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83
2025-06-17 14:53:30,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6
2025-06-17 14:53:30,637 - DEBUG - ==>Verifying data for policy with id: 8bc64425-eeed-442b-bd61-0a807d2a4127, fqn: ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-policy-allow-all-95039986']
2025-06-17 14:53:30,637 - INFO - VN ctest-vn-86706395 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 14:53:30,637 - DEBUG - Verifying the vn in opserver
2025-06-17 14:53:30,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395 virtual network link through opserver 10.0.0.254
2025-06-17 14:53:30,637 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-17 14:53:30,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395?flat'}
2025-06-17 14:53:30,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395 is found in opserver
2025-06-17 14:53:30,669 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 14:53:30,675 - DEBUG - VRF ids for VN ctest-vn-86706395: {}
2025-06-17 14:53:30,738 - DEBUG - Services list from nova: [