2025-03-10 02:24:35,861 - INFO - Domain Default found not creating
2025-03-10 02:24:36,009 - INFO - Project ctest-TestBasicPolicy-72359637 not found, creating it
2025-03-10 02:24:36,470 - INFO - Created Project:ctest-TestBasicPolicy-72359637, ID : c3c34ba8-9a52-4e26-aaa1-2a3d1a29004e
2025-03-10 02:24:37,929 - INFO - ================================================================================
2025-03-10 02:24:37,930 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-10 02:24:37,930 - 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-03-10 02:24:38,187 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.10': '0'}} with
2025-03-10 02:24:38,187 - INFO - Initial checks done. Running the testcase now
2025-03-10 02:24:38,187 - INFO -
2025-03-10 02:24:38,736 - DEBUG - Response for create_network : {'network': {'id': '52e0ef0d-827a-424c-988f-57c80c3bdbf3', 'name': 'ctest-vn-89222006', 'tenant_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'project_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72359637', 'ctest-vn-89222006'], 'port_security_enabled': True, 'description': ''}}
2025-03-10 02:24:38,914 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f54adf8-bbfc-4367-8b9c-ead6765e7738', 'name': '', 'tenant_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'network_id': '52e0ef0d-827a-424c-988f-57c80c3bdbf3', 'ip_version': 4, 'cidr': '168.58.193.192/26', 'allocation_pools': [{'start': '168.58.193.194', 'end': '168.58.193.254'}], 'gateway_ip': '168.58.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.58.193.194', 'tags': [], 'project_id': 'c3c34ba89a524e26aaa12a3d1a29004e'}}
2025-03-10 02:24:38,931 - INFO - Created VN ctest-vn-89222006
2025-03-10 02:24:38,985 - DEBUG - VN ctest-vn-89222006 UUID is 52e0ef0d-827a-424c-988f-57c80c3bdbf3
2025-03-10 02:24:39,451 - DEBUG - Response for create_network : {'network': {'id': 'ffcd2f02-cddc-4426-939c-4f2dc64302b5', 'name': 'ctest-vn-93688538', 'tenant_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'project_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72359637', 'ctest-vn-93688538'], 'port_security_enabled': True, 'description': ''}}
2025-03-10 02:24:39,850 - DEBUG - Response for create_subnet : {'subnet': {'id': '92bf2796-ca81-4089-a096-8c8965aa06d6', 'name': '', 'tenant_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'network_id': 'ffcd2f02-cddc-4426-939c-4f2dc64302b5', 'ip_version': 4, 'cidr': '214.80.59.0/26', 'allocation_pools': [{'start': '214.80.59.2', 'end': '214.80.59.62'}], 'gateway_ip': '214.80.59.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.80.59.2', 'tags': [], 'project_id': 'c3c34ba89a524e26aaa12a3d1a29004e'}}
2025-03-10 02:24:39,868 - INFO - Created VN ctest-vn-93688538
2025-03-10 02:24:39,929 - DEBUG - VN ctest-vn-93688538 UUID is ffcd2f02-cddc-4426-939c-4f2dc64302b5
2025-03-10 02:24:40,085 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-89222006, 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-72359637:ctest-vn-93688538, 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-03-10 02:24:40,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '52e0ef0d-827a-424c-988f-57c80c3bdbf3', 'name': 'ctest-vn-89222006', 'tenant_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'project_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f54adf8-bbfc-4367-8b9c-ead6765e7738'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72359637', 'ctest-vn-89222006'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72359637', 'ctest-policy-allow-all-98430658']], 'subnet_ipam': [{'subnet_cidr': '168.58.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-10 02:24:40,604 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffcd2f02-cddc-4426-939c-4f2dc64302b5', 'name': 'ctest-vn-93688538', 'tenant_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'project_id': 'c3c34ba89a524e26aaa12a3d1a29004e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92bf2796-ca81-4089-a096-8c8965aa06d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72359637', 'ctest-vn-93688538'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72359637', 'ctest-policy-allow-all-98430658']], 'subnet_ipam': [{'subnet_cidr': '214.80.59.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-10 02:24:40,777 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-03-10 02:24:41,072 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-03-10 02:24:41,100 - DEBUG - Requesting: http://10.0.0.61:8082/domain/5db6b05a-2b46-4b9f-8db8-1c409f5083f8
2025-03-10 02:24:41,113 - DEBUG - Requesting: http://10.0.0.61:8082/project/c3c34ba8-9a52-4e26-aaa1-2a3d1a29004e
2025-03-10 02:24:41,186 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/52e0ef0d-827a-424c-988f-57c80c3bdbf3
2025-03-10 02:24:41,199 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/52e0ef0d-827a-424c-988f-57c80c3bdbf3
2025-03-10 02:24:41,209 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2b7df1c1-399d-493f-8ec2-1e97f7001e35
2025-03-10 02:24:41,216 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2b7df1c1-399d-493f-8ec2-1e97f7001e35
2025-03-10 02:24:41,224 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/919026db-c255-4ce7-95cf-e88fdd4f18ea
2025-03-10 02:24:41,230 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-10 02:24:41,230 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/52e0ef0d-827a-424c-988f-57c80c3bdbf3
2025-03-10 02:24:41,241 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2b7df1c1-399d-493f-8ec2-1e97f7001e35
2025-03-10 02:24:41,255 - INFO - Verified VN network id 9 for VN 52e0ef0d-827a-424c-988f-57c80c3bdbf3
2025-03-10 02:24:41,255 - INFO - Verifications in API Server for VN ctest-vn-89222006 passed
2025-03-10 02:24:41,255 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/52e0ef0d-827a-424c-988f-57c80c3bdbf3
2025-03-10 02:24:41,265 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2b7df1c1-399d-493f-8ec2-1e97f7001e35
2025-03-10 02:24:41,271 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2b7df1c1-399d-493f-8ec2-1e97f7001e35
2025-03-10 02:24:41,277 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/919026db-c255-4ce7-95cf-e88fdd4f18ea
2025-03-10 02:24:41,303 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-89222006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72359637', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5972035947195941452', 'uuid-lslong': '10993101732144995315'}, 'enable': 'true', 'created': '2025-03-10T02:24:38', 'last-modified': '2025-03-10T02:24:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937599'}
2025-03-10 02:24:41,309 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-10 02:24:41,310 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89222006 passed
2025-03-10 02:24:41,310 - DEBUG - ====Verifying policy data for ctest-vn-89222006 in API_Server ======
2025-03-10 02:24:41,310 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-03-10 02:24:41,316 - DEBUG - Requesting: http://10.0.0.61:8082/domain/5db6b05a-2b46-4b9f-8db8-1c409f5083f8
2025-03-10 02:24:41,327 - DEBUG - Requesting: http://10.0.0.61:8082/project/c3c34ba8-9a52-4e26-aaa1-2a3d1a29004e
2025-03-10 02:24:41,404 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/52e0ef0d-827a-424c-988f-57c80c3bdbf3
2025-03-10 02:24:41,414 - DEBUG - ==>Verifying data for policy with id: 151c04e4-5907-4214-b47d-b0d97f525cfc, fqn: ['default-domain', 'ctest-TestBasicPolicy-72359637', 'ctest-policy-allow-all-98430658']
2025-03-10 02:24:41,414 - INFO - VN ctest-vn-89222006 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-10 02:24:41,414 - DEBUG - Verifying the vn in opserver
2025-03-10 02:24:41,414 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-89222006 virtual network link through opserver 10.0.0.61
2025-03-10 02:24:41,414 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks
2025-03-10 02:24:41,706 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks
2025-03-10 02:24:41,755 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-89222006', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-89222006?flat'}
2025-03-10 02:24:41,755 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-89222006 is found in opserver
2025-03-10 02:24:41,766 - DEBUG - Do not have enough data to verify VN in agent
2025-03-10 02:24:41,771 - DEBUG - VRF ids for VN ctest-vn-89222006: {}
2025-03-10 02:24:41,771 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-03-10 02:24:41,777 - DEBUG - Requesting: http://10.0.0.61:8082/domain/5db6b05a-2b46-4b9f-8db8-1c409f5083f8
2025-03-10 02:24:41,787 - DEBUG - Requesting: http://10.0.0.61:8082/project/c3c34ba8-9a52-4e26-aaa1-2a3d1a29004e
2025-03-10 02:24:41,865 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/ffcd2f02-cddc-4426-939c-4f2dc64302b5
2025-03-10 02:24:41,877 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/ffcd2f02-cddc-4426-939c-4f2dc64302b5
2025-03-10 02:24:41,886 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/faddca26-de8f-46b2-a70b-9d2fdd77b806
2025-03-10 02:24:41,894 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/faddca26-de8f-46b2-a70b-9d2fdd77b806
2025-03-10 02:24:41,900 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/71f26ec8-faa9-4ea8-bda6-9639fc3528e1
2025-03-10 02:24:41,907 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-10 02:24:41,907 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/ffcd2f02-cddc-4426-939c-4f2dc64302b5
2025-03-10 02:24:41,916 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/faddca26-de8f-46b2-a70b-9d2fdd77b806
2025-03-10 02:24:41,930 - INFO - Verified VN network id 10 for VN ffcd2f02-cddc-4426-939c-4f2dc64302b5
2025-03-10 02:24:41,930 - INFO - Verifications in API Server for VN ctest-vn-93688538 passed
2025-03-10 02:24:41,930 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/ffcd2f02-cddc-4426-939c-4f2dc64302b5
2025-03-10 02:24:41,939 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/faddca26-de8f-46b2-a70b-9d2fdd77b806
2025-03-10 02:24:41,945 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/faddca26-de8f-46b2-a70b-9d2fdd77b806
2025-03-10 02:24:41,953 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/71f26ec8-faa9-4ea8-bda6-9639fc3528e1
2025-03-10 02:24:41,965 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-93688538', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72359637', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18432440538987512870', 'uuid-lslong': '10636463477960671925'}, 'enable': 'true', 'created': '2025-03-10T02:24:39', 'last-modified': '2025-03-10T02:24:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.389674'}
2025-03-10 02:24:41,971 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-10 02:24:41,971 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93688538 passed
2025-03-10 02:24:41,971 - DEBUG - ====Verifying policy data for ctest-vn-93688538 in API_Server ======
2025-03-10 02:24:41,971 - DEBUG - Requesting: http://10.0.0.61:8082/domains
2025-03-10 02:24:41,977 - DEBUG - Requesting: http://10.0.0.61:8082/domain/5db6b05a-2b46-4b9f-8db8-1c409f5083f8
2025-03-10 02:24:41,988 - DEBUG - Requesting: http://10.0.0.61:8082/project/c3c34ba8-9a52-4e26-aaa1-2a3d1a29004e
2025-03-10 02:24:42,057 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/ffcd2f02-cddc-4426-939c-4f2dc64302b5
2025-03-10 02:24:42,067 - DEBUG - ==>Verifying data for policy with id: 151c04e4-5907-4214-b47d-b0d97f525cfc, fqn: ['default-domain', 'ctest-TestBasicPolicy-72359637', 'ctest-policy-allow-all-98430658']
2025-03-10 02:24:42,067 - INFO - VN ctest-vn-93688538 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-10 02:24:42,067 - DEBUG - Verifying the vn in opserver
2025-03-10 02:24:42,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-93688538 virtual network link through opserver 10.0.0.61
2025-03-10 02:24:42,067 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks
2025-03-10 02:24:42,077 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-93688538', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-93688538?flat'}
2025-03-10 02:24:42,077 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72359637:ctest-vn-93688538 is found in opserver
2025-03-10 02:24:42,087 - DEBUG - Do not have enough data to verify VN in agent
2025-03-10 02:24:42,092 - DEBUG - VRF ids for VN ctest-vn-93688538: {}
2025-03-10 02:24:42,146 - DEBUG - Services list from nova: [