2025-06-19 08:27:20,406 - INFO - Domain Default found not creating
2025-06-19 08:27:20,573 - INFO - Project ctest-TestBasicPolicy-11437314 not found, creating it
2025-06-19 08:27:21,087 - INFO - Created Project:ctest-TestBasicPolicy-11437314, ID : 3ab96054-1e7f-404a-9fb4-74343de8d3a1
2025-06-19 08:27:22,644 - INFO - ================================================================================
2025-06-19 08:27:22,644 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 08:27:22,644 - 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-19 08:27:22,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-06-19 08:27:22,905 - INFO - Initial checks done. Running the testcase now
2025-06-19 08:27:22,906 - INFO -
2025-06-19 08:27:23,594 - DEBUG - Response for create_network : {'network': {'id': '451370a4-8e76-48cf-bf80-51d6234c9e13', 'name': 'ctest-vn-92201058', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'project_id': '3ab960541e7f404a9fb474343de8d3a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-vn-92201058'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:27:23,777 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8141f53-56f6-4742-9739-4ece758e47d6', 'name': '', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'network_id': '451370a4-8e76-48cf-bf80-51d6234c9e13', 'ip_version': 4, 'cidr': '119.89.253.192/26', 'allocation_pools': [{'start': '119.89.253.194', 'end': '119.89.253.254'}], 'gateway_ip': '119.89.253.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.89.253.194', 'tags': [], 'project_id': '3ab960541e7f404a9fb474343de8d3a1'}}
2025-06-19 08:27:23,796 - INFO - Created VN ctest-vn-92201058
2025-06-19 08:27:23,850 - DEBUG - VN ctest-vn-92201058 UUID is 451370a4-8e76-48cf-bf80-51d6234c9e13
2025-06-19 08:27:24,159 - DEBUG - Response for create_network : {'network': {'id': '739614bd-68a8-483e-bffa-046ff676e80e', 'name': 'ctest-vn-82758749', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'project_id': '3ab960541e7f404a9fb474343de8d3a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-vn-82758749'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:27:24,378 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a69456cc-266d-461c-a5c6-f2fe6ac2f8c2', 'name': '', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'network_id': '739614bd-68a8-483e-bffa-046ff676e80e', 'ip_version': 4, 'cidr': '92.225.224.64/26', 'allocation_pools': [{'start': '92.225.224.66', 'end': '92.225.224.126'}], 'gateway_ip': '92.225.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.225.224.66', 'tags': [], 'project_id': '3ab960541e7f404a9fb474343de8d3a1'}}
2025-06-19 08:27:24,397 - INFO - Created VN ctest-vn-82758749
2025-06-19 08:27:24,449 - DEBUG - VN ctest-vn-82758749 UUID is 739614bd-68a8-483e-bffa-046ff676e80e
2025-06-19 08:27:24,578 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058, 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-11437314:ctest-vn-82758749, 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-19 08:27:24,907 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '451370a4-8e76-48cf-bf80-51d6234c9e13', 'name': 'ctest-vn-92201058', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'project_id': '3ab960541e7f404a9fb474343de8d3a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8141f53-56f6-4742-9739-4ece758e47d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-vn-92201058'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-policy-allow-all-78023560']], 'subnet_ipam': [{'subnet_cidr': '119.89.253.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:27:25,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '739614bd-68a8-483e-bffa-046ff676e80e', 'name': 'ctest-vn-82758749', 'tenant_id': '3ab960541e7f404a9fb474343de8d3a1', 'project_id': '3ab960541e7f404a9fb474343de8d3a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a69456cc-266d-461c-a5c6-f2fe6ac2f8c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-vn-82758749'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-policy-allow-all-78023560']], 'subnet_ipam': [{'subnet_cidr': '92.225.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:27:25,366 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-19 08:27:25,687 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-19 08:27:25,722 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0
2025-06-19 08:27:25,738 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1
2025-06-19 08:27:25,819 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13
2025-06-19 08:27:25,833 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13
2025-06-19 08:27:25,844 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027
2025-06-19 08:27:25,852 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027
2025-06-19 08:27:25,861 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5d07b3eb-58e6-42c7-853f-2f4c0256eda4
2025-06-19 08:27:25,871 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 08:27:25,871 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13
2025-06-19 08:27:25,884 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027
2025-06-19 08:27:25,907 - INFO - Verified VN network id 9 for VN 451370a4-8e76-48cf-bf80-51d6234c9e13
2025-06-19 08:27:25,908 - INFO - Verifications in API Server for VN ctest-vn-92201058 passed
2025-06-19 08:27:25,908 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13
2025-06-19 08:27:25,921 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027
2025-06-19 08:27:25,930 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/32a79ef7-461d-44a7-9583-fff2cebaf027
2025-06-19 08:27:25,938 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5d07b3eb-58e6-42c7-853f-2f4c0256eda4
2025-06-19 08:27:25,950 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11437314', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4977445865241594063', 'uuid-lslong': '13799119238420274707'}, 'enable': 'true', 'created': '2025-06-19T08:27:23', 'last-modified': '2025-06-19T08:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.079838'}
2025-06-19 08:27:25,957 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 08:27:25,957 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92201058 passed
2025-06-19 08:27:25,957 - DEBUG - ====Verifying policy data for ctest-vn-92201058 in API_Server ======
2025-06-19 08:27:25,958 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-19 08:27:25,964 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0
2025-06-19 08:27:25,976 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1
2025-06-19 08:27:26,056 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/451370a4-8e76-48cf-bf80-51d6234c9e13
2025-06-19 08:27:26,067 - DEBUG - ==>Verifying data for policy with id: de57af9f-c763-4bf4-ab15-00a57cd99ae1, fqn: ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-policy-allow-all-78023560']
2025-06-19 08:27:26,067 - INFO - VN ctest-vn-92201058 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 08:27:26,067 - DEBUG - Verifying the vn in opserver
2025-06-19 08:27:26,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058 virtual network link through opserver 10.0.0.249
2025-06-19 08:27:26,067 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-06-19 08:27:26,372 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-06-19 08:27:26,443 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058?flat'}
2025-06-19 08:27:26,443 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-92201058 is found in opserver
2025-06-19 08:27:26,455 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 08:27:26,464 - DEBUG - VRF ids for VN ctest-vn-92201058: {}
2025-06-19 08:27:26,464 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-19 08:27:26,470 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0
2025-06-19 08:27:26,484 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1
2025-06-19 08:27:26,622 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e
2025-06-19 08:27:26,638 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e
2025-06-19 08:27:26,649 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054
2025-06-19 08:27:26,658 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054
2025-06-19 08:27:26,665 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1e38d2e8-856d-46bd-9b85-2abd6bf6582f
2025-06-19 08:27:26,672 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 08:27:26,673 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e
2025-06-19 08:27:26,683 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054
2025-06-19 08:27:26,699 - INFO - Verified VN network id 10 for VN 739614bd-68a8-483e-bffa-046ff676e80e
2025-06-19 08:27:26,700 - INFO - Verifications in API Server for VN ctest-vn-82758749 passed
2025-06-19 08:27:26,700 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e
2025-06-19 08:27:26,710 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054
2025-06-19 08:27:26,719 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/afbb73c8-3f22-436c-8f0a-18b18fed3054
2025-06-19 08:27:26,729 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1e38d2e8-856d-46bd-9b85-2abd6bf6582f
2025-06-19 08:27:26,744 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11437314', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8328867364605544510', 'uuid-lslong': '13833374084344768526'}, 'enable': 'true', 'created': '2025-06-19T08:27:24', 'last-modified': '2025-06-19T08:27:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.610578'}
2025-06-19 08:27:26,752 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 08:27:26,752 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82758749 passed
2025-06-19 08:27:26,752 - DEBUG - ====Verifying policy data for ctest-vn-82758749 in API_Server ======
2025-06-19 08:27:26,753 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-19 08:27:26,759 - DEBUG - Requesting: http://10.0.0.249:8082/domain/78931b0a-ad55-45e4-8319-8b7e936486f0
2025-06-19 08:27:26,774 - DEBUG - Requesting: http://10.0.0.249:8082/project/3ab96054-1e7f-404a-9fb4-74343de8d3a1
2025-06-19 08:27:26,860 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/739614bd-68a8-483e-bffa-046ff676e80e
2025-06-19 08:27:26,876 - DEBUG - ==>Verifying data for policy with id: de57af9f-c763-4bf4-ab15-00a57cd99ae1, fqn: ['default-domain', 'ctest-TestBasicPolicy-11437314', 'ctest-policy-allow-all-78023560']
2025-06-19 08:27:26,876 - INFO - VN ctest-vn-82758749 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 08:27:26,876 - DEBUG - Verifying the vn in opserver
2025-06-19 08:27:26,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749 virtual network link through opserver 10.0.0.249
2025-06-19 08:27:26,876 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-06-19 08:27:26,888 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749?flat'}
2025-06-19 08:27:26,888 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11437314:ctest-vn-82758749 is found in opserver
2025-06-19 08:27:26,901 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 08:27:26,907 - DEBUG - VRF ids for VN ctest-vn-82758749: {}
2025-06-19 08:27:26,980 - DEBUG - Services list from nova: [