2025-06-15 09:24:28,748 - INFO - Domain Default found not creating
2025-06-15 09:24:28,891 - INFO - Project ctest-TestBasicPolicy-38986770 not found, creating it
2025-06-15 09:24:29,338 - INFO - Created Project:ctest-TestBasicPolicy-38986770, ID : aabd72d8-8e72-4bb4-875e-3897533b054b
2025-06-15 09:24:30,947 - INFO - ================================================================================
2025-06-15 09:24:30,947 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-15 09:24:30,947 - 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-15 09:24:31,206 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-06-15 09:24:31,206 - INFO - Initial checks done. Running the testcase now
2025-06-15 09:24:31,206 - INFO -
2025-06-15 09:24:31,800 - DEBUG - Response for create_network : {'network': {'id': '34054a87-0c76-494f-a44c-ababee51aa3a', 'name': 'ctest-vn-24303937', 'tenant_id': 'aabd72d88e724bb4875e3897533b054b', 'project_id': 'aabd72d88e724bb4875e3897533b054b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38986770', 'ctest-vn-24303937'], 'port_security_enabled': True, 'description': ''}}
2025-06-15 09:24:31,970 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bf761c1-f4b9-48eb-8f39-b79080c74694', 'name': '', 'tenant_id': 'aabd72d88e724bb4875e3897533b054b', 'network_id': '34054a87-0c76-494f-a44c-ababee51aa3a', 'ip_version': 4, 'cidr': '7.253.236.0/26', 'allocation_pools': [{'start': '7.253.236.2', 'end': '7.253.236.62'}], 'gateway_ip': '7.253.236.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.253.236.2', 'tags': [], 'project_id': 'aabd72d88e724bb4875e3897533b054b'}}
2025-06-15 09:24:31,989 - INFO - Created VN ctest-vn-24303937
2025-06-15 09:24:32,044 - DEBUG - VN ctest-vn-24303937 UUID is 34054a87-0c76-494f-a44c-ababee51aa3a
2025-06-15 09:24:32,349 - DEBUG - Response for create_network : {'network': {'id': '367d6784-9750-46ec-b6ad-c342527de76b', 'name': 'ctest-vn-68232001', 'tenant_id': 'aabd72d88e724bb4875e3897533b054b', 'project_id': 'aabd72d88e724bb4875e3897533b054b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38986770', 'ctest-vn-68232001'], 'port_security_enabled': True, 'description': ''}}
2025-06-15 09:24:32,552 - DEBUG - Response for create_subnet : {'subnet': {'id': '84e57159-98b1-4d88-a1ac-ecae35cd1658', 'name': '', 'tenant_id': 'aabd72d88e724bb4875e3897533b054b', 'network_id': '367d6784-9750-46ec-b6ad-c342527de76b', 'ip_version': 4, 'cidr': '123.114.36.64/26', 'allocation_pools': [{'start': '123.114.36.66', 'end': '123.114.36.126'}], 'gateway_ip': '123.114.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.114.36.66', 'tags': [], 'project_id': 'aabd72d88e724bb4875e3897533b054b'}}
2025-06-15 09:24:32,571 - INFO - Created VN ctest-vn-68232001
2025-06-15 09:24:32,628 - DEBUG - VN ctest-vn-68232001 UUID is 367d6784-9750-46ec-b6ad-c342527de76b
2025-06-15 09:24:32,783 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-24303937, 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-38986770:ctest-vn-68232001, 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-15 09:24:33,086 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34054a87-0c76-494f-a44c-ababee51aa3a', 'name': 'ctest-vn-24303937', 'tenant_id': 'aabd72d88e724bb4875e3897533b054b', 'project_id': 'aabd72d88e724bb4875e3897533b054b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bf761c1-f4b9-48eb-8f39-b79080c74694'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38986770', 'ctest-vn-24303937'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38986770', 'ctest-policy-allow-all-52911198']], 'subnet_ipam': [{'subnet_cidr': '7.253.236.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-15 09:24:33,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '367d6784-9750-46ec-b6ad-c342527de76b', 'name': 'ctest-vn-68232001', 'tenant_id': 'aabd72d88e724bb4875e3897533b054b', 'project_id': 'aabd72d88e724bb4875e3897533b054b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84e57159-98b1-4d88-a1ac-ecae35cd1658'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38986770', 'ctest-vn-68232001'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38986770', 'ctest-policy-allow-all-52911198']], 'subnet_ipam': [{'subnet_cidr': '123.114.36.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-15 09:24:33,484 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-15 09:24:33,823 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-15 09:24:33,851 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1f766997-114d-407b-968d-2f81ae79b1d5
2025-06-15 09:24:33,865 - DEBUG - Requesting: http://10.0.0.38:8082/project/aabd72d8-8e72-4bb4-875e-3897533b054b
2025-06-15 09:24:33,944 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34054a87-0c76-494f-a44c-ababee51aa3a
2025-06-15 09:24:33,956 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34054a87-0c76-494f-a44c-ababee51aa3a
2025-06-15 09:24:33,967 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d58420f-5299-490b-966b-82137470f1d7
2025-06-15 09:24:33,975 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d58420f-5299-490b-966b-82137470f1d7
2025-06-15 09:24:33,982 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1e966d9c-b6d1-4548-aff1-e32be3e76da6
2025-06-15 09:24:33,989 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-15 09:24:33,989 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34054a87-0c76-494f-a44c-ababee51aa3a
2025-06-15 09:24:33,998 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d58420f-5299-490b-966b-82137470f1d7
2025-06-15 09:24:34,013 - INFO - Verified VN network id 8 for VN 34054a87-0c76-494f-a44c-ababee51aa3a
2025-06-15 09:24:34,013 - INFO - Verifications in API Server for VN ctest-vn-24303937 passed
2025-06-15 09:24:34,013 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34054a87-0c76-494f-a44c-ababee51aa3a
2025-06-15 09:24:34,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d58420f-5299-490b-966b-82137470f1d7
2025-06-15 09:24:34,039 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d58420f-5299-490b-966b-82137470f1d7
2025-06-15 09:24:34,046 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1e966d9c-b6d1-4548-aff1-e32be3e76da6
2025-06-15 09:24:34,059 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-24303937', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38986770', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3748484208745924943', 'uuid-lslong': '11839026275376278074'}, 'enable': 'true', 'created': '2025-06-15T09:24:31', 'last-modified': '2025-06-15T09:24:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994150'}
2025-06-15 09:24:34,066 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-15 09:24:34,066 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24303937 passed
2025-06-15 09:24:34,067 - DEBUG - ====Verifying policy data for ctest-vn-24303937 in API_Server ======
2025-06-15 09:24:34,067 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-15 09:24:34,072 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1f766997-114d-407b-968d-2f81ae79b1d5
2025-06-15 09:24:34,085 - DEBUG - Requesting: http://10.0.0.38:8082/project/aabd72d8-8e72-4bb4-875e-3897533b054b
2025-06-15 09:24:34,158 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34054a87-0c76-494f-a44c-ababee51aa3a
2025-06-15 09:24:34,176 - DEBUG - ==>Verifying data for policy with id: a121c375-442f-4063-aa90-ed07e4753509, fqn: ['default-domain', 'ctest-TestBasicPolicy-38986770', 'ctest-policy-allow-all-52911198']
2025-06-15 09:24:34,176 - INFO - VN ctest-vn-24303937 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-15 09:24:34,176 - DEBUG - Verifying the vn in opserver
2025-06-15 09:24:34,176 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-24303937 virtual network link through opserver 10.0.0.38
2025-06-15 09:24:34,176 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-15 09:24:34,510 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-15 09:24:34,564 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-24303937', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-24303937?flat'}
2025-06-15 09:24:34,564 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-24303937 is found in opserver
2025-06-15 09:24:34,575 - DEBUG - Do not have enough data to verify VN in agent
2025-06-15 09:24:34,580 - DEBUG - VRF ids for VN ctest-vn-24303937: {}
2025-06-15 09:24:34,580 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-15 09:24:34,586 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1f766997-114d-407b-968d-2f81ae79b1d5
2025-06-15 09:24:34,600 - DEBUG - Requesting: http://10.0.0.38:8082/project/aabd72d8-8e72-4bb4-875e-3897533b054b
2025-06-15 09:24:34,675 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/367d6784-9750-46ec-b6ad-c342527de76b
2025-06-15 09:24:34,687 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/367d6784-9750-46ec-b6ad-c342527de76b
2025-06-15 09:24:34,697 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cda13de0-41f1-4b2b-a428-f6dd2cfc5b90
2025-06-15 09:24:34,704 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cda13de0-41f1-4b2b-a428-f6dd2cfc5b90
2025-06-15 09:24:34,711 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5e0cc157-612c-4e0e-a96c-d38a1e329592
2025-06-15 09:24:34,718 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-15 09:24:34,718 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/367d6784-9750-46ec-b6ad-c342527de76b
2025-06-15 09:24:34,728 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cda13de0-41f1-4b2b-a428-f6dd2cfc5b90
2025-06-15 09:24:34,742 - INFO - Verified VN network id 9 for VN 367d6784-9750-46ec-b6ad-c342527de76b
2025-06-15 09:24:34,742 - INFO - Verifications in API Server for VN ctest-vn-68232001 passed
2025-06-15 09:24:34,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/367d6784-9750-46ec-b6ad-c342527de76b
2025-06-15 09:24:34,752 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cda13de0-41f1-4b2b-a428-f6dd2cfc5b90
2025-06-15 09:24:34,760 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cda13de0-41f1-4b2b-a428-f6dd2cfc5b90
2025-06-15 09:24:34,766 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5e0cc157-612c-4e0e-a96c-d38a1e329592
2025-06-15 09:24:34,778 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-68232001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38986770', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3926408269308905196', 'uuid-lslong': '13163391975493068651'}, 'enable': 'true', 'created': '2025-06-15T09:24:32', 'last-modified': '2025-06-15T09:24:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480134'}
2025-06-15 09:24:34,785 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-15 09:24:34,785 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68232001 passed
2025-06-15 09:24:34,785 - DEBUG - ====Verifying policy data for ctest-vn-68232001 in API_Server ======
2025-06-15 09:24:34,785 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-15 09:24:34,791 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1f766997-114d-407b-968d-2f81ae79b1d5
2025-06-15 09:24:34,804 - DEBUG - Requesting: http://10.0.0.38:8082/project/aabd72d8-8e72-4bb4-875e-3897533b054b
2025-06-15 09:24:34,875 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/367d6784-9750-46ec-b6ad-c342527de76b
2025-06-15 09:24:34,886 - DEBUG - ==>Verifying data for policy with id: a121c375-442f-4063-aa90-ed07e4753509, fqn: ['default-domain', 'ctest-TestBasicPolicy-38986770', 'ctest-policy-allow-all-52911198']
2025-06-15 09:24:34,886 - INFO - VN ctest-vn-68232001 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-15 09:24:34,886 - DEBUG - Verifying the vn in opserver
2025-06-15 09:24:34,886 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-68232001 virtual network link through opserver 10.0.0.38
2025-06-15 09:24:34,886 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-15 09:24:34,897 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-68232001', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-68232001?flat'}
2025-06-15 09:24:34,897 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38986770:ctest-vn-68232001 is found in opserver
2025-06-15 09:24:34,908 - DEBUG - Do not have enough data to verify VN in agent
2025-06-15 09:24:34,913 - DEBUG - VRF ids for VN ctest-vn-68232001: {}
2025-06-15 09:24:34,971 - DEBUG - Services list from nova: [