2025-07-03 16:51:35,777 - INFO - Domain Default found not creating
2025-07-03 16:51:36,193 - INFO - Project ctest-TestBasicPolicy-95443741 not found, creating it
2025-07-03 16:51:36,865 - INFO - Created Project:ctest-TestBasicPolicy-95443741, ID : 39391c34-639b-4a32-9eda-7dc326a4cfe8
2025-07-03 16:51:39,199 - INFO - ================================================================================
2025-07-03 16:51:39,200 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-03 16:51:39,200 - 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-03 16:51:39,544 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.254': '0'}} with
2025-07-03 16:51:39,544 - INFO - Initial checks done. Running the testcase now
2025-07-03 16:51:39,544 - INFO -
2025-07-03 16:51:40,503 - DEBUG - Response for create_network : {'network': {'id': '76f63327-b646-475c-8571-18bf19908f6f', 'name': 'ctest-vn-86098509', 'tenant_id': '39391c34639b4a329eda7dc326a4cfe8', 'project_id': '39391c34639b4a329eda7dc326a4cfe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95443741', 'ctest-vn-86098509'], 'port_security_enabled': True, 'description': ''}}
2025-07-03 16:51:40,816 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1e86005-88c3-410f-8240-1ad0c840303a', 'name': '', 'tenant_id': '39391c34639b4a329eda7dc326a4cfe8', 'network_id': '76f63327-b646-475c-8571-18bf19908f6f', 'ip_version': 4, 'cidr': '46.245.221.128/26', 'allocation_pools': [{'start': '46.245.221.130', 'end': '46.245.221.190'}], 'gateway_ip': '46.245.221.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.245.221.130', 'tags': [], 'project_id': '39391c34639b4a329eda7dc326a4cfe8'}}
2025-07-03 16:51:40,867 - INFO - Created VN ctest-vn-86098509
2025-07-03 16:51:40,942 - DEBUG - VN ctest-vn-86098509 UUID is 76f63327-b646-475c-8571-18bf19908f6f
2025-07-03 16:51:41,424 - DEBUG - Response for create_network : {'network': {'id': '4e4cc06d-21da-41e5-9b7d-9e51bf1577e5', 'name': 'ctest-vn-81139737', 'tenant_id': '39391c34639b4a329eda7dc326a4cfe8', 'project_id': '39391c34639b4a329eda7dc326a4cfe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95443741', 'ctest-vn-81139737'], 'port_security_enabled': True, 'description': ''}}
2025-07-03 16:51:41,617 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c6a45ec-4d73-482e-8d34-d004dfd17858', 'name': '', 'tenant_id': '39391c34639b4a329eda7dc326a4cfe8', 'network_id': '4e4cc06d-21da-41e5-9b7d-9e51bf1577e5', 'ip_version': 4, 'cidr': '138.214.89.128/26', 'allocation_pools': [{'start': '138.214.89.130', 'end': '138.214.89.190'}], 'gateway_ip': '138.214.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.214.89.130', 'tags': [], 'project_id': '39391c34639b4a329eda7dc326a4cfe8'}}
2025-07-03 16:51:41,646 - INFO - Created VN ctest-vn-81139737
2025-07-03 16:51:41,706 - DEBUG - VN ctest-vn-81139737 UUID is 4e4cc06d-21da-41e5-9b7d-9e51bf1577e5
2025-07-03 16:51:41,904 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-86098509, 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-95443741:ctest-vn-81139737, 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-03 16:51:42,487 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '76f63327-b646-475c-8571-18bf19908f6f', 'name': 'ctest-vn-86098509', 'tenant_id': '39391c34639b4a329eda7dc326a4cfe8', 'project_id': '39391c34639b4a329eda7dc326a4cfe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1e86005-88c3-410f-8240-1ad0c840303a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95443741', 'ctest-vn-86098509'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95443741', 'ctest-policy-allow-all-82598805']], 'subnet_ipam': [{'subnet_cidr': '46.245.221.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-03 16:51:42,744 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e4cc06d-21da-41e5-9b7d-9e51bf1577e5', 'name': 'ctest-vn-81139737', 'tenant_id': '39391c34639b4a329eda7dc326a4cfe8', 'project_id': '39391c34639b4a329eda7dc326a4cfe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c6a45ec-4d73-482e-8d34-d004dfd17858'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95443741', 'ctest-vn-81139737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95443741', 'ctest-policy-allow-all-82598805']], 'subnet_ipam': [{'subnet_cidr': '138.214.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-03 16:51:42,885 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-03 16:51:43,188 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-03 16:51:43,225 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e634928c-73dc-4c6c-b2a6-83351791fec6
2025-07-03 16:51:43,239 - DEBUG - Requesting: http://10.0.0.57:8082/project/39391c34-639b-4a32-9eda-7dc326a4cfe8
2025-07-03 16:51:43,323 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/76f63327-b646-475c-8571-18bf19908f6f
2025-07-03 16:51:43,342 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/76f63327-b646-475c-8571-18bf19908f6f
2025-07-03 16:51:43,354 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ea25b80e-d001-4fe6-821f-237425ed4a57
2025-07-03 16:51:43,364 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ea25b80e-d001-4fe6-821f-237425ed4a57
2025-07-03 16:51:43,375 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/717c3336-c861-4deb-82e9-a83715cb1b48
2025-07-03 16:51:43,385 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-03 16:51:43,385 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/76f63327-b646-475c-8571-18bf19908f6f
2025-07-03 16:51:43,403 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ea25b80e-d001-4fe6-821f-237425ed4a57
2025-07-03 16:51:43,428 - INFO - Verified VN network id 9 for VN 76f63327-b646-475c-8571-18bf19908f6f
2025-07-03 16:51:43,428 - INFO - Verifications in API Server for VN ctest-vn-86098509 passed
2025-07-03 16:51:43,429 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/76f63327-b646-475c-8571-18bf19908f6f
2025-07-03 16:51:43,443 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ea25b80e-d001-4fe6-821f-237425ed4a57
2025-07-03 16:51:43,453 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ea25b80e-d001-4fe6-821f-237425ed4a57
2025-07-03 16:51:43,469 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/717c3336-c861-4deb-82e9-a83715cb1b48
2025-07-03 16:51:43,494 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-86098509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95443741', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8572095186401118044', 'uuid-lslong': '9615493888459444079'}, 'enable': 'true', 'created': '2025-07-03T16:51:40', 'last-modified': '2025-07-03T16:51:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.053696'}
2025-07-03 16:51:43,509 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-03 16:51:43,509 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86098509 passed
2025-07-03 16:51:43,509 - DEBUG - ====Verifying policy data for ctest-vn-86098509 in API_Server ======
2025-07-03 16:51:43,510 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-03 16:51:43,520 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e634928c-73dc-4c6c-b2a6-83351791fec6
2025-07-03 16:51:43,542 - DEBUG - Requesting: http://10.0.0.57:8082/project/39391c34-639b-4a32-9eda-7dc326a4cfe8
2025-07-03 16:51:43,657 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/76f63327-b646-475c-8571-18bf19908f6f
2025-07-03 16:51:43,673 - DEBUG - ==>Verifying data for policy with id: 70950ad4-0b63-44c7-ab41-dd3c5d86dbf1, fqn: ['default-domain', 'ctest-TestBasicPolicy-95443741', 'ctest-policy-allow-all-82598805']
2025-07-03 16:51:43,673 - INFO - VN ctest-vn-86098509 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-03 16:51:43,673 - DEBUG - Verifying the vn in opserver
2025-07-03 16:51:43,673 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-86098509 virtual network link through opserver 10.0.0.57
2025-07-03 16:51:43,673 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-07-03 16:51:43,998 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-07-03 16:51:44,064 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-86098509', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-86098509?flat'}
2025-07-03 16:51:44,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-86098509 is found in opserver
2025-07-03 16:51:44,083 - DEBUG - Do not have enough data to verify VN in agent
2025-07-03 16:51:44,095 - DEBUG - VRF ids for VN ctest-vn-86098509: {}
2025-07-03 16:51:44,095 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-03 16:51:44,108 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e634928c-73dc-4c6c-b2a6-83351791fec6
2025-07-03 16:51:44,135 - DEBUG - Requesting: http://10.0.0.57:8082/project/39391c34-639b-4a32-9eda-7dc326a4cfe8
2025-07-03 16:51:44,243 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4e4cc06d-21da-41e5-9b7d-9e51bf1577e5
2025-07-03 16:51:44,268 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4e4cc06d-21da-41e5-9b7d-9e51bf1577e5
2025-07-03 16:51:44,293 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/846ec604-685d-4851-a9fd-da650f7f6b27
2025-07-03 16:51:44,307 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/846ec604-685d-4851-a9fd-da650f7f6b27
2025-07-03 16:51:44,321 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/59cc3bab-d4e9-442c-9775-ed288455b009
2025-07-03 16:51:44,336 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-03 16:51:44,336 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4e4cc06d-21da-41e5-9b7d-9e51bf1577e5
2025-07-03 16:51:44,354 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/846ec604-685d-4851-a9fd-da650f7f6b27
2025-07-03 16:51:44,383 - INFO - Verified VN network id 10 for VN 4e4cc06d-21da-41e5-9b7d-9e51bf1577e5
2025-07-03 16:51:44,383 - INFO - Verifications in API Server for VN ctest-vn-81139737 passed
2025-07-03 16:51:44,384 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4e4cc06d-21da-41e5-9b7d-9e51bf1577e5
2025-07-03 16:51:44,405 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/846ec604-685d-4851-a9fd-da650f7f6b27
2025-07-03 16:51:44,422 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/846ec604-685d-4851-a9fd-da650f7f6b27
2025-07-03 16:51:44,442 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/59cc3bab-d4e9-442c-9775-ed288455b009
2025-07-03 16:51:44,481 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-81139737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95443741', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5642096008140308965', 'uuid-lslong': '11204285521903056869'}, 'enable': 'true', 'created': '2025-07-03T16:51:41', 'last-modified': '2025-07-03T16:51:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.758752'}
2025-07-03 16:51:44,504 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-03 16:51:44,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81139737 passed
2025-07-03 16:51:44,506 - DEBUG - ====Verifying policy data for ctest-vn-81139737 in API_Server ======
2025-07-03 16:51:44,506 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-03 16:51:44,523 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e634928c-73dc-4c6c-b2a6-83351791fec6
2025-07-03 16:51:44,554 - DEBUG - Requesting: http://10.0.0.57:8082/project/39391c34-639b-4a32-9eda-7dc326a4cfe8
2025-07-03 16:51:44,672 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4e4cc06d-21da-41e5-9b7d-9e51bf1577e5
2025-07-03 16:51:44,699 - DEBUG - ==>Verifying data for policy with id: 70950ad4-0b63-44c7-ab41-dd3c5d86dbf1, fqn: ['default-domain', 'ctest-TestBasicPolicy-95443741', 'ctest-policy-allow-all-82598805']
2025-07-03 16:51:44,699 - INFO - VN ctest-vn-81139737 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-03 16:51:44,699 - DEBUG - Verifying the vn in opserver
2025-07-03 16:51:44,699 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-81139737 virtual network link through opserver 10.0.0.57
2025-07-03 16:51:44,699 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-07-03 16:51:44,720 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-81139737', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-81139737?flat'}
2025-07-03 16:51:44,720 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95443741:ctest-vn-81139737 is found in opserver
2025-07-03 16:51:44,742 - DEBUG - Do not have enough data to verify VN in agent
2025-07-03 16:51:44,753 - DEBUG - VRF ids for VN ctest-vn-81139737: {}
2025-07-03 16:51:44,884 - DEBUG - Services list from nova: [