2025-04-24 01:49:44,599 - INFO - Reading existing Domain with UUID 1ee32fc6-759e-4293-a6ec-90a3fbdfdd5f
2025-04-24 01:49:44,610 - INFO - Using existing domain ['admin_domain'](1ee32fc6-759e-4293-a6ec-90a3fbdfdd5f)
2025-04-24 01:49:44,780 - INFO - Project ctest-TestBasicPolicy-88421032 not found, creating it
2025-04-24 01:49:45,282 - INFO - Created Project:ctest-TestBasicPolicy-88421032, ID : 59eb6578-7e73-4543-b3a1-f87c75d738c9
2025-04-24 01:49:46,858 - INFO - ================================================================================
2025-04-24 01:49:46,858 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 01:49:46,858 - 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-24 01:49:47,241 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with
2025-04-24 01:49:47,241 - INFO - Initial checks done. Running the testcase now
2025-04-24 01:49:47,241 - INFO -
2025-04-24 01:49:47,965 - DEBUG - Response for create_network : {'network': {'id': '0926d360-aca4-4938-a4f3-76007bf15682', 'name': 'ctest-vn-51384093', 'tenant_id': '59eb65787e734543b3a1f87c75d738c9', 'project_id': '59eb65787e734543b3a1f87c75d738c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-88421032', 'ctest-vn-51384093'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-24 01:49:48,170 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b255ec74-111c-4a6b-85f0-f07ff4be1a38', 'name': '', 'tenant_id': '59eb65787e734543b3a1f87c75d738c9', 'network_id': '0926d360-aca4-4938-a4f3-76007bf15682', 'ip_version': 4, 'cidr': '178.254.172.128/26', 'allocation_pools': [{'start': '178.254.172.130', 'end': '178.254.172.190'}], 'gateway_ip': '178.254.172.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-24T01:49:48.072402', 'updated_at': '2025-04-24T01:49:48.072402', 'dns_server_address': '178.254.172.130', 'tags': [], 'project_id': '59eb65787e734543b3a1f87c75d738c9'}}
2025-04-24 01:49:48,234 - INFO - Created VN ctest-vn-51384093
2025-04-24 01:49:48,288 - DEBUG - VN ctest-vn-51384093 UUID is 0926d360-aca4-4938-a4f3-76007bf15682
2025-04-24 01:49:48,769 - DEBUG - Response for create_network : {'network': {'id': '1289fe94-cc4a-446a-9024-4c98b306996f', 'name': 'ctest-vn-86466482', 'tenant_id': '59eb65787e734543b3a1f87c75d738c9', 'project_id': '59eb65787e734543b3a1f87c75d738c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-88421032', 'ctest-vn-86466482'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-24 01:49:49,045 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac38a271-99e1-4cb0-ab6e-332636376c31', 'name': '', 'tenant_id': '59eb65787e734543b3a1f87c75d738c9', 'network_id': '1289fe94-cc4a-446a-9024-4c98b306996f', 'ip_version': 4, 'cidr': '69.161.21.0/26', 'allocation_pools': [{'start': '69.161.21.2', 'end': '69.161.21.62'}], 'gateway_ip': '69.161.21.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-24T01:49:48.923199', 'updated_at': '2025-04-24T01:49:48.923199', 'dns_server_address': '69.161.21.2', 'tags': [], 'project_id': '59eb65787e734543b3a1f87c75d738c9'}}
2025-04-24 01:49:49,110 - INFO - Created VN ctest-vn-86466482
2025-04-24 01:49:49,164 - DEBUG - VN ctest-vn-86466482 UUID is 1289fe94-cc4a-446a-9024-4c98b306996f
2025-04-24 01:49:49,375 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-51384093, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-86466482, 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-24 01:49:49,788 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0926d360-aca4-4938-a4f3-76007bf15682', 'name': 'ctest-vn-51384093', 'tenant_id': '59eb65787e734543b3a1f87c75d738c9', 'project_id': '59eb65787e734543b3a1f87c75d738c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b255ec74-111c-4a6b-85f0-f07ff4be1a38'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-88421032', 'ctest-vn-51384093'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-88421032', 'ctest-policy-allow-all-35965959']], 'subnet_ipam': [{'subnet_cidr': '178.254.172.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-24T01:49:47.885648', 'updated_at': '2025-04-24T01:49:48.084515'}}
2025-04-24 01:49:50,133 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1289fe94-cc4a-446a-9024-4c98b306996f', 'name': 'ctest-vn-86466482', 'tenant_id': '59eb65787e734543b3a1f87c75d738c9', 'project_id': '59eb65787e734543b3a1f87c75d738c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac38a271-99e1-4cb0-ab6e-332636376c31'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-88421032', 'ctest-vn-86466482'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-88421032', 'ctest-policy-allow-all-35965959']], 'subnet_ipam': [{'subnet_cidr': '69.161.21.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-24T01:49:48.695143', 'updated_at': '2025-04-24T01:49:48.945006'}}
2025-04-24 01:49:50,336 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-24 01:49:50,676 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-24 01:49:50,753 - DEBUG - Requesting: https://10.0.0.241:8082/domain/1ee32fc6-759e-4293-a6ec-90a3fbdfdd5f
2025-04-24 01:49:50,809 - DEBUG - Requesting: https://10.0.0.241:8082/project/59eb6578-7e73-4543-b3a1-f87c75d738c9
2025-04-24 01:49:50,890 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/0926d360-aca4-4938-a4f3-76007bf15682
2025-04-24 01:49:50,947 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/0926d360-aca4-4938-a4f3-76007bf15682
2025-04-24 01:49:51,006 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b2168b85-a1ad-4353-93e6-7a28ec2bd3ac
2025-04-24 01:49:51,061 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b2168b85-a1ad-4353-93e6-7a28ec2bd3ac
2025-04-24 01:49:51,113 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/ebae0d28-14e9-4453-af95-8699bcc2b4ed
2025-04-24 01:49:51,165 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 01:49:51,165 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/0926d360-aca4-4938-a4f3-76007bf15682
2025-04-24 01:49:51,227 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b2168b85-a1ad-4353-93e6-7a28ec2bd3ac
2025-04-24 01:49:51,289 - INFO - Verified VN network id 8 for VN 0926d360-aca4-4938-a4f3-76007bf15682
2025-04-24 01:49:51,289 - INFO - Verifications in API Server for VN ctest-vn-51384093 passed
2025-04-24 01:49:51,289 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/0926d360-aca4-4938-a4f3-76007bf15682
2025-04-24 01:49:51,346 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b2168b85-a1ad-4353-93e6-7a28ec2bd3ac
2025-04-24 01:49:51,397 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b2168b85-a1ad-4353-93e6-7a28ec2bd3ac
2025-04-24 01:49:51,449 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/ebae0d28-14e9-4453-af95-8699bcc2b4ed
2025-04-24 01:49:51,553 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-51384093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88421032', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '659446807623125304', 'uuid-lslong': '11885973586012362370'}, 'enable': 'true', 'created': '2025-04-24T01:49:47', 'last-modified': '2025-04-24T01:49:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.805850'}
2025-04-24 01:49:51,602 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 01:49:51,602 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51384093 passed
2025-04-24 01:49:51,602 - DEBUG - ====Verifying policy data for ctest-vn-51384093 in API_Server ======
2025-04-24 01:49:51,602 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-24 01:49:51,652 - DEBUG - Requesting: https://10.0.0.241:8082/domain/1ee32fc6-759e-4293-a6ec-90a3fbdfdd5f
2025-04-24 01:49:51,714 - DEBUG - Requesting: https://10.0.0.241:8082/project/59eb6578-7e73-4543-b3a1-f87c75d738c9
2025-04-24 01:49:51,795 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/0926d360-aca4-4938-a4f3-76007bf15682
2025-04-24 01:49:51,851 - DEBUG - ==>Verifying data for policy with id: 7329e23e-d26e-4ce2-a326-29e1777374ce, fqn: ['admin_domain', 'ctest-TestBasicPolicy-88421032', 'ctest-policy-allow-all-35965959']
2025-04-24 01:49:51,851 - INFO - VN ctest-vn-51384093 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 01:49:51,851 - DEBUG - Verifying the vn in opserver
2025-04-24 01:49:51,851 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-51384093 virtual network link through opserver 10.0.0.241
2025-04-24 01:49:51,851 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2025-04-24 01:49:52,205 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2025-04-24 01:49:52,313 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-51384093', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-51384093?flat'}
2025-04-24 01:49:52,313 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-51384093 is found in opserver
2025-04-24 01:49:52,409 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 01:49:52,457 - DEBUG - VRF ids for VN ctest-vn-51384093: {}
2025-04-24 01:49:52,457 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-24 01:49:52,509 - DEBUG - Requesting: https://10.0.0.241:8082/domain/1ee32fc6-759e-4293-a6ec-90a3fbdfdd5f
2025-04-24 01:49:52,569 - DEBUG - Requesting: https://10.0.0.241:8082/project/59eb6578-7e73-4543-b3a1-f87c75d738c9
2025-04-24 01:49:52,646 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/1289fe94-cc4a-446a-9024-4c98b306996f
2025-04-24 01:49:52,703 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/1289fe94-cc4a-446a-9024-4c98b306996f
2025-04-24 01:49:52,763 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/4133e3c9-9ae1-4c0e-ba3f-a0105481fbab
2025-04-24 01:49:52,817 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/4133e3c9-9ae1-4c0e-ba3f-a0105481fbab
2025-04-24 01:49:52,869 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/61b2510a-a5e3-41e5-9ef3-940de4fbcdfa
2025-04-24 01:49:52,925 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 01:49:52,925 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/1289fe94-cc4a-446a-9024-4c98b306996f
2025-04-24 01:49:52,978 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/4133e3c9-9ae1-4c0e-ba3f-a0105481fbab
2025-04-24 01:49:53,041 - INFO - Verified VN network id 9 for VN 1289fe94-cc4a-446a-9024-4c98b306996f
2025-04-24 01:49:53,041 - INFO - Verifications in API Server for VN ctest-vn-86466482 passed
2025-04-24 01:49:53,041 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/1289fe94-cc4a-446a-9024-4c98b306996f
2025-04-24 01:49:53,095 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/4133e3c9-9ae1-4c0e-ba3f-a0105481fbab
2025-04-24 01:49:53,149 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/4133e3c9-9ae1-4c0e-ba3f-a0105481fbab
2025-04-24 01:49:53,205 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/61b2510a-a5e3-41e5-9ef3-940de4fbcdfa
2025-04-24 01:49:53,310 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-86466482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88421032', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1335878679528096874', 'uuid-lslong': '10386510859345500527'}, 'enable': 'true', 'created': '2025-04-24T01:49:48', 'last-modified': '2025-04-24T01:49:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.207653'}
2025-04-24 01:49:53,362 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 01:49:53,362 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86466482 passed
2025-04-24 01:49:53,362 - DEBUG - ====Verifying policy data for ctest-vn-86466482 in API_Server ======
2025-04-24 01:49:53,362 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-24 01:49:53,412 - DEBUG - Requesting: https://10.0.0.241:8082/domain/1ee32fc6-759e-4293-a6ec-90a3fbdfdd5f
2025-04-24 01:49:53,469 - DEBUG - Requesting: https://10.0.0.241:8082/project/59eb6578-7e73-4543-b3a1-f87c75d738c9
2025-04-24 01:49:53,542 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/1289fe94-cc4a-446a-9024-4c98b306996f
2025-04-24 01:49:53,599 - DEBUG - ==>Verifying data for policy with id: 7329e23e-d26e-4ce2-a326-29e1777374ce, fqn: ['admin_domain', 'ctest-TestBasicPolicy-88421032', 'ctest-policy-allow-all-35965959']
2025-04-24 01:49:53,599 - INFO - VN ctest-vn-86466482 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 01:49:53,599 - DEBUG - Verifying the vn in opserver
2025-04-24 01:49:53,599 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-86466482 virtual network link through opserver 10.0.0.241
2025-04-24 01:49:53,599 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2025-04-24 01:49:53,653 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-86466482', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-86466482?flat'}
2025-04-24 01:49:53,653 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-88421032:ctest-vn-86466482 is found in opserver
2025-04-24 01:49:53,749 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 01:49:53,797 - DEBUG - VRF ids for VN ctest-vn-86466482: {}
2025-04-24 01:49:53,855 - DEBUG - Services list from nova: [