2025-05-14 14:51:05,338 - INFO - Domain Default found not creating
2025-05-14 14:51:05,459 - INFO - Project ctest-TestBasicPolicy-70865833 not found, creating it
2025-05-14 14:51:05,897 - INFO - Created Project:ctest-TestBasicPolicy-70865833, ID : 6c24f917-f14e-4aa0-9544-17b59f12bc49
2025-05-14 14:51:07,288 - INFO - ================================================================================
2025-05-14 14:51:07,288 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-14 14:51:07,288 - 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-05-14 14:51:07,542 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-05-14 14:51:07,542 - INFO - Initial checks done. Running the testcase now
2025-05-14 14:51:07,542 - INFO -
2025-05-14 14:51:08,104 - DEBUG - Response for create_network : {'network': {'id': '86b8d035-6f62-4517-8079-83d48a4865cf', 'name': 'ctest-vn-48897601', 'tenant_id': '6c24f917f14e4aa0954417b59f12bc49', 'project_id': '6c24f917f14e4aa0954417b59f12bc49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70865833', 'ctest-vn-48897601'], 'port_security_enabled': True, 'description': ''}}
2025-05-14 14:51:08,319 - DEBUG - Response for create_subnet : {'subnet': {'id': '60611d57-84c5-4b6b-9cf3-9fb4351f2abf', 'name': '', 'tenant_id': '6c24f917f14e4aa0954417b59f12bc49', 'network_id': '86b8d035-6f62-4517-8079-83d48a4865cf', 'ip_version': 4, 'cidr': '169.240.185.0/26', 'allocation_pools': [{'start': '169.240.185.2', 'end': '169.240.185.62'}], 'gateway_ip': '169.240.185.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.240.185.2', 'tags': [], 'project_id': '6c24f917f14e4aa0954417b59f12bc49'}}
2025-05-14 14:51:08,334 - INFO - Created VN ctest-vn-48897601
2025-05-14 14:51:08,389 - DEBUG - VN ctest-vn-48897601 UUID is 86b8d035-6f62-4517-8079-83d48a4865cf
2025-05-14 14:51:08,701 - DEBUG - Response for create_network : {'network': {'id': 'e39bbbd1-b081-48f7-8f82-f1811d6f74e7', 'name': 'ctest-vn-57810891', 'tenant_id': '6c24f917f14e4aa0954417b59f12bc49', 'project_id': '6c24f917f14e4aa0954417b59f12bc49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70865833', 'ctest-vn-57810891'], 'port_security_enabled': True, 'description': ''}}
2025-05-14 14:51:08,898 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bda5a0d4-b86f-4f7a-9d22-d712c083a81a', 'name': '', 'tenant_id': '6c24f917f14e4aa0954417b59f12bc49', 'network_id': 'e39bbbd1-b081-48f7-8f82-f1811d6f74e7', 'ip_version': 4, 'cidr': '118.38.72.128/26', 'allocation_pools': [{'start': '118.38.72.130', 'end': '118.38.72.190'}], 'gateway_ip': '118.38.72.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.38.72.130', 'tags': [], 'project_id': '6c24f917f14e4aa0954417b59f12bc49'}}
2025-05-14 14:51:08,914 - INFO - Created VN ctest-vn-57810891
2025-05-14 14:51:08,965 - DEBUG - VN ctest-vn-57810891 UUID is e39bbbd1-b081-48f7-8f82-f1811d6f74e7
2025-05-14 14:51:09,113 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-48897601, 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-70865833:ctest-vn-57810891, 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-05-14 14:51:09,401 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86b8d035-6f62-4517-8079-83d48a4865cf', 'name': 'ctest-vn-48897601', 'tenant_id': '6c24f917f14e4aa0954417b59f12bc49', 'project_id': '6c24f917f14e4aa0954417b59f12bc49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60611d57-84c5-4b6b-9cf3-9fb4351f2abf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70865833', 'ctest-vn-48897601'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70865833', 'ctest-policy-allow-all-90368775']], 'subnet_ipam': [{'subnet_cidr': '169.240.185.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-14 14:51:09,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e39bbbd1-b081-48f7-8f82-f1811d6f74e7', 'name': 'ctest-vn-57810891', 'tenant_id': '6c24f917f14e4aa0954417b59f12bc49', 'project_id': '6c24f917f14e4aa0954417b59f12bc49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bda5a0d4-b86f-4f7a-9d22-d712c083a81a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70865833', 'ctest-vn-57810891'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70865833', 'ctest-policy-allow-all-90368775']], 'subnet_ipam': [{'subnet_cidr': '118.38.72.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-14 14:51:09,821 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 14:51:10,120 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 14:51:10,145 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d29b6241-f05b-4555-9046-aa103b229ee3
2025-05-14 14:51:10,157 - DEBUG - Requesting: http://10.0.0.50:8082/project/6c24f917-f14e-4aa0-9544-17b59f12bc49
2025-05-14 14:51:10,236 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86b8d035-6f62-4517-8079-83d48a4865cf
2025-05-14 14:51:10,247 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86b8d035-6f62-4517-8079-83d48a4865cf
2025-05-14 14:51:10,255 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d84a5f5d-6d7b-4289-935c-f366529af824
2025-05-14 14:51:10,262 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d84a5f5d-6d7b-4289-935c-f366529af824
2025-05-14 14:51:10,270 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eb95dfa2-44f2-4baa-b005-ff0a19f84ed4
2025-05-14 14:51:10,276 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-14 14:51:10,277 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86b8d035-6f62-4517-8079-83d48a4865cf
2025-05-14 14:51:10,285 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d84a5f5d-6d7b-4289-935c-f366529af824
2025-05-14 14:51:10,297 - INFO - Verified VN network id 8 for VN 86b8d035-6f62-4517-8079-83d48a4865cf
2025-05-14 14:51:10,297 - INFO - Verifications in API Server for VN ctest-vn-48897601 passed
2025-05-14 14:51:10,298 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86b8d035-6f62-4517-8079-83d48a4865cf
2025-05-14 14:51:10,306 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d84a5f5d-6d7b-4289-935c-f366529af824
2025-05-14 14:51:10,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d84a5f5d-6d7b-4289-935c-f366529af824
2025-05-14 14:51:10,318 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eb95dfa2-44f2-4baa-b005-ff0a19f84ed4
2025-05-14 14:51:10,328 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-48897601', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70865833', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9707737924717659415', 'uuid-lslong': '9257575457913071055'}, 'enable': 'true', 'created': '2025-05-14T14:51:08', 'last-modified': '2025-05-14T14:51:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944333'}
2025-05-14 14:51:10,334 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-14 14:51:10,334 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48897601 passed
2025-05-14 14:51:10,334 - DEBUG - ====Verifying policy data for ctest-vn-48897601 in API_Server ======
2025-05-14 14:51:10,335 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 14:51:10,339 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d29b6241-f05b-4555-9046-aa103b229ee3
2025-05-14 14:51:10,349 - DEBUG - Requesting: http://10.0.0.50:8082/project/6c24f917-f14e-4aa0-9544-17b59f12bc49
2025-05-14 14:51:10,423 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86b8d035-6f62-4517-8079-83d48a4865cf
2025-05-14 14:51:10,432 - DEBUG - ==>Verifying data for policy with id: 4e8da9b6-6a88-4688-9bf1-39c020b3096b, fqn: ['default-domain', 'ctest-TestBasicPolicy-70865833', 'ctest-policy-allow-all-90368775']
2025-05-14 14:51:10,432 - INFO - VN ctest-vn-48897601 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-14 14:51:10,432 - DEBUG - Verifying the vn in opserver
2025-05-14 14:51:10,432 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-48897601 virtual network link through opserver 10.0.0.50
2025-05-14 14:51:10,432 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-14 14:51:10,720 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-14 14:51:10,768 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-48897601', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-48897601?flat'}
2025-05-14 14:51:10,768 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-48897601 is found in opserver
2025-05-14 14:51:10,778 - DEBUG - Do not have enough data to verify VN in agent
2025-05-14 14:51:10,782 - DEBUG - VRF ids for VN ctest-vn-48897601: {}
2025-05-14 14:51:10,782 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 14:51:10,789 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d29b6241-f05b-4555-9046-aa103b229ee3
2025-05-14 14:51:10,798 - DEBUG - Requesting: http://10.0.0.50:8082/project/6c24f917-f14e-4aa0-9544-17b59f12bc49
2025-05-14 14:51:10,867 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e39bbbd1-b081-48f7-8f82-f1811d6f74e7
2025-05-14 14:51:10,878 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e39bbbd1-b081-48f7-8f82-f1811d6f74e7
2025-05-14 14:51:10,887 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d184f-2a5b-4d45-9333-66d43d9d885f
2025-05-14 14:51:10,893 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d184f-2a5b-4d45-9333-66d43d9d885f
2025-05-14 14:51:10,899 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/238dd694-c069-40ff-8553-d2ff2d51919d
2025-05-14 14:51:10,905 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-14 14:51:10,905 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e39bbbd1-b081-48f7-8f82-f1811d6f74e7
2025-05-14 14:51:10,913 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d184f-2a5b-4d45-9333-66d43d9d885f
2025-05-14 14:51:10,925 - INFO - Verified VN network id 9 for VN e39bbbd1-b081-48f7-8f82-f1811d6f74e7
2025-05-14 14:51:10,926 - INFO - Verifications in API Server for VN ctest-vn-57810891 passed
2025-05-14 14:51:10,926 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e39bbbd1-b081-48f7-8f82-f1811d6f74e7
2025-05-14 14:51:10,935 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d184f-2a5b-4d45-9333-66d43d9d885f
2025-05-14 14:51:10,941 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36d184f-2a5b-4d45-9333-66d43d9d885f
2025-05-14 14:51:10,947 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/238dd694-c069-40ff-8553-d2ff2d51919d
2025-05-14 14:51:10,958 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-57810891', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70865833', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16400908977283614967', 'uuid-lslong': '10341093231242999015'}, 'enable': 'true', 'created': '2025-05-14T14:51:08', 'last-modified': '2025-05-14T14:51:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352796'}
2025-05-14 14:51:10,964 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-14 14:51:10,964 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57810891 passed
2025-05-14 14:51:10,964 - DEBUG - ====Verifying policy data for ctest-vn-57810891 in API_Server ======
2025-05-14 14:51:10,964 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-14 14:51:10,968 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d29b6241-f05b-4555-9046-aa103b229ee3
2025-05-14 14:51:10,978 - DEBUG - Requesting: http://10.0.0.50:8082/project/6c24f917-f14e-4aa0-9544-17b59f12bc49
2025-05-14 14:51:11,044 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e39bbbd1-b081-48f7-8f82-f1811d6f74e7
2025-05-14 14:51:11,053 - DEBUG - ==>Verifying data for policy with id: 4e8da9b6-6a88-4688-9bf1-39c020b3096b, fqn: ['default-domain', 'ctest-TestBasicPolicy-70865833', 'ctest-policy-allow-all-90368775']
2025-05-14 14:51:11,054 - INFO - VN ctest-vn-57810891 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-14 14:51:11,054 - DEBUG - Verifying the vn in opserver
2025-05-14 14:51:11,054 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-57810891 virtual network link through opserver 10.0.0.50
2025-05-14 14:51:11,054 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-14 14:51:11,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-57810891', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-57810891?flat'}
2025-05-14 14:51:11,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70865833:ctest-vn-57810891 is found in opserver
2025-05-14 14:51:11,074 - DEBUG - Do not have enough data to verify VN in agent
2025-05-14 14:51:11,079 - DEBUG - VRF ids for VN ctest-vn-57810891: {}
2025-05-14 14:51:11,132 - DEBUG - Services list from nova: [