2025-07-30 12:20:19,166 - INFO - Domain Default found not creating
2025-07-30 12:20:19,325 - INFO - Project ctest-TestBasicPolicy-71136913 not found, creating it
2025-07-30 12:20:19,770 - INFO - Created Project:ctest-TestBasicPolicy-71136913, ID : 01a289c1-01ea-42bc-9ec6-3cf2f610d058
2025-07-30 12:20:21,209 - INFO - ================================================================================
2025-07-30 12:20:21,209 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-30 12:20:21,210 - 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-30 12:20:21,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-07-30 12:20:21,462 - INFO - Initial checks done. Running the testcase now
2025-07-30 12:20:21,462 - INFO -
2025-07-30 12:20:21,996 - DEBUG - Response for create_network : {'network': {'id': '296698e4-4657-4482-bcb6-3090ddbf854c', 'name': 'ctest-vn-20253081', 'tenant_id': '01a289c101ea42bc9ec63cf2f610d058', 'project_id': '01a289c101ea42bc9ec63cf2f610d058', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71136913', 'ctest-vn-20253081'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 12:20:22,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '626b28d5-fc31-42bc-a460-855af23ab1af', 'name': '', 'tenant_id': '01a289c101ea42bc9ec63cf2f610d058', 'network_id': '296698e4-4657-4482-bcb6-3090ddbf854c', 'ip_version': 4, 'cidr': '120.225.141.128/26', 'allocation_pools': [{'start': '120.225.141.130', 'end': '120.225.141.190'}], 'gateway_ip': '120.225.141.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.225.141.130', 'tags': [], 'project_id': '01a289c101ea42bc9ec63cf2f610d058'}}
2025-07-30 12:20:22,196 - INFO - Created VN ctest-vn-20253081
2025-07-30 12:20:22,248 - DEBUG - VN ctest-vn-20253081 UUID is 296698e4-4657-4482-bcb6-3090ddbf854c
2025-07-30 12:20:22,537 - DEBUG - Response for create_network : {'network': {'id': 'b8cc1b1d-7194-4e11-9139-fda4d717dd95', 'name': 'ctest-vn-69892044', 'tenant_id': '01a289c101ea42bc9ec63cf2f610d058', 'project_id': '01a289c101ea42bc9ec63cf2f610d058', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71136913', 'ctest-vn-69892044'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 12:20:22,737 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e1e92b3-2d07-4f00-b5ef-028a649fea31', 'name': '', 'tenant_id': '01a289c101ea42bc9ec63cf2f610d058', 'network_id': 'b8cc1b1d-7194-4e11-9139-fda4d717dd95', 'ip_version': 4, 'cidr': '142.51.127.192/26', 'allocation_pools': [{'start': '142.51.127.194', 'end': '142.51.127.254'}], 'gateway_ip': '142.51.127.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.51.127.194', 'tags': [], 'project_id': '01a289c101ea42bc9ec63cf2f610d058'}}
2025-07-30 12:20:22,755 - INFO - Created VN ctest-vn-69892044
2025-07-30 12:20:22,808 - DEBUG - VN ctest-vn-69892044 UUID is b8cc1b1d-7194-4e11-9139-fda4d717dd95
2025-07-30 12:20:22,921 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-20253081, 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-71136913:ctest-vn-69892044, 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-30 12:20:23,210 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '296698e4-4657-4482-bcb6-3090ddbf854c', 'name': 'ctest-vn-20253081', 'tenant_id': '01a289c101ea42bc9ec63cf2f610d058', 'project_id': '01a289c101ea42bc9ec63cf2f610d058', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['626b28d5-fc31-42bc-a460-855af23ab1af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71136913', 'ctest-vn-20253081'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71136913', 'ctest-policy-allow-all-22638822']], 'subnet_ipam': [{'subnet_cidr': '120.225.141.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 12:20:23,440 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8cc1b1d-7194-4e11-9139-fda4d717dd95', 'name': 'ctest-vn-69892044', 'tenant_id': '01a289c101ea42bc9ec63cf2f610d058', 'project_id': '01a289c101ea42bc9ec63cf2f610d058', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e1e92b3-2d07-4f00-b5ef-028a649fea31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71136913', 'ctest-vn-69892044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71136913', 'ctest-policy-allow-all-22638822']], 'subnet_ipam': [{'subnet_cidr': '142.51.127.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 12:20:23,597 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-30 12:20:23,904 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-30 12:20:23,931 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ebd601a1-3596-4958-a653-0c7aab7b34ec
2025-07-30 12:20:23,946 - DEBUG - Requesting: http://10.0.0.50:8082/project/01a289c1-01ea-42bc-9ec6-3cf2f610d058
2025-07-30 12:20:24,020 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/296698e4-4657-4482-bcb6-3090ddbf854c
2025-07-30 12:20:24,034 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/296698e4-4657-4482-bcb6-3090ddbf854c
2025-07-30 12:20:24,045 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7be75af-707a-4331-b866-b5e01f21e4d9
2025-07-30 12:20:24,053 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7be75af-707a-4331-b866-b5e01f21e4d9
2025-07-30 12:20:24,061 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e4981c01-832f-424d-9d83-248faac1d1f5
2025-07-30 12:20:24,068 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 12:20:24,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/296698e4-4657-4482-bcb6-3090ddbf854c
2025-07-30 12:20:24,078 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7be75af-707a-4331-b866-b5e01f21e4d9
2025-07-30 12:20:24,093 - INFO - Verified VN network id 12 for VN 296698e4-4657-4482-bcb6-3090ddbf854c
2025-07-30 12:20:24,093 - INFO - Verifications in API Server for VN ctest-vn-20253081 passed
2025-07-30 12:20:24,093 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/296698e4-4657-4482-bcb6-3090ddbf854c
2025-07-30 12:20:24,104 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7be75af-707a-4331-b866-b5e01f21e4d9
2025-07-30 12:20:24,111 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7be75af-707a-4331-b866-b5e01f21e4d9
2025-07-30 12:20:24,119 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e4981c01-832f-424d-9d83-248faac1d1f5
2025-07-30 12:20:24,130 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-20253081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71136913', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2983239909379622018', 'uuid-lslong': '13598109523645531468'}, 'enable': 'true', 'created': '2025-07-30T12:20:21', 'last-modified': '2025-07-30T12:20:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939735'}
2025-07-30 12:20:24,136 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 12:20:24,137 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20253081 passed
2025-07-30 12:20:24,137 - DEBUG - ====Verifying policy data for ctest-vn-20253081 in API_Server ======
2025-07-30 12:20:24,137 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-30 12:20:24,143 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ebd601a1-3596-4958-a653-0c7aab7b34ec
2025-07-30 12:20:24,154 - DEBUG - Requesting: http://10.0.0.50:8082/project/01a289c1-01ea-42bc-9ec6-3cf2f610d058
2025-07-30 12:20:24,227 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/296698e4-4657-4482-bcb6-3090ddbf854c
2025-07-30 12:20:24,237 - DEBUG - ==>Verifying data for policy with id: 6a0d5c82-b11c-4ee2-9922-49474d787fda, fqn: ['default-domain', 'ctest-TestBasicPolicy-71136913', 'ctest-policy-allow-all-22638822']
2025-07-30 12:20:24,237 - INFO - VN ctest-vn-20253081 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 12:20:24,237 - DEBUG - Verifying the vn in opserver
2025-07-30 12:20:24,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-20253081 virtual network link through opserver 10.0.0.50
2025-07-30 12:20:24,237 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-30 12:20:24,525 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-30 12:20:24,582 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-20253081', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-20253081?flat'}
2025-07-30 12:20:24,582 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-20253081 is found in opserver
2025-07-30 12:20:24,592 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 12:20:24,598 - DEBUG - VRF ids for VN ctest-vn-20253081: {}
2025-07-30 12:20:24,598 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-30 12:20:24,604 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ebd601a1-3596-4958-a653-0c7aab7b34ec
2025-07-30 12:20:24,616 - DEBUG - Requesting: http://10.0.0.50:8082/project/01a289c1-01ea-42bc-9ec6-3cf2f610d058
2025-07-30 12:20:24,687 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b8cc1b1d-7194-4e11-9139-fda4d717dd95
2025-07-30 12:20:24,703 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b8cc1b1d-7194-4e11-9139-fda4d717dd95
2025-07-30 12:20:24,715 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/118df1b2-0f04-4255-879b-0cdc33b4c590
2025-07-30 12:20:24,724 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/118df1b2-0f04-4255-879b-0cdc33b4c590
2025-07-30 12:20:24,732 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5be1c264-b17a-4958-8122-223a2fa6d204
2025-07-30 12:20:24,739 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 12:20:24,739 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b8cc1b1d-7194-4e11-9139-fda4d717dd95
2025-07-30 12:20:24,750 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/118df1b2-0f04-4255-879b-0cdc33b4c590
2025-07-30 12:20:24,766 - INFO - Verified VN network id 13 for VN b8cc1b1d-7194-4e11-9139-fda4d717dd95
2025-07-30 12:20:24,767 - INFO - Verifications in API Server for VN ctest-vn-69892044 passed
2025-07-30 12:20:24,767 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b8cc1b1d-7194-4e11-9139-fda4d717dd95
2025-07-30 12:20:24,779 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/118df1b2-0f04-4255-879b-0cdc33b4c590
2025-07-30 12:20:24,788 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/118df1b2-0f04-4255-879b-0cdc33b4c590
2025-07-30 12:20:24,797 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5be1c264-b17a-4958-8122-223a2fa6d204
2025-07-30 12:20:24,814 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-69892044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71136913', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13316048011501260305', 'uuid-lslong': '10464674093597187477'}, 'enable': 'true', 'created': '2025-07-30T12:20:22', 'last-modified': '2025-07-30T12:20:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.390583'}
2025-07-30 12:20:24,822 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 12:20:24,822 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69892044 passed
2025-07-30 12:20:24,822 - DEBUG - ====Verifying policy data for ctest-vn-69892044 in API_Server ======
2025-07-30 12:20:24,822 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-30 12:20:24,830 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ebd601a1-3596-4958-a653-0c7aab7b34ec
2025-07-30 12:20:24,844 - DEBUG - Requesting: http://10.0.0.50:8082/project/01a289c1-01ea-42bc-9ec6-3cf2f610d058
2025-07-30 12:20:24,922 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b8cc1b1d-7194-4e11-9139-fda4d717dd95
2025-07-30 12:20:24,935 - DEBUG - ==>Verifying data for policy with id: 6a0d5c82-b11c-4ee2-9922-49474d787fda, fqn: ['default-domain', 'ctest-TestBasicPolicy-71136913', 'ctest-policy-allow-all-22638822']
2025-07-30 12:20:24,935 - INFO - VN ctest-vn-69892044 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 12:20:24,935 - DEBUG - Verifying the vn in opserver
2025-07-30 12:20:24,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-69892044 virtual network link through opserver 10.0.0.50
2025-07-30 12:20:24,935 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-30 12:20:24,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-69892044', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-69892044?flat'}
2025-07-30 12:20:24,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71136913:ctest-vn-69892044 is found in opserver
2025-07-30 12:20:24,961 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 12:20:24,967 - DEBUG - VRF ids for VN ctest-vn-69892044: {}
2025-07-30 12:20:25,039 - DEBUG - Services list from nova: [