2024-12-23 17:47:04,165 - INFO - Domain Default found not creating
2024-12-23 17:47:04,306 - INFO - Project ctest-TestBasicPolicy-88735127 not found, creating it
2024-12-23 17:47:04,810 - INFO - Created Project:ctest-TestBasicPolicy-88735127, ID : c0f724d2-5542-4df0-98c6-ec21ab639e23
2024-12-23 17:47:06,291 - INFO - ================================================================================
2024-12-23 17:47:06,291 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-23 17:47:06,291 - 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-12-23 17:47:06,554 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.14': '0'}} with
2024-12-23 17:47:06,554 - INFO - Initial checks done. Running the testcase now
2024-12-23 17:47:06,554 - INFO -
2024-12-23 17:47:07,121 - DEBUG - Response for create_network : {'network': {'id': 'a4808b0c-5d10-4043-9d69-55e893a4e12e', 'name': 'ctest-vn-01911695', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'project_id': 'c0f724d255424df098c6ec21ab639e23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-vn-01911695'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 17:47:07,354 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd956f44-7e50-45e0-af43-d31d8ece7ccc', 'name': '', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'network_id': 'a4808b0c-5d10-4043-9d69-55e893a4e12e', 'ip_version': 4, 'cidr': '91.183.139.0/26', 'allocation_pools': [{'start': '91.183.139.2', 'end': '91.183.139.62'}], 'gateway_ip': '91.183.139.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.183.139.2', 'tags': [], 'project_id': 'c0f724d255424df098c6ec21ab639e23'}}
2024-12-23 17:47:07,377 - INFO - Created VN ctest-vn-01911695
2024-12-23 17:47:07,430 - DEBUG - VN ctest-vn-01911695 UUID is a4808b0c-5d10-4043-9d69-55e893a4e12e
2024-12-23 17:47:07,757 - DEBUG - Response for create_network : {'network': {'id': 'c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46', 'name': 'ctest-vn-13943449', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'project_id': 'c0f724d255424df098c6ec21ab639e23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-vn-13943449'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 17:47:07,940 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b3d51bc-aa23-4f60-b8c7-077eeed8df24', 'name': '', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'network_id': 'c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46', 'ip_version': 4, 'cidr': '47.117.229.192/26', 'allocation_pools': [{'start': '47.117.229.194', 'end': '47.117.229.254'}], 'gateway_ip': '47.117.229.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.117.229.194', 'tags': [], 'project_id': 'c0f724d255424df098c6ec21ab639e23'}}
2024-12-23 17:47:07,960 - INFO - Created VN ctest-vn-13943449
2024-12-23 17:47:08,014 - DEBUG - VN ctest-vn-13943449 UUID is c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46
2024-12-23 17:47:08,136 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695, 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-88735127:ctest-vn-13943449, 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-12-23 17:47:08,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4808b0c-5d10-4043-9d69-55e893a4e12e', 'name': 'ctest-vn-01911695', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'project_id': 'c0f724d255424df098c6ec21ab639e23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd956f44-7e50-45e0-af43-d31d8ece7ccc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-vn-01911695'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-policy-allow-all-78029018']], 'subnet_ipam': [{'subnet_cidr': '91.183.139.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 17:47:08,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46', 'name': 'ctest-vn-13943449', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'project_id': 'c0f724d255424df098c6ec21ab639e23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b3d51bc-aa23-4f60-b8c7-077eeed8df24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-vn-13943449'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-policy-allow-all-78029018']], 'subnet_ipam': [{'subnet_cidr': '47.117.229.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 17:47:08,863 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-12-23 17:47:09,159 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-12-23 17:47:09,192 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3
2024-12-23 17:47:09,206 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23
2024-12-23 17:47:09,285 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e
2024-12-23 17:47:09,298 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e
2024-12-23 17:47:09,308 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45
2024-12-23 17:47:09,316 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45
2024-12-23 17:47:09,322 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/de997b11-4c1c-4e91-8e25-5718f84cda83
2024-12-23 17:47:09,330 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 17:47:09,330 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e
2024-12-23 17:47:09,340 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45
2024-12-23 17:47:09,353 - INFO - Verified VN network id 8 for VN a4808b0c-5d10-4043-9d69-55e893a4e12e
2024-12-23 17:47:09,353 - INFO - Verifications in API Server for VN ctest-vn-01911695 passed
2024-12-23 17:47:09,353 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e
2024-12-23 17:47:09,363 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45
2024-12-23 17:47:09,370 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45
2024-12-23 17:47:09,379 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/de997b11-4c1c-4e91-8e25-5718f84cda83
2024-12-23 17:47:09,394 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88735127', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11853627104456360003', 'uuid-lslong': '11342691593907134766'}, 'enable': 'true', 'created': '2024-12-23T17:47:07', 'last-modified': '2024-12-23T17:47:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963352'}
2024-12-23 17:47:09,402 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 17:47:09,402 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01911695 passed
2024-12-23 17:47:09,402 - DEBUG - ====Verifying policy data for ctest-vn-01911695 in API_Server ======
2024-12-23 17:47:09,402 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-12-23 17:47:09,409 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3
2024-12-23 17:47:09,420 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23
2024-12-23 17:47:09,504 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e
2024-12-23 17:47:09,516 - DEBUG - ==>Verifying data for policy with id: 584dbc39-2178-4212-b2c9-c7f6ce28eb03, fqn: ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-policy-allow-all-78029018']
2024-12-23 17:47:09,516 - INFO - VN ctest-vn-01911695 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 17:47:09,516 - DEBUG - Verifying the vn in opserver
2024-12-23 17:47:09,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695 virtual network link through opserver 10.0.0.12
2024-12-23 17:47:09,516 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-12-23 17:47:09,811 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-12-23 17:47:09,881 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695?flat'}
2024-12-23 17:47:09,881 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695 is found in opserver
2024-12-23 17:47:09,894 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 17:47:09,900 - DEBUG - VRF ids for VN ctest-vn-01911695: {}
2024-12-23 17:47:09,901 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-12-23 17:47:09,909 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3
2024-12-23 17:47:09,923 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23
2024-12-23 17:47:10,004 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46
2024-12-23 17:47:10,019 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46
2024-12-23 17:47:10,029 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4
2024-12-23 17:47:10,038 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4
2024-12-23 17:47:10,047 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/93a6e526-fee3-45d6-aac5-a7840898bd95
2024-12-23 17:47:10,055 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 17:47:10,055 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46
2024-12-23 17:47:10,067 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4
2024-12-23 17:47:10,083 - INFO - Verified VN network id 9 for VN c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46
2024-12-23 17:47:10,083 - INFO - Verifications in API Server for VN ctest-vn-13943449 passed
2024-12-23 17:47:10,084 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46
2024-12-23 17:47:10,095 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4
2024-12-23 17:47:10,104 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4
2024-12-23 17:47:10,112 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/93a6e526-fee3-45d6-aac5-a7840898bd95
2024-12-23 17:47:10,126 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88735127', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13923129886875468368', 'uuid-lslong': '13161141688976390982'}, 'enable': 'true', 'created': '2024-12-23T17:47:07', 'last-modified': '2024-12-23T17:47:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.447241'}
2024-12-23 17:47:10,133 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 17:47:10,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13943449 passed
2024-12-23 17:47:10,133 - DEBUG - ====Verifying policy data for ctest-vn-13943449 in API_Server ======
2024-12-23 17:47:10,133 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-12-23 17:47:10,141 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3
2024-12-23 17:47:10,155 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23
2024-12-23 17:47:10,236 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46
2024-12-23 17:47:10,253 - DEBUG - ==>Verifying data for policy with id: 584dbc39-2178-4212-b2c9-c7f6ce28eb03, fqn: ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-policy-allow-all-78029018']
2024-12-23 17:47:10,253 - INFO - VN ctest-vn-13943449 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 17:47:10,253 - DEBUG - Verifying the vn in opserver
2024-12-23 17:47:10,253 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449 virtual network link through opserver 10.0.0.12
2024-12-23 17:47:10,253 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-12-23 17:47:10,266 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449?flat'}
2024-12-23 17:47:10,266 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449 is found in opserver
2024-12-23 17:47:10,277 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 17:47:10,283 - DEBUG - VRF ids for VN ctest-vn-13943449: {}
2024-12-23 17:47:10,350 - DEBUG - Services list from nova: [