2024-10-22 22:10:36,718 - INFO - Domain Default found not creating
2024-10-22 22:10:36,865 - INFO - Project ctest-TestBasicPolicy-85816677 not found, creating it
2024-10-22 22:10:37,581 - INFO - Created Project:ctest-TestBasicPolicy-85816677, ID : dc8eb196-a0ea-4d9d-9991-6db00f4c5963
2024-10-22 22:10:39,159 - INFO - ================================================================================
2024-10-22 22:10:39,160 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-22 22:10:39,160 - 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-10-22 22:10:39,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.24': '0'}} with
2024-10-22 22:10:39,418 - INFO - Initial checks done. Running the testcase now
2024-10-22 22:10:39,418 - INFO -
2024-10-22 22:10:39,973 - DEBUG - Response for create_network : {'network': {'id': '16418e89-30b9-4caa-bf18-6fd8c89e6ecd', 'name': 'ctest-vn-13578177', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-vn-13578177'], 'port_security_enabled': True, 'description': ''}}
2024-10-22 22:10:40,154 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a70dfbd-e613-47b6-8f82-e78936df36d2', 'name': '', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'network_id': '16418e89-30b9-4caa-bf18-6fd8c89e6ecd', 'ip_version': 4, 'cidr': '173.137.147.128/26', 'allocation_pools': [{'start': '173.137.147.130', 'end': '173.137.147.190'}], 'gateway_ip': '173.137.147.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.137.147.130', 'tags': [], 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963'}}
2024-10-22 22:10:40,173 - INFO - Created VN ctest-vn-13578177
2024-10-22 22:10:40,232 - DEBUG - VN ctest-vn-13578177 UUID is 16418e89-30b9-4caa-bf18-6fd8c89e6ecd
2024-10-22 22:10:40,530 - DEBUG - Response for create_network : {'network': {'id': 'd034bc71-7099-4ddb-83b3-82702ef6011a', 'name': 'ctest-vn-91762112', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-vn-91762112'], 'port_security_enabled': True, 'description': ''}}
2024-10-22 22:10:40,758 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a1ee0cc-e505-4771-8983-586dd3dd2891', 'name': '', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'network_id': 'd034bc71-7099-4ddb-83b3-82702ef6011a', 'ip_version': 4, 'cidr': '168.248.132.64/26', 'allocation_pools': [{'start': '168.248.132.66', 'end': '168.248.132.126'}], 'gateway_ip': '168.248.132.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.248.132.66', 'tags': [], 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963'}}
2024-10-22 22:10:40,776 - INFO - Created VN ctest-vn-91762112
2024-10-22 22:10:40,832 - DEBUG - VN ctest-vn-91762112 UUID is d034bc71-7099-4ddb-83b3-82702ef6011a
2024-10-22 22:10:40,948 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177, 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-85816677:ctest-vn-91762112, 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-10-22 22:10:41,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16418e89-30b9-4caa-bf18-6fd8c89e6ecd', 'name': 'ctest-vn-13578177', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a70dfbd-e613-47b6-8f82-e78936df36d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-vn-13578177'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-policy-allow-all-65091577']], 'subnet_ipam': [{'subnet_cidr': '173.137.147.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-22 22:10:41,571 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd034bc71-7099-4ddb-83b3-82702ef6011a', 'name': 'ctest-vn-91762112', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a1ee0cc-e505-4771-8983-586dd3dd2891'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-vn-91762112'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-policy-allow-all-65091577']], 'subnet_ipam': [{'subnet_cidr': '168.248.132.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-22 22:10:41,728 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-22 22:10:42,037 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-22 22:10:42,351 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3
2024-10-22 22:10:42,366 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963
2024-10-22 22:10:42,456 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd
2024-10-22 22:10:42,476 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd
2024-10-22 22:10:42,489 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752
2024-10-22 22:10:42,497 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752
2024-10-22 22:10:42,504 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/d9259e1e-9ef9-4915-8b87-37b3105d8e3d
2024-10-22 22:10:42,510 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-22 22:10:42,511 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd
2024-10-22 22:10:42,522 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752
2024-10-22 22:10:42,542 - INFO - Verified VN network id 9 for VN 16418e89-30b9-4caa-bf18-6fd8c89e6ecd
2024-10-22 22:10:42,542 - INFO - Verifications in API Server for VN ctest-vn-13578177 passed
2024-10-22 22:10:42,542 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd
2024-10-22 22:10:42,555 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752
2024-10-22 22:10:42,563 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752
2024-10-22 22:10:42,571 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/d9259e1e-9ef9-4915-8b87-37b3105d8e3d
2024-10-22 22:10:42,584 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85816677', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1603719662199721130', 'uuid-lslong': '13769878837554736845'}, 'enable': 'true', 'created': '2024-10-22T22:10:39', 'last-modified': '2024-10-22T22:10:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349162'}
2024-10-22 22:10:42,591 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-22 22:10:42,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13578177 passed
2024-10-22 22:10:42,592 - DEBUG - ====Verifying policy data for ctest-vn-13578177 in API_Server ======
2024-10-22 22:10:42,592 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-22 22:10:42,597 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3
2024-10-22 22:10:42,615 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963
2024-10-22 22:10:42,698 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd
2024-10-22 22:10:42,712 - DEBUG - ==>Verifying data for policy with id: f71e7e97-0931-43e1-ae49-0e58e4c1c3aa, fqn: ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-policy-allow-all-65091577']
2024-10-22 22:10:42,712 - INFO - VN ctest-vn-13578177 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-22 22:10:42,712 - DEBUG - Verifying the vn in opserver
2024-10-22 22:10:42,712 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177 virtual network link through opserver 10.0.0.32
2024-10-22 22:10:42,712 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-22 22:10:43,007 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-22 22:10:43,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177?flat'}
2024-10-22 22:10:43,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177 is found in opserver
2024-10-22 22:10:43,104 - DEBUG - Do not have enough data to verify VN in agent
2024-10-22 22:10:43,110 - DEBUG - VRF ids for VN ctest-vn-13578177: {}
2024-10-22 22:10:43,110 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-22 22:10:43,116 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3
2024-10-22 22:10:43,129 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963
2024-10-22 22:10:43,210 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a
2024-10-22 22:10:43,226 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a
2024-10-22 22:10:43,240 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0
2024-10-22 22:10:43,250 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0
2024-10-22 22:10:43,259 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/185396aa-7d65-4ab9-b37f-165fb42fd194
2024-10-22 22:10:43,267 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-22 22:10:43,267 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a
2024-10-22 22:10:43,280 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0
2024-10-22 22:10:43,301 - INFO - Verified VN network id 10 for VN d034bc71-7099-4ddb-83b3-82702ef6011a
2024-10-22 22:10:43,301 - INFO - Verifications in API Server for VN ctest-vn-91762112 passed
2024-10-22 22:10:43,301 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a
2024-10-22 22:10:43,314 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0
2024-10-22 22:10:43,323 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0
2024-10-22 22:10:43,331 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/185396aa-7d65-4ab9-b37f-165fb42fd194
2024-10-22 22:10:43,345 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85816677', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15002823454084386267', 'uuid-lslong': '9490072258135589146'}, 'enable': 'true', 'created': '2024-10-22T22:10:40', 'last-modified': '2024-10-22T22:10:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.848861'}
2024-10-22 22:10:43,352 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-22 22:10:43,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91762112 passed
2024-10-22 22:10:43,352 - DEBUG - ====Verifying policy data for ctest-vn-91762112 in API_Server ======
2024-10-22 22:10:43,353 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-22 22:10:43,358 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3
2024-10-22 22:10:43,371 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963
2024-10-22 22:10:43,450 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a
2024-10-22 22:10:43,465 - DEBUG - ==>Verifying data for policy with id: f71e7e97-0931-43e1-ae49-0e58e4c1c3aa, fqn: ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-policy-allow-all-65091577']
2024-10-22 22:10:43,465 - INFO - VN ctest-vn-91762112 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-22 22:10:43,465 - DEBUG - Verifying the vn in opserver
2024-10-22 22:10:43,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112 virtual network link through opserver 10.0.0.32
2024-10-22 22:10:43,466 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-22 22:10:43,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112?flat'}
2024-10-22 22:10:43,479 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112 is found in opserver
2024-10-22 22:10:43,490 - DEBUG - Do not have enough data to verify VN in agent
2024-10-22 22:10:43,496 - DEBUG - VRF ids for VN ctest-vn-91762112: {}
2024-10-22 22:10:43,548 - DEBUG - Services list from nova: [