2025-04-26 11:25:10,687 - INFO - Domain Default found not creating
2025-04-26 11:25:10,848 - INFO - Project ctest-TestBasicPolicy-14334902 not found, creating it
2025-04-26 11:25:11,286 - INFO - Created Project:ctest-TestBasicPolicy-14334902, ID : 2e004c7d-22b0-4e6e-a329-14152b1961f0
2025-04-26 11:25:12,601 - INFO - ================================================================================
2025-04-26 11:25:12,601 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-26 11:25:12,601 - 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-04-26 11:25:12,857 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-26 11:25:12,857 - INFO - Initial checks done. Running the testcase now
2025-04-26 11:25:12,857 - INFO -
2025-04-26 11:25:13,383 - DEBUG - Response for create_network : {'network': {'id': 'ef4ac297-14b1-479b-a8dd-cf58115fb429', 'name': 'ctest-vn-65264338', 'tenant_id': '2e004c7d22b04e6ea32914152b1961f0', 'project_id': '2e004c7d22b04e6ea32914152b1961f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14334902', 'ctest-vn-65264338'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 11:25:13,524 - DEBUG - Response for create_subnet : {'subnet': {'id': '4cc73b2e-2bdd-404a-9980-0eb26a216adc', 'name': '', 'tenant_id': '2e004c7d22b04e6ea32914152b1961f0', 'network_id': 'ef4ac297-14b1-479b-a8dd-cf58115fb429', 'ip_version': 4, 'cidr': '73.163.84.192/26', 'allocation_pools': [{'start': '73.163.84.194', 'end': '73.163.84.254'}], 'gateway_ip': '73.163.84.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.163.84.194', 'tags': [], 'project_id': '2e004c7d22b04e6ea32914152b1961f0'}}
2025-04-26 11:25:13,542 - INFO - Created VN ctest-vn-65264338
2025-04-26 11:25:13,596 - DEBUG - VN ctest-vn-65264338 UUID is ef4ac297-14b1-479b-a8dd-cf58115fb429
2025-04-26 11:25:13,893 - DEBUG - Response for create_network : {'network': {'id': 'd077cb53-8bed-4744-942c-7cf8a3b57532', 'name': 'ctest-vn-36616109', 'tenant_id': '2e004c7d22b04e6ea32914152b1961f0', 'project_id': '2e004c7d22b04e6ea32914152b1961f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14334902', 'ctest-vn-36616109'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 11:25:14,100 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f6407b0-9330-40bf-9c23-165447c97380', 'name': '', 'tenant_id': '2e004c7d22b04e6ea32914152b1961f0', 'network_id': 'd077cb53-8bed-4744-942c-7cf8a3b57532', 'ip_version': 4, 'cidr': '122.44.232.0/26', 'allocation_pools': [{'start': '122.44.232.2', 'end': '122.44.232.62'}], 'gateway_ip': '122.44.232.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.44.232.2', 'tags': [], 'project_id': '2e004c7d22b04e6ea32914152b1961f0'}}
2025-04-26 11:25:14,116 - INFO - Created VN ctest-vn-36616109
2025-04-26 11:25:14,168 - DEBUG - VN ctest-vn-36616109 UUID is d077cb53-8bed-4744-942c-7cf8a3b57532
2025-04-26 11:25:14,308 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-65264338, 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-14334902:ctest-vn-36616109, 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-04-26 11:25:14,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef4ac297-14b1-479b-a8dd-cf58115fb429', 'name': 'ctest-vn-65264338', 'tenant_id': '2e004c7d22b04e6ea32914152b1961f0', 'project_id': '2e004c7d22b04e6ea32914152b1961f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4cc73b2e-2bdd-404a-9980-0eb26a216adc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14334902', 'ctest-vn-65264338'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14334902', 'ctest-policy-allow-all-98567557']], 'subnet_ipam': [{'subnet_cidr': '73.163.84.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 11:25:14,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd077cb53-8bed-4744-942c-7cf8a3b57532', 'name': 'ctest-vn-36616109', 'tenant_id': '2e004c7d22b04e6ea32914152b1961f0', 'project_id': '2e004c7d22b04e6ea32914152b1961f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f6407b0-9330-40bf-9c23-165447c97380'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14334902', 'ctest-vn-36616109'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14334902', 'ctest-policy-allow-all-98567557']], 'subnet_ipam': [{'subnet_cidr': '122.44.232.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 11:25:14,956 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-26 11:25:15,248 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-26 11:25:15,272 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5c26bd1d-ccd8-4a11-96df-56f050a0c5e2
2025-04-26 11:25:15,283 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e004c7d-22b0-4e6e-a329-14152b1961f0
2025-04-26 11:25:15,357 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef4ac297-14b1-479b-a8dd-cf58115fb429
2025-04-26 11:25:15,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef4ac297-14b1-479b-a8dd-cf58115fb429
2025-04-26 11:25:15,376 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8b270d24-bc6e-484f-bbbd-df889c7e85c8
2025-04-26 11:25:15,382 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8b270d24-bc6e-484f-bbbd-df889c7e85c8
2025-04-26 11:25:15,388 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1edeadef-6970-4cd4-b887-86ba61af7fed
2025-04-26 11:25:15,393 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 11:25:15,393 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef4ac297-14b1-479b-a8dd-cf58115fb429
2025-04-26 11:25:15,401 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8b270d24-bc6e-484f-bbbd-df889c7e85c8
2025-04-26 11:25:15,413 - INFO - Verified VN network id 8 for VN ef4ac297-14b1-479b-a8dd-cf58115fb429
2025-04-26 11:25:15,413 - INFO - Verifications in API Server for VN ctest-vn-65264338 passed
2025-04-26 11:25:15,413 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef4ac297-14b1-479b-a8dd-cf58115fb429
2025-04-26 11:25:15,421 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8b270d24-bc6e-484f-bbbd-df889c7e85c8
2025-04-26 11:25:15,428 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8b270d24-bc6e-484f-bbbd-df889c7e85c8
2025-04-26 11:25:15,433 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1edeadef-6970-4cd4-b887-86ba61af7fed
2025-04-26 11:25:15,444 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-65264338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14334902', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17242808077484378011', 'uuid-lslong': '12168109745380504617'}, 'enable': 'true', 'created': '2025-04-26T11:25:13', 'last-modified': '2025-04-26T11:25:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885527'}
2025-04-26 11:25:15,450 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 11:25:15,450 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65264338 passed
2025-04-26 11:25:15,450 - DEBUG - ====Verifying policy data for ctest-vn-65264338 in API_Server ======
2025-04-26 11:25:15,450 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-26 11:25:15,454 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5c26bd1d-ccd8-4a11-96df-56f050a0c5e2
2025-04-26 11:25:15,464 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e004c7d-22b0-4e6e-a329-14152b1961f0
2025-04-26 11:25:15,536 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef4ac297-14b1-479b-a8dd-cf58115fb429
2025-04-26 11:25:15,544 - DEBUG - ==>Verifying data for policy with id: 343f2007-49b6-4ffc-8ac4-7bb8de7dc4f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-14334902', 'ctest-policy-allow-all-98567557']
2025-04-26 11:25:15,544 - INFO - VN ctest-vn-65264338 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 11:25:15,544 - DEBUG - Verifying the vn in opserver
2025-04-26 11:25:15,544 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-65264338 virtual network link through opserver 10.0.0.38
2025-04-26 11:25:15,544 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-26 11:25:15,897 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-26 11:25:15,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-65264338', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-65264338?flat'}
2025-04-26 11:25:15,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-65264338 is found in opserver
2025-04-26 11:25:15,966 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 11:25:15,970 - DEBUG - VRF ids for VN ctest-vn-65264338: {}
2025-04-26 11:25:15,970 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-26 11:25:15,975 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5c26bd1d-ccd8-4a11-96df-56f050a0c5e2
2025-04-26 11:25:15,986 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e004c7d-22b0-4e6e-a329-14152b1961f0
2025-04-26 11:25:16,059 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d077cb53-8bed-4744-942c-7cf8a3b57532
2025-04-26 11:25:16,069 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d077cb53-8bed-4744-942c-7cf8a3b57532
2025-04-26 11:25:16,078 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f628baf1-2206-4aa1-88ab-4a091e9995e2
2025-04-26 11:25:16,084 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f628baf1-2206-4aa1-88ab-4a091e9995e2
2025-04-26 11:25:16,091 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/de7c6dfd-dcd2-41de-84cd-87d26dc77b63
2025-04-26 11:25:16,096 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 11:25:16,096 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d077cb53-8bed-4744-942c-7cf8a3b57532
2025-04-26 11:25:16,104 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f628baf1-2206-4aa1-88ab-4a091e9995e2
2025-04-26 11:25:16,117 - INFO - Verified VN network id 9 for VN d077cb53-8bed-4744-942c-7cf8a3b57532
2025-04-26 11:25:16,117 - INFO - Verifications in API Server for VN ctest-vn-36616109 passed
2025-04-26 11:25:16,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d077cb53-8bed-4744-942c-7cf8a3b57532
2025-04-26 11:25:16,126 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f628baf1-2206-4aa1-88ab-4a091e9995e2
2025-04-26 11:25:16,134 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f628baf1-2206-4aa1-88ab-4a091e9995e2
2025-04-26 11:25:16,140 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/de7c6dfd-dcd2-41de-84cd-87d26dc77b63
2025-04-26 11:25:16,152 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-36616109', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14334902', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15021698641807886148', 'uuid-lslong': '10677046223928915250'}, 'enable': 'true', 'created': '2025-04-26T11:25:13', 'last-modified': '2025-04-26T11:25:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384109'}
2025-04-26 11:25:16,159 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 11:25:16,159 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36616109 passed
2025-04-26 11:25:16,159 - DEBUG - ====Verifying policy data for ctest-vn-36616109 in API_Server ======
2025-04-26 11:25:16,159 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-26 11:25:16,165 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5c26bd1d-ccd8-4a11-96df-56f050a0c5e2
2025-04-26 11:25:16,176 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e004c7d-22b0-4e6e-a329-14152b1961f0
2025-04-26 11:25:16,248 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d077cb53-8bed-4744-942c-7cf8a3b57532
2025-04-26 11:25:16,258 - DEBUG - ==>Verifying data for policy with id: 343f2007-49b6-4ffc-8ac4-7bb8de7dc4f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-14334902', 'ctest-policy-allow-all-98567557']
2025-04-26 11:25:16,258 - INFO - VN ctest-vn-36616109 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 11:25:16,258 - DEBUG - Verifying the vn in opserver
2025-04-26 11:25:16,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-36616109 virtual network link through opserver 10.0.0.38
2025-04-26 11:25:16,258 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-26 11:25:16,267 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-36616109', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-36616109?flat'}
2025-04-26 11:25:16,267 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14334902:ctest-vn-36616109 is found in opserver
2025-04-26 11:25:16,277 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 11:25:16,281 - DEBUG - VRF ids for VN ctest-vn-36616109: {}
2025-04-26 11:25:16,331 - DEBUG - Services list from nova: [