2025-07-14 02:02:42,875 - INFO - Domain Default found not creating
2025-07-14 02:02:43,036 - INFO - Project ctest-TestBasicPolicy-55759255 not found, creating it
2025-07-14 02:02:43,531 - INFO - Created Project:ctest-TestBasicPolicy-55759255, ID : 07e68d8f-7a97-486a-8e26-56d045d48168
2025-07-14 02:02:45,046 - INFO - ================================================================================
2025-07-14 02:02:45,046 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-14 02:02:45,046 - 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-14 02:02:45,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.200': '0'}} with
2025-07-14 02:02:45,299 - INFO - Initial checks done. Running the testcase now
2025-07-14 02:02:45,300 - INFO -
2025-07-14 02:02:45,859 - DEBUG - Response for create_network : {'network': {'id': '9560e367-8968-408d-8d40-b218af57fba7', 'name': 'ctest-vn-31844433', 'tenant_id': '07e68d8f7a97486a8e2656d045d48168', 'project_id': '07e68d8f7a97486a8e2656d045d48168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55759255', 'ctest-vn-31844433'], 'port_security_enabled': True, 'description': ''}}
2025-07-14 02:02:46,028 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8be3fe9-93fd-44e6-bd08-46f88c5c1918', 'name': '', 'tenant_id': '07e68d8f7a97486a8e2656d045d48168', 'network_id': '9560e367-8968-408d-8d40-b218af57fba7', 'ip_version': 4, 'cidr': '90.63.144.64/26', 'allocation_pools': [{'start': '90.63.144.66', 'end': '90.63.144.126'}], 'gateway_ip': '90.63.144.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.63.144.66', 'tags': [], 'project_id': '07e68d8f7a97486a8e2656d045d48168'}}
2025-07-14 02:02:46,049 - INFO - Created VN ctest-vn-31844433
2025-07-14 02:02:46,101 - DEBUG - VN ctest-vn-31844433 UUID is 9560e367-8968-408d-8d40-b218af57fba7
2025-07-14 02:02:46,403 - DEBUG - Response for create_network : {'network': {'id': '8cefb565-1410-421e-9182-63c77a9e6528', 'name': 'ctest-vn-89114449', 'tenant_id': '07e68d8f7a97486a8e2656d045d48168', 'project_id': '07e68d8f7a97486a8e2656d045d48168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55759255', 'ctest-vn-89114449'], 'port_security_enabled': True, 'description': ''}}
2025-07-14 02:02:46,576 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e7f7aba-ce02-4859-98d4-a3ada3c14bda', 'name': '', 'tenant_id': '07e68d8f7a97486a8e2656d045d48168', 'network_id': '8cefb565-1410-421e-9182-63c77a9e6528', 'ip_version': 4, 'cidr': '132.147.89.128/26', 'allocation_pools': [{'start': '132.147.89.130', 'end': '132.147.89.190'}], 'gateway_ip': '132.147.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.147.89.130', 'tags': [], 'project_id': '07e68d8f7a97486a8e2656d045d48168'}}
2025-07-14 02:02:46,595 - INFO - Created VN ctest-vn-89114449
2025-07-14 02:02:46,649 - DEBUG - VN ctest-vn-89114449 UUID is 8cefb565-1410-421e-9182-63c77a9e6528
2025-07-14 02:02:46,842 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-31844433, 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-55759255:ctest-vn-89114449, 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-14 02:02:47,181 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9560e367-8968-408d-8d40-b218af57fba7', 'name': 'ctest-vn-31844433', 'tenant_id': '07e68d8f7a97486a8e2656d045d48168', 'project_id': '07e68d8f7a97486a8e2656d045d48168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8be3fe9-93fd-44e6-bd08-46f88c5c1918'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55759255', 'ctest-vn-31844433'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55759255', 'ctest-policy-allow-all-62700184']], 'subnet_ipam': [{'subnet_cidr': '90.63.144.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-14 02:02:47,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8cefb565-1410-421e-9182-63c77a9e6528', 'name': 'ctest-vn-89114449', 'tenant_id': '07e68d8f7a97486a8e2656d045d48168', 'project_id': '07e68d8f7a97486a8e2656d045d48168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e7f7aba-ce02-4859-98d4-a3ada3c14bda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55759255', 'ctest-vn-89114449'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55759255', 'ctest-policy-allow-all-62700184']], 'subnet_ipam': [{'subnet_cidr': '132.147.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-14 02:02:47,589 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-14 02:02:47,896 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-14 02:02:47,933 - DEBUG - Requesting: http://10.0.0.141:8082/domain/d45b311b-3456-473f-8bc7-c85d702ccbc9
2025-07-14 02:02:47,948 - DEBUG - Requesting: http://10.0.0.141:8082/project/07e68d8f-7a97-486a-8e26-56d045d48168
2025-07-14 02:02:48,021 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9560e367-8968-408d-8d40-b218af57fba7
2025-07-14 02:02:48,033 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9560e367-8968-408d-8d40-b218af57fba7
2025-07-14 02:02:48,043 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/00d3c22e-bb52-48bb-87a9-c29a0fe80e35
2025-07-14 02:02:48,051 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/00d3c22e-bb52-48bb-87a9-c29a0fe80e35
2025-07-14 02:02:48,058 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/67f49fe7-7134-44a7-8d9e-ec222709030a
2025-07-14 02:02:48,066 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-14 02:02:48,066 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9560e367-8968-408d-8d40-b218af57fba7
2025-07-14 02:02:48,075 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/00d3c22e-bb52-48bb-87a9-c29a0fe80e35
2025-07-14 02:02:48,091 - INFO - Verified VN network id 8 for VN 9560e367-8968-408d-8d40-b218af57fba7
2025-07-14 02:02:48,091 - INFO - Verifications in API Server for VN ctest-vn-31844433 passed
2025-07-14 02:02:48,092 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9560e367-8968-408d-8d40-b218af57fba7
2025-07-14 02:02:48,102 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/00d3c22e-bb52-48bb-87a9-c29a0fe80e35
2025-07-14 02:02:48,110 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/00d3c22e-bb52-48bb-87a9-c29a0fe80e35
2025-07-14 02:02:48,117 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/67f49fe7-7134-44a7-8d9e-ec222709030a
2025-07-14 02:02:48,131 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-31844433', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55759255', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10763853143241932941', 'uuid-lslong': '10178330976948059047'}, 'enable': 'true', 'created': '2025-07-14T02:02:45', 'last-modified': '2025-07-14T02:02:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979720'}
2025-07-14 02:02:48,138 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-14 02:02:48,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31844433 passed
2025-07-14 02:02:48,138 - DEBUG - ====Verifying policy data for ctest-vn-31844433 in API_Server ======
2025-07-14 02:02:48,138 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-14 02:02:48,145 - DEBUG - Requesting: http://10.0.0.141:8082/domain/d45b311b-3456-473f-8bc7-c85d702ccbc9
2025-07-14 02:02:48,157 - DEBUG - Requesting: http://10.0.0.141:8082/project/07e68d8f-7a97-486a-8e26-56d045d48168
2025-07-14 02:02:48,231 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9560e367-8968-408d-8d40-b218af57fba7
2025-07-14 02:02:48,241 - DEBUG - ==>Verifying data for policy with id: 56942c9b-f307-424c-a7e2-74316bb1cb58, fqn: ['default-domain', 'ctest-TestBasicPolicy-55759255', 'ctest-policy-allow-all-62700184']
2025-07-14 02:02:48,241 - INFO - VN ctest-vn-31844433 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-14 02:02:48,241 - DEBUG - Verifying the vn in opserver
2025-07-14 02:02:48,241 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-31844433 virtual network link through opserver 10.0.0.141
2025-07-14 02:02:48,241 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-07-14 02:02:48,530 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-07-14 02:02:48,597 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-31844433', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-31844433?flat'}
2025-07-14 02:02:48,597 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-31844433 is found in opserver
2025-07-14 02:02:48,609 - DEBUG - Do not have enough data to verify VN in agent
2025-07-14 02:02:48,614 - DEBUG - VRF ids for VN ctest-vn-31844433: {}
2025-07-14 02:02:48,614 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-14 02:02:48,621 - DEBUG - Requesting: http://10.0.0.141:8082/domain/d45b311b-3456-473f-8bc7-c85d702ccbc9
2025-07-14 02:02:48,637 - DEBUG - Requesting: http://10.0.0.141:8082/project/07e68d8f-7a97-486a-8e26-56d045d48168
2025-07-14 02:02:48,716 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cefb565-1410-421e-9182-63c77a9e6528
2025-07-14 02:02:48,730 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cefb565-1410-421e-9182-63c77a9e6528
2025-07-14 02:02:48,742 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88f11caf-d2d3-48f0-9e74-557444af920a
2025-07-14 02:02:48,751 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88f11caf-d2d3-48f0-9e74-557444af920a
2025-07-14 02:02:48,759 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/26a8cdd5-a7c6-467b-9842-825ada3fa1b7
2025-07-14 02:02:48,766 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-14 02:02:48,766 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cefb565-1410-421e-9182-63c77a9e6528
2025-07-14 02:02:48,776 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88f11caf-d2d3-48f0-9e74-557444af920a
2025-07-14 02:02:48,791 - INFO - Verified VN network id 9 for VN 8cefb565-1410-421e-9182-63c77a9e6528
2025-07-14 02:02:48,791 - INFO - Verifications in API Server for VN ctest-vn-89114449 passed
2025-07-14 02:02:48,792 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cefb565-1410-421e-9182-63c77a9e6528
2025-07-14 02:02:48,802 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88f11caf-d2d3-48f0-9e74-557444af920a
2025-07-14 02:02:48,810 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88f11caf-d2d3-48f0-9e74-557444af920a
2025-07-14 02:02:48,820 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/26a8cdd5-a7c6-467b-9842-825ada3fa1b7
2025-07-14 02:02:48,833 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-89114449', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55759255', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10155535130476691998', 'uuid-lslong': '10485052590878778664'}, 'enable': 'true', 'created': '2025-07-14T02:02:46', 'last-modified': '2025-07-14T02:02:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437986'}
2025-07-14 02:02:48,840 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-14 02:02:48,840 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89114449 passed
2025-07-14 02:02:48,840 - DEBUG - ====Verifying policy data for ctest-vn-89114449 in API_Server ======
2025-07-14 02:02:48,840 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-07-14 02:02:48,846 - DEBUG - Requesting: http://10.0.0.141:8082/domain/d45b311b-3456-473f-8bc7-c85d702ccbc9
2025-07-14 02:02:48,858 - DEBUG - Requesting: http://10.0.0.141:8082/project/07e68d8f-7a97-486a-8e26-56d045d48168
2025-07-14 02:02:48,932 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cefb565-1410-421e-9182-63c77a9e6528
2025-07-14 02:02:48,946 - DEBUG - ==>Verifying data for policy with id: 56942c9b-f307-424c-a7e2-74316bb1cb58, fqn: ['default-domain', 'ctest-TestBasicPolicy-55759255', 'ctest-policy-allow-all-62700184']
2025-07-14 02:02:48,946 - INFO - VN ctest-vn-89114449 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-14 02:02:48,946 - DEBUG - Verifying the vn in opserver
2025-07-14 02:02:48,946 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-89114449 virtual network link through opserver 10.0.0.141
2025-07-14 02:02:48,946 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-07-14 02:02:48,959 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-89114449', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-89114449?flat'}
2025-07-14 02:02:48,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55759255:ctest-vn-89114449 is found in opserver
2025-07-14 02:02:48,973 - DEBUG - Do not have enough data to verify VN in agent
2025-07-14 02:02:48,978 - DEBUG - VRF ids for VN ctest-vn-89114449: {}
2025-07-14 02:02:49,041 - DEBUG - Services list from nova: [