2025-05-12 10:39:16,422 - INFO - Domain Default found not creating
2025-05-12 10:39:16,547 - INFO - Project ctest-TestBasicPolicy-88647417 not found, creating it
2025-05-12 10:39:16,978 - INFO - Created Project:ctest-TestBasicPolicy-88647417, ID : d6ca5740-2d62-4630-b365-c2f0223b773f
2025-05-12 10:39:18,354 - INFO - ================================================================================
2025-05-12 10:39:18,354 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-12 10:39:18,354 - 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-05-12 10:39:18,607 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-05-12 10:39:18,608 - INFO - Initial checks done. Running the testcase now
2025-05-12 10:39:18,608 - INFO -
2025-05-12 10:39:19,138 - DEBUG - Response for create_network : {'network': {'id': 'c83c5106-0ac5-420a-8f2c-ccf8d27db41e', 'name': 'ctest-vn-24689437', 'tenant_id': 'd6ca57402d624630b365c2f0223b773f', 'project_id': 'd6ca57402d624630b365c2f0223b773f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88647417', 'ctest-vn-24689437'], 'port_security_enabled': True, 'description': ''}}
2025-05-12 10:39:19,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e885eed3-7ebf-4fe0-a1e5-97b84e7f1bce', 'name': '', 'tenant_id': 'd6ca57402d624630b365c2f0223b773f', 'network_id': 'c83c5106-0ac5-420a-8f2c-ccf8d27db41e', 'ip_version': 4, 'cidr': '108.246.134.128/26', 'allocation_pools': [{'start': '108.246.134.130', 'end': '108.246.134.190'}], 'gateway_ip': '108.246.134.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.246.134.130', 'tags': [], 'project_id': 'd6ca57402d624630b365c2f0223b773f'}}
2025-05-12 10:39:19,350 - INFO - Created VN ctest-vn-24689437
2025-05-12 10:39:19,401 - DEBUG - VN ctest-vn-24689437 UUID is c83c5106-0ac5-420a-8f2c-ccf8d27db41e
2025-05-12 10:39:19,725 - DEBUG - Response for create_network : {'network': {'id': '00adc533-098f-4e98-84d5-cd03df50d98a', 'name': 'ctest-vn-56801406', 'tenant_id': 'd6ca57402d624630b365c2f0223b773f', 'project_id': 'd6ca57402d624630b365c2f0223b773f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88647417', 'ctest-vn-56801406'], 'port_security_enabled': True, 'description': ''}}
2025-05-12 10:39:19,903 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ee95d34-8d5f-400f-9858-210814eed735', 'name': '', 'tenant_id': 'd6ca57402d624630b365c2f0223b773f', 'network_id': '00adc533-098f-4e98-84d5-cd03df50d98a', 'ip_version': 4, 'cidr': '71.233.173.192/26', 'allocation_pools': [{'start': '71.233.173.194', 'end': '71.233.173.254'}], 'gateway_ip': '71.233.173.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.233.173.194', 'tags': [], 'project_id': 'd6ca57402d624630b365c2f0223b773f'}}
2025-05-12 10:39:19,921 - INFO - Created VN ctest-vn-56801406
2025-05-12 10:39:19,977 - DEBUG - VN ctest-vn-56801406 UUID is 00adc533-098f-4e98-84d5-cd03df50d98a
2025-05-12 10:39:20,129 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-24689437, 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-88647417:ctest-vn-56801406, 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-05-12 10:39:20,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c83c5106-0ac5-420a-8f2c-ccf8d27db41e', 'name': 'ctest-vn-24689437', 'tenant_id': 'd6ca57402d624630b365c2f0223b773f', 'project_id': 'd6ca57402d624630b365c2f0223b773f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e885eed3-7ebf-4fe0-a1e5-97b84e7f1bce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88647417', 'ctest-vn-24689437'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88647417', 'ctest-policy-allow-all-06827198']], 'subnet_ipam': [{'subnet_cidr': '108.246.134.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-12 10:39:20,643 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00adc533-098f-4e98-84d5-cd03df50d98a', 'name': 'ctest-vn-56801406', 'tenant_id': 'd6ca57402d624630b365c2f0223b773f', 'project_id': 'd6ca57402d624630b365c2f0223b773f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ee95d34-8d5f-400f-9858-210814eed735'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88647417', 'ctest-vn-56801406'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88647417', 'ctest-policy-allow-all-06827198']], 'subnet_ipam': [{'subnet_cidr': '71.233.173.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-12 10:39:20,817 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-05-12 10:39:21,120 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-05-12 10:39:21,148 - DEBUG - Requesting: http://10.0.0.33:8082/domain/90b7d600-2c3c-4c4d-b8df-25bfb544d6e3
2025-05-12 10:39:21,165 - DEBUG - Requesting: http://10.0.0.33:8082/project/d6ca5740-2d62-4630-b365-c2f0223b773f
2025-05-12 10:39:21,241 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c83c5106-0ac5-420a-8f2c-ccf8d27db41e
2025-05-12 10:39:21,253 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c83c5106-0ac5-420a-8f2c-ccf8d27db41e
2025-05-12 10:39:21,263 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/251e5855-9b03-4f02-90d8-c65cfe1cb724
2025-05-12 10:39:21,270 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/251e5855-9b03-4f02-90d8-c65cfe1cb724
2025-05-12 10:39:21,278 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/cbbfb79c-8aaf-41ae-82b1-c107e37912a5
2025-05-12 10:39:21,286 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-12 10:39:21,286 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c83c5106-0ac5-420a-8f2c-ccf8d27db41e
2025-05-12 10:39:21,298 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/251e5855-9b03-4f02-90d8-c65cfe1cb724
2025-05-12 10:39:21,315 - INFO - Verified VN network id 8 for VN c83c5106-0ac5-420a-8f2c-ccf8d27db41e
2025-05-12 10:39:21,315 - INFO - Verifications in API Server for VN ctest-vn-24689437 passed
2025-05-12 10:39:21,315 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c83c5106-0ac5-420a-8f2c-ccf8d27db41e
2025-05-12 10:39:21,327 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/251e5855-9b03-4f02-90d8-c65cfe1cb724
2025-05-12 10:39:21,336 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/251e5855-9b03-4f02-90d8-c65cfe1cb724
2025-05-12 10:39:21,345 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/cbbfb79c-8aaf-41ae-82b1-c107e37912a5
2025-05-12 10:39:21,359 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-24689437', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88647417', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14428496392580579850', 'uuid-lslong': '10316846215454372894'}, 'enable': 'true', 'created': '2025-05-12T10:39:19', 'last-modified': '2025-05-12T10:39:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967139'}
2025-05-12 10:39:21,368 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-12 10:39:21,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24689437 passed
2025-05-12 10:39:21,369 - DEBUG - ====Verifying policy data for ctest-vn-24689437 in API_Server ======
2025-05-12 10:39:21,369 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-05-12 10:39:21,375 - DEBUG - Requesting: http://10.0.0.33:8082/domain/90b7d600-2c3c-4c4d-b8df-25bfb544d6e3
2025-05-12 10:39:21,389 - DEBUG - Requesting: http://10.0.0.33:8082/project/d6ca5740-2d62-4630-b365-c2f0223b773f
2025-05-12 10:39:21,463 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c83c5106-0ac5-420a-8f2c-ccf8d27db41e
2025-05-12 10:39:21,473 - DEBUG - ==>Verifying data for policy with id: 86646453-8a1d-4d5f-a812-65a0a9eec018, fqn: ['default-domain', 'ctest-TestBasicPolicy-88647417', 'ctest-policy-allow-all-06827198']
2025-05-12 10:39:21,473 - INFO - VN ctest-vn-24689437 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-12 10:39:21,473 - DEBUG - Verifying the vn in opserver
2025-05-12 10:39:21,473 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-24689437 virtual network link through opserver 10.0.0.33
2025-05-12 10:39:21,473 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-05-12 10:39:21,761 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-05-12 10:39:21,812 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-24689437', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-24689437?flat'}
2025-05-12 10:39:21,812 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-24689437 is found in opserver
2025-05-12 10:39:21,823 - DEBUG - Do not have enough data to verify VN in agent
2025-05-12 10:39:21,828 - DEBUG - VRF ids for VN ctest-vn-24689437: {}
2025-05-12 10:39:21,828 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-05-12 10:39:21,834 - DEBUG - Requesting: http://10.0.0.33:8082/domain/90b7d600-2c3c-4c4d-b8df-25bfb544d6e3
2025-05-12 10:39:21,845 - DEBUG - Requesting: http://10.0.0.33:8082/project/d6ca5740-2d62-4630-b365-c2f0223b773f
2025-05-12 10:39:21,914 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00adc533-098f-4e98-84d5-cd03df50d98a
2025-05-12 10:39:21,925 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00adc533-098f-4e98-84d5-cd03df50d98a
2025-05-12 10:39:21,936 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e3be9fc-e44e-4c50-b3b8-945eb35914e7
2025-05-12 10:39:21,943 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e3be9fc-e44e-4c50-b3b8-945eb35914e7
2025-05-12 10:39:21,950 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9c988107-f894-44f2-aedc-d8714ee3c93d
2025-05-12 10:39:21,957 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-12 10:39:21,957 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00adc533-098f-4e98-84d5-cd03df50d98a
2025-05-12 10:39:21,966 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e3be9fc-e44e-4c50-b3b8-945eb35914e7
2025-05-12 10:39:21,980 - INFO - Verified VN network id 9 for VN 00adc533-098f-4e98-84d5-cd03df50d98a
2025-05-12 10:39:21,980 - INFO - Verifications in API Server for VN ctest-vn-56801406 passed
2025-05-12 10:39:21,980 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00adc533-098f-4e98-84d5-cd03df50d98a
2025-05-12 10:39:21,989 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e3be9fc-e44e-4c50-b3b8-945eb35914e7
2025-05-12 10:39:21,996 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e3be9fc-e44e-4c50-b3b8-945eb35914e7
2025-05-12 10:39:22,002 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9c988107-f894-44f2-aedc-d8714ee3c93d
2025-05-12 10:39:22,014 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-56801406', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88647417', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '48911993965334168', 'uuid-lslong': '9571781999561070986'}, 'enable': 'true', 'created': '2025-05-12T10:39:19', 'last-modified': '2025-05-12T10:39:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395144'}
2025-05-12 10:39:22,020 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-12 10:39:22,020 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56801406 passed
2025-05-12 10:39:22,020 - DEBUG - ====Verifying policy data for ctest-vn-56801406 in API_Server ======
2025-05-12 10:39:22,021 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-05-12 10:39:22,026 - DEBUG - Requesting: http://10.0.0.33:8082/domain/90b7d600-2c3c-4c4d-b8df-25bfb544d6e3
2025-05-12 10:39:22,037 - DEBUG - Requesting: http://10.0.0.33:8082/project/d6ca5740-2d62-4630-b365-c2f0223b773f
2025-05-12 10:39:22,108 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/00adc533-098f-4e98-84d5-cd03df50d98a
2025-05-12 10:39:22,118 - DEBUG - ==>Verifying data for policy with id: 86646453-8a1d-4d5f-a812-65a0a9eec018, fqn: ['default-domain', 'ctest-TestBasicPolicy-88647417', 'ctest-policy-allow-all-06827198']
2025-05-12 10:39:22,118 - INFO - VN ctest-vn-56801406 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-12 10:39:22,118 - DEBUG - Verifying the vn in opserver
2025-05-12 10:39:22,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-56801406 virtual network link through opserver 10.0.0.33
2025-05-12 10:39:22,118 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-05-12 10:39:22,128 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-56801406', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-56801406?flat'}
2025-05-12 10:39:22,128 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88647417:ctest-vn-56801406 is found in opserver
2025-05-12 10:39:22,138 - DEBUG - Do not have enough data to verify VN in agent
2025-05-12 10:39:22,142 - DEBUG - VRF ids for VN ctest-vn-56801406: {}
2025-05-12 10:39:22,195 - DEBUG - Services list from nova: [