2025-01-13 16:07:13,758 - INFO - Domain Default found not creating
2025-01-13 16:07:13,924 - INFO - Project ctest-TestBasicPolicy-12138651 not found, creating it
2025-01-13 16:07:14,422 - INFO - Created Project:ctest-TestBasicPolicy-12138651, ID : 171a51de-17fb-49da-9534-18f99ab660aa
2025-01-13 16:07:15,974 - INFO - ================================================================================
2025-01-13 16:07:15,974 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 16:07:15,974 - 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-01-13 16:07:16,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.29': '0'}} with
2025-01-13 16:07:16,239 - INFO - Initial checks done. Running the testcase now
2025-01-13 16:07:16,239 - INFO -
2025-01-13 16:07:16,817 - DEBUG - Response for create_network : {'network': {'id': '26491f32-0433-4e5a-b66d-efff184d8eae', 'name': 'ctest-vn-49937529', 'tenant_id': '171a51de17fb49da953418f99ab660aa', 'project_id': '171a51de17fb49da953418f99ab660aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12138651', 'ctest-vn-49937529'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 16:07:17,068 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d5c7d02-929f-478e-9f5a-e657c20d5d42', 'name': '', 'tenant_id': '171a51de17fb49da953418f99ab660aa', 'network_id': '26491f32-0433-4e5a-b66d-efff184d8eae', 'ip_version': 4, 'cidr': '29.141.141.192/26', 'allocation_pools': [{'start': '29.141.141.194', 'end': '29.141.141.254'}], 'gateway_ip': '29.141.141.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.141.141.194', 'tags': [], 'project_id': '171a51de17fb49da953418f99ab660aa'}}
2025-01-13 16:07:17,091 - INFO - Created VN ctest-vn-49937529
2025-01-13 16:07:17,144 - DEBUG - VN ctest-vn-49937529 UUID is 26491f32-0433-4e5a-b66d-efff184d8eae
2025-01-13 16:07:17,479 - DEBUG - Response for create_network : {'network': {'id': 'f1bb9ea4-6ee7-42e0-942c-0f0b0616c317', 'name': 'ctest-vn-52639849', 'tenant_id': '171a51de17fb49da953418f99ab660aa', 'project_id': '171a51de17fb49da953418f99ab660aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12138651', 'ctest-vn-52639849'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 16:07:17,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb31aa2b-db37-45c3-b90f-10db1b3d9e7d', 'name': '', 'tenant_id': '171a51de17fb49da953418f99ab660aa', 'network_id': 'f1bb9ea4-6ee7-42e0-942c-0f0b0616c317', 'ip_version': 4, 'cidr': '83.14.5.0/26', 'allocation_pools': [{'start': '83.14.5.2', 'end': '83.14.5.62'}], 'gateway_ip': '83.14.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.14.5.2', 'tags': [], 'project_id': '171a51de17fb49da953418f99ab660aa'}}
2025-01-13 16:07:17,678 - INFO - Created VN ctest-vn-52639849
2025-01-13 16:07:17,732 - DEBUG - VN ctest-vn-52639849 UUID is f1bb9ea4-6ee7-42e0-942c-0f0b0616c317
2025-01-13 16:07:17,861 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-49937529, 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-12138651:ctest-vn-52639849, 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-01-13 16:07:18,186 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26491f32-0433-4e5a-b66d-efff184d8eae', 'name': 'ctest-vn-49937529', 'tenant_id': '171a51de17fb49da953418f99ab660aa', 'project_id': '171a51de17fb49da953418f99ab660aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d5c7d02-929f-478e-9f5a-e657c20d5d42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12138651', 'ctest-vn-49937529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12138651', 'ctest-policy-allow-all-71684522']], 'subnet_ipam': [{'subnet_cidr': '29.141.141.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 16:07:18,432 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1bb9ea4-6ee7-42e0-942c-0f0b0616c317', 'name': 'ctest-vn-52639849', 'tenant_id': '171a51de17fb49da953418f99ab660aa', 'project_id': '171a51de17fb49da953418f99ab660aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb31aa2b-db37-45c3-b90f-10db1b3d9e7d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12138651', 'ctest-vn-52639849'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12138651', 'ctest-policy-allow-all-71684522']], 'subnet_ipam': [{'subnet_cidr': '83.14.5.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 16:07:18,604 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-01-13 16:07:18,918 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-01-13 16:07:18,950 - DEBUG - Requesting: http://10.0.0.36:8082/domain/0e2bf825-cc41-4f4b-b114-58d7f89f3c4b
2025-01-13 16:07:18,966 - DEBUG - Requesting: http://10.0.0.36:8082/project/171a51de-17fb-49da-9534-18f99ab660aa
2025-01-13 16:07:19,051 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/26491f32-0433-4e5a-b66d-efff184d8eae
2025-01-13 16:07:19,064 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/26491f32-0433-4e5a-b66d-efff184d8eae
2025-01-13 16:07:19,074 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9814d484-9234-4312-9080-eeac47949c2b
2025-01-13 16:07:19,083 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9814d484-9234-4312-9080-eeac47949c2b
2025-01-13 16:07:19,096 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f787efd0-d205-45cc-a34c-275a16b66b28
2025-01-13 16:07:19,107 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 16:07:19,108 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/26491f32-0433-4e5a-b66d-efff184d8eae
2025-01-13 16:07:19,118 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9814d484-9234-4312-9080-eeac47949c2b
2025-01-13 16:07:19,134 - INFO - Verified VN network id 8 for VN 26491f32-0433-4e5a-b66d-efff184d8eae
2025-01-13 16:07:19,134 - INFO - Verifications in API Server for VN ctest-vn-49937529 passed
2025-01-13 16:07:19,134 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/26491f32-0433-4e5a-b66d-efff184d8eae
2025-01-13 16:07:19,146 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9814d484-9234-4312-9080-eeac47949c2b
2025-01-13 16:07:19,155 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9814d484-9234-4312-9080-eeac47949c2b
2025-01-13 16:07:19,164 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f787efd0-d205-45cc-a34c-275a16b66b28
2025-01-13 16:07:19,177 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-49937529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12138651', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2758770546420436570', 'uuid-lslong': '13145426766267780782'}, 'enable': 'true', 'created': '2025-01-13T16:07:16', 'last-modified': '2025-01-13T16:07:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014173'}
2025-01-13 16:07:19,185 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 16:07:19,185 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49937529 passed
2025-01-13 16:07:19,185 - DEBUG - ====Verifying policy data for ctest-vn-49937529 in API_Server ======
2025-01-13 16:07:19,185 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-01-13 16:07:19,193 - DEBUG - Requesting: http://10.0.0.36:8082/domain/0e2bf825-cc41-4f4b-b114-58d7f89f3c4b
2025-01-13 16:07:19,208 - DEBUG - Requesting: http://10.0.0.36:8082/project/171a51de-17fb-49da-9534-18f99ab660aa
2025-01-13 16:07:19,291 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/26491f32-0433-4e5a-b66d-efff184d8eae
2025-01-13 16:07:19,302 - DEBUG - ==>Verifying data for policy with id: 2a8d6d74-dd7f-4bad-8b0b-bbd3e4ca78e8, fqn: ['default-domain', 'ctest-TestBasicPolicy-12138651', 'ctest-policy-allow-all-71684522']
2025-01-13 16:07:19,302 - INFO - VN ctest-vn-49937529 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 16:07:19,303 - DEBUG - Verifying the vn in opserver
2025-01-13 16:07:19,303 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-49937529 virtual network link through opserver 10.0.0.36
2025-01-13 16:07:19,303 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-01-13 16:07:19,601 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-01-13 16:07:19,665 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-49937529', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-49937529?flat'}
2025-01-13 16:07:19,665 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-49937529 is found in opserver
2025-01-13 16:07:19,678 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 16:07:19,684 - DEBUG - VRF ids for VN ctest-vn-49937529: {}
2025-01-13 16:07:19,684 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-01-13 16:07:19,691 - DEBUG - Requesting: http://10.0.0.36:8082/domain/0e2bf825-cc41-4f4b-b114-58d7f89f3c4b
2025-01-13 16:07:19,703 - DEBUG - Requesting: http://10.0.0.36:8082/project/171a51de-17fb-49da-9534-18f99ab660aa
2025-01-13 16:07:19,778 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f1bb9ea4-6ee7-42e0-942c-0f0b0616c317
2025-01-13 16:07:19,791 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f1bb9ea4-6ee7-42e0-942c-0f0b0616c317
2025-01-13 16:07:19,804 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/15fe7c08-730d-4ea5-9f6a-6f4ffa117dab
2025-01-13 16:07:19,814 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/15fe7c08-730d-4ea5-9f6a-6f4ffa117dab
2025-01-13 16:07:19,822 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/dbd126f2-d439-42e8-9872-bf489a96e4d4
2025-01-13 16:07:19,830 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 16:07:19,830 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f1bb9ea4-6ee7-42e0-942c-0f0b0616c317
2025-01-13 16:07:19,843 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/15fe7c08-730d-4ea5-9f6a-6f4ffa117dab
2025-01-13 16:07:19,861 - INFO - Verified VN network id 9 for VN f1bb9ea4-6ee7-42e0-942c-0f0b0616c317
2025-01-13 16:07:19,861 - INFO - Verifications in API Server for VN ctest-vn-52639849 passed
2025-01-13 16:07:19,861 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f1bb9ea4-6ee7-42e0-942c-0f0b0616c317
2025-01-13 16:07:19,873 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/15fe7c08-730d-4ea5-9f6a-6f4ffa117dab
2025-01-13 16:07:19,882 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/15fe7c08-730d-4ea5-9f6a-6f4ffa117dab
2025-01-13 16:07:19,893 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/dbd126f2-d439-42e8-9872-bf489a96e4d4
2025-01-13 16:07:19,909 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-52639849', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12138651', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17418690412858000096', 'uuid-lslong': '10676925356609815319'}, 'enable': 'true', 'created': '2025-01-13T16:07:17', 'last-modified': '2025-01-13T16:07:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.506875'}
2025-01-13 16:07:19,916 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 16:07:19,916 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52639849 passed
2025-01-13 16:07:19,916 - DEBUG - ====Verifying policy data for ctest-vn-52639849 in API_Server ======
2025-01-13 16:07:19,917 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-01-13 16:07:19,923 - DEBUG - Requesting: http://10.0.0.36:8082/domain/0e2bf825-cc41-4f4b-b114-58d7f89f3c4b
2025-01-13 16:07:19,937 - DEBUG - Requesting: http://10.0.0.36:8082/project/171a51de-17fb-49da-9534-18f99ab660aa
2025-01-13 16:07:20,018 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f1bb9ea4-6ee7-42e0-942c-0f0b0616c317
2025-01-13 16:07:20,031 - DEBUG - ==>Verifying data for policy with id: 2a8d6d74-dd7f-4bad-8b0b-bbd3e4ca78e8, fqn: ['default-domain', 'ctest-TestBasicPolicy-12138651', 'ctest-policy-allow-all-71684522']
2025-01-13 16:07:20,031 - INFO - VN ctest-vn-52639849 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 16:07:20,031 - DEBUG - Verifying the vn in opserver
2025-01-13 16:07:20,031 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-52639849 virtual network link through opserver 10.0.0.36
2025-01-13 16:07:20,031 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-01-13 16:07:20,044 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-52639849', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-52639849?flat'}
2025-01-13 16:07:20,044 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12138651:ctest-vn-52639849 is found in opserver
2025-01-13 16:07:20,055 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 16:07:20,061 - DEBUG - VRF ids for VN ctest-vn-52639849: {}
2025-01-13 16:07:20,127 - DEBUG - Services list from nova: [