2025-02-06 02:21:31,151 - INFO - Domain Default found not creating
2025-02-06 02:21:31,292 - INFO - Project ctest-TestBasicPolicy-43718578 not found, creating it
2025-02-06 02:21:31,746 - INFO - Created Project:ctest-TestBasicPolicy-43718578, ID : 76f83e97-0c99-470a-bf62-8c2974d00251
2025-02-06 02:21:33,288 - INFO - ================================================================================
2025-02-06 02:21:33,288 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-06 02:21:33,288 - 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-02-06 02:21:33,543 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.39': '0'}} with
2025-02-06 02:21:33,543 - INFO - Initial checks done. Running the testcase now
2025-02-06 02:21:33,543 - INFO -
2025-02-06 02:21:34,124 - DEBUG - Response for create_network : {'network': {'id': 'cd2ce75d-0a23-4c24-a4ce-b36ef0580633', 'name': 'ctest-vn-74424235', 'tenant_id': '76f83e970c99470abf628c2974d00251', 'project_id': '76f83e970c99470abf628c2974d00251', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43718578', 'ctest-vn-74424235'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:21:34,315 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce5227ba-5552-4b2f-b750-1030490901f6', 'name': '', 'tenant_id': '76f83e970c99470abf628c2974d00251', 'network_id': 'cd2ce75d-0a23-4c24-a4ce-b36ef0580633', 'ip_version': 4, 'cidr': '131.160.30.0/26', 'allocation_pools': [{'start': '131.160.30.2', 'end': '131.160.30.62'}], 'gateway_ip': '131.160.30.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.160.30.2', 'tags': [], 'project_id': '76f83e970c99470abf628c2974d00251'}}
2025-02-06 02:21:34,333 - INFO - Created VN ctest-vn-74424235
2025-02-06 02:21:34,392 - DEBUG - VN ctest-vn-74424235 UUID is cd2ce75d-0a23-4c24-a4ce-b36ef0580633
2025-02-06 02:21:34,684 - DEBUG - Response for create_network : {'network': {'id': '0582e0e9-f65b-4cca-89d9-512c5a5c67e6', 'name': 'ctest-vn-27676621', 'tenant_id': '76f83e970c99470abf628c2974d00251', 'project_id': '76f83e970c99470abf628c2974d00251', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43718578', 'ctest-vn-27676621'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:21:34,914 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5235ef5-60a5-4650-94a6-043e00d7e1d0', 'name': '', 'tenant_id': '76f83e970c99470abf628c2974d00251', 'network_id': '0582e0e9-f65b-4cca-89d9-512c5a5c67e6', 'ip_version': 4, 'cidr': '177.9.218.64/26', 'allocation_pools': [{'start': '177.9.218.66', 'end': '177.9.218.126'}], 'gateway_ip': '177.9.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.9.218.66', 'tags': [], 'project_id': '76f83e970c99470abf628c2974d00251'}}
2025-02-06 02:21:34,931 - INFO - Created VN ctest-vn-27676621
2025-02-06 02:21:34,984 - DEBUG - VN ctest-vn-27676621 UUID is 0582e0e9-f65b-4cca-89d9-512c5a5c67e6
2025-02-06 02:21:35,106 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-74424235, 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-43718578:ctest-vn-27676621, 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-02-06 02:21:35,409 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd2ce75d-0a23-4c24-a4ce-b36ef0580633', 'name': 'ctest-vn-74424235', 'tenant_id': '76f83e970c99470abf628c2974d00251', 'project_id': '76f83e970c99470abf628c2974d00251', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce5227ba-5552-4b2f-b750-1030490901f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43718578', 'ctest-vn-74424235'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43718578', 'ctest-policy-allow-all-10328650']], 'subnet_ipam': [{'subnet_cidr': '131.160.30.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:21:35,702 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0582e0e9-f65b-4cca-89d9-512c5a5c67e6', 'name': 'ctest-vn-27676621', 'tenant_id': '76f83e970c99470abf628c2974d00251', 'project_id': '76f83e970c99470abf628c2974d00251', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5235ef5-60a5-4650-94a6-043e00d7e1d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43718578', 'ctest-vn-27676621'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43718578', 'ctest-policy-allow-all-10328650']], 'subnet_ipam': [{'subnet_cidr': '177.9.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:21:35,852 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-06 02:21:36,193 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-06 02:21:36,222 - DEBUG - Requesting: http://10.0.0.35:8082/domain/f8ce587a-f27e-43a1-81bb-02994a6c3eb0
2025-02-06 02:21:36,235 - DEBUG - Requesting: http://10.0.0.35:8082/project/76f83e97-0c99-470a-bf62-8c2974d00251
2025-02-06 02:21:36,314 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/cd2ce75d-0a23-4c24-a4ce-b36ef0580633
2025-02-06 02:21:36,325 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/cd2ce75d-0a23-4c24-a4ce-b36ef0580633
2025-02-06 02:21:36,335 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/76ef1d39-6a67-4652-b470-7f69d458c2c9
2025-02-06 02:21:36,342 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/76ef1d39-6a67-4652-b470-7f69d458c2c9
2025-02-06 02:21:36,349 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/187c7efd-46a5-47bc-bd0b-4a8988cfcfbf
2025-02-06 02:21:36,355 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 02:21:36,355 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/cd2ce75d-0a23-4c24-a4ce-b36ef0580633
2025-02-06 02:21:36,365 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/76ef1d39-6a67-4652-b470-7f69d458c2c9
2025-02-06 02:21:36,378 - INFO - Verified VN network id 8 for VN cd2ce75d-0a23-4c24-a4ce-b36ef0580633
2025-02-06 02:21:36,378 - INFO - Verifications in API Server for VN ctest-vn-74424235 passed
2025-02-06 02:21:36,378 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/cd2ce75d-0a23-4c24-a4ce-b36ef0580633
2025-02-06 02:21:36,388 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/76ef1d39-6a67-4652-b470-7f69d458c2c9
2025-02-06 02:21:36,394 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/76ef1d39-6a67-4652-b470-7f69d458c2c9
2025-02-06 02:21:36,401 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/187c7efd-46a5-47bc-bd0b-4a8988cfcfbf
2025-02-06 02:21:36,413 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-74424235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43718578', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14784446063538555940', 'uuid-lslong': '11875626556482651699'}, 'enable': 'true', 'created': '2025-02-06T02:21:34', 'last-modified': '2025-02-06T02:21:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035745'}
2025-02-06 02:21:36,421 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 02:21:36,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74424235 passed
2025-02-06 02:21:36,421 - DEBUG - ====Verifying policy data for ctest-vn-74424235 in API_Server ======
2025-02-06 02:21:36,421 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-06 02:21:36,426 - DEBUG - Requesting: http://10.0.0.35:8082/domain/f8ce587a-f27e-43a1-81bb-02994a6c3eb0
2025-02-06 02:21:36,438 - DEBUG - Requesting: http://10.0.0.35:8082/project/76f83e97-0c99-470a-bf62-8c2974d00251
2025-02-06 02:21:36,511 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/cd2ce75d-0a23-4c24-a4ce-b36ef0580633
2025-02-06 02:21:36,522 - DEBUG - ==>Verifying data for policy with id: 7e078bc1-beff-46ef-a254-f311e942a8f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-43718578', 'ctest-policy-allow-all-10328650']
2025-02-06 02:21:36,522 - INFO - VN ctest-vn-74424235 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 02:21:36,522 - DEBUG - Verifying the vn in opserver
2025-02-06 02:21:36,522 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-74424235 virtual network link through opserver 10.0.0.35
2025-02-06 02:21:36,522 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-06 02:21:36,856 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-06 02:21:36,910 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-74424235', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-74424235?flat'}
2025-02-06 02:21:36,910 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-74424235 is found in opserver
2025-02-06 02:21:36,923 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 02:21:36,928 - DEBUG - VRF ids for VN ctest-vn-74424235: {}
2025-02-06 02:21:36,928 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-06 02:21:36,934 - DEBUG - Requesting: http://10.0.0.35:8082/domain/f8ce587a-f27e-43a1-81bb-02994a6c3eb0
2025-02-06 02:21:36,947 - DEBUG - Requesting: http://10.0.0.35:8082/project/76f83e97-0c99-470a-bf62-8c2974d00251
2025-02-06 02:21:37,018 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/0582e0e9-f65b-4cca-89d9-512c5a5c67e6
2025-02-06 02:21:37,032 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/0582e0e9-f65b-4cca-89d9-512c5a5c67e6
2025-02-06 02:21:37,042 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/71087a11-d6c6-4379-bd77-c194dc1ec72a
2025-02-06 02:21:37,049 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/71087a11-d6c6-4379-bd77-c194dc1ec72a
2025-02-06 02:21:37,056 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/b3d4a275-5b67-499e-bcb3-61d8281f8b51
2025-02-06 02:21:37,062 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 02:21:37,062 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/0582e0e9-f65b-4cca-89d9-512c5a5c67e6
2025-02-06 02:21:37,071 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/71087a11-d6c6-4379-bd77-c194dc1ec72a
2025-02-06 02:21:37,085 - INFO - Verified VN network id 9 for VN 0582e0e9-f65b-4cca-89d9-512c5a5c67e6
2025-02-06 02:21:37,085 - INFO - Verifications in API Server for VN ctest-vn-27676621 passed
2025-02-06 02:21:37,085 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/0582e0e9-f65b-4cca-89d9-512c5a5c67e6
2025-02-06 02:21:37,094 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/71087a11-d6c6-4379-bd77-c194dc1ec72a
2025-02-06 02:21:37,101 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/71087a11-d6c6-4379-bd77-c194dc1ec72a
2025-02-06 02:21:37,107 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/b3d4a275-5b67-499e-bcb3-61d8281f8b51
2025-02-06 02:21:37,119 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-27676621', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43718578', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '397127012627205322', 'uuid-lslong': '9933059704078755814'}, 'enable': 'true', 'created': '2025-02-06T02:21:34', 'last-modified': '2025-02-06T02:21:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500707'}
2025-02-06 02:21:37,125 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 02:21:37,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27676621 passed
2025-02-06 02:21:37,126 - DEBUG - ====Verifying policy data for ctest-vn-27676621 in API_Server ======
2025-02-06 02:21:37,126 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-06 02:21:37,130 - DEBUG - Requesting: http://10.0.0.35:8082/domain/f8ce587a-f27e-43a1-81bb-02994a6c3eb0
2025-02-06 02:21:37,141 - DEBUG - Requesting: http://10.0.0.35:8082/project/76f83e97-0c99-470a-bf62-8c2974d00251
2025-02-06 02:21:37,211 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/0582e0e9-f65b-4cca-89d9-512c5a5c67e6
2025-02-06 02:21:37,221 - DEBUG - ==>Verifying data for policy with id: 7e078bc1-beff-46ef-a254-f311e942a8f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-43718578', 'ctest-policy-allow-all-10328650']
2025-02-06 02:21:37,221 - INFO - VN ctest-vn-27676621 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 02:21:37,221 - DEBUG - Verifying the vn in opserver
2025-02-06 02:21:37,221 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-27676621 virtual network link through opserver 10.0.0.35
2025-02-06 02:21:37,221 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-06 02:21:37,231 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-27676621', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-27676621?flat'}
2025-02-06 02:21:37,231 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43718578:ctest-vn-27676621 is found in opserver
2025-02-06 02:21:37,243 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 02:21:37,248 - DEBUG - VRF ids for VN ctest-vn-27676621: {}
2025-02-06 02:21:37,310 - DEBUG - Services list from nova: [