2025-04-22 20:46:39,021 - INFO - Domain Default found not creating
2025-04-22 20:46:39,173 - INFO - Project ctest-TestBasicPolicy-08853539 not found, creating it
2025-04-22 20:46:39,622 - INFO - Created Project:ctest-TestBasicPolicy-08853539, ID : 3b154aec-370e-44cf-84b0-1c4d1a701571
2025-04-22 20:46:41,172 - INFO - ================================================================================
2025-04-22 20:46:41,172 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 20:46:41,172 - 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-22 20:46:41,426 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-04-22 20:46:41,427 - INFO - Initial checks done. Running the testcase now
2025-04-22 20:46:41,427 - INFO -
2025-04-22 20:46:42,094 - DEBUG - Response for create_network : {'network': {'id': 'df8a5f4f-4ac5-4f89-9c8e-b19165536792', 'name': 'ctest-vn-57879768', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'project_id': '3b154aec370e44cf84b01c4d1a701571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-vn-57879768'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 20:46:42,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '4abfb318-d50a-40aa-8bde-918f9077f098', 'name': '', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'network_id': 'df8a5f4f-4ac5-4f89-9c8e-b19165536792', 'ip_version': 4, 'cidr': '192.175.39.192/26', 'allocation_pools': [{'start': '192.175.39.194', 'end': '192.175.39.254'}], 'gateway_ip': '192.175.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.175.39.194', 'tags': [], 'project_id': '3b154aec370e44cf84b01c4d1a701571'}}
2025-04-22 20:46:42,330 - INFO - Created VN ctest-vn-57879768
2025-04-22 20:46:42,384 - DEBUG - VN ctest-vn-57879768 UUID is df8a5f4f-4ac5-4f89-9c8e-b19165536792
2025-04-22 20:46:42,681 - DEBUG - Response for create_network : {'network': {'id': '60482d3e-aff3-4b5d-8147-31739708ca03', 'name': 'ctest-vn-03630765', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'project_id': '3b154aec370e44cf84b01c4d1a701571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-vn-03630765'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 20:46:42,899 - DEBUG - Response for create_subnet : {'subnet': {'id': '112d3a9c-0a00-4f42-9228-122a474cb03b', 'name': '', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'network_id': '60482d3e-aff3-4b5d-8147-31739708ca03', 'ip_version': 4, 'cidr': '133.40.205.192/26', 'allocation_pools': [{'start': '133.40.205.194', 'end': '133.40.205.254'}], 'gateway_ip': '133.40.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.40.205.194', 'tags': [], 'project_id': '3b154aec370e44cf84b01c4d1a701571'}}
2025-04-22 20:46:42,916 - INFO - Created VN ctest-vn-03630765
2025-04-22 20:46:42,968 - DEBUG - VN ctest-vn-03630765 UUID is 60482d3e-aff3-4b5d-8147-31739708ca03
2025-04-22 20:46:43,080 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768, 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-08853539:ctest-vn-03630765, 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-22 20:46:43,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df8a5f4f-4ac5-4f89-9c8e-b19165536792', 'name': 'ctest-vn-57879768', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'project_id': '3b154aec370e44cf84b01c4d1a701571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4abfb318-d50a-40aa-8bde-918f9077f098'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-vn-57879768'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-policy-allow-all-49961897']], 'subnet_ipam': [{'subnet_cidr': '192.175.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 20:46:43,614 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60482d3e-aff3-4b5d-8147-31739708ca03', 'name': 'ctest-vn-03630765', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'project_id': '3b154aec370e44cf84b01c4d1a701571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['112d3a9c-0a00-4f42-9228-122a474cb03b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-vn-03630765'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-policy-allow-all-49961897']], 'subnet_ipam': [{'subnet_cidr': '133.40.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 20:46:43,772 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 20:46:44,119 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 20:46:44,149 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5
2025-04-22 20:46:44,167 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571
2025-04-22 20:46:44,245 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792
2025-04-22 20:46:44,259 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792
2025-04-22 20:46:44,272 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182
2025-04-22 20:46:44,280 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182
2025-04-22 20:46:44,287 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0092f4be-53cb-4d01-ba5e-8cb66b87f6bf
2025-04-22 20:46:44,293 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 20:46:44,293 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792
2025-04-22 20:46:44,302 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182
2025-04-22 20:46:44,315 - INFO - Verified VN network id 9 for VN df8a5f4f-4ac5-4f89-9c8e-b19165536792
2025-04-22 20:46:44,315 - INFO - Verifications in API Server for VN ctest-vn-57879768 passed
2025-04-22 20:46:44,315 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792
2025-04-22 20:46:44,325 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182
2025-04-22 20:46:44,331 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182
2025-04-22 20:46:44,338 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0092f4be-53cb-4d01-ba5e-8cb66b87f6bf
2025-04-22 20:46:44,357 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08853539', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16107791811405500297', 'uuid-lslong': '11281149354638010258'}, 'enable': 'true', 'created': '2025-04-22T20:46:42', 'last-modified': '2025-04-22T20:46:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003569'}
2025-04-22 20:46:44,364 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 20:46:44,365 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57879768 passed
2025-04-22 20:46:44,365 - DEBUG - ====Verifying policy data for ctest-vn-57879768 in API_Server ======
2025-04-22 20:46:44,365 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 20:46:44,371 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5
2025-04-22 20:46:44,383 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571
2025-04-22 20:46:44,466 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792
2025-04-22 20:46:44,481 - DEBUG - ==>Verifying data for policy with id: 29e0f5a2-7cc7-4e8f-b729-9436d70fe0da, fqn: ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-policy-allow-all-49961897']
2025-04-22 20:46:44,481 - INFO - VN ctest-vn-57879768 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 20:46:44,481 - DEBUG - Verifying the vn in opserver
2025-04-22 20:46:44,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768 virtual network link through opserver 10.0.0.50
2025-04-22 20:46:44,481 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-22 20:46:44,816 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-22 20:46:44,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768?flat'}
2025-04-22 20:46:44,876 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768 is found in opserver
2025-04-22 20:46:44,887 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 20:46:44,892 - DEBUG - VRF ids for VN ctest-vn-57879768: {}
2025-04-22 20:46:44,892 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 20:46:44,898 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5
2025-04-22 20:46:44,910 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571
2025-04-22 20:46:44,985 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03
2025-04-22 20:46:44,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03
2025-04-22 20:46:45,007 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475
2025-04-22 20:46:45,015 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475
2025-04-22 20:46:45,022 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9e9913ac-fa41-445d-9c1e-d63bbe8de9f6
2025-04-22 20:46:45,028 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 20:46:45,028 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03
2025-04-22 20:46:45,037 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475
2025-04-22 20:46:45,053 - INFO - Verified VN network id 10 for VN 60482d3e-aff3-4b5d-8147-31739708ca03
2025-04-22 20:46:45,053 - INFO - Verifications in API Server for VN ctest-vn-03630765 passed
2025-04-22 20:46:45,053 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03
2025-04-22 20:46:45,065 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475
2025-04-22 20:46:45,073 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475
2025-04-22 20:46:45,081 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9e9913ac-fa41-445d-9c1e-d63bbe8de9f6
2025-04-22 20:46:45,093 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08853539', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6937844973227428701', 'uuid-lslong': '9315468726764096003'}, 'enable': 'true', 'created': '2025-04-22T20:46:42', 'last-modified': '2025-04-22T20:46:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500968'}
2025-04-22 20:46:45,100 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 20:46:45,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03630765 passed
2025-04-22 20:46:45,100 - DEBUG - ====Verifying policy data for ctest-vn-03630765 in API_Server ======
2025-04-22 20:46:45,100 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-22 20:46:45,105 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5
2025-04-22 20:46:45,117 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571
2025-04-22 20:46:45,190 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03
2025-04-22 20:46:45,200 - DEBUG - ==>Verifying data for policy with id: 29e0f5a2-7cc7-4e8f-b729-9436d70fe0da, fqn: ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-policy-allow-all-49961897']
2025-04-22 20:46:45,200 - INFO - VN ctest-vn-03630765 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 20:46:45,200 - DEBUG - Verifying the vn in opserver
2025-04-22 20:46:45,200 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765 virtual network link through opserver 10.0.0.50
2025-04-22 20:46:45,200 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-22 20:46:45,211 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765?flat'}
2025-04-22 20:46:45,211 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765 is found in opserver
2025-04-22 20:46:45,221 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 20:46:45,226 - DEBUG - VRF ids for VN ctest-vn-03630765: {}
2025-04-22 20:46:45,285 - DEBUG - Services list from nova: [