2025-05-07 08:52:05,919 - INFO - Domain Default found not creating
2025-05-07 08:52:06,063 - INFO - Project ctest-TestBasicPolicy-46434279 not found, creating it
2025-05-07 08:52:06,526 - INFO - Created Project:ctest-TestBasicPolicy-46434279, ID : 2d2bd0d8-e17c-4d06-b269-c5adb9986586
2025-05-07 08:52:07,862 - INFO - ================================================================================
2025-05-07 08:52:07,862 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-07 08:52:07,862 - 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-07 08:52:08,118 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-07 08:52:08,118 - INFO - Initial checks done. Running the testcase now
2025-05-07 08:52:08,118 - INFO -
2025-05-07 08:52:08,650 - DEBUG - Response for create_network : {'network': {'id': 'b3f6f693-b5e3-439b-a46e-c26682663b70', 'name': 'ctest-vn-65088928', 'tenant_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'project_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46434279', 'ctest-vn-65088928'], 'port_security_enabled': True, 'description': ''}}
2025-05-07 08:52:08,828 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2664a44-2bed-4b8c-93fb-6198b46c4d74', 'name': '', 'tenant_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'network_id': 'b3f6f693-b5e3-439b-a46e-c26682663b70', 'ip_version': 4, 'cidr': '47.185.110.64/26', 'allocation_pools': [{'start': '47.185.110.66', 'end': '47.185.110.126'}], 'gateway_ip': '47.185.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.185.110.66', 'tags': [], 'project_id': '2d2bd0d8e17c4d06b269c5adb9986586'}}
2025-05-07 08:52:08,845 - INFO - Created VN ctest-vn-65088928
2025-05-07 08:52:08,900 - DEBUG - VN ctest-vn-65088928 UUID is b3f6f693-b5e3-439b-a46e-c26682663b70
2025-05-07 08:52:09,220 - DEBUG - Response for create_network : {'network': {'id': '5239a7b7-e422-4649-a19b-bfee5f9f913b', 'name': 'ctest-vn-91125557', 'tenant_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'project_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46434279', 'ctest-vn-91125557'], 'port_security_enabled': True, 'description': ''}}
2025-05-07 08:52:09,438 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c0a21aa-5553-4c28-9a6a-18dad2123334', 'name': '', 'tenant_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'network_id': '5239a7b7-e422-4649-a19b-bfee5f9f913b', 'ip_version': 4, 'cidr': '179.27.141.64/26', 'allocation_pools': [{'start': '179.27.141.66', 'end': '179.27.141.126'}], 'gateway_ip': '179.27.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.27.141.66', 'tags': [], 'project_id': '2d2bd0d8e17c4d06b269c5adb9986586'}}
2025-05-07 08:52:09,455 - INFO - Created VN ctest-vn-91125557
2025-05-07 08:52:09,508 - DEBUG - VN ctest-vn-91125557 UUID is 5239a7b7-e422-4649-a19b-bfee5f9f913b
2025-05-07 08:52:09,656 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-65088928, 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-46434279:ctest-vn-91125557, 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-07 08:52:09,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3f6f693-b5e3-439b-a46e-c26682663b70', 'name': 'ctest-vn-65088928', 'tenant_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'project_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2664a44-2bed-4b8c-93fb-6198b46c4d74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46434279', 'ctest-vn-65088928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46434279', 'ctest-policy-allow-all-86309411']], 'subnet_ipam': [{'subnet_cidr': '47.185.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-07 08:52:10,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5239a7b7-e422-4649-a19b-bfee5f9f913b', 'name': 'ctest-vn-91125557', 'tenant_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'project_id': '2d2bd0d8e17c4d06b269c5adb9986586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c0a21aa-5553-4c28-9a6a-18dad2123334'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46434279', 'ctest-vn-91125557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46434279', 'ctest-policy-allow-all-86309411']], 'subnet_ipam': [{'subnet_cidr': '179.27.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-07 08:52:10,329 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-07 08:52:10,602 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-07 08:52:10,627 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d58375c8-3c26-43a6-b77a-05b0dad244a7
2025-05-07 08:52:10,639 - DEBUG - Requesting: http://10.0.0.38:8082/project/2d2bd0d8-e17c-4d06-b269-c5adb9986586
2025-05-07 08:52:10,711 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b3f6f693-b5e3-439b-a46e-c26682663b70
2025-05-07 08:52:10,721 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b3f6f693-b5e3-439b-a46e-c26682663b70
2025-05-07 08:52:10,730 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c77cd917-1579-4ce3-b239-7903bb1d462f
2025-05-07 08:52:10,737 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c77cd917-1579-4ce3-b239-7903bb1d462f
2025-05-07 08:52:10,743 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f3a174e8-3b61-4fd4-a0de-f1efef0983b8
2025-05-07 08:52:10,749 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-07 08:52:10,749 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b3f6f693-b5e3-439b-a46e-c26682663b70
2025-05-07 08:52:10,758 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c77cd917-1579-4ce3-b239-7903bb1d462f
2025-05-07 08:52:10,771 - INFO - Verified VN network id 8 for VN b3f6f693-b5e3-439b-a46e-c26682663b70
2025-05-07 08:52:10,772 - INFO - Verifications in API Server for VN ctest-vn-65088928 passed
2025-05-07 08:52:10,772 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b3f6f693-b5e3-439b-a46e-c26682663b70
2025-05-07 08:52:10,781 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c77cd917-1579-4ce3-b239-7903bb1d462f
2025-05-07 08:52:10,787 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c77cd917-1579-4ce3-b239-7903bb1d462f
2025-05-07 08:52:10,793 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f3a174e8-3b61-4fd4-a0de-f1efef0983b8
2025-05-07 08:52:10,806 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-65088928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46434279', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12967823291332117403', 'uuid-lslong': '11848621415188544368'}, 'enable': 'true', 'created': '2025-05-07T08:52:08', 'last-modified': '2025-05-07T08:52:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.880797'}
2025-05-07 08:52:10,812 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-07 08:52:10,812 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65088928 passed
2025-05-07 08:52:10,813 - DEBUG - ====Verifying policy data for ctest-vn-65088928 in API_Server ======
2025-05-07 08:52:10,813 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-07 08:52:10,818 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d58375c8-3c26-43a6-b77a-05b0dad244a7
2025-05-07 08:52:10,829 - DEBUG - Requesting: http://10.0.0.38:8082/project/2d2bd0d8-e17c-4d06-b269-c5adb9986586
2025-05-07 08:52:10,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b3f6f693-b5e3-439b-a46e-c26682663b70
2025-05-07 08:52:10,911 - DEBUG - ==>Verifying data for policy with id: 3bc9fd04-6bf9-4e79-9bb9-72fc7e355243, fqn: ['default-domain', 'ctest-TestBasicPolicy-46434279', 'ctest-policy-allow-all-86309411']
2025-05-07 08:52:10,911 - INFO - VN ctest-vn-65088928 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-07 08:52:10,911 - DEBUG - Verifying the vn in opserver
2025-05-07 08:52:10,911 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-65088928 virtual network link through opserver 10.0.0.38
2025-05-07 08:52:10,912 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-07 08:52:11,172 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-07 08:52:11,233 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-65088928', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-65088928?flat'}
2025-05-07 08:52:11,233 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-65088928 is found in opserver
2025-05-07 08:52:11,245 - DEBUG - Do not have enough data to verify VN in agent
2025-05-07 08:52:11,252 - DEBUG - VRF ids for VN ctest-vn-65088928: {}
2025-05-07 08:52:11,252 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-07 08:52:11,257 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d58375c8-3c26-43a6-b77a-05b0dad244a7
2025-05-07 08:52:11,269 - DEBUG - Requesting: http://10.0.0.38:8082/project/2d2bd0d8-e17c-4d06-b269-c5adb9986586
2025-05-07 08:52:11,343 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5239a7b7-e422-4649-a19b-bfee5f9f913b
2025-05-07 08:52:11,354 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5239a7b7-e422-4649-a19b-bfee5f9f913b
2025-05-07 08:52:11,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191f5071-9f09-4330-a203-56ae73a158b8
2025-05-07 08:52:11,370 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191f5071-9f09-4330-a203-56ae73a158b8
2025-05-07 08:52:11,377 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3d1d91f0-4182-4cf9-a53a-599a11119e7e
2025-05-07 08:52:11,382 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-07 08:52:11,383 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5239a7b7-e422-4649-a19b-bfee5f9f913b
2025-05-07 08:52:11,391 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191f5071-9f09-4330-a203-56ae73a158b8
2025-05-07 08:52:11,407 - INFO - Verified VN network id 9 for VN 5239a7b7-e422-4649-a19b-bfee5f9f913b
2025-05-07 08:52:11,407 - INFO - Verifications in API Server for VN ctest-vn-91125557 passed
2025-05-07 08:52:11,407 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5239a7b7-e422-4649-a19b-bfee5f9f913b
2025-05-07 08:52:11,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191f5071-9f09-4330-a203-56ae73a158b8
2025-05-07 08:52:11,423 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/191f5071-9f09-4330-a203-56ae73a158b8
2025-05-07 08:52:11,430 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3d1d91f0-4182-4cf9-a53a-599a11119e7e
2025-05-07 08:52:11,440 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-91125557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46434279', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5924951193030903369', 'uuid-lslong': '11645112292023963963'}, 'enable': 'true', 'created': '2025-05-07T08:52:09', 'last-modified': '2025-05-07T08:52:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.287533'}
2025-05-07 08:52:11,448 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-07 08:52:11,448 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91125557 passed
2025-05-07 08:52:11,448 - DEBUG - ====Verifying policy data for ctest-vn-91125557 in API_Server ======
2025-05-07 08:52:11,448 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-07 08:52:11,455 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d58375c8-3c26-43a6-b77a-05b0dad244a7
2025-05-07 08:52:11,468 - DEBUG - Requesting: http://10.0.0.38:8082/project/2d2bd0d8-e17c-4d06-b269-c5adb9986586
2025-05-07 08:52:11,537 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5239a7b7-e422-4649-a19b-bfee5f9f913b
2025-05-07 08:52:11,547 - DEBUG - ==>Verifying data for policy with id: 3bc9fd04-6bf9-4e79-9bb9-72fc7e355243, fqn: ['default-domain', 'ctest-TestBasicPolicy-46434279', 'ctest-policy-allow-all-86309411']
2025-05-07 08:52:11,547 - INFO - VN ctest-vn-91125557 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-07 08:52:11,547 - DEBUG - Verifying the vn in opserver
2025-05-07 08:52:11,547 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-91125557 virtual network link through opserver 10.0.0.38
2025-05-07 08:52:11,547 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-07 08:52:11,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-91125557', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-91125557?flat'}
2025-05-07 08:52:11,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46434279:ctest-vn-91125557 is found in opserver
2025-05-07 08:52:11,569 - DEBUG - Do not have enough data to verify VN in agent
2025-05-07 08:52:11,576 - DEBUG - VRF ids for VN ctest-vn-91125557: {}
2025-05-07 08:52:11,629 - DEBUG - Services list from nova: [