2025-06-09 02:14:58,405 - INFO - Domain Default found not creating
2025-06-09 02:14:58,545 - INFO - Project ctest-TestBasicPolicy-45756160 not found, creating it
2025-06-09 02:14:58,987 - INFO - Created Project:ctest-TestBasicPolicy-45756160, ID : be22a4cf-9179-4c9b-acb1-6b00319e44ee
2025-06-09 02:15:00,404 - INFO - ================================================================================
2025-06-09 02:15:00,404 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-09 02:15:00,404 - 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-06-09 02:15:00,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-06-09 02:15:00,663 - INFO - Initial checks done. Running the testcase now
2025-06-09 02:15:00,663 - INFO -
2025-06-09 02:15:01,223 - DEBUG - Response for create_network : {'network': {'id': '4dac14da-2343-4d1c-b154-1913c51dd728', 'name': 'ctest-vn-86741746', 'tenant_id': 'be22a4cf91794c9bacb16b00319e44ee', 'project_id': 'be22a4cf91794c9bacb16b00319e44ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45756160', 'ctest-vn-86741746'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:15:01,390 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9f7b542-19ee-4e5a-8395-ecce10254d5b', 'name': '', 'tenant_id': 'be22a4cf91794c9bacb16b00319e44ee', 'network_id': '4dac14da-2343-4d1c-b154-1913c51dd728', 'ip_version': 4, 'cidr': '5.111.243.128/26', 'allocation_pools': [{'start': '5.111.243.130', 'end': '5.111.243.190'}], 'gateway_ip': '5.111.243.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.111.243.130', 'tags': [], 'project_id': 'be22a4cf91794c9bacb16b00319e44ee'}}
2025-06-09 02:15:01,412 - INFO - Created VN ctest-vn-86741746
2025-06-09 02:15:01,466 - DEBUG - VN ctest-vn-86741746 UUID is 4dac14da-2343-4d1c-b154-1913c51dd728
2025-06-09 02:15:01,792 - DEBUG - Response for create_network : {'network': {'id': '0f231586-0f6b-47c7-a853-c6e4e2901457', 'name': 'ctest-vn-43191454', 'tenant_id': 'be22a4cf91794c9bacb16b00319e44ee', 'project_id': 'be22a4cf91794c9bacb16b00319e44ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45756160', 'ctest-vn-43191454'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:15:02,008 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c16fc4f6-aa18-4ef7-88e3-763c98baa764', 'name': '', 'tenant_id': 'be22a4cf91794c9bacb16b00319e44ee', 'network_id': '0f231586-0f6b-47c7-a853-c6e4e2901457', 'ip_version': 4, 'cidr': '88.160.131.0/26', 'allocation_pools': [{'start': '88.160.131.2', 'end': '88.160.131.62'}], 'gateway_ip': '88.160.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.160.131.2', 'tags': [], 'project_id': 'be22a4cf91794c9bacb16b00319e44ee'}}
2025-06-09 02:15:02,026 - INFO - Created VN ctest-vn-43191454
2025-06-09 02:15:02,077 - DEBUG - VN ctest-vn-43191454 UUID is 0f231586-0f6b-47c7-a853-c6e4e2901457
2025-06-09 02:15:02,193 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-86741746, 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-45756160:ctest-vn-43191454, 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-06-09 02:15:02,520 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4dac14da-2343-4d1c-b154-1913c51dd728', 'name': 'ctest-vn-86741746', 'tenant_id': 'be22a4cf91794c9bacb16b00319e44ee', 'project_id': 'be22a4cf91794c9bacb16b00319e44ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9f7b542-19ee-4e5a-8395-ecce10254d5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45756160', 'ctest-vn-86741746'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45756160', 'ctest-policy-allow-all-18531377']], 'subnet_ipam': [{'subnet_cidr': '5.111.243.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:15:02,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f231586-0f6b-47c7-a853-c6e4e2901457', 'name': 'ctest-vn-43191454', 'tenant_id': 'be22a4cf91794c9bacb16b00319e44ee', 'project_id': 'be22a4cf91794c9bacb16b00319e44ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c16fc4f6-aa18-4ef7-88e3-763c98baa764'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45756160', 'ctest-vn-43191454'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45756160', 'ctest-policy-allow-all-18531377']], 'subnet_ipam': [{'subnet_cidr': '88.160.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:15:02,885 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-09 02:15:03,194 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-09 02:15:03,222 - DEBUG - Requesting: http://10.0.0.38:8082/domain/188dcf17-0db5-4fbb-8fad-fbd4243964d4
2025-06-09 02:15:03,235 - DEBUG - Requesting: http://10.0.0.38:8082/project/be22a4cf-9179-4c9b-acb1-6b00319e44ee
2025-06-09 02:15:03,316 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4dac14da-2343-4d1c-b154-1913c51dd728
2025-06-09 02:15:03,328 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4dac14da-2343-4d1c-b154-1913c51dd728
2025-06-09 02:15:03,338 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1390b829-248f-4253-abd5-724fed1cf5f1
2025-06-09 02:15:03,346 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1390b829-248f-4253-abd5-724fed1cf5f1
2025-06-09 02:15:03,353 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6766f7e5-fb57-473c-b8dc-879ebca37e23
2025-06-09 02:15:03,360 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 02:15:03,360 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4dac14da-2343-4d1c-b154-1913c51dd728
2025-06-09 02:15:03,370 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1390b829-248f-4253-abd5-724fed1cf5f1
2025-06-09 02:15:03,386 - INFO - Verified VN network id 8 for VN 4dac14da-2343-4d1c-b154-1913c51dd728
2025-06-09 02:15:03,386 - INFO - Verifications in API Server for VN ctest-vn-86741746 passed
2025-06-09 02:15:03,386 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4dac14da-2343-4d1c-b154-1913c51dd728
2025-06-09 02:15:03,396 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1390b829-248f-4253-abd5-724fed1cf5f1
2025-06-09 02:15:03,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1390b829-248f-4253-abd5-724fed1cf5f1
2025-06-09 02:15:03,414 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6766f7e5-fb57-473c-b8dc-879ebca37e23
2025-06-09 02:15:03,431 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-86741746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45756160', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5596871364041723164', 'uuid-lslong': '12777865615459079976'}, 'enable': 'true', 'created': '2025-06-09T02:15:01', 'last-modified': '2025-06-09T02:15:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920109'}
2025-06-09 02:15:03,437 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 02:15:03,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86741746 passed
2025-06-09 02:15:03,437 - DEBUG - ====Verifying policy data for ctest-vn-86741746 in API_Server ======
2025-06-09 02:15:03,437 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-09 02:15:03,443 - DEBUG - Requesting: http://10.0.0.38:8082/domain/188dcf17-0db5-4fbb-8fad-fbd4243964d4
2025-06-09 02:15:03,454 - DEBUG - Requesting: http://10.0.0.38:8082/project/be22a4cf-9179-4c9b-acb1-6b00319e44ee
2025-06-09 02:15:03,526 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4dac14da-2343-4d1c-b154-1913c51dd728
2025-06-09 02:15:03,536 - DEBUG - ==>Verifying data for policy with id: dfce0373-1777-46ed-8d79-b4b40df7ad69, fqn: ['default-domain', 'ctest-TestBasicPolicy-45756160', 'ctest-policy-allow-all-18531377']
2025-06-09 02:15:03,536 - INFO - VN ctest-vn-86741746 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 02:15:03,536 - DEBUG - Verifying the vn in opserver
2025-06-09 02:15:03,536 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-86741746 virtual network link through opserver 10.0.0.38
2025-06-09 02:15:03,536 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-09 02:15:03,826 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-09 02:15:03,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-86741746', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-86741746?flat'}
2025-06-09 02:15:03,878 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-86741746 is found in opserver
2025-06-09 02:15:03,889 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 02:15:03,894 - DEBUG - VRF ids for VN ctest-vn-86741746: {}
2025-06-09 02:15:03,894 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-09 02:15:03,899 - DEBUG - Requesting: http://10.0.0.38:8082/domain/188dcf17-0db5-4fbb-8fad-fbd4243964d4
2025-06-09 02:15:03,911 - DEBUG - Requesting: http://10.0.0.38:8082/project/be22a4cf-9179-4c9b-acb1-6b00319e44ee
2025-06-09 02:15:03,986 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f231586-0f6b-47c7-a853-c6e4e2901457
2025-06-09 02:15:03,998 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f231586-0f6b-47c7-a853-c6e4e2901457
2025-06-09 02:15:04,008 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c9de141-8550-4900-a7ba-62711c400160
2025-06-09 02:15:04,015 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c9de141-8550-4900-a7ba-62711c400160
2025-06-09 02:15:04,023 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d6d6f55e-08fc-4ae0-ad68-60c19a257863
2025-06-09 02:15:04,030 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 02:15:04,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f231586-0f6b-47c7-a853-c6e4e2901457
2025-06-09 02:15:04,040 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c9de141-8550-4900-a7ba-62711c400160
2025-06-09 02:15:04,056 - INFO - Verified VN network id 9 for VN 0f231586-0f6b-47c7-a853-c6e4e2901457
2025-06-09 02:15:04,056 - INFO - Verifications in API Server for VN ctest-vn-43191454 passed
2025-06-09 02:15:04,056 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f231586-0f6b-47c7-a853-c6e4e2901457
2025-06-09 02:15:04,067 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c9de141-8550-4900-a7ba-62711c400160
2025-06-09 02:15:04,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c9de141-8550-4900-a7ba-62711c400160
2025-06-09 02:15:04,083 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d6d6f55e-08fc-4ae0-ad68-60c19a257863
2025-06-09 02:15:04,096 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-43191454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45756160', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1090739200282281927', 'uuid-lslong': '12129256907794814039'}, 'enable': 'true', 'created': '2025-06-09T02:15:01', 'last-modified': '2025-06-09T02:15:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398178'}
2025-06-09 02:15:04,102 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 02:15:04,102 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43191454 passed
2025-06-09 02:15:04,103 - DEBUG - ====Verifying policy data for ctest-vn-43191454 in API_Server ======
2025-06-09 02:15:04,103 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-09 02:15:04,108 - DEBUG - Requesting: http://10.0.0.38:8082/domain/188dcf17-0db5-4fbb-8fad-fbd4243964d4
2025-06-09 02:15:04,120 - DEBUG - Requesting: http://10.0.0.38:8082/project/be22a4cf-9179-4c9b-acb1-6b00319e44ee
2025-06-09 02:15:04,193 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f231586-0f6b-47c7-a853-c6e4e2901457
2025-06-09 02:15:04,203 - DEBUG - ==>Verifying data for policy with id: dfce0373-1777-46ed-8d79-b4b40df7ad69, fqn: ['default-domain', 'ctest-TestBasicPolicy-45756160', 'ctest-policy-allow-all-18531377']
2025-06-09 02:15:04,203 - INFO - VN ctest-vn-43191454 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 02:15:04,203 - DEBUG - Verifying the vn in opserver
2025-06-09 02:15:04,203 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-43191454 virtual network link through opserver 10.0.0.38
2025-06-09 02:15:04,203 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-09 02:15:04,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-43191454', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-43191454?flat'}
2025-06-09 02:15:04,213 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45756160:ctest-vn-43191454 is found in opserver
2025-06-09 02:15:04,225 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 02:15:04,229 - DEBUG - VRF ids for VN ctest-vn-43191454: {}
2025-06-09 02:15:04,285 - DEBUG - Services list from nova: [