2024-08-21 18:29:57,558 - INFO - Domain Default found not creating
2024-08-21 18:29:57,734 - INFO - Project ctest-TestBasicPolicy-48433718 not found, creating it
2024-08-21 18:29:58,215 - INFO - Created Project:ctest-TestBasicPolicy-48433718, ID : 17a0a38d-a08d-419b-8875-0da0a30be63c
2024-08-21 18:29:59,737 - INFO - ================================================================================
2024-08-21 18:29:59,737 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 18:29:59,737 - 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-08-21 18:29:59,998 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.12': '0'}} with
2024-08-21 18:29:59,998 - INFO - Initial checks done. Running the testcase now
2024-08-21 18:29:59,998 - INFO -
2024-08-21 18:30:00,599 - DEBUG - Response for create_network : {'network': {'id': '561e9f28-b52e-461f-9be0-5813886bdba9', 'name': 'ctest-vn-33188693', 'tenant_id': '17a0a38da08d419b88750da0a30be63c', 'project_id': '17a0a38da08d419b88750da0a30be63c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48433718', 'ctest-vn-33188693'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 18:30:00,800 - DEBUG - Response for create_subnet : {'subnet': {'id': '94029a25-d7a2-4e16-98b4-c4466faef51b', 'name': '', 'tenant_id': '17a0a38da08d419b88750da0a30be63c', 'network_id': '561e9f28-b52e-461f-9be0-5813886bdba9', 'ip_version': 4, 'cidr': '131.254.56.192/26', 'allocation_pools': [{'start': '131.254.56.194', 'end': '131.254.56.254'}], 'gateway_ip': '131.254.56.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.254.56.194', 'tags': [], 'project_id': '17a0a38da08d419b88750da0a30be63c'}}
2024-08-21 18:30:00,822 - INFO - Created VN ctest-vn-33188693
2024-08-21 18:30:00,872 - DEBUG - VN ctest-vn-33188693 UUID is 561e9f28-b52e-461f-9be0-5813886bdba9
2024-08-21 18:30:01,165 - DEBUG - Response for create_network : {'network': {'id': 'fe3e0250-2026-4138-8000-05b380180b38', 'name': 'ctest-vn-98387163', 'tenant_id': '17a0a38da08d419b88750da0a30be63c', 'project_id': '17a0a38da08d419b88750da0a30be63c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48433718', 'ctest-vn-98387163'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 18:30:01,388 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a69271a0-bcfa-4b3d-88db-eaceebb7f14f', 'name': '', 'tenant_id': '17a0a38da08d419b88750da0a30be63c', 'network_id': 'fe3e0250-2026-4138-8000-05b380180b38', 'ip_version': 4, 'cidr': '200.189.206.0/26', 'allocation_pools': [{'start': '200.189.206.2', 'end': '200.189.206.62'}], 'gateway_ip': '200.189.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.189.206.2', 'tags': [], 'project_id': '17a0a38da08d419b88750da0a30be63c'}}
2024-08-21 18:30:01,407 - INFO - Created VN ctest-vn-98387163
2024-08-21 18:30:01,460 - DEBUG - VN ctest-vn-98387163 UUID is fe3e0250-2026-4138-8000-05b380180b38
2024-08-21 18:30:01,579 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-33188693, 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-48433718:ctest-vn-98387163, 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-08-21 18:30:01,884 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '561e9f28-b52e-461f-9be0-5813886bdba9', 'name': 'ctest-vn-33188693', 'tenant_id': '17a0a38da08d419b88750da0a30be63c', 'project_id': '17a0a38da08d419b88750da0a30be63c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94029a25-d7a2-4e16-98b4-c4466faef51b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48433718', 'ctest-vn-33188693'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48433718', 'ctest-policy-allow-all-68473901']], 'subnet_ipam': [{'subnet_cidr': '131.254.56.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 18:30:02,119 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe3e0250-2026-4138-8000-05b380180b38', 'name': 'ctest-vn-98387163', 'tenant_id': '17a0a38da08d419b88750da0a30be63c', 'project_id': '17a0a38da08d419b88750da0a30be63c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a69271a0-bcfa-4b3d-88db-eaceebb7f14f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48433718', 'ctest-vn-98387163'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48433718', 'ctest-policy-allow-all-68473901']], 'subnet_ipam': [{'subnet_cidr': '200.189.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 18:30:02,272 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-21 18:30:02,574 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-21 18:30:02,615 - DEBUG - Requesting: http://10.0.0.56:8082/domain/75116ba4-f521-4ac2-a835-573fa264b764
2024-08-21 18:30:02,630 - DEBUG - Requesting: http://10.0.0.56:8082/project/17a0a38d-a08d-419b-8875-0da0a30be63c
2024-08-21 18:30:02,701 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/561e9f28-b52e-461f-9be0-5813886bdba9
2024-08-21 18:30:02,711 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/561e9f28-b52e-461f-9be0-5813886bdba9
2024-08-21 18:30:02,718 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/02e3944d-10be-4a7b-aa5f-4899faa0bfbc
2024-08-21 18:30:02,726 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/02e3944d-10be-4a7b-aa5f-4899faa0bfbc
2024-08-21 18:30:02,732 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/433407eb-d8d2-4d82-9d33-9db00935ca0a
2024-08-21 18:30:02,739 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 18:30:02,739 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/561e9f28-b52e-461f-9be0-5813886bdba9
2024-08-21 18:30:02,748 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/02e3944d-10be-4a7b-aa5f-4899faa0bfbc
2024-08-21 18:30:02,763 - INFO - Verified VN network id 8 for VN 561e9f28-b52e-461f-9be0-5813886bdba9
2024-08-21 18:30:02,763 - INFO - Verifications in API Server for VN ctest-vn-33188693 passed
2024-08-21 18:30:02,763 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/561e9f28-b52e-461f-9be0-5813886bdba9
2024-08-21 18:30:02,772 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/02e3944d-10be-4a7b-aa5f-4899faa0bfbc
2024-08-21 18:30:02,779 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/02e3944d-10be-4a7b-aa5f-4899faa0bfbc
2024-08-21 18:30:02,786 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/433407eb-d8d2-4d82-9d33-9db00935ca0a
2024-08-21 18:30:02,800 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-33188693', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48433718', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6205572333750339103', 'uuid-lslong': '11232074311578409897'}, 'enable': 'true', 'created': '2024-08-21T18:30:00', 'last-modified': '2024-08-21T18:30:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948032'}
2024-08-21 18:30:02,807 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 18:30:02,807 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33188693 passed
2024-08-21 18:30:02,808 - DEBUG - ====Verifying policy data for ctest-vn-33188693 in API_Server ======
2024-08-21 18:30:02,808 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-21 18:30:02,815 - DEBUG - Requesting: http://10.0.0.56:8082/domain/75116ba4-f521-4ac2-a835-573fa264b764
2024-08-21 18:30:02,830 - DEBUG - Requesting: http://10.0.0.56:8082/project/17a0a38d-a08d-419b-8875-0da0a30be63c
2024-08-21 18:30:02,902 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/561e9f28-b52e-461f-9be0-5813886bdba9
2024-08-21 18:30:02,910 - DEBUG - ==>Verifying data for policy with id: 6e7b189f-5fb7-46ff-a1b1-d7a95d8c0458, fqn: ['default-domain', 'ctest-TestBasicPolicy-48433718', 'ctest-policy-allow-all-68473901']
2024-08-21 18:30:02,910 - INFO - VN ctest-vn-33188693 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 18:30:02,910 - DEBUG - Verifying the vn in opserver
2024-08-21 18:30:02,910 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-33188693 virtual network link through opserver 10.0.0.56
2024-08-21 18:30:02,910 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-08-21 18:30:03,208 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-08-21 18:30:03,278 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-33188693', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-33188693?flat'}
2024-08-21 18:30:03,278 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-33188693 is found in opserver
2024-08-21 18:30:03,289 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 18:30:03,294 - DEBUG - VRF ids for VN ctest-vn-33188693: {}
2024-08-21 18:30:03,294 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-21 18:30:03,300 - DEBUG - Requesting: http://10.0.0.56:8082/domain/75116ba4-f521-4ac2-a835-573fa264b764
2024-08-21 18:30:03,313 - DEBUG - Requesting: http://10.0.0.56:8082/project/17a0a38d-a08d-419b-8875-0da0a30be63c
2024-08-21 18:30:03,385 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fe3e0250-2026-4138-8000-05b380180b38
2024-08-21 18:30:03,397 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fe3e0250-2026-4138-8000-05b380180b38
2024-08-21 18:30:03,405 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d91f29ff-a62c-453d-9b28-2ed1a392bb8e
2024-08-21 18:30:03,412 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d91f29ff-a62c-453d-9b28-2ed1a392bb8e
2024-08-21 18:30:03,419 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d2420b53-962a-4b25-baf8-aacf1a578bd9
2024-08-21 18:30:03,426 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 18:30:03,427 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fe3e0250-2026-4138-8000-05b380180b38
2024-08-21 18:30:03,435 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d91f29ff-a62c-453d-9b28-2ed1a392bb8e
2024-08-21 18:30:03,447 - INFO - Verified VN network id 9 for VN fe3e0250-2026-4138-8000-05b380180b38
2024-08-21 18:30:03,448 - INFO - Verifications in API Server for VN ctest-vn-98387163 passed
2024-08-21 18:30:03,448 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fe3e0250-2026-4138-8000-05b380180b38
2024-08-21 18:30:03,456 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d91f29ff-a62c-453d-9b28-2ed1a392bb8e
2024-08-21 18:30:03,463 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d91f29ff-a62c-453d-9b28-2ed1a392bb8e
2024-08-21 18:30:03,472 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d2420b53-962a-4b25-baf8-aacf1a578bd9
2024-08-21 18:30:03,486 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-98387163', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48433718', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18320082877349773624', 'uuid-lslong': '9223378305361120056'}, 'enable': 'true', 'created': '2024-08-21T18:30:01', 'last-modified': '2024-08-21T18:30:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.393275'}
2024-08-21 18:30:03,494 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 18:30:03,494 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98387163 passed
2024-08-21 18:30:03,494 - DEBUG - ====Verifying policy data for ctest-vn-98387163 in API_Server ======
2024-08-21 18:30:03,495 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-21 18:30:03,501 - DEBUG - Requesting: http://10.0.0.56:8082/domain/75116ba4-f521-4ac2-a835-573fa264b764
2024-08-21 18:30:03,513 - DEBUG - Requesting: http://10.0.0.56:8082/project/17a0a38d-a08d-419b-8875-0da0a30be63c
2024-08-21 18:30:03,585 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fe3e0250-2026-4138-8000-05b380180b38
2024-08-21 18:30:03,594 - DEBUG - ==>Verifying data for policy with id: 6e7b189f-5fb7-46ff-a1b1-d7a95d8c0458, fqn: ['default-domain', 'ctest-TestBasicPolicy-48433718', 'ctest-policy-allow-all-68473901']
2024-08-21 18:30:03,594 - INFO - VN ctest-vn-98387163 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 18:30:03,594 - DEBUG - Verifying the vn in opserver
2024-08-21 18:30:03,594 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-98387163 virtual network link through opserver 10.0.0.56
2024-08-21 18:30:03,594 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-08-21 18:30:03,605 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-98387163', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-98387163?flat'}
2024-08-21 18:30:03,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48433718:ctest-vn-98387163 is found in opserver
2024-08-21 18:30:03,618 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 18:30:03,625 - DEBUG - VRF ids for VN ctest-vn-98387163: {}
2024-08-21 18:30:03,684 - DEBUG - Services list from nova: [