2025-06-30 02:33:30,290 - INFO - Domain Default found not creating
2025-06-30 02:33:30,418 - INFO - Project ctest-TestBasicPolicy-07190810 not found, creating it
2025-06-30 02:33:30,858 - INFO - Created Project:ctest-TestBasicPolicy-07190810, ID : f7053ae7-ed59-4eec-8cff-5baa31e71e76
2025-06-30 02:33:32,184 - INFO - ================================================================================
2025-06-30 02:33:32,184 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-30 02:33:32,184 - 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-30 02:33:32,440 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0'}} with
2025-06-30 02:33:32,440 - INFO - Initial checks done. Running the testcase now
2025-06-30 02:33:32,440 - INFO -
2025-06-30 02:33:32,955 - DEBUG - Response for create_network : {'network': {'id': '3896d7ff-e0c8-42cc-953a-4845c9d33a1b', 'name': 'ctest-vn-55596769', 'tenant_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'project_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07190810', 'ctest-vn-55596769'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 02:33:33,127 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e79e9d5e-01fd-4100-ac2f-64046ed8d978', 'name': '', 'tenant_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'network_id': '3896d7ff-e0c8-42cc-953a-4845c9d33a1b', 'ip_version': 4, 'cidr': '215.112.154.192/26', 'allocation_pools': [{'start': '215.112.154.194', 'end': '215.112.154.254'}], 'gateway_ip': '215.112.154.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.112.154.194', 'tags': [], 'project_id': 'f7053ae7ed594eec8cff5baa31e71e76'}}
2025-06-30 02:33:33,145 - INFO - Created VN ctest-vn-55596769
2025-06-30 02:33:33,198 - DEBUG - VN ctest-vn-55596769 UUID is 3896d7ff-e0c8-42cc-953a-4845c9d33a1b
2025-06-30 02:33:33,510 - DEBUG - Response for create_network : {'network': {'id': 'c01dfd1b-009f-48d6-92c8-7e2b0168eb55', 'name': 'ctest-vn-75191319', 'tenant_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'project_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07190810', 'ctest-vn-75191319'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 02:33:33,669 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c654fc73-8d33-4ba8-82a8-2179d410a093', 'name': '', 'tenant_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'network_id': 'c01dfd1b-009f-48d6-92c8-7e2b0168eb55', 'ip_version': 4, 'cidr': '114.152.86.64/26', 'allocation_pools': [{'start': '114.152.86.66', 'end': '114.152.86.126'}], 'gateway_ip': '114.152.86.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.152.86.66', 'tags': [], 'project_id': 'f7053ae7ed594eec8cff5baa31e71e76'}}
2025-06-30 02:33:33,687 - INFO - Created VN ctest-vn-75191319
2025-06-30 02:33:33,738 - DEBUG - VN ctest-vn-75191319 UUID is c01dfd1b-009f-48d6-92c8-7e2b0168eb55
2025-06-30 02:33:33,886 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-55596769, 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-07190810:ctest-vn-75191319, 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-30 02:33:34,177 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3896d7ff-e0c8-42cc-953a-4845c9d33a1b', 'name': 'ctest-vn-55596769', 'tenant_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'project_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e79e9d5e-01fd-4100-ac2f-64046ed8d978'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07190810', 'ctest-vn-55596769'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07190810', 'ctest-policy-allow-all-48960616']], 'subnet_ipam': [{'subnet_cidr': '215.112.154.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 02:33:34,448 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c01dfd1b-009f-48d6-92c8-7e2b0168eb55', 'name': 'ctest-vn-75191319', 'tenant_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'project_id': 'f7053ae7ed594eec8cff5baa31e71e76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c654fc73-8d33-4ba8-82a8-2179d410a093'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07190810', 'ctest-vn-75191319'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07190810', 'ctest-policy-allow-all-48960616']], 'subnet_ipam': [{'subnet_cidr': '114.152.86.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 02:33:34,590 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 02:33:34,887 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 02:33:34,912 - DEBUG - Requesting: http://10.0.0.19:8082/domain/2079f23d-ad5a-4df4-a8b3-dec8e90e045f
2025-06-30 02:33:34,925 - DEBUG - Requesting: http://10.0.0.19:8082/project/f7053ae7-ed59-4eec-8cff-5baa31e71e76
2025-06-30 02:33:34,998 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/3896d7ff-e0c8-42cc-953a-4845c9d33a1b
2025-06-30 02:33:35,008 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/3896d7ff-e0c8-42cc-953a-4845c9d33a1b
2025-06-30 02:33:35,017 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/571d6b5b-d218-4d64-8d12-e149a58d67aa
2025-06-30 02:33:35,023 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/571d6b5b-d218-4d64-8d12-e149a58d67aa
2025-06-30 02:33:35,029 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/355ee379-8212-4774-a3e7-e31a4c51f0a9
2025-06-30 02:33:35,035 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 02:33:35,035 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/3896d7ff-e0c8-42cc-953a-4845c9d33a1b
2025-06-30 02:33:35,044 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/571d6b5b-d218-4d64-8d12-e149a58d67aa
2025-06-30 02:33:35,055 - INFO - Verified VN network id 8 for VN 3896d7ff-e0c8-42cc-953a-4845c9d33a1b
2025-06-30 02:33:35,055 - INFO - Verifications in API Server for VN ctest-vn-55596769 passed
2025-06-30 02:33:35,056 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/3896d7ff-e0c8-42cc-953a-4845c9d33a1b
2025-06-30 02:33:35,064 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/571d6b5b-d218-4d64-8d12-e149a58d67aa
2025-06-30 02:33:35,070 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/571d6b5b-d218-4d64-8d12-e149a58d67aa
2025-06-30 02:33:35,075 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/355ee379-8212-4774-a3e7-e31a4c51f0a9
2025-06-30 02:33:35,086 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-55596769', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07190810', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4077684006618415820', 'uuid-lslong': '10752986524876487195'}, 'enable': 'true', 'created': '2025-06-30T02:33:32', 'last-modified': '2025-06-30T02:33:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927944'}
2025-06-30 02:33:35,092 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 02:33:35,093 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55596769 passed
2025-06-30 02:33:35,093 - DEBUG - ====Verifying policy data for ctest-vn-55596769 in API_Server ======
2025-06-30 02:33:35,093 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 02:33:35,098 - DEBUG - Requesting: http://10.0.0.19:8082/domain/2079f23d-ad5a-4df4-a8b3-dec8e90e045f
2025-06-30 02:33:35,108 - DEBUG - Requesting: http://10.0.0.19:8082/project/f7053ae7-ed59-4eec-8cff-5baa31e71e76
2025-06-30 02:33:35,180 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/3896d7ff-e0c8-42cc-953a-4845c9d33a1b
2025-06-30 02:33:35,189 - DEBUG - ==>Verifying data for policy with id: 4dda6c36-ba45-4817-9f8c-1b289b257701, fqn: ['default-domain', 'ctest-TestBasicPolicy-07190810', 'ctest-policy-allow-all-48960616']
2025-06-30 02:33:35,189 - INFO - VN ctest-vn-55596769 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 02:33:35,189 - DEBUG - Verifying the vn in opserver
2025-06-30 02:33:35,189 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-55596769 virtual network link through opserver 10.0.0.19
2025-06-30 02:33:35,190 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-30 02:33:35,480 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-30 02:33:35,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-55596769', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-55596769?flat'}
2025-06-30 02:33:35,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-55596769 is found in opserver
2025-06-30 02:33:35,543 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 02:33:35,548 - DEBUG - VRF ids for VN ctest-vn-55596769: {}
2025-06-30 02:33:35,548 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 02:33:35,554 - DEBUG - Requesting: http://10.0.0.19:8082/domain/2079f23d-ad5a-4df4-a8b3-dec8e90e045f
2025-06-30 02:33:35,565 - DEBUG - Requesting: http://10.0.0.19:8082/project/f7053ae7-ed59-4eec-8cff-5baa31e71e76
2025-06-30 02:33:35,639 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c01dfd1b-009f-48d6-92c8-7e2b0168eb55
2025-06-30 02:33:35,650 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c01dfd1b-009f-48d6-92c8-7e2b0168eb55
2025-06-30 02:33:35,659 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74750136-7d58-4ac3-b398-fffda45eefca
2025-06-30 02:33:35,666 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74750136-7d58-4ac3-b398-fffda45eefca
2025-06-30 02:33:35,673 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/3707a0a6-1f57-4fc4-a403-983f1278b881
2025-06-30 02:33:35,679 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 02:33:35,679 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c01dfd1b-009f-48d6-92c8-7e2b0168eb55
2025-06-30 02:33:35,688 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74750136-7d58-4ac3-b398-fffda45eefca
2025-06-30 02:33:35,703 - INFO - Verified VN network id 9 for VN c01dfd1b-009f-48d6-92c8-7e2b0168eb55
2025-06-30 02:33:35,703 - INFO - Verifications in API Server for VN ctest-vn-75191319 passed
2025-06-30 02:33:35,703 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c01dfd1b-009f-48d6-92c8-7e2b0168eb55
2025-06-30 02:33:35,712 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74750136-7d58-4ac3-b398-fffda45eefca
2025-06-30 02:33:35,718 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74750136-7d58-4ac3-b398-fffda45eefca
2025-06-30 02:33:35,726 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/3707a0a6-1f57-4fc4-a403-983f1278b881
2025-06-30 02:33:35,737 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-75191319', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07190810', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13843499122023155926', 'uuid-lslong': '10576842448051956565'}, 'enable': 'true', 'created': '2025-06-30T02:33:33', 'last-modified': '2025-06-30T02:33:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.360320'}
2025-06-30 02:33:35,742 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 02:33:35,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75191319 passed
2025-06-30 02:33:35,743 - DEBUG - ====Verifying policy data for ctest-vn-75191319 in API_Server ======
2025-06-30 02:33:35,743 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 02:33:35,747 - DEBUG - Requesting: http://10.0.0.19:8082/domain/2079f23d-ad5a-4df4-a8b3-dec8e90e045f
2025-06-30 02:33:35,758 - DEBUG - Requesting: http://10.0.0.19:8082/project/f7053ae7-ed59-4eec-8cff-5baa31e71e76
2025-06-30 02:33:35,831 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c01dfd1b-009f-48d6-92c8-7e2b0168eb55
2025-06-30 02:33:35,841 - DEBUG - ==>Verifying data for policy with id: 4dda6c36-ba45-4817-9f8c-1b289b257701, fqn: ['default-domain', 'ctest-TestBasicPolicy-07190810', 'ctest-policy-allow-all-48960616']
2025-06-30 02:33:35,841 - INFO - VN ctest-vn-75191319 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 02:33:35,841 - DEBUG - Verifying the vn in opserver
2025-06-30 02:33:35,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-75191319 virtual network link through opserver 10.0.0.19
2025-06-30 02:33:35,841 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-30 02:33:35,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-75191319', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-75191319?flat'}
2025-06-30 02:33:35,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07190810:ctest-vn-75191319 is found in opserver
2025-06-30 02:33:35,867 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 02:33:35,872 - DEBUG - VRF ids for VN ctest-vn-75191319: {}
2025-06-30 02:33:35,926 - DEBUG - Services list from nova: [