2025-07-23 13:31:01,052 - INFO - Domain Default found not creating
2025-07-23 13:31:01,512 - INFO - Project ctest-TestBasicPolicy-12266284 not found, creating it
2025-07-23 13:31:01,980 - INFO - Created Project:ctest-TestBasicPolicy-12266284, ID : 9c6869e4-38c3-4735-b3fd-b94c98f8f1ee
2025-07-23 13:31:03,424 - INFO - ================================================================================
2025-07-23 13:31:03,424 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-23 13:31:03,424 - 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-07-23 13:31:03,677 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.193': '0'}} with
2025-07-23 13:31:03,678 - INFO - Initial checks done. Running the testcase now
2025-07-23 13:31:03,678 - INFO -
2025-07-23 13:31:04,239 - DEBUG - Response for create_network : {'network': {'id': 'b49e08d6-7359-4baf-8f51-34f859c9549a', 'name': 'ctest-vn-18869453', 'tenant_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'project_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12266284', 'ctest-vn-18869453'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:31:04,467 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4576c8d-9439-4083-9a65-ad3871c9c54a', 'name': '', 'tenant_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'network_id': 'b49e08d6-7359-4baf-8f51-34f859c9549a', 'ip_version': 4, 'cidr': '57.160.176.192/26', 'allocation_pools': [{'start': '57.160.176.194', 'end': '57.160.176.254'}], 'gateway_ip': '57.160.176.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.160.176.194', 'tags': [], 'project_id': '9c6869e438c34735b3fdb94c98f8f1ee'}}
2025-07-23 13:31:04,486 - INFO - Created VN ctest-vn-18869453
2025-07-23 13:31:04,540 - DEBUG - VN ctest-vn-18869453 UUID is b49e08d6-7359-4baf-8f51-34f859c9549a
2025-07-23 13:31:04,843 - DEBUG - Response for create_network : {'network': {'id': '3699d76f-69bc-4a26-a520-8d4a37a10387', 'name': 'ctest-vn-51307385', 'tenant_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'project_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12266284', 'ctest-vn-51307385'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:31:05,016 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eaa16e1e-4c33-4749-b9c4-87bc2952d893', 'name': '', 'tenant_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'network_id': '3699d76f-69bc-4a26-a520-8d4a37a10387', 'ip_version': 4, 'cidr': '130.231.27.64/26', 'allocation_pools': [{'start': '130.231.27.66', 'end': '130.231.27.126'}], 'gateway_ip': '130.231.27.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.231.27.66', 'tags': [], 'project_id': '9c6869e438c34735b3fdb94c98f8f1ee'}}
2025-07-23 13:31:05,035 - INFO - Created VN ctest-vn-51307385
2025-07-23 13:31:05,088 - DEBUG - VN ctest-vn-51307385 UUID is 3699d76f-69bc-4a26-a520-8d4a37a10387
2025-07-23 13:31:05,205 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-18869453, 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-12266284:ctest-vn-51307385, 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-07-23 13:31:05,514 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b49e08d6-7359-4baf-8f51-34f859c9549a', 'name': 'ctest-vn-18869453', 'tenant_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'project_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4576c8d-9439-4083-9a65-ad3871c9c54a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12266284', 'ctest-vn-18869453'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12266284', 'ctest-policy-allow-all-98335008']], 'subnet_ipam': [{'subnet_cidr': '57.160.176.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:31:05,807 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3699d76f-69bc-4a26-a520-8d4a37a10387', 'name': 'ctest-vn-51307385', 'tenant_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'project_id': '9c6869e438c34735b3fdb94c98f8f1ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eaa16e1e-4c33-4749-b9c4-87bc2952d893'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12266284', 'ctest-vn-51307385'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12266284', 'ctest-policy-allow-all-98335008']], 'subnet_ipam': [{'subnet_cidr': '130.231.27.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:31:05,964 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-07-23 13:31:06,263 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-07-23 13:31:06,292 - DEBUG - Requesting: http://10.0.0.23:8082/domain/da3ff578-e247-4ebc-b955-07f04a47ad8d
2025-07-23 13:31:06,306 - DEBUG - Requesting: http://10.0.0.23:8082/project/9c6869e4-38c3-4735-b3fd-b94c98f8f1ee
2025-07-23 13:31:06,381 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b49e08d6-7359-4baf-8f51-34f859c9549a
2025-07-23 13:31:06,393 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b49e08d6-7359-4baf-8f51-34f859c9549a
2025-07-23 13:31:06,404 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/51108082-078a-4300-9673-bba79f900514
2025-07-23 13:31:06,412 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/51108082-078a-4300-9673-bba79f900514
2025-07-23 13:31:06,420 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/496fc6e0-4a41-48c9-a23b-0e2da8386459
2025-07-23 13:31:06,427 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 13:31:06,427 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b49e08d6-7359-4baf-8f51-34f859c9549a
2025-07-23 13:31:06,439 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/51108082-078a-4300-9673-bba79f900514
2025-07-23 13:31:06,458 - INFO - Verified VN network id 10 for VN b49e08d6-7359-4baf-8f51-34f859c9549a
2025-07-23 13:31:06,458 - INFO - Verifications in API Server for VN ctest-vn-18869453 passed
2025-07-23 13:31:06,458 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b49e08d6-7359-4baf-8f51-34f859c9549a
2025-07-23 13:31:06,472 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/51108082-078a-4300-9673-bba79f900514
2025-07-23 13:31:06,484 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/51108082-078a-4300-9673-bba79f900514
2025-07-23 13:31:06,493 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/496fc6e0-4a41-48c9-a23b-0e2da8386459
2025-07-23 13:31:06,507 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-18869453', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12266284', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13014849690298567599', 'uuid-lslong': '10327093661800158362'}, 'enable': 'true', 'created': '2025-07-23T13:31:04', 'last-modified': '2025-07-23T13:31:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019799'}
2025-07-23 13:31:06,514 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 13:31:06,514 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18869453 passed
2025-07-23 13:31:06,514 - DEBUG - ====Verifying policy data for ctest-vn-18869453 in API_Server ======
2025-07-23 13:31:06,514 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-07-23 13:31:06,520 - DEBUG - Requesting: http://10.0.0.23:8082/domain/da3ff578-e247-4ebc-b955-07f04a47ad8d
2025-07-23 13:31:06,533 - DEBUG - Requesting: http://10.0.0.23:8082/project/9c6869e4-38c3-4735-b3fd-b94c98f8f1ee
2025-07-23 13:31:06,610 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/b49e08d6-7359-4baf-8f51-34f859c9549a
2025-07-23 13:31:06,621 - DEBUG - ==>Verifying data for policy with id: 5898ce0a-7736-4bd1-bac9-7195f540f9bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-12266284', 'ctest-policy-allow-all-98335008']
2025-07-23 13:31:06,621 - INFO - VN ctest-vn-18869453 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 13:31:06,621 - DEBUG - Verifying the vn in opserver
2025-07-23 13:31:06,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-18869453 virtual network link through opserver 10.0.0.23
2025-07-23 13:31:06,622 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-07-23 13:31:06,915 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-07-23 13:31:06,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-18869453', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-18869453?flat'}
2025-07-23 13:31:06,969 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-18869453 is found in opserver
2025-07-23 13:31:06,980 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 13:31:06,986 - DEBUG - VRF ids for VN ctest-vn-18869453: {}
2025-07-23 13:31:06,986 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-07-23 13:31:06,992 - DEBUG - Requesting: http://10.0.0.23:8082/domain/da3ff578-e247-4ebc-b955-07f04a47ad8d
2025-07-23 13:31:07,004 - DEBUG - Requesting: http://10.0.0.23:8082/project/9c6869e4-38c3-4735-b3fd-b94c98f8f1ee
2025-07-23 13:31:07,084 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3699d76f-69bc-4a26-a520-8d4a37a10387
2025-07-23 13:31:07,100 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3699d76f-69bc-4a26-a520-8d4a37a10387
2025-07-23 13:31:07,113 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa7c2189-d985-442f-9f2a-863c8722b8ed
2025-07-23 13:31:07,122 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa7c2189-d985-442f-9f2a-863c8722b8ed
2025-07-23 13:31:07,130 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/61ba5155-7d90-4e52-8e99-c3de07e7ce3b
2025-07-23 13:31:07,139 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 13:31:07,139 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3699d76f-69bc-4a26-a520-8d4a37a10387
2025-07-23 13:31:07,150 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa7c2189-d985-442f-9f2a-863c8722b8ed
2025-07-23 13:31:07,167 - INFO - Verified VN network id 11 for VN 3699d76f-69bc-4a26-a520-8d4a37a10387
2025-07-23 13:31:07,168 - INFO - Verifications in API Server for VN ctest-vn-51307385 passed
2025-07-23 13:31:07,168 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3699d76f-69bc-4a26-a520-8d4a37a10387
2025-07-23 13:31:07,179 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa7c2189-d985-442f-9f2a-863c8722b8ed
2025-07-23 13:31:07,187 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa7c2189-d985-442f-9f2a-863c8722b8ed
2025-07-23 13:31:07,195 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/61ba5155-7d90-4e52-8e99-c3de07e7ce3b
2025-07-23 13:31:07,208 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-51307385', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12266284', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3934412623000128038', 'uuid-lslong': '11898665565413245831'}, 'enable': 'true', 'created': '2025-07-23T13:31:04', 'last-modified': '2025-07-23T13:31:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.474050'}
2025-07-23 13:31:07,214 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 13:31:07,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51307385 passed
2025-07-23 13:31:07,214 - DEBUG - ====Verifying policy data for ctest-vn-51307385 in API_Server ======
2025-07-23 13:31:07,214 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-07-23 13:31:07,220 - DEBUG - Requesting: http://10.0.0.23:8082/domain/da3ff578-e247-4ebc-b955-07f04a47ad8d
2025-07-23 13:31:07,234 - DEBUG - Requesting: http://10.0.0.23:8082/project/9c6869e4-38c3-4735-b3fd-b94c98f8f1ee
2025-07-23 13:31:07,306 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3699d76f-69bc-4a26-a520-8d4a37a10387
2025-07-23 13:31:07,318 - DEBUG - ==>Verifying data for policy with id: 5898ce0a-7736-4bd1-bac9-7195f540f9bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-12266284', 'ctest-policy-allow-all-98335008']
2025-07-23 13:31:07,318 - INFO - VN ctest-vn-51307385 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 13:31:07,318 - DEBUG - Verifying the vn in opserver
2025-07-23 13:31:07,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-51307385 virtual network link through opserver 10.0.0.23
2025-07-23 13:31:07,319 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-07-23 13:31:07,330 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-51307385', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-51307385?flat'}
2025-07-23 13:31:07,330 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12266284:ctest-vn-51307385 is found in opserver
2025-07-23 13:31:07,342 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 13:31:07,348 - DEBUG - VRF ids for VN ctest-vn-51307385: {}
2025-07-23 13:31:07,405 - DEBUG - Services list from nova: [