2025-07-09 18:01:05,233 - INFO - Domain Default found not creating
2025-07-09 18:01:05,407 - INFO - Project ctest-TestBasicPolicy-01161364 not found, creating it
2025-07-09 18:01:05,916 - INFO - Created Project:ctest-TestBasicPolicy-01161364, ID : 34579ced-adb4-4d83-a3a8-acc3511f0727
2025-07-09 18:01:07,414 - INFO - ================================================================================
2025-07-09 18:01:07,414 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-09 18:01:07,414 - 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-09 18:01:07,670 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with
2025-07-09 18:01:07,671 - INFO - Initial checks done. Running the testcase now
2025-07-09 18:01:07,671 - INFO -
2025-07-09 18:01:08,217 - DEBUG - Response for create_network : {'network': {'id': 'b45480cc-b220-4e0f-822e-db52c1fe8621', 'name': 'ctest-vn-94941738', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'project_id': '34579cedadb44d83a3a8acc3511f0727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-vn-94941738'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 18:01:08,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '7593637a-4a14-4d36-b23a-b08e9421b3a5', 'name': '', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'network_id': 'b45480cc-b220-4e0f-822e-db52c1fe8621', 'ip_version': 4, 'cidr': '123.116.71.192/26', 'allocation_pools': [{'start': '123.116.71.194', 'end': '123.116.71.254'}], 'gateway_ip': '123.116.71.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.116.71.194', 'tags': [], 'project_id': '34579cedadb44d83a3a8acc3511f0727'}}
2025-07-09 18:01:08,407 - INFO - Created VN ctest-vn-94941738
2025-07-09 18:01:08,461 - DEBUG - VN ctest-vn-94941738 UUID is b45480cc-b220-4e0f-822e-db52c1fe8621
2025-07-09 18:01:08,789 - DEBUG - Response for create_network : {'network': {'id': 'b6aa16c1-b71e-499d-b33a-5c35a6874a78', 'name': 'ctest-vn-47251189', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'project_id': '34579cedadb44d83a3a8acc3511f0727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-vn-47251189'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 18:01:09,020 - DEBUG - Response for create_subnet : {'subnet': {'id': '3df93e45-8278-472f-bbcd-3f53e47f1a14', 'name': '', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'network_id': 'b6aa16c1-b71e-499d-b33a-5c35a6874a78', 'ip_version': 4, 'cidr': '193.242.153.128/26', 'allocation_pools': [{'start': '193.242.153.130', 'end': '193.242.153.190'}], 'gateway_ip': '193.242.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.242.153.130', 'tags': [], 'project_id': '34579cedadb44d83a3a8acc3511f0727'}}
2025-07-09 18:01:09,040 - INFO - Created VN ctest-vn-47251189
2025-07-09 18:01:09,093 - DEBUG - VN ctest-vn-47251189 UUID is b6aa16c1-b71e-499d-b33a-5c35a6874a78
2025-07-09 18:01:09,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738, 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-01161364:ctest-vn-47251189, 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-09 18:01:09,501 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b45480cc-b220-4e0f-822e-db52c1fe8621', 'name': 'ctest-vn-94941738', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'project_id': '34579cedadb44d83a3a8acc3511f0727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7593637a-4a14-4d36-b23a-b08e9421b3a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-vn-94941738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-policy-allow-all-30548988']], 'subnet_ipam': [{'subnet_cidr': '123.116.71.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 18:01:09,734 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6aa16c1-b71e-499d-b33a-5c35a6874a78', 'name': 'ctest-vn-47251189', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'project_id': '34579cedadb44d83a3a8acc3511f0727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3df93e45-8278-472f-bbcd-3f53e47f1a14'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-vn-47251189'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-policy-allow-all-30548988']], 'subnet_ipam': [{'subnet_cidr': '193.242.153.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 18:01:09,905 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-09 18:01:10,203 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-09 18:01:10,231 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e
2025-07-09 18:01:10,245 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727
2025-07-09 18:01:10,323 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621
2025-07-09 18:01:10,339 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621
2025-07-09 18:01:10,350 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9
2025-07-09 18:01:10,358 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9
2025-07-09 18:01:10,365 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c5c546f4-c836-4828-adbd-efe364b564c0
2025-07-09 18:01:10,372 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 18:01:10,372 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621
2025-07-09 18:01:10,382 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9
2025-07-09 18:01:10,396 - INFO - Verified VN network id 8 for VN b45480cc-b220-4e0f-822e-db52c1fe8621
2025-07-09 18:01:10,396 - INFO - Verifications in API Server for VN ctest-vn-94941738 passed
2025-07-09 18:01:10,396 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621
2025-07-09 18:01:10,405 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9
2025-07-09 18:01:10,413 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9
2025-07-09 18:01:10,420 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c5c546f4-c836-4828-adbd-efe364b564c0
2025-07-09 18:01:10,432 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01161364', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12994152441520868879', 'uuid-lslong': '9380676222347806241'}, 'enable': 'true', 'created': '2025-07-09T18:01:08', 'last-modified': '2025-07-09T18:01:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954202'}
2025-07-09 18:01:10,439 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 18:01:10,440 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94941738 passed
2025-07-09 18:01:10,440 - DEBUG - ====Verifying policy data for ctest-vn-94941738 in API_Server ======
2025-07-09 18:01:10,440 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-09 18:01:10,446 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e
2025-07-09 18:01:10,457 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727
2025-07-09 18:01:10,536 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621
2025-07-09 18:01:10,546 - DEBUG - ==>Verifying data for policy with id: 138382b4-c768-4822-b78e-2be058b50426, fqn: ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-policy-allow-all-30548988']
2025-07-09 18:01:10,546 - INFO - VN ctest-vn-94941738 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 18:01:10,546 - DEBUG - Verifying the vn in opserver
2025-07-09 18:01:10,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738 virtual network link through opserver 10.0.0.49
2025-07-09 18:01:10,546 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-09 18:01:10,838 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-09 18:01:10,894 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738?flat'}
2025-07-09 18:01:10,894 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738 is found in opserver
2025-07-09 18:01:10,905 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 18:01:10,911 - DEBUG - VRF ids for VN ctest-vn-94941738: {}
2025-07-09 18:01:10,911 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-09 18:01:10,918 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e
2025-07-09 18:01:10,929 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727
2025-07-09 18:01:11,005 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78
2025-07-09 18:01:11,018 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78
2025-07-09 18:01:11,029 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770
2025-07-09 18:01:11,037 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770
2025-07-09 18:01:11,044 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7429eef4-8155-4993-9ec1-2447ed508d5b
2025-07-09 18:01:11,052 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 18:01:11,052 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78
2025-07-09 18:01:11,062 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770
2025-07-09 18:01:11,077 - INFO - Verified VN network id 9 for VN b6aa16c1-b71e-499d-b33a-5c35a6874a78
2025-07-09 18:01:11,077 - INFO - Verifications in API Server for VN ctest-vn-47251189 passed
2025-07-09 18:01:11,077 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78
2025-07-09 18:01:11,086 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770
2025-07-09 18:01:11,093 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770
2025-07-09 18:01:11,100 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7429eef4-8155-4993-9ec1-2447ed508d5b
2025-07-09 18:01:11,112 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01161364', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13162357882200410525', 'uuid-lslong': '12914736266935224952'}, 'enable': 'true', 'created': '2025-07-09T18:01:08', 'last-modified': '2025-07-09T18:01:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399813'}
2025-07-09 18:01:11,119 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 18:01:11,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47251189 passed
2025-07-09 18:01:11,119 - DEBUG - ====Verifying policy data for ctest-vn-47251189 in API_Server ======
2025-07-09 18:01:11,119 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-09 18:01:11,124 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e
2025-07-09 18:01:11,137 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727
2025-07-09 18:01:11,213 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78
2025-07-09 18:01:11,227 - DEBUG - ==>Verifying data for policy with id: 138382b4-c768-4822-b78e-2be058b50426, fqn: ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-policy-allow-all-30548988']
2025-07-09 18:01:11,227 - INFO - VN ctest-vn-47251189 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 18:01:11,227 - DEBUG - Verifying the vn in opserver
2025-07-09 18:01:11,227 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189 virtual network link through opserver 10.0.0.49
2025-07-09 18:01:11,227 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-09 18:01:11,241 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189?flat'}
2025-07-09 18:01:11,241 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189 is found in opserver
2025-07-09 18:01:11,254 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 18:01:11,260 - DEBUG - VRF ids for VN ctest-vn-47251189: {}
2025-07-09 18:01:11,313 - DEBUG - Services list from nova: [