2025-01-12 08:40:24,879 - INFO - Domain Default found not creating
2025-01-12 08:40:25,032 - INFO - Project ctest-TestBasicPolicy-10311559 not found, creating it
2025-01-12 08:40:25,496 - INFO - Created Project:ctest-TestBasicPolicy-10311559, ID : 0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155
2025-01-12 08:40:26,973 - INFO - ================================================================================
2025-01-12 08:40:26,973 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-12 08:40:26,973 - 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
2025-01-12 08:40:27,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.12': '0'}} with
2025-01-12 08:40:27,233 - INFO - Initial checks done. Running the testcase now
2025-01-12 08:40:27,233 - INFO -
2025-01-12 08:40:27,827 - DEBUG - Response for create_network : {'network': {'id': '8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca', 'name': 'ctest-vn-72010986', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-vn-72010986'], 'port_security_enabled': True, 'description': ''}}
2025-01-12 08:40:27,998 - DEBUG - Response for create_subnet : {'subnet': {'id': '42a59a83-d08f-43d7-a783-2f0fe5731802', 'name': '', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'network_id': '8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca', 'ip_version': 4, 'cidr': '8.153.228.192/26', 'allocation_pools': [{'start': '8.153.228.194', 'end': '8.153.228.254'}], 'gateway_ip': '8.153.228.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.153.228.194', 'tags': [], 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155'}}
2025-01-12 08:40:28,027 - INFO - Created VN ctest-vn-72010986
2025-01-12 08:40:28,083 - DEBUG - VN ctest-vn-72010986 UUID is 8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca
2025-01-12 08:40:28,372 - DEBUG - Response for create_network : {'network': {'id': '3611639a-a023-4819-9a6d-fd034ea360af', 'name': 'ctest-vn-74390281', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-vn-74390281'], 'port_security_enabled': True, 'description': ''}}
2025-01-12 08:40:28,527 - DEBUG - Response for create_subnet : {'subnet': {'id': '533ecade-2fbb-4dad-9975-e9201380ef3e', 'name': '', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'network_id': '3611639a-a023-4819-9a6d-fd034ea360af', 'ip_version': 4, 'cidr': '133.123.30.64/26', 'allocation_pools': [{'start': '133.123.30.66', 'end': '133.123.30.126'}], 'gateway_ip': '133.123.30.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.123.30.66', 'tags': [], 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155'}}
2025-01-12 08:40:28,546 - INFO - Created VN ctest-vn-74390281
2025-01-12 08:40:28,599 - DEBUG - VN ctest-vn-74390281 UUID is 3611639a-a023-4819-9a6d-fd034ea360af
2025-01-12 08:40:28,720 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986, 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-10311559:ctest-vn-74390281, 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]
2025-01-12 08:40:29,028 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca', 'name': 'ctest-vn-72010986', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42a59a83-d08f-43d7-a783-2f0fe5731802'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-vn-72010986'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-policy-allow-all-21163715']], 'subnet_ipam': [{'subnet_cidr': '8.153.228.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-12 08:40:29,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3611639a-a023-4819-9a6d-fd034ea360af', 'name': 'ctest-vn-74390281', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['533ecade-2fbb-4dad-9975-e9201380ef3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-vn-74390281'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-policy-allow-all-21163715']], 'subnet_ipam': [{'subnet_cidr': '133.123.30.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-12 08:40:29,427 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-12 08:40:29,726 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-12 08:40:29,758 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8
2025-01-12 08:40:29,773 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155
2025-01-12 08:40:29,850 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca
2025-01-12 08:40:29,862 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca
2025-01-12 08:40:29,873 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087
2025-01-12 08:40:29,882 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087
2025-01-12 08:40:29,890 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/cc0c94fa-f5e3-41d3-b6ff-1f809ad76475
2025-01-12 08:40:29,900 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-12 08:40:29,900 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca
2025-01-12 08:40:29,912 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087
2025-01-12 08:40:29,930 - INFO - Verified VN network id 8 for VN 8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca
2025-01-12 08:40:29,930 - INFO - Verifications in API Server for VN ctest-vn-72010986 passed
2025-01-12 08:40:29,930 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca
2025-01-12 08:40:29,945 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087
2025-01-12 08:40:29,954 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087
2025-01-12 08:40:29,965 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/cc0c94fa-f5e3-41d3-b6ff-1f809ad76475
2025-01-12 08:40:29,982 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10311559', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10352587804875378493', 'uuid-lslong': '12277741348319864522'}, 'enable': 'true', 'created': '2025-01-12T08:40:27', 'last-modified': '2025-01-12T08:40:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977077'}
2025-01-12 08:40:29,990 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-12 08:40:29,990 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72010986 passed
2025-01-12 08:40:29,990 - DEBUG - ====Verifying policy data for ctest-vn-72010986 in API_Server ======
2025-01-12 08:40:29,990 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-12 08:40:29,998 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8
2025-01-12 08:40:30,014 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155
2025-01-12 08:40:30,104 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca
2025-01-12 08:40:30,118 - DEBUG - ==>Verifying data for policy with id: 5835f764-05a7-416a-af33-e9d5b19c367e, fqn: ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-policy-allow-all-21163715']
2025-01-12 08:40:30,118 - INFO - VN ctest-vn-72010986 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-12 08:40:30,118 - DEBUG - Verifying the vn in opserver
2025-01-12 08:40:30,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986 virtual network link through opserver 10.0.0.17
2025-01-12 08:40:30,118 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-12 08:40:30,418 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-12 08:40:30,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986?flat'}
2025-01-12 08:40:30,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986 is found in opserver
2025-01-12 08:40:30,502 - DEBUG - Do not have enough data to verify VN in agent
2025-01-12 08:40:30,511 - DEBUG - VRF ids for VN ctest-vn-72010986: {}
2025-01-12 08:40:30,511 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-12 08:40:30,520 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8
2025-01-12 08:40:30,537 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155
2025-01-12 08:40:30,609 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af
2025-01-12 08:40:30,625 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af
2025-01-12 08:40:30,638 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545
2025-01-12 08:40:30,648 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545
2025-01-12 08:40:30,657 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/2211577e-461e-4538-a820-08fb2ccaa59a
2025-01-12 08:40:30,664 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-12 08:40:30,664 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af
2025-01-12 08:40:30,675 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545
2025-01-12 08:40:30,692 - INFO - Verified VN network id 9 for VN 3611639a-a023-4819-9a6d-fd034ea360af
2025-01-12 08:40:30,692 - INFO - Verifications in API Server for VN ctest-vn-74390281 passed
2025-01-12 08:40:30,692 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af
2025-01-12 08:40:30,703 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545
2025-01-12 08:40:30,711 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545
2025-01-12 08:40:30,719 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/2211577e-461e-4538-a820-08fb2ccaa59a
2025-01-12 08:40:30,736 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10311559', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3896004668414969881', 'uuid-lslong': '11127828444948422831'}, 'enable': 'true', 'created': '2025-01-12T08:40:28', 'last-modified': '2025-01-12T08:40:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.496294'}
2025-01-12 08:40:30,746 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-12 08:40:30,746 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74390281 passed
2025-01-12 08:40:30,746 - DEBUG - ====Verifying policy data for ctest-vn-74390281 in API_Server ======
2025-01-12 08:40:30,746 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-12 08:40:30,754 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8
2025-01-12 08:40:30,770 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155
2025-01-12 08:40:30,852 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af
2025-01-12 08:40:30,863 - DEBUG - ==>Verifying data for policy with id: 5835f764-05a7-416a-af33-e9d5b19c367e, fqn: ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-policy-allow-all-21163715']
2025-01-12 08:40:30,863 - INFO - VN ctest-vn-74390281 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-12 08:40:30,863 - DEBUG - Verifying the vn in opserver
2025-01-12 08:40:30,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281 virtual network link through opserver 10.0.0.17
2025-01-12 08:40:30,863 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-12 08:40:30,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281?flat'}
2025-01-12 08:40:30,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281 is found in opserver
2025-01-12 08:40:30,887 - DEBUG - Do not have enough data to verify VN in agent
2025-01-12 08:40:30,893 - DEBUG - VRF ids for VN ctest-vn-74390281: {}
2025-01-12 08:40:30,961 - DEBUG - Services list from nova: [