2025-04-15 10:31:16,299 - INFO - Domain Default found not creating
2025-04-15 10:31:16,469 - INFO - Project ctest-TestBasicPolicy-19970347 not found, creating it
2025-04-15 10:31:16,987 - INFO - Created Project:ctest-TestBasicPolicy-19970347, ID : 7b9c0105-deb3-47f8-8ae4-0ef7076b6445
2025-04-15 10:31:18,620 - INFO - ================================================================================
2025-04-15 10:31:18,620 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 10:31:18,620 - 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-04-15 10:31:18,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-15 10:31:18,888 - INFO - Initial checks done. Running the testcase now
2025-04-15 10:31:18,888 - INFO -
2025-04-15 10:31:19,501 - DEBUG - Response for create_network : {'network': {'id': 'fb498045-e726-4b47-a16b-7269d4eacbf4', 'name': 'ctest-vn-11105047', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'project_id': '7b9c0105deb347f88ae40ef7076b6445', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-vn-11105047'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 10:31:19,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fc4b6e4-aece-4b1e-a3e2-6752e58d0dcf', 'name': '', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'network_id': 'fb498045-e726-4b47-a16b-7269d4eacbf4', 'ip_version': 4, 'cidr': '19.20.77.128/26', 'allocation_pools': [{'start': '19.20.77.130', 'end': '19.20.77.190'}], 'gateway_ip': '19.20.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.20.77.130', 'tags': [], 'project_id': '7b9c0105deb347f88ae40ef7076b6445'}}
2025-04-15 10:31:19,705 - INFO - Created VN ctest-vn-11105047
2025-04-15 10:31:19,763 - DEBUG - VN ctest-vn-11105047 UUID is fb498045-e726-4b47-a16b-7269d4eacbf4
2025-04-15 10:31:20,102 - DEBUG - Response for create_network : {'network': {'id': '435b4136-14fd-4e8f-81b9-440c9936fb15', 'name': 'ctest-vn-12494014', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'project_id': '7b9c0105deb347f88ae40ef7076b6445', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-vn-12494014'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 10:31:20,347 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a1c5608-6ae1-4ec8-a960-06a92e78d925', 'name': '', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'network_id': '435b4136-14fd-4e8f-81b9-440c9936fb15', 'ip_version': 4, 'cidr': '76.237.104.64/26', 'allocation_pools': [{'start': '76.237.104.66', 'end': '76.237.104.126'}], 'gateway_ip': '76.237.104.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.237.104.66', 'tags': [], 'project_id': '7b9c0105deb347f88ae40ef7076b6445'}}
2025-04-15 10:31:20,367 - INFO - Created VN ctest-vn-12494014
2025-04-15 10:31:20,419 - DEBUG - VN ctest-vn-12494014 UUID is 435b4136-14fd-4e8f-81b9-440c9936fb15
2025-04-15 10:31:20,541 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047, 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-19970347:ctest-vn-12494014, 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-04-15 10:31:20,855 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb498045-e726-4b47-a16b-7269d4eacbf4', 'name': 'ctest-vn-11105047', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'project_id': '7b9c0105deb347f88ae40ef7076b6445', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fc4b6e4-aece-4b1e-a3e2-6752e58d0dcf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-vn-11105047'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-policy-allow-all-40589861']], 'subnet_ipam': [{'subnet_cidr': '19.20.77.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 10:31:21,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '435b4136-14fd-4e8f-81b9-440c9936fb15', 'name': 'ctest-vn-12494014', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'project_id': '7b9c0105deb347f88ae40ef7076b6445', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a1c5608-6ae1-4ec8-a960-06a92e78d925'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-vn-12494014'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-policy-allow-all-40589861']], 'subnet_ipam': [{'subnet_cidr': '76.237.104.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 10:31:21,271 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 10:31:21,623 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 10:31:21,653 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718
2025-04-15 10:31:21,667 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445
2025-04-15 10:31:21,742 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4
2025-04-15 10:31:21,755 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4
2025-04-15 10:31:21,766 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d
2025-04-15 10:31:21,776 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d
2025-04-15 10:31:21,784 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/216df393-cce7-4d05-8588-e1b64a0a3cc3
2025-04-15 10:31:21,792 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 10:31:21,792 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4
2025-04-15 10:31:21,802 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d
2025-04-15 10:31:21,818 - INFO - Verified VN network id 9 for VN fb498045-e726-4b47-a16b-7269d4eacbf4
2025-04-15 10:31:21,818 - INFO - Verifications in API Server for VN ctest-vn-11105047 passed
2025-04-15 10:31:21,818 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4
2025-04-15 10:31:21,829 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d
2025-04-15 10:31:21,838 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d
2025-04-15 10:31:21,847 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/216df393-cce7-4d05-8588-e1b64a0a3cc3
2025-04-15 10:31:21,860 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19970347', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18107144814538935111', 'uuid-lslong': '11631516261483727860'}, 'enable': 'true', 'created': '2025-04-15T10:31:19', 'last-modified': '2025-04-15T10:31:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033866'}
2025-04-15 10:31:21,867 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 10:31:21,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11105047 passed
2025-04-15 10:31:21,868 - DEBUG - ====Verifying policy data for ctest-vn-11105047 in API_Server ======
2025-04-15 10:31:21,868 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 10:31:21,874 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718
2025-04-15 10:31:21,887 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445
2025-04-15 10:31:21,966 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4
2025-04-15 10:31:21,977 - DEBUG - ==>Verifying data for policy with id: 191a7e98-a627-4f91-9e71-aa44851a5ce4, fqn: ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-policy-allow-all-40589861']
2025-04-15 10:31:21,977 - INFO - VN ctest-vn-11105047 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 10:31:21,977 - DEBUG - Verifying the vn in opserver
2025-04-15 10:31:21,977 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047 virtual network link through opserver 10.0.0.254
2025-04-15 10:31:21,977 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-15 10:31:22,330 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-15 10:31:22,396 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047?flat'}
2025-04-15 10:31:22,396 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047 is found in opserver
2025-04-15 10:31:22,410 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 10:31:22,416 - DEBUG - VRF ids for VN ctest-vn-11105047: {}
2025-04-15 10:31:22,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 10:31:22,423 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718
2025-04-15 10:31:22,439 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445
2025-04-15 10:31:22,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15
2025-04-15 10:31:22,535 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15
2025-04-15 10:31:22,546 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e
2025-04-15 10:31:22,554 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e
2025-04-15 10:31:22,562 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04d469ba-9d52-4ae2-967f-0bc33f913dbb
2025-04-15 10:31:22,569 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 10:31:22,569 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15
2025-04-15 10:31:22,578 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e
2025-04-15 10:31:22,593 - INFO - Verified VN network id 10 for VN 435b4136-14fd-4e8f-81b9-440c9936fb15
2025-04-15 10:31:22,593 - INFO - Verifications in API Server for VN ctest-vn-12494014 passed
2025-04-15 10:31:22,593 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15
2025-04-15 10:31:22,603 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e
2025-04-15 10:31:22,612 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e
2025-04-15 10:31:22,619 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04d469ba-9d52-4ae2-967f-0bc33f913dbb
2025-04-15 10:31:22,633 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19970347', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4853544723958025871', 'uuid-lslong': '9347577322484988693'}, 'enable': 'true', 'created': '2025-04-15T10:31:20', 'last-modified': '2025-04-15T10:31:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.554066'}
2025-04-15 10:31:22,640 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 10:31:22,640 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12494014 passed
2025-04-15 10:31:22,640 - DEBUG - ====Verifying policy data for ctest-vn-12494014 in API_Server ======
2025-04-15 10:31:22,640 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-15 10:31:22,647 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718
2025-04-15 10:31:22,660 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445
2025-04-15 10:31:22,741 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15
2025-04-15 10:31:22,755 - DEBUG - ==>Verifying data for policy with id: 191a7e98-a627-4f91-9e71-aa44851a5ce4, fqn: ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-policy-allow-all-40589861']
2025-04-15 10:31:22,755 - INFO - VN ctest-vn-12494014 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 10:31:22,755 - DEBUG - Verifying the vn in opserver
2025-04-15 10:31:22,755 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014 virtual network link through opserver 10.0.0.254
2025-04-15 10:31:22,755 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-15 10:31:22,768 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014?flat'}
2025-04-15 10:31:22,768 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014 is found in opserver
2025-04-15 10:31:22,780 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 10:31:22,786 - DEBUG - VRF ids for VN ctest-vn-12494014: {}
2025-04-15 10:31:22,847 - DEBUG - Services list from nova: [