2025-07-19 07:47:08,753 - INFO - Domain Default found not creating
2025-07-19 07:47:09,121 - INFO - Project ctest-TestBasicPolicy-84614533 not found, creating it
2025-07-19 07:47:09,875 - INFO - Created Project:ctest-TestBasicPolicy-84614533, ID : ead05a5d-917d-4d5e-9fcd-1bf515e5f003
2025-07-19 07:47:12,200 - INFO - ================================================================================
2025-07-19 07:47:12,201 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-19 07:47:12,201 - 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-19 07:47:12,526 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-07-19 07:47:12,526 - INFO - Initial checks done. Running the testcase now
2025-07-19 07:47:12,527 - INFO -
2025-07-19 07:47:13,148 - DEBUG - Response for create_network : {'network': {'id': '092a884d-0086-4d5e-8c09-a94d55525bd6', 'name': 'ctest-vn-88210294', 'tenant_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'project_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84614533', 'ctest-vn-88210294'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:47:13,299 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b6eed83-f15b-47b7-a946-bb822f61d28a', 'name': '', 'tenant_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'network_id': '092a884d-0086-4d5e-8c09-a94d55525bd6', 'ip_version': 4, 'cidr': '121.58.97.192/26', 'allocation_pools': [{'start': '121.58.97.194', 'end': '121.58.97.254'}], 'gateway_ip': '121.58.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.58.97.194', 'tags': [], 'project_id': 'ead05a5d917d4d5e9fcd1bf515e5f003'}}
2025-07-19 07:47:13,316 - INFO - Created VN ctest-vn-88210294
2025-07-19 07:47:13,371 - DEBUG - VN ctest-vn-88210294 UUID is 092a884d-0086-4d5e-8c09-a94d55525bd6
2025-07-19 07:47:13,889 - DEBUG - Response for create_network : {'network': {'id': 'b538ab77-1efe-4ce6-96a8-4c86d3a57880', 'name': 'ctest-vn-08887918', 'tenant_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'project_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84614533', 'ctest-vn-08887918'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:47:14,088 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7d0a481-ddc5-47f1-a6c0-879df4885207', 'name': '', 'tenant_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'network_id': 'b538ab77-1efe-4ce6-96a8-4c86d3a57880', 'ip_version': 4, 'cidr': '190.129.149.0/26', 'allocation_pools': [{'start': '190.129.149.2', 'end': '190.129.149.62'}], 'gateway_ip': '190.129.149.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.129.149.2', 'tags': [], 'project_id': 'ead05a5d917d4d5e9fcd1bf515e5f003'}}
2025-07-19 07:47:14,107 - INFO - Created VN ctest-vn-08887918
2025-07-19 07:47:14,163 - DEBUG - VN ctest-vn-08887918 UUID is b538ab77-1efe-4ce6-96a8-4c86d3a57880
2025-07-19 07:47:14,365 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-88210294, 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-84614533:ctest-vn-08887918, 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-19 07:47:14,826 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '092a884d-0086-4d5e-8c09-a94d55525bd6', 'name': 'ctest-vn-88210294', 'tenant_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'project_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5b6eed83-f15b-47b7-a946-bb822f61d28a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84614533', 'ctest-vn-88210294'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84614533', 'ctest-policy-allow-all-55221158']], 'subnet_ipam': [{'subnet_cidr': '121.58.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:47:15,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b538ab77-1efe-4ce6-96a8-4c86d3a57880', 'name': 'ctest-vn-08887918', 'tenant_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'project_id': 'ead05a5d917d4d5e9fcd1bf515e5f003', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7d0a481-ddc5-47f1-a6c0-879df4885207'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84614533', 'ctest-vn-08887918'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84614533', 'ctest-policy-allow-all-55221158']], 'subnet_ipam': [{'subnet_cidr': '190.129.149.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:47:15,467 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-19 07:47:15,805 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-19 07:47:15,850 - DEBUG - Requesting: http://10.0.0.242:8082/domain/18106ce5-efc6-4dbb-850a-c5d1d293c1a1
2025-07-19 07:47:15,873 - DEBUG - Requesting: http://10.0.0.242:8082/project/ead05a5d-917d-4d5e-9fcd-1bf515e5f003
2025-07-19 07:47:15,970 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/092a884d-0086-4d5e-8c09-a94d55525bd6
2025-07-19 07:47:15,984 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/092a884d-0086-4d5e-8c09-a94d55525bd6
2025-07-19 07:47:15,995 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/18481634-a29a-4a1e-993a-e410c0b9a6f4
2025-07-19 07:47:16,004 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/18481634-a29a-4a1e-993a-e410c0b9a6f4
2025-07-19 07:47:16,014 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/3ebb5dd2-a28b-4ed2-91d7-fc53a8045824
2025-07-19 07:47:16,026 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 07:47:16,026 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/092a884d-0086-4d5e-8c09-a94d55525bd6
2025-07-19 07:47:16,037 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/18481634-a29a-4a1e-993a-e410c0b9a6f4
2025-07-19 07:47:16,053 - INFO - Verified VN network id 9 for VN 092a884d-0086-4d5e-8c09-a94d55525bd6
2025-07-19 07:47:16,053 - INFO - Verifications in API Server for VN ctest-vn-88210294 passed
2025-07-19 07:47:16,053 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/092a884d-0086-4d5e-8c09-a94d55525bd6
2025-07-19 07:47:16,064 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/18481634-a29a-4a1e-993a-e410c0b9a6f4
2025-07-19 07:47:16,072 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/18481634-a29a-4a1e-993a-e410c0b9a6f4
2025-07-19 07:47:16,080 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/3ebb5dd2-a28b-4ed2-91d7-fc53a8045824
2025-07-19 07:47:16,093 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-88210294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84614533', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '660490159665859934', 'uuid-lslong': '10090782589709343702'}, 'enable': 'true', 'created': '2025-07-19T07:47:13', 'last-modified': '2025-07-19T07:47:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.315367'}
2025-07-19 07:47:16,099 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 07:47:16,099 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88210294 passed
2025-07-19 07:47:16,099 - DEBUG - ====Verifying policy data for ctest-vn-88210294 in API_Server ======
2025-07-19 07:47:16,099 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-19 07:47:16,104 - DEBUG - Requesting: http://10.0.0.242:8082/domain/18106ce5-efc6-4dbb-850a-c5d1d293c1a1
2025-07-19 07:47:16,116 - DEBUG - Requesting: http://10.0.0.242:8082/project/ead05a5d-917d-4d5e-9fcd-1bf515e5f003
2025-07-19 07:47:16,197 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/092a884d-0086-4d5e-8c09-a94d55525bd6
2025-07-19 07:47:16,206 - DEBUG - ==>Verifying data for policy with id: edc4b126-84a6-485d-8d3b-7e15d0809f04, fqn: ['default-domain', 'ctest-TestBasicPolicy-84614533', 'ctest-policy-allow-all-55221158']
2025-07-19 07:47:16,206 - INFO - VN ctest-vn-88210294 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 07:47:16,206 - DEBUG - Verifying the vn in opserver
2025-07-19 07:47:16,206 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-88210294 virtual network link through opserver 10.0.0.242
2025-07-19 07:47:16,207 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-19 07:47:16,497 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-19 07:47:16,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-88210294', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-88210294?flat'}
2025-07-19 07:47:16,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-88210294 is found in opserver
2025-07-19 07:47:16,599 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 07:47:16,612 - DEBUG - VRF ids for VN ctest-vn-88210294: {}
2025-07-19 07:47:16,612 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-19 07:47:16,623 - DEBUG - Requesting: http://10.0.0.242:8082/domain/18106ce5-efc6-4dbb-850a-c5d1d293c1a1
2025-07-19 07:47:16,656 - DEBUG - Requesting: http://10.0.0.242:8082/project/ead05a5d-917d-4d5e-9fcd-1bf515e5f003
2025-07-19 07:47:16,771 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b538ab77-1efe-4ce6-96a8-4c86d3a57880
2025-07-19 07:47:16,801 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b538ab77-1efe-4ce6-96a8-4c86d3a57880
2025-07-19 07:47:16,824 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/149d38d5-a23a-4839-a16e-4e7bb9beaf6e
2025-07-19 07:47:16,842 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/149d38d5-a23a-4839-a16e-4e7bb9beaf6e
2025-07-19 07:47:16,862 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ca22dca2-7f55-406b-93a3-14e0f8d15de0
2025-07-19 07:47:16,880 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 07:47:16,880 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b538ab77-1efe-4ce6-96a8-4c86d3a57880
2025-07-19 07:47:16,910 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/149d38d5-a23a-4839-a16e-4e7bb9beaf6e
2025-07-19 07:47:16,954 - INFO - Verified VN network id 10 for VN b538ab77-1efe-4ce6-96a8-4c86d3a57880
2025-07-19 07:47:16,955 - INFO - Verifications in API Server for VN ctest-vn-08887918 passed
2025-07-19 07:47:16,956 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b538ab77-1efe-4ce6-96a8-4c86d3a57880
2025-07-19 07:47:16,984 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/149d38d5-a23a-4839-a16e-4e7bb9beaf6e
2025-07-19 07:47:16,999 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/149d38d5-a23a-4839-a16e-4e7bb9beaf6e
2025-07-19 07:47:17,020 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ca22dca2-7f55-406b-93a3-14e0f8d15de0
2025-07-19 07:47:17,057 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-08887918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84614533', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13058375647670193382', 'uuid-lslong': '10856011043736746112'}, 'enable': 'true', 'created': '2025-07-19T07:47:13', 'last-modified': '2025-07-19T07:47:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.950281'}
2025-07-19 07:47:17,077 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 07:47:17,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08887918 passed
2025-07-19 07:47:17,078 - DEBUG - ====Verifying policy data for ctest-vn-08887918 in API_Server ======
2025-07-19 07:47:17,078 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-19 07:47:17,095 - DEBUG - Requesting: http://10.0.0.242:8082/domain/18106ce5-efc6-4dbb-850a-c5d1d293c1a1
2025-07-19 07:47:17,133 - DEBUG - Requesting: http://10.0.0.242:8082/project/ead05a5d-917d-4d5e-9fcd-1bf515e5f003
2025-07-19 07:47:17,272 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b538ab77-1efe-4ce6-96a8-4c86d3a57880
2025-07-19 07:47:17,299 - DEBUG - ==>Verifying data for policy with id: edc4b126-84a6-485d-8d3b-7e15d0809f04, fqn: ['default-domain', 'ctest-TestBasicPolicy-84614533', 'ctest-policy-allow-all-55221158']
2025-07-19 07:47:17,299 - INFO - VN ctest-vn-08887918 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 07:47:17,300 - DEBUG - Verifying the vn in opserver
2025-07-19 07:47:17,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-08887918 virtual network link through opserver 10.0.0.242
2025-07-19 07:47:17,300 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-19 07:47:17,325 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-08887918', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-08887918?flat'}
2025-07-19 07:47:17,325 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84614533:ctest-vn-08887918 is found in opserver
2025-07-19 07:47:17,359 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 07:47:17,375 - DEBUG - VRF ids for VN ctest-vn-08887918: {}
2025-07-19 07:47:17,510 - DEBUG - Services list from nova: [