2025-03-30 13:05:14,997 - INFO - Reading existing Domain with UUID f4a21949-0bc4-43c9-bfc5-978f0e37ae13
2025-03-30 13:05:15,014 - INFO - Using existing domain ['admin_domain'](f4a21949-0bc4-43c9-bfc5-978f0e37ae13)
2025-03-30 13:05:15,236 - INFO - Project ctest-TestBasicPolicy-35799276 not found, creating it
2025-03-30 13:05:15,775 - INFO - Created Project:ctest-TestBasicPolicy-35799276, ID : 64bbc965-cfe1-45b4-9cb1-caf55de2d48c
2025-03-30 13:05:17,580 - INFO - ================================================================================
2025-03-30 13:05:17,580 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-30 13:05:17,581 - 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-03-30 13:05:17,967 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.0.0.17': '0'}} with
2025-03-30 13:05:17,967 - INFO - Initial checks done. Running the testcase now
2025-03-30 13:05:17,967 - INFO -
2025-03-30 13:05:18,796 - DEBUG - Response for create_network : {'network': {'id': '65bcd8b7-1dd0-4a1e-b653-f75128075ba5', 'name': 'ctest-vn-33821621', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'project_id': '64bbc965cfe145b49cb1caf55de2d48c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-vn-33821621'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-03-30 13:05:19,010 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e9cc66c-1622-4c5b-845e-f2468180162c', 'name': '', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'network_id': '65bcd8b7-1dd0-4a1e-b653-f75128075ba5', 'ip_version': 4, 'cidr': '55.229.176.128/26', 'allocation_pools': [{'start': '55.229.176.130', 'end': '55.229.176.190'}], 'gateway_ip': '55.229.176.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-03-30T13:05:18.897990', 'updated_at': '2025-03-30T13:05:18.897990', 'dns_server_address': '55.229.176.130', 'tags': [], 'project_id': '64bbc965cfe145b49cb1caf55de2d48c'}}
2025-03-30 13:05:19,076 - INFO - Created VN ctest-vn-33821621
2025-03-30 13:05:19,133 - DEBUG - VN ctest-vn-33821621 UUID is 65bcd8b7-1dd0-4a1e-b653-f75128075ba5
2025-03-30 13:05:19,654 - DEBUG - Response for create_network : {'network': {'id': '5494651b-1aba-4560-b13d-937f6284618e', 'name': 'ctest-vn-12488671', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'project_id': '64bbc965cfe145b49cb1caf55de2d48c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-vn-12488671'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-03-30 13:05:19,890 - DEBUG - Response for create_subnet : {'subnet': {'id': '59582db7-a05c-4198-b16a-ba8200f03d57', 'name': '', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'network_id': '5494651b-1aba-4560-b13d-937f6284618e', 'ip_version': 4, 'cidr': '95.126.220.192/26', 'allocation_pools': [{'start': '95.126.220.194', 'end': '95.126.220.254'}], 'gateway_ip': '95.126.220.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-03-30T13:05:19.770391', 'updated_at': '2025-03-30T13:05:19.770391', 'dns_server_address': '95.126.220.194', 'tags': [], 'project_id': '64bbc965cfe145b49cb1caf55de2d48c'}}
2025-03-30 13:05:19,956 - INFO - Created VN ctest-vn-12488671
2025-03-30 13:05:20,017 - DEBUG - VN ctest-vn-12488671 UUID is 5494651b-1aba-4560-b13d-937f6284618e
2025-03-30 13:05:20,242 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621, 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-35799276:ctest-vn-12488671, 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-03-30 13:05:20,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65bcd8b7-1dd0-4a1e-b653-f75128075ba5', 'name': 'ctest-vn-33821621', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'project_id': '64bbc965cfe145b49cb1caf55de2d48c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e9cc66c-1622-4c5b-845e-f2468180162c'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-vn-33821621'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-policy-allow-all-77836188']], 'subnet_ipam': [{'subnet_cidr': '55.229.176.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-03-30T13:05:18.708557', 'updated_at': '2025-03-30T13:05:18.913458'}}
2025-03-30 13:05:21,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5494651b-1aba-4560-b13d-937f6284618e', 'name': 'ctest-vn-12488671', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'project_id': '64bbc965cfe145b49cb1caf55de2d48c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59582db7-a05c-4198-b16a-ba8200f03d57'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-vn-12488671'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-policy-allow-all-77836188']], 'subnet_ipam': [{'subnet_cidr': '95.126.220.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-03-30T13:05:19.572407', 'updated_at': '2025-03-30T13:05:19.789504'}}
2025-03-30 13:05:21,281 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2025-03-30 13:05:21,630 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2025-03-30 13:05:21,718 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13
2025-03-30 13:05:21,779 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c
2025-03-30 13:05:21,871 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5
2025-03-30 13:05:21,936 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5
2025-03-30 13:05:22,000 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06
2025-03-30 13:05:22,055 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06
2025-03-30 13:05:22,110 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/00227cc0-6100-4532-913f-f870f5b703bd
2025-03-30 13:05:22,166 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-30 13:05:22,166 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5
2025-03-30 13:05:22,231 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06
2025-03-30 13:05:22,300 - INFO - Verified VN network id 8 for VN 65bcd8b7-1dd0-4a1e-b653-f75128075ba5
2025-03-30 13:05:22,300 - INFO - Verifications in API Server for VN ctest-vn-33821621 passed
2025-03-30 13:05:22,300 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5
2025-03-30 13:05:22,360 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06
2025-03-30 13:05:22,414 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06
2025-03-30 13:05:22,471 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/00227cc0-6100-4532-913f-f870f5b703bd
2025-03-30 13:05:22,583 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35799276', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7330972574443129374', 'uuid-lslong': '13138116465905851301'}, 'enable': 'true', 'created': '2025-03-30T13:05:18', 'last-modified': '2025-03-30T13:05:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.942818'}
2025-03-30 13:05:22,638 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-30 13:05:22,638 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33821621 passed
2025-03-30 13:05:22,638 - DEBUG - ====Verifying policy data for ctest-vn-33821621 in API_Server ======
2025-03-30 13:05:22,638 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2025-03-30 13:05:22,695 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13
2025-03-30 13:05:22,760 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c
2025-03-30 13:05:22,849 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5
2025-03-30 13:05:22,920 - DEBUG - ==>Verifying data for policy with id: 319939ce-edc9-45b2-8a87-34b31343d580, fqn: ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-policy-allow-all-77836188']
2025-03-30 13:05:22,920 - INFO - VN ctest-vn-33821621 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-30 13:05:22,920 - DEBUG - Verifying the vn in opserver
2025-03-30 13:05:22,920 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621 virtual network link through opserver 10.0.0.17
2025-03-30 13:05:22,921 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-30 13:05:23,278 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-30 13:05:23,406 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621?flat'}
2025-03-30 13:05:23,406 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621 is found in opserver
2025-03-30 13:05:23,510 - DEBUG - Do not have enough data to verify VN in agent
2025-03-30 13:05:23,562 - DEBUG - VRF ids for VN ctest-vn-33821621: {}
2025-03-30 13:05:23,562 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2025-03-30 13:05:23,618 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13
2025-03-30 13:05:23,679 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c
2025-03-30 13:05:23,767 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e
2025-03-30 13:05:23,828 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e
2025-03-30 13:05:23,888 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c
2025-03-30 13:05:23,944 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c
2025-03-30 13:05:24,003 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/40fe2ce8-59c5-4f12-a56a-c0523943110b
2025-03-30 13:05:24,063 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-30 13:05:24,063 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e
2025-03-30 13:05:24,124 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c
2025-03-30 13:05:24,190 - INFO - Verified VN network id 9 for VN 5494651b-1aba-4560-b13d-937f6284618e
2025-03-30 13:05:24,190 - INFO - Verifications in API Server for VN ctest-vn-12488671 passed
2025-03-30 13:05:24,190 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e
2025-03-30 13:05:24,248 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c
2025-03-30 13:05:24,303 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c
2025-03-30 13:05:24,359 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/40fe2ce8-59c5-4f12-a56a-c0523943110b
2025-03-30 13:05:24,471 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35799276', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6094607362826061152', 'uuid-lslong': '12771526293615567246'}, 'enable': 'true', 'created': '2025-03-30T13:05:19', 'last-modified': '2025-03-30T13:05:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.457264'}
2025-03-30 13:05:24,523 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-30 13:05:24,523 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12488671 passed
2025-03-30 13:05:24,523 - DEBUG - ====Verifying policy data for ctest-vn-12488671 in API_Server ======
2025-03-30 13:05:24,523 - DEBUG - Requesting: https://10.0.0.17:8082/domains
2025-03-30 13:05:24,574 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13
2025-03-30 13:05:24,634 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c
2025-03-30 13:05:24,715 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e
2025-03-30 13:05:24,776 - DEBUG - ==>Verifying data for policy with id: 319939ce-edc9-45b2-8a87-34b31343d580, fqn: ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-policy-allow-all-77836188']
2025-03-30 13:05:24,776 - INFO - VN ctest-vn-12488671 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-30 13:05:24,776 - DEBUG - Verifying the vn in opserver
2025-03-30 13:05:24,776 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671 virtual network link through opserver 10.0.0.17
2025-03-30 13:05:24,776 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-30 13:05:24,842 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671?flat'}
2025-03-30 13:05:24,842 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671 is found in opserver
2025-03-30 13:05:24,946 - DEBUG - Do not have enough data to verify VN in agent
2025-03-30 13:05:25,002 - DEBUG - VRF ids for VN ctest-vn-12488671: {}
2025-03-30 13:05:25,093 - DEBUG - Services list from nova: [