2025-08-19 13:16:50,702 - INFO - Domain Default found not creating
2025-08-19 13:16:50,842 - INFO - Project ctest-TestBasicPolicy-71675529 not found, creating it
2025-08-19 13:16:51,295 - INFO - Created Project:ctest-TestBasicPolicy-71675529, ID : 843d206b-9adb-44ca-8420-e696520cfa01
2025-08-19 13:16:52,879 - INFO - ================================================================================
2025-08-19 13:16:52,879 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-19 13:16:52,879 - 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-08-19 13:16:53,144 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-19 13:16:53,144 - INFO - Initial checks done. Running the testcase now
2025-08-19 13:16:53,144 - INFO -
2025-08-19 13:16:53,729 - DEBUG - Response for create_network : {'network': {'id': '6fa19e7d-f976-4574-bc5d-ca437eb32924', 'name': 'ctest-vn-92887856', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'project_id': '843d206b9adb44ca8420e696520cfa01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-vn-92887856'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 13:16:53,890 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e043f336-94c3-4a8e-b4fa-d8f960c8c4a8', 'name': '', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'network_id': '6fa19e7d-f976-4574-bc5d-ca437eb32924', 'ip_version': 4, 'cidr': '50.48.183.128/26', 'allocation_pools': [{'start': '50.48.183.130', 'end': '50.48.183.190'}], 'gateway_ip': '50.48.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.48.183.130', 'tags': [], 'project_id': '843d206b9adb44ca8420e696520cfa01'}}
2025-08-19 13:16:53,907 - INFO - Created VN ctest-vn-92887856
2025-08-19 13:16:53,961 - DEBUG - VN ctest-vn-92887856 UUID is 6fa19e7d-f976-4574-bc5d-ca437eb32924
2025-08-19 13:16:54,294 - DEBUG - Response for create_network : {'network': {'id': '7821a233-94b8-4aa2-ac6f-0b318a254c6b', 'name': 'ctest-vn-54920527', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'project_id': '843d206b9adb44ca8420e696520cfa01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-vn-54920527'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 13:16:54,480 - DEBUG - Response for create_subnet : {'subnet': {'id': '4464c018-a3be-4c3f-ad6a-7bbc9330d779', 'name': '', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'network_id': '7821a233-94b8-4aa2-ac6f-0b318a254c6b', 'ip_version': 4, 'cidr': '166.32.140.128/26', 'allocation_pools': [{'start': '166.32.140.130', 'end': '166.32.140.190'}], 'gateway_ip': '166.32.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.32.140.130', 'tags': [], 'project_id': '843d206b9adb44ca8420e696520cfa01'}}
2025-08-19 13:16:54,497 - INFO - Created VN ctest-vn-54920527
2025-08-19 13:16:54,549 - DEBUG - VN ctest-vn-54920527 UUID is 7821a233-94b8-4aa2-ac6f-0b318a254c6b
2025-08-19 13:16:54,693 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856, 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-71675529:ctest-vn-54920527, 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-08-19 13:16:54,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fa19e7d-f976-4574-bc5d-ca437eb32924', 'name': 'ctest-vn-92887856', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'project_id': '843d206b9adb44ca8420e696520cfa01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e043f336-94c3-4a8e-b4fa-d8f960c8c4a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-vn-92887856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-policy-allow-all-56562546']], 'subnet_ipam': [{'subnet_cidr': '50.48.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 13:16:55,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7821a233-94b8-4aa2-ac6f-0b318a254c6b', 'name': 'ctest-vn-54920527', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'project_id': '843d206b9adb44ca8420e696520cfa01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4464c018-a3be-4c3f-ad6a-7bbc9330d779'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-vn-54920527'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-policy-allow-all-56562546']], 'subnet_ipam': [{'subnet_cidr': '166.32.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 13:16:55,413 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 13:16:55,752 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 13:16:55,780 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8
2025-08-19 13:16:55,793 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01
2025-08-19 13:16:55,866 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924
2025-08-19 13:16:55,877 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924
2025-08-19 13:16:55,887 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd
2025-08-19 13:16:55,894 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd
2025-08-19 13:16:55,900 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3f4bf72f-e520-4395-bd4b-5ada21e8b1c6
2025-08-19 13:16:55,906 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 13:16:55,906 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924
2025-08-19 13:16:55,916 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd
2025-08-19 13:16:55,929 - INFO - Verified VN network id 11 for VN 6fa19e7d-f976-4574-bc5d-ca437eb32924
2025-08-19 13:16:55,929 - INFO - Verifications in API Server for VN ctest-vn-92887856 passed
2025-08-19 13:16:55,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924
2025-08-19 13:16:55,938 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd
2025-08-19 13:16:55,945 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd
2025-08-19 13:16:55,951 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3f4bf72f-e520-4395-bd4b-5ada21e8b1c6
2025-08-19 13:16:55,965 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71675529', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8043884673353794932', 'uuid-lslong': '13573227243201833252'}, 'enable': 'true', 'created': '2025-08-19T13:16:53', 'last-modified': '2025-08-19T13:16:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000835'}
2025-08-19 13:16:55,971 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 13:16:55,971 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92887856 passed
2025-08-19 13:16:55,972 - DEBUG - ====Verifying policy data for ctest-vn-92887856 in API_Server ======
2025-08-19 13:16:55,972 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 13:16:55,976 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8
2025-08-19 13:16:55,987 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01
2025-08-19 13:16:56,058 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924
2025-08-19 13:16:56,068 - DEBUG - ==>Verifying data for policy with id: 2bbb41bf-24a7-43a6-85dc-aeba5f09030d, fqn: ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-policy-allow-all-56562546']
2025-08-19 13:16:56,068 - INFO - VN ctest-vn-92887856 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 13:16:56,068 - DEBUG - Verifying the vn in opserver
2025-08-19 13:16:56,068 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856 virtual network link through opserver 10.0.0.254
2025-08-19 13:16:56,068 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-19 13:16:56,399 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-19 13:16:56,453 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856?flat'}
2025-08-19 13:16:56,453 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856 is found in opserver
2025-08-19 13:16:56,465 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 13:16:56,470 - DEBUG - VRF ids for VN ctest-vn-92887856: {}
2025-08-19 13:16:56,470 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 13:16:56,476 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8
2025-08-19 13:16:56,487 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01
2025-08-19 13:16:56,559 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b
2025-08-19 13:16:56,572 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b
2025-08-19 13:16:56,581 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259
2025-08-19 13:16:56,588 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259
2025-08-19 13:16:56,595 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/db054934-061a-4b90-81da-2f922c72c44e
2025-08-19 13:16:56,601 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 13:16:56,601 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b
2025-08-19 13:16:56,610 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259
2025-08-19 13:16:56,623 - INFO - Verified VN network id 12 for VN 7821a233-94b8-4aa2-ac6f-0b318a254c6b
2025-08-19 13:16:56,623 - INFO - Verifications in API Server for VN ctest-vn-54920527 passed
2025-08-19 13:16:56,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b
2025-08-19 13:16:56,633 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259
2025-08-19 13:16:56,640 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259
2025-08-19 13:16:56,646 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/db054934-061a-4b90-81da-2f922c72c44e
2025-08-19 13:16:56,659 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71675529', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8656378301204941474', 'uuid-lslong': '12425162204337491051'}, 'enable': 'true', 'created': '2025-08-19T13:16:54', 'last-modified': '2025-08-19T13:16:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466769'}
2025-08-19 13:16:56,666 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 13:16:56,666 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54920527 passed
2025-08-19 13:16:56,666 - DEBUG - ====Verifying policy data for ctest-vn-54920527 in API_Server ======
2025-08-19 13:16:56,666 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-19 13:16:56,671 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8
2025-08-19 13:16:56,682 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01
2025-08-19 13:16:56,752 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b
2025-08-19 13:16:56,762 - DEBUG - ==>Verifying data for policy with id: 2bbb41bf-24a7-43a6-85dc-aeba5f09030d, fqn: ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-policy-allow-all-56562546']
2025-08-19 13:16:56,762 - INFO - VN ctest-vn-54920527 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 13:16:56,762 - DEBUG - Verifying the vn in opserver
2025-08-19 13:16:56,762 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527 virtual network link through opserver 10.0.0.254
2025-08-19 13:16:56,762 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-19 13:16:56,773 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527?flat'}
2025-08-19 13:16:56,773 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527 is found in opserver
2025-08-19 13:16:56,784 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 13:16:56,789 - DEBUG - VRF ids for VN ctest-vn-54920527: {}
2025-08-19 13:16:56,843 - DEBUG - Services list from nova: [