2025-04-17 20:17:29,057 - INFO - Reading existing Domain with UUID 9a0acbb4-613c-434e-b7f2-08d2943577cb
2025-04-17 20:17:29,070 - INFO - Using existing domain ['admin_domain'](9a0acbb4-613c-434e-b7f2-08d2943577cb)
2025-04-17 20:17:29,276 - INFO - Project ctest-TestBasicPolicy-19453904 not found, creating it
2025-04-17 20:17:29,803 - INFO - Created Project:ctest-TestBasicPolicy-19453904, ID : 805a12ab-bf0b-43c1-a252-4977d990bf1f
2025-04-17 20:17:31,494 - INFO - ================================================================================
2025-04-17 20:17:31,494 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-17 20:17:31,495 - 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-17 20:17:31,877 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.0.0.49': '0'}} with
2025-04-17 20:17:31,877 - INFO - Initial checks done. Running the testcase now
2025-04-17 20:17:31,877 - INFO -
2025-04-17 20:17:32,646 - DEBUG - Response for create_network : {'network': {'id': '2e8bab6d-5518-4216-a8b6-d923d99dcbdd', 'name': 'ctest-vn-75669711', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'project_id': '805a12abbf0b43c1a2524977d990bf1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-vn-75669711'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-17 20:17:32,845 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e5933c6-9685-496c-ac25-a7ab68af2fca', 'name': '', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'network_id': '2e8bab6d-5518-4216-a8b6-d923d99dcbdd', 'ip_version': 4, 'cidr': '61.29.170.128/26', 'allocation_pools': [{'start': '61.29.170.130', 'end': '61.29.170.190'}], 'gateway_ip': '61.29.170.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-17T20:17:32.751798', 'updated_at': '2025-04-17T20:17:32.751798', 'dns_server_address': '61.29.170.130', 'tags': [], 'project_id': '805a12abbf0b43c1a2524977d990bf1f'}}
2025-04-17 20:17:32,910 - INFO - Created VN ctest-vn-75669711
2025-04-17 20:17:32,968 - DEBUG - VN ctest-vn-75669711 UUID is 2e8bab6d-5518-4216-a8b6-d923d99dcbdd
2025-04-17 20:17:33,468 - DEBUG - Response for create_network : {'network': {'id': '17f2967e-fb4b-4bf3-873d-9fc2e344e13e', 'name': 'ctest-vn-69110488', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'project_id': '805a12abbf0b43c1a2524977d990bf1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-vn-69110488'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-17 20:17:33,688 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e11e7e0d-3af8-4c95-bb11-d7f36ce6e832', 'name': '', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'network_id': '17f2967e-fb4b-4bf3-873d-9fc2e344e13e', 'ip_version': 4, 'cidr': '25.47.8.64/26', 'allocation_pools': [{'start': '25.47.8.66', 'end': '25.47.8.126'}], 'gateway_ip': '25.47.8.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-17T20:17:33.597776', 'updated_at': '2025-04-17T20:17:33.597776', 'dns_server_address': '25.47.8.66', 'tags': [], 'project_id': '805a12abbf0b43c1a2524977d990bf1f'}}
2025-04-17 20:17:33,750 - INFO - Created VN ctest-vn-69110488
2025-04-17 20:17:33,804 - DEBUG - VN ctest-vn-69110488 UUID is 17f2967e-fb4b-4bf3-873d-9fc2e344e13e
2025-04-17 20:17:34,020 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711, 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-19453904:ctest-vn-69110488, 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-17 20:17:34,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8bab6d-5518-4216-a8b6-d923d99dcbdd', 'name': 'ctest-vn-75669711', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'project_id': '805a12abbf0b43c1a2524977d990bf1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e5933c6-9685-496c-ac25-a7ab68af2fca'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-vn-75669711'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-policy-allow-all-49109218']], 'subnet_ipam': [{'subnet_cidr': '61.29.170.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-17T20:17:32.557140', 'updated_at': '2025-04-17T20:17:32.765058'}}
2025-04-17 20:17:34,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17f2967e-fb4b-4bf3-873d-9fc2e344e13e', 'name': 'ctest-vn-69110488', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'project_id': '805a12abbf0b43c1a2524977d990bf1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e11e7e0d-3af8-4c95-bb11-d7f36ce6e832'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-vn-69110488'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-policy-allow-all-49109218']], 'subnet_ipam': [{'subnet_cidr': '25.47.8.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-17T20:17:33.396681', 'updated_at': '2025-04-17T20:17:33.610944'}}
2025-04-17 20:17:35,024 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-17 20:17:35,367 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-17 20:17:35,453 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb
2025-04-17 20:17:35,513 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f
2025-04-17 20:17:35,602 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd
2025-04-17 20:17:35,665 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd
2025-04-17 20:17:35,731 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5
2025-04-17 20:17:35,789 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5
2025-04-17 20:17:35,845 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/eb2caa64-ba04-4172-9ad0-3c65184e0b0b
2025-04-17 20:17:35,901 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 20:17:35,901 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd
2025-04-17 20:17:35,958 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5
2025-04-17 20:17:36,022 - INFO - Verified VN network id 7 for VN 2e8bab6d-5518-4216-a8b6-d923d99dcbdd
2025-04-17 20:17:36,023 - INFO - Verifications in API Server for VN ctest-vn-75669711 passed
2025-04-17 20:17:36,023 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd
2025-04-17 20:17:36,078 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5
2025-04-17 20:17:36,133 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5
2025-04-17 20:17:36,185 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/eb2caa64-ba04-4172-9ad0-3c65184e0b0b
2025-04-17 20:17:36,293 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19453904', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3353962833574904342', 'uuid-lslong': '12157142992131312605'}, 'enable': 'true', 'created': '2025-04-17T20:17:32', 'last-modified': '2025-04-17T20:17:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.882052'}
2025-04-17 20:17:36,346 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 20:17:36,346 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75669711 passed
2025-04-17 20:17:36,346 - DEBUG - ====Verifying policy data for ctest-vn-75669711 in API_Server ======
2025-04-17 20:17:36,346 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-17 20:17:36,396 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb
2025-04-17 20:17:36,457 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f
2025-04-17 20:17:36,541 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd
2025-04-17 20:17:36,599 - DEBUG - ==>Verifying data for policy with id: 2772e729-01f8-4df3-aea0-abaaf68ccffe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-policy-allow-all-49109218']
2025-04-17 20:17:36,599 - INFO - VN ctest-vn-75669711 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 20:17:36,599 - DEBUG - Verifying the vn in opserver
2025-04-17 20:17:36,599 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711 virtual network link through opserver 10.0.0.49
2025-04-17 20:17:36,600 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks
2025-04-17 20:17:36,947 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks
2025-04-17 20:17:37,064 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711', 'href': 'https://10.0.0.49:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711?flat'}
2025-04-17 20:17:37,065 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711 is found in opserver
2025-04-17 20:17:37,165 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 20:17:37,216 - DEBUG - VRF ids for VN ctest-vn-75669711: {}
2025-04-17 20:17:37,216 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-17 20:17:37,268 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb
2025-04-17 20:17:37,325 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f
2025-04-17 20:17:37,405 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e
2025-04-17 20:17:37,466 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e
2025-04-17 20:17:37,522 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9
2025-04-17 20:17:37,577 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9
2025-04-17 20:17:37,633 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/66837844-70e7-46d3-bd11-a550c5176f57
2025-04-17 20:17:37,689 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 20:17:37,689 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e
2025-04-17 20:17:37,746 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9
2025-04-17 20:17:37,810 - INFO - Verified VN network id 8 for VN 17f2967e-fb4b-4bf3-873d-9fc2e344e13e
2025-04-17 20:17:37,810 - INFO - Verifications in API Server for VN ctest-vn-69110488 passed
2025-04-17 20:17:37,810 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e
2025-04-17 20:17:37,866 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9
2025-04-17 20:17:37,921 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9
2025-04-17 20:17:37,974 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/66837844-70e7-46d3-bd11-a550c5176f57
2025-04-17 20:17:38,081 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19453904', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1725607079362382835', 'uuid-lslong': '9745120828085035326'}, 'enable': 'true', 'created': '2025-04-17T20:17:33', 'last-modified': '2025-04-17T20:17:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.298964'}
2025-04-17 20:17:38,133 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 20:17:38,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69110488 passed
2025-04-17 20:17:38,134 - DEBUG - ====Verifying policy data for ctest-vn-69110488 in API_Server ======
2025-04-17 20:17:38,134 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-17 20:17:38,184 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb
2025-04-17 20:17:38,241 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f
2025-04-17 20:17:38,326 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e
2025-04-17 20:17:38,390 - DEBUG - ==>Verifying data for policy with id: 2772e729-01f8-4df3-aea0-abaaf68ccffe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-policy-allow-all-49109218']
2025-04-17 20:17:38,390 - INFO - VN ctest-vn-69110488 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 20:17:38,390 - DEBUG - Verifying the vn in opserver
2025-04-17 20:17:38,390 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488 virtual network link through opserver 10.0.0.49
2025-04-17 20:17:38,390 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks
2025-04-17 20:17:38,448 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488', 'href': 'https://10.0.0.49:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488?flat'}
2025-04-17 20:17:38,448 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488 is found in opserver
2025-04-17 20:17:38,552 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 20:17:38,604 - DEBUG - VRF ids for VN ctest-vn-69110488: {}
2025-04-17 20:17:38,674 - DEBUG - Services list from nova: [