2024-11-07 02:19:38,266 - INFO - Domain Default found not creating
2024-11-07 02:19:38,438 - INFO - Project ctest-TestBasicPolicy-14153725 not found, creating it
2024-11-07 02:19:38,923 - INFO - Created Project:ctest-TestBasicPolicy-14153725, ID : 0f214649-bdbc-4cea-8f4b-bcb9b571f6a3
2024-11-07 02:19:40,486 - INFO - ================================================================================
2024-11-07 02:19:40,486 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 02:19:40,486 - 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-11-07 02:19:40,749 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.0.0.35': '0'}} with
2024-11-07 02:19:40,749 - INFO - Initial checks done. Running the testcase now
2024-11-07 02:19:40,749 - INFO -
2024-11-07 02:19:41,305 - DEBUG - Response for create_network : {'network': {'id': 'c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2', 'name': 'ctest-vn-16340668', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-vn-16340668'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:19:41,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e348c29-e822-434a-9c18-7e353e9a1bd1', 'name': '', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'network_id': 'c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2', 'ip_version': 4, 'cidr': '209.133.251.128/26', 'allocation_pools': [{'start': '209.133.251.130', 'end': '209.133.251.190'}], 'gateway_ip': '209.133.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.133.251.130', 'tags': [], 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3'}}
2024-11-07 02:19:41,521 - INFO - Created VN ctest-vn-16340668
2024-11-07 02:19:41,580 - DEBUG - VN ctest-vn-16340668 UUID is c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2
2024-11-07 02:19:41,896 - DEBUG - Response for create_network : {'network': {'id': '5c3d4389-7e4e-43aa-b7cd-7a779c957ff2', 'name': 'ctest-vn-30655867', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-vn-30655867'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:19:42,063 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e778653-3f7f-4701-8707-5b15bfd5fabb', 'name': '', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'network_id': '5c3d4389-7e4e-43aa-b7cd-7a779c957ff2', 'ip_version': 4, 'cidr': '160.144.20.192/26', 'allocation_pools': [{'start': '160.144.20.194', 'end': '160.144.20.254'}], 'gateway_ip': '160.144.20.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.144.20.194', 'tags': [], 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3'}}
2024-11-07 02:19:42,081 - INFO - Created VN ctest-vn-30655867
2024-11-07 02:19:42,136 - DEBUG - VN ctest-vn-30655867 UUID is 5c3d4389-7e4e-43aa-b7cd-7a779c957ff2
2024-11-07 02:19:42,300 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668, 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-14153725:ctest-vn-30655867, 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-11-07 02:19:42,621 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2', 'name': 'ctest-vn-16340668', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e348c29-e822-434a-9c18-7e353e9a1bd1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-vn-16340668'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-policy-allow-all-09497090']], 'subnet_ipam': [{'subnet_cidr': '209.133.251.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:19:42,862 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c3d4389-7e4e-43aa-b7cd-7a779c957ff2', 'name': 'ctest-vn-30655867', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e778653-3f7f-4701-8707-5b15bfd5fabb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-vn-30655867'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-policy-allow-all-09497090']], 'subnet_ipam': [{'subnet_cidr': '160.144.20.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 02:19:43,020 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-07 02:19:43,322 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-07 02:19:43,351 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16
2024-11-07 02:19:43,370 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3
2024-11-07 02:19:43,455 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2
2024-11-07 02:19:43,470 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2
2024-11-07 02:19:43,482 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470
2024-11-07 02:19:43,490 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470
2024-11-07 02:19:43,497 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d7468a40-a78a-4840-ba56-3ad894ce4d2d
2024-11-07 02:19:43,504 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 02:19:43,504 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2
2024-11-07 02:19:43,519 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470
2024-11-07 02:19:43,544 - INFO - Verified VN network id 9 for VN c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2
2024-11-07 02:19:43,544 - INFO - Verifications in API Server for VN ctest-vn-16340668 passed
2024-11-07 02:19:43,544 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2
2024-11-07 02:19:43,558 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470
2024-11-07 02:19:43,568 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470
2024-11-07 02:19:43,579 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d7468a40-a78a-4840-ba56-3ad894ce4d2d
2024-11-07 02:19:43,591 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14153725', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14013734209292815286', 'uuid-lslong': '11369974257944525778'}, 'enable': 'true', 'created': '2024-11-07T02:19:41', 'last-modified': '2024-11-07T02:19:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005131'}
2024-11-07 02:19:43,598 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 02:19:43,598 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16340668 passed
2024-11-07 02:19:43,598 - DEBUG - ====Verifying policy data for ctest-vn-16340668 in API_Server ======
2024-11-07 02:19:43,598 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-07 02:19:43,603 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16
2024-11-07 02:19:43,615 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3
2024-11-07 02:19:43,696 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2
2024-11-07 02:19:43,710 - DEBUG - ==>Verifying data for policy with id: 7f753229-3b5a-4457-b5c2-64e0a84c6a2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-policy-allow-all-09497090']
2024-11-07 02:19:43,710 - INFO - VN ctest-vn-16340668 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 02:19:43,710 - DEBUG - Verifying the vn in opserver
2024-11-07 02:19:43,710 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668 virtual network link through opserver 10.0.0.35
2024-11-07 02:19:43,710 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-11-07 02:19:44,007 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-11-07 02:19:44,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668?flat'}
2024-11-07 02:19:44,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668 is found in opserver
2024-11-07 02:19:44,074 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 02:19:44,080 - DEBUG - VRF ids for VN ctest-vn-16340668: {}
2024-11-07 02:19:44,080 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-07 02:19:44,085 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16
2024-11-07 02:19:44,099 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3
2024-11-07 02:19:44,177 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2
2024-11-07 02:19:44,191 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2
2024-11-07 02:19:44,204 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928
2024-11-07 02:19:44,213 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928
2024-11-07 02:19:44,220 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d0f3b471-474f-40ef-9a7b-e009124ee309
2024-11-07 02:19:44,228 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 02:19:44,228 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2
2024-11-07 02:19:44,240 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928
2024-11-07 02:19:44,257 - INFO - Verified VN network id 10 for VN 5c3d4389-7e4e-43aa-b7cd-7a779c957ff2
2024-11-07 02:19:44,257 - INFO - Verifications in API Server for VN ctest-vn-30655867 passed
2024-11-07 02:19:44,257 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2
2024-11-07 02:19:44,269 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928
2024-11-07 02:19:44,278 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928
2024-11-07 02:19:44,290 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d0f3b471-474f-40ef-9a7b-e009124ee309
2024-11-07 02:19:44,302 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14153725', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6646542882877359018', 'uuid-lslong': '13244376733313236978'}, 'enable': 'true', 'created': '2024-11-07T02:19:41', 'last-modified': '2024-11-07T02:19:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466698'}
2024-11-07 02:19:44,308 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 02:19:44,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30655867 passed
2024-11-07 02:19:44,308 - DEBUG - ====Verifying policy data for ctest-vn-30655867 in API_Server ======
2024-11-07 02:19:44,309 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-07 02:19:44,314 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16
2024-11-07 02:19:44,327 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3
2024-11-07 02:19:44,407 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2
2024-11-07 02:19:44,419 - DEBUG - ==>Verifying data for policy with id: 7f753229-3b5a-4457-b5c2-64e0a84c6a2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-policy-allow-all-09497090']
2024-11-07 02:19:44,419 - INFO - VN ctest-vn-30655867 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 02:19:44,419 - DEBUG - Verifying the vn in opserver
2024-11-07 02:19:44,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867 virtual network link through opserver 10.0.0.35
2024-11-07 02:19:44,419 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-11-07 02:19:44,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867?flat'}
2024-11-07 02:19:44,433 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867 is found in opserver
2024-11-07 02:19:44,444 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 02:19:44,449 - DEBUG - VRF ids for VN ctest-vn-30655867: {}
2024-11-07 02:19:44,499 - DEBUG - Services list from nova: [