2024-09-12 10:25:24,862 - INFO - Domain Default found not creating
2024-09-12 10:25:25,024 - INFO - Project ctest-TestBasicPolicy-07622294 not found, creating it
2024-09-12 10:25:25,522 - INFO - Created Project:ctest-TestBasicPolicy-07622294, ID : 0136072b-b220-40c2-bb2a-945de6d8bb08
2024-09-12 10:25:27,551 - INFO - ================================================================================
2024-09-12 10:25:27,552 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-12 10:25:27,552 - 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
2024-09-12 10:25:27,811 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.20': '0'}} with
2024-09-12 10:25:27,812 - INFO - Initial checks done. Running the testcase now
2024-09-12 10:25:27,812 - INFO -
2024-09-12 10:25:28,389 - DEBUG - Response for create_network : {'network': {'id': '634d8db1-3d64-4398-8c62-75dab61afcb8', 'name': 'ctest-vn-31070480', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'project_id': '0136072bb22040c2bb2a945de6d8bb08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-vn-31070480'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 10:25:28,587 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cef9c305-00ad-4634-99e7-fd01ba1f9769', 'name': '', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'network_id': '634d8db1-3d64-4398-8c62-75dab61afcb8', 'ip_version': 4, 'cidr': '214.93.227.0/26', 'allocation_pools': [{'start': '214.93.227.2', 'end': '214.93.227.62'}], 'gateway_ip': '214.93.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.93.227.2', 'tags': [], 'project_id': '0136072bb22040c2bb2a945de6d8bb08'}}
2024-09-12 10:25:28,608 - INFO - Created VN ctest-vn-31070480
2024-09-12 10:25:28,665 - DEBUG - VN ctest-vn-31070480 UUID is 634d8db1-3d64-4398-8c62-75dab61afcb8
2024-09-12 10:25:30,522 - DEBUG - Response for create_network : {'network': {'id': '50aaaaeb-250c-47b0-b88e-6fa863901082', 'name': 'ctest-vn-13290113', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'project_id': '0136072bb22040c2bb2a945de6d8bb08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-vn-13290113'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 10:25:30,734 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f34d0c1c-4edd-4b97-8ffe-f8c89c289acf', 'name': '', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'network_id': '50aaaaeb-250c-47b0-b88e-6fa863901082', 'ip_version': 4, 'cidr': '121.253.3.192/26', 'allocation_pools': [{'start': '121.253.3.194', 'end': '121.253.3.254'}], 'gateway_ip': '121.253.3.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.253.3.194', 'tags': [], 'project_id': '0136072bb22040c2bb2a945de6d8bb08'}}
2024-09-12 10:25:30,753 - INFO - Created VN ctest-vn-13290113
2024-09-12 10:25:30,809 - DEBUG - VN ctest-vn-13290113 UUID is 50aaaaeb-250c-47b0-b88e-6fa863901082
2024-09-12 10:25:30,929 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480, 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-07622294:ctest-vn-13290113, 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]
2024-09-12 10:25:33,492 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '634d8db1-3d64-4398-8c62-75dab61afcb8', 'name': 'ctest-vn-31070480', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'project_id': '0136072bb22040c2bb2a945de6d8bb08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cef9c305-00ad-4634-99e7-fd01ba1f9769'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-vn-31070480'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-policy-allow-all-92457382']], 'subnet_ipam': [{'subnet_cidr': '214.93.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 10:25:33,690 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50aaaaeb-250c-47b0-b88e-6fa863901082', 'name': 'ctest-vn-13290113', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'project_id': '0136072bb22040c2bb2a945de6d8bb08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f34d0c1c-4edd-4b97-8ffe-f8c89c289acf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-vn-13290113'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-policy-allow-all-92457382']], 'subnet_ipam': [{'subnet_cidr': '121.253.3.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 10:25:33,825 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 10:25:34,120 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 10:25:34,154 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4
2024-09-12 10:25:34,172 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08
2024-09-12 10:25:34,261 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8
2024-09-12 10:25:34,277 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8
2024-09-12 10:25:34,292 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b
2024-09-12 10:25:34,302 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b
2024-09-12 10:25:34,312 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/25788452-018c-41dd-9370-f34d715c8b2a
2024-09-12 10:25:34,320 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 10:25:34,320 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8
2024-09-12 10:25:34,335 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b
2024-09-12 10:25:34,356 - INFO - Verified VN network id 8 for VN 634d8db1-3d64-4398-8c62-75dab61afcb8
2024-09-12 10:25:34,356 - INFO - Verifications in API Server for VN ctest-vn-31070480 passed
2024-09-12 10:25:34,356 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8
2024-09-12 10:25:34,371 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b
2024-09-12 10:25:34,380 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b
2024-09-12 10:25:34,390 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/25788452-018c-41dd-9370-f34d715c8b2a
2024-09-12 10:25:34,405 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07622294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7155531175340295064', 'uuid-lslong': '10115777295246097592'}, 'enable': 'true', 'created': '2024-09-12T10:25:28', 'last-modified': '2024-09-12T10:25:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954697'}
2024-09-12 10:25:34,411 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 10:25:34,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31070480 passed
2024-09-12 10:25:34,412 - DEBUG - ====Verifying policy data for ctest-vn-31070480 in API_Server ======
2024-09-12 10:25:34,412 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 10:25:34,418 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4
2024-09-12 10:25:34,432 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08
2024-09-12 10:25:34,514 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8
2024-09-12 10:25:34,528 - DEBUG - ==>Verifying data for policy with id: 888d4c36-4c2b-432f-92df-9cc6e0e9a56e, fqn: ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-policy-allow-all-92457382']
2024-09-12 10:25:34,529 - INFO - VN ctest-vn-31070480 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 10:25:34,529 - DEBUG - Verifying the vn in opserver
2024-09-12 10:25:34,529 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480 virtual network link through opserver 10.0.0.22
2024-09-12 10:25:34,529 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-09-12 10:25:34,822 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-09-12 10:25:34,887 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480?flat'}
2024-09-12 10:25:34,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480 is found in opserver
2024-09-12 10:25:34,898 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 10:25:34,904 - DEBUG - VRF ids for VN ctest-vn-31070480: {}
2024-09-12 10:25:34,904 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 10:25:34,911 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4
2024-09-12 10:25:34,926 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08
2024-09-12 10:25:35,013 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082
2024-09-12 10:25:35,030 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082
2024-09-12 10:25:35,045 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb
2024-09-12 10:25:35,054 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb
2024-09-12 10:25:35,062 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7173965f-e174-4223-ba0b-25f0d97dabf1
2024-09-12 10:25:35,070 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 10:25:35,070 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082
2024-09-12 10:25:35,084 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb
2024-09-12 10:25:35,106 - INFO - Verified VN network id 9 for VN 50aaaaeb-250c-47b0-b88e-6fa863901082
2024-09-12 10:25:35,106 - INFO - Verifications in API Server for VN ctest-vn-13290113 passed
2024-09-12 10:25:35,106 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082
2024-09-12 10:25:35,121 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb
2024-09-12 10:25:35,130 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb
2024-09-12 10:25:35,140 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7173965f-e174-4223-ba0b-25f0d97dabf1
2024-09-12 10:25:35,157 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07622294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5812646195990644656', 'uuid-lslong': '13298689518687228034'}, 'enable': 'true', 'created': '2024-09-12T10:25:30', 'last-modified': '2024-09-12T10:25:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490265'}
2024-09-12 10:25:35,164 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 10:25:35,164 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13290113 passed
2024-09-12 10:25:35,164 - DEBUG - ====Verifying policy data for ctest-vn-13290113 in API_Server ======
2024-09-12 10:25:35,164 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 10:25:35,171 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4
2024-09-12 10:25:35,186 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08
2024-09-12 10:25:35,276 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082
2024-09-12 10:25:35,291 - DEBUG - ==>Verifying data for policy with id: 888d4c36-4c2b-432f-92df-9cc6e0e9a56e, fqn: ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-policy-allow-all-92457382']
2024-09-12 10:25:35,291 - INFO - VN ctest-vn-13290113 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 10:25:35,291 - DEBUG - Verifying the vn in opserver
2024-09-12 10:25:35,291 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113 virtual network link through opserver 10.0.0.22
2024-09-12 10:25:35,291 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-09-12 10:25:35,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113?flat'}
2024-09-12 10:25:35,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113 is found in opserver
2024-09-12 10:25:35,314 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 10:25:35,319 - DEBUG - VRF ids for VN ctest-vn-13290113: {}
2024-09-12 10:25:35,382 - DEBUG - Services list from nova: [