2025-01-07 11:53:14,701 - INFO - Domain Default found not creating
2025-01-07 11:53:14,862 - INFO - Project ctest-TestBasicPolicy-66515756 not found, creating it
2025-01-07 11:53:15,331 - INFO - Created Project:ctest-TestBasicPolicy-66515756, ID : fa1902c8-8e8b-4232-936d-f409b2974235
2025-01-07 11:53:16,828 - INFO - ================================================================================
2025-01-07 11:53:16,828 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 11:53:16,828 - 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-07 11:53:17,083 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.12': '0'}} with
2025-01-07 11:53:17,083 - INFO - Initial checks done. Running the testcase now
2025-01-07 11:53:17,083 - INFO -
2025-01-07 11:53:17,785 - DEBUG - Response for create_network : {'network': {'id': '58a77faf-d61f-48c6-b2c9-03200acdae4f', 'name': 'ctest-vn-53769498', 'tenant_id': 'fa1902c88e8b4232936df409b2974235', 'project_id': 'fa1902c88e8b4232936df409b2974235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66515756', 'ctest-vn-53769498'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:53:17,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '65589b6e-2897-4ff1-b406-464d21926f7c', 'name': '', 'tenant_id': 'fa1902c88e8b4232936df409b2974235', 'network_id': '58a77faf-d61f-48c6-b2c9-03200acdae4f', 'ip_version': 4, 'cidr': '101.41.178.192/26', 'allocation_pools': [{'start': '101.41.178.194', 'end': '101.41.178.254'}], 'gateway_ip': '101.41.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.41.178.194', 'tags': [], 'project_id': 'fa1902c88e8b4232936df409b2974235'}}
2025-01-07 11:53:17,998 - INFO - Created VN ctest-vn-53769498
2025-01-07 11:53:18,050 - DEBUG - VN ctest-vn-53769498 UUID is 58a77faf-d61f-48c6-b2c9-03200acdae4f
2025-01-07 11:53:18,342 - DEBUG - Response for create_network : {'network': {'id': '030dcf32-b05b-4433-aefb-c8c0be375b26', 'name': 'ctest-vn-59448620', 'tenant_id': 'fa1902c88e8b4232936df409b2974235', 'project_id': 'fa1902c88e8b4232936df409b2974235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66515756', 'ctest-vn-59448620'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:53:18,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '0207088c-575b-40b0-88b3-975a6685f4da', 'name': '', 'tenant_id': 'fa1902c88e8b4232936df409b2974235', 'network_id': '030dcf32-b05b-4433-aefb-c8c0be375b26', 'ip_version': 4, 'cidr': '48.157.42.0/26', 'allocation_pools': [{'start': '48.157.42.2', 'end': '48.157.42.62'}], 'gateway_ip': '48.157.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.157.42.2', 'tags': [], 'project_id': 'fa1902c88e8b4232936df409b2974235'}}
2025-01-07 11:53:18,581 - INFO - Created VN ctest-vn-59448620
2025-01-07 11:53:18,634 - DEBUG - VN ctest-vn-59448620 UUID is 030dcf32-b05b-4433-aefb-c8c0be375b26
2025-01-07 11:53:18,751 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-53769498, 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-66515756:ctest-vn-59448620, 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-07 11:53:19,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58a77faf-d61f-48c6-b2c9-03200acdae4f', 'name': 'ctest-vn-53769498', 'tenant_id': 'fa1902c88e8b4232936df409b2974235', 'project_id': 'fa1902c88e8b4232936df409b2974235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65589b6e-2897-4ff1-b406-464d21926f7c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66515756', 'ctest-vn-53769498'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66515756', 'ctest-policy-allow-all-92286090']], 'subnet_ipam': [{'subnet_cidr': '101.41.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:53:19,324 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '030dcf32-b05b-4433-aefb-c8c0be375b26', 'name': 'ctest-vn-59448620', 'tenant_id': 'fa1902c88e8b4232936df409b2974235', 'project_id': 'fa1902c88e8b4232936df409b2974235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0207088c-575b-40b0-88b3-975a6685f4da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66515756', 'ctest-vn-59448620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66515756', 'ctest-policy-allow-all-92286090']], 'subnet_ipam': [{'subnet_cidr': '48.157.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:53:19,458 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 11:53:19,774 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 11:53:19,807 - DEBUG - Requesting: http://10.0.0.31:8082/domain/2125db19-bf62-471b-812e-f004288868be
2025-01-07 11:53:19,821 - DEBUG - Requesting: http://10.0.0.31:8082/project/fa1902c8-8e8b-4232-936d-f409b2974235
2025-01-07 11:53:19,895 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/58a77faf-d61f-48c6-b2c9-03200acdae4f
2025-01-07 11:53:19,907 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/58a77faf-d61f-48c6-b2c9-03200acdae4f
2025-01-07 11:53:19,921 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ccae24db-61e3-43a4-8f1d-e95303533493
2025-01-07 11:53:19,930 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ccae24db-61e3-43a4-8f1d-e95303533493
2025-01-07 11:53:19,939 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/5ac4a371-7342-4d03-b981-df028ab59124
2025-01-07 11:53:19,947 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 11:53:19,947 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/58a77faf-d61f-48c6-b2c9-03200acdae4f
2025-01-07 11:53:19,958 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ccae24db-61e3-43a4-8f1d-e95303533493
2025-01-07 11:53:19,976 - INFO - Verified VN network id 8 for VN 58a77faf-d61f-48c6-b2c9-03200acdae4f
2025-01-07 11:53:19,976 - INFO - Verifications in API Server for VN ctest-vn-53769498 passed
2025-01-07 11:53:19,976 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/58a77faf-d61f-48c6-b2c9-03200acdae4f
2025-01-07 11:53:19,987 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ccae24db-61e3-43a4-8f1d-e95303533493
2025-01-07 11:53:19,995 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/ccae24db-61e3-43a4-8f1d-e95303533493
2025-01-07 11:53:20,003 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/5ac4a371-7342-4d03-b981-df028ab59124
2025-01-07 11:53:20,015 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-53769498', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66515756', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6388214989636716742', 'uuid-lslong': '12882831645225102927'}, 'enable': 'true', 'created': '2025-01-07T11:53:17', 'last-modified': '2025-01-07T11:53:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952644'}
2025-01-07 11:53:20,022 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 11:53:20,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53769498 passed
2025-01-07 11:53:20,022 - DEBUG - ====Verifying policy data for ctest-vn-53769498 in API_Server ======
2025-01-07 11:53:20,023 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 11:53:20,029 - DEBUG - Requesting: http://10.0.0.31:8082/domain/2125db19-bf62-471b-812e-f004288868be
2025-01-07 11:53:20,043 - DEBUG - Requesting: http://10.0.0.31:8082/project/fa1902c8-8e8b-4232-936d-f409b2974235
2025-01-07 11:53:20,124 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/58a77faf-d61f-48c6-b2c9-03200acdae4f
2025-01-07 11:53:20,135 - DEBUG - ==>Verifying data for policy with id: 64133cab-9733-4ab1-b768-b29171efe82a, fqn: ['default-domain', 'ctest-TestBasicPolicy-66515756', 'ctest-policy-allow-all-92286090']
2025-01-07 11:53:20,135 - INFO - VN ctest-vn-53769498 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 11:53:20,135 - DEBUG - Verifying the vn in opserver
2025-01-07 11:53:20,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-53769498 virtual network link through opserver 10.0.0.31
2025-01-07 11:53:20,136 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-07 11:53:20,439 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-07 11:53:20,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-53769498', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-53769498?flat'}
2025-01-07 11:53:20,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-53769498 is found in opserver
2025-01-07 11:53:20,513 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 11:53:20,519 - DEBUG - VRF ids for VN ctest-vn-53769498: {}
2025-01-07 11:53:20,519 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 11:53:20,525 - DEBUG - Requesting: http://10.0.0.31:8082/domain/2125db19-bf62-471b-812e-f004288868be
2025-01-07 11:53:20,536 - DEBUG - Requesting: http://10.0.0.31:8082/project/fa1902c8-8e8b-4232-936d-f409b2974235
2025-01-07 11:53:20,609 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/030dcf32-b05b-4433-aefb-c8c0be375b26
2025-01-07 11:53:20,625 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/030dcf32-b05b-4433-aefb-c8c0be375b26
2025-01-07 11:53:20,636 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0db60fb2-a2ab-48e2-ade0-77b31ac9ab53
2025-01-07 11:53:20,644 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0db60fb2-a2ab-48e2-ade0-77b31ac9ab53
2025-01-07 11:53:20,651 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/bc9acc37-bc88-4aec-9a9d-05cb0e4e4658
2025-01-07 11:53:20,658 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 11:53:20,658 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/030dcf32-b05b-4433-aefb-c8c0be375b26
2025-01-07 11:53:20,668 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0db60fb2-a2ab-48e2-ade0-77b31ac9ab53
2025-01-07 11:53:20,683 - INFO - Verified VN network id 9 for VN 030dcf32-b05b-4433-aefb-c8c0be375b26
2025-01-07 11:53:20,683 - INFO - Verifications in API Server for VN ctest-vn-59448620 passed
2025-01-07 11:53:20,683 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/030dcf32-b05b-4433-aefb-c8c0be375b26
2025-01-07 11:53:20,694 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0db60fb2-a2ab-48e2-ade0-77b31ac9ab53
2025-01-07 11:53:20,702 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/0db60fb2-a2ab-48e2-ade0-77b31ac9ab53
2025-01-07 11:53:20,710 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/bc9acc37-bc88-4aec-9a9d-05cb0e4e4658
2025-01-07 11:53:20,725 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-59448620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66515756', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '220059773425108019', 'uuid-lslong': '12608892311904410406'}, 'enable': 'true', 'created': '2025-01-07T11:53:18', 'last-modified': '2025-01-07T11:53:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.424541'}
2025-01-07 11:53:20,733 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 11:53:20,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59448620 passed
2025-01-07 11:53:20,734 - DEBUG - ====Verifying policy data for ctest-vn-59448620 in API_Server ======
2025-01-07 11:53:20,734 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-07 11:53:20,740 - DEBUG - Requesting: http://10.0.0.31:8082/domain/2125db19-bf62-471b-812e-f004288868be
2025-01-07 11:53:20,755 - DEBUG - Requesting: http://10.0.0.31:8082/project/fa1902c8-8e8b-4232-936d-f409b2974235
2025-01-07 11:53:20,831 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/030dcf32-b05b-4433-aefb-c8c0be375b26
2025-01-07 11:53:20,841 - DEBUG - ==>Verifying data for policy with id: 64133cab-9733-4ab1-b768-b29171efe82a, fqn: ['default-domain', 'ctest-TestBasicPolicy-66515756', 'ctest-policy-allow-all-92286090']
2025-01-07 11:53:20,841 - INFO - VN ctest-vn-59448620 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 11:53:20,841 - DEBUG - Verifying the vn in opserver
2025-01-07 11:53:20,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-59448620 virtual network link through opserver 10.0.0.31
2025-01-07 11:53:20,841 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-07 11:53:20,851 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-59448620', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-59448620?flat'}
2025-01-07 11:53:20,851 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66515756:ctest-vn-59448620 is found in opserver
2025-01-07 11:53:20,862 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 11:53:20,867 - DEBUG - VRF ids for VN ctest-vn-59448620: {}
2025-01-07 11:53:20,933 - DEBUG - Services list from nova: [