2025-01-09 11:33:36,469 - INFO - Domain Default found not creating
2025-01-09 11:33:36,622 - INFO - Project ctest-TestBasicPolicy-13527612 not found, creating it
2025-01-09 11:33:37,129 - INFO - Created Project:ctest-TestBasicPolicy-13527612, ID : 5f51ed69-676b-4b8a-883e-1f5a41aafce5
2025-01-09 11:33:38,697 - INFO - ================================================================================
2025-01-09 11:33:38,697 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 11:33:38,697 - 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-09 11:33:38,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.8': '0'}} with
2025-01-09 11:33:38,951 - INFO - Initial checks done. Running the testcase now
2025-01-09 11:33:38,951 - INFO -
2025-01-09 11:33:39,502 - DEBUG - Response for create_network : {'network': {'id': '58214034-7206-4bd5-b532-00641ac0290c', 'name': 'ctest-vn-27270059', 'tenant_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'project_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13527612', 'ctest-vn-27270059'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 11:33:39,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ec11fbe-7d2a-4e18-a618-d2b15c58d2a2', 'name': '', 'tenant_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'network_id': '58214034-7206-4bd5-b532-00641ac0290c', 'ip_version': 4, 'cidr': '75.126.217.64/26', 'allocation_pools': [{'start': '75.126.217.66', 'end': '75.126.217.126'}], 'gateway_ip': '75.126.217.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.126.217.66', 'tags': [], 'project_id': '5f51ed69676b4b8a883e1f5a41aafce5'}}
2025-01-09 11:33:39,673 - INFO - Created VN ctest-vn-27270059
2025-01-09 11:33:39,729 - DEBUG - VN ctest-vn-27270059 UUID is 58214034-7206-4bd5-b532-00641ac0290c
2025-01-09 11:33:40,027 - DEBUG - Response for create_network : {'network': {'id': 'e71dd5ea-a029-40c3-a511-12241ecf4372', 'name': 'ctest-vn-40204821', 'tenant_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'project_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13527612', 'ctest-vn-40204821'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 11:33:40,271 - DEBUG - Response for create_subnet : {'subnet': {'id': '98bfdf69-564a-4766-a848-688d986ce6b2', 'name': '', 'tenant_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'network_id': 'e71dd5ea-a029-40c3-a511-12241ecf4372', 'ip_version': 4, 'cidr': '17.12.74.64/26', 'allocation_pools': [{'start': '17.12.74.66', 'end': '17.12.74.126'}], 'gateway_ip': '17.12.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.12.74.66', 'tags': [], 'project_id': '5f51ed69676b4b8a883e1f5a41aafce5'}}
2025-01-09 11:33:40,292 - INFO - Created VN ctest-vn-40204821
2025-01-09 11:33:40,345 - DEBUG - VN ctest-vn-40204821 UUID is e71dd5ea-a029-40c3-a511-12241ecf4372
2025-01-09 11:33:40,467 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-27270059, 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-13527612:ctest-vn-40204821, 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-09 11:33:40,781 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58214034-7206-4bd5-b532-00641ac0290c', 'name': 'ctest-vn-27270059', 'tenant_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'project_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ec11fbe-7d2a-4e18-a618-d2b15c58d2a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13527612', 'ctest-vn-27270059'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13527612', 'ctest-policy-allow-all-55319265']], 'subnet_ipam': [{'subnet_cidr': '75.126.217.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 11:33:41,073 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e71dd5ea-a029-40c3-a511-12241ecf4372', 'name': 'ctest-vn-40204821', 'tenant_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'project_id': '5f51ed69676b4b8a883e1f5a41aafce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98bfdf69-564a-4766-a848-688d986ce6b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13527612', 'ctest-vn-40204821'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13527612', 'ctest-policy-allow-all-55319265']], 'subnet_ipam': [{'subnet_cidr': '17.12.74.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 11:33:41,229 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-09 11:33:41,524 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-09 11:33:41,559 - DEBUG - Requesting: http://10.0.0.34:8082/domain/36f995c4-55c9-4223-baf4-f1ef310e9a29
2025-01-09 11:33:41,574 - DEBUG - Requesting: http://10.0.0.34:8082/project/5f51ed69-676b-4b8a-883e-1f5a41aafce5
2025-01-09 11:33:41,655 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/58214034-7206-4bd5-b532-00641ac0290c
2025-01-09 11:33:41,671 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/58214034-7206-4bd5-b532-00641ac0290c
2025-01-09 11:33:41,683 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a7b1a248-30dc-48c2-8210-ffa60dc7c1e1
2025-01-09 11:33:41,692 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a7b1a248-30dc-48c2-8210-ffa60dc7c1e1
2025-01-09 11:33:41,703 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/b074f3c6-04e0-4024-8769-e05c985e2455
2025-01-09 11:33:41,712 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 11:33:41,712 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/58214034-7206-4bd5-b532-00641ac0290c
2025-01-09 11:33:41,724 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a7b1a248-30dc-48c2-8210-ffa60dc7c1e1
2025-01-09 11:33:41,741 - INFO - Verified VN network id 8 for VN 58214034-7206-4bd5-b532-00641ac0290c
2025-01-09 11:33:41,741 - INFO - Verifications in API Server for VN ctest-vn-27270059 passed
2025-01-09 11:33:41,742 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/58214034-7206-4bd5-b532-00641ac0290c
2025-01-09 11:33:41,754 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a7b1a248-30dc-48c2-8210-ffa60dc7c1e1
2025-01-09 11:33:41,763 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a7b1a248-30dc-48c2-8210-ffa60dc7c1e1
2025-01-09 11:33:41,772 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/b074f3c6-04e0-4024-8769-e05c985e2455
2025-01-09 11:33:41,787 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-27270059', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13527612', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6350427543564602325', 'uuid-lslong': '13056498699646019852'}, 'enable': 'true', 'created': '2025-01-09T11:33:39', 'last-modified': '2025-01-09T11:33:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033362'}
2025-01-09 11:33:41,794 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 11:33:41,794 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27270059 passed
2025-01-09 11:33:41,794 - DEBUG - ====Verifying policy data for ctest-vn-27270059 in API_Server ======
2025-01-09 11:33:41,794 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-09 11:33:41,801 - DEBUG - Requesting: http://10.0.0.34:8082/domain/36f995c4-55c9-4223-baf4-f1ef310e9a29
2025-01-09 11:33:41,816 - DEBUG - Requesting: http://10.0.0.34:8082/project/5f51ed69-676b-4b8a-883e-1f5a41aafce5
2025-01-09 11:33:41,896 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/58214034-7206-4bd5-b532-00641ac0290c
2025-01-09 11:33:41,909 - DEBUG - ==>Verifying data for policy with id: e7ceb0b0-3ff6-446f-be1d-0af2b1f88df2, fqn: ['default-domain', 'ctest-TestBasicPolicy-13527612', 'ctest-policy-allow-all-55319265']
2025-01-09 11:33:41,909 - INFO - VN ctest-vn-27270059 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 11:33:41,909 - DEBUG - Verifying the vn in opserver
2025-01-09 11:33:41,910 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-27270059 virtual network link through opserver 10.0.0.34
2025-01-09 11:33:41,910 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-09 11:33:42,207 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-09 11:33:42,277 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-27270059', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-27270059?flat'}
2025-01-09 11:33:42,277 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-27270059 is found in opserver
2025-01-09 11:33:42,289 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 11:33:42,295 - DEBUG - VRF ids for VN ctest-vn-27270059: {}
2025-01-09 11:33:42,295 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-09 11:33:42,301 - DEBUG - Requesting: http://10.0.0.34:8082/domain/36f995c4-55c9-4223-baf4-f1ef310e9a29
2025-01-09 11:33:42,314 - DEBUG - Requesting: http://10.0.0.34:8082/project/5f51ed69-676b-4b8a-883e-1f5a41aafce5
2025-01-09 11:33:42,400 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e71dd5ea-a029-40c3-a511-12241ecf4372
2025-01-09 11:33:42,419 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e71dd5ea-a029-40c3-a511-12241ecf4372
2025-01-09 11:33:42,431 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/bb5f2884-83e6-4db7-b0dd-bf5b1b22e55d
2025-01-09 11:33:42,440 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/bb5f2884-83e6-4db7-b0dd-bf5b1b22e55d
2025-01-09 11:33:42,448 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/ecb0c206-603e-4f3e-a1dc-2dd1871e99fe
2025-01-09 11:33:42,458 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 11:33:42,458 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e71dd5ea-a029-40c3-a511-12241ecf4372
2025-01-09 11:33:42,473 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/bb5f2884-83e6-4db7-b0dd-bf5b1b22e55d
2025-01-09 11:33:42,493 - INFO - Verified VN network id 9 for VN e71dd5ea-a029-40c3-a511-12241ecf4372
2025-01-09 11:33:42,493 - INFO - Verifications in API Server for VN ctest-vn-40204821 passed
2025-01-09 11:33:42,493 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e71dd5ea-a029-40c3-a511-12241ecf4372
2025-01-09 11:33:42,506 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/bb5f2884-83e6-4db7-b0dd-bf5b1b22e55d
2025-01-09 11:33:42,516 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/bb5f2884-83e6-4db7-b0dd-bf5b1b22e55d
2025-01-09 11:33:42,526 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/ecb0c206-603e-4f3e-a1dc-2dd1871e99fe
2025-01-09 11:33:42,540 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-40204821', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13527612', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16653702200772083907', 'uuid-lslong': '11894308037207212914'}, 'enable': 'true', 'created': '2025-01-09T11:33:39', 'last-modified': '2025-01-09T11:33:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.544710'}
2025-01-09 11:33:42,547 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 11:33:42,547 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40204821 passed
2025-01-09 11:33:42,547 - DEBUG - ====Verifying policy data for ctest-vn-40204821 in API_Server ======
2025-01-09 11:33:42,547 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-09 11:33:42,555 - DEBUG - Requesting: http://10.0.0.34:8082/domain/36f995c4-55c9-4223-baf4-f1ef310e9a29
2025-01-09 11:33:42,573 - DEBUG - Requesting: http://10.0.0.34:8082/project/5f51ed69-676b-4b8a-883e-1f5a41aafce5
2025-01-09 11:33:42,656 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e71dd5ea-a029-40c3-a511-12241ecf4372
2025-01-09 11:33:42,671 - DEBUG - ==>Verifying data for policy with id: e7ceb0b0-3ff6-446f-be1d-0af2b1f88df2, fqn: ['default-domain', 'ctest-TestBasicPolicy-13527612', 'ctest-policy-allow-all-55319265']
2025-01-09 11:33:42,671 - INFO - VN ctest-vn-40204821 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 11:33:42,672 - DEBUG - Verifying the vn in opserver
2025-01-09 11:33:42,672 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-40204821 virtual network link through opserver 10.0.0.34
2025-01-09 11:33:42,672 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-09 11:33:42,684 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-40204821', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-40204821?flat'}
2025-01-09 11:33:42,684 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13527612:ctest-vn-40204821 is found in opserver
2025-01-09 11:33:42,695 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 11:33:42,700 - DEBUG - VRF ids for VN ctest-vn-40204821: {}
2025-01-09 11:33:42,758 - DEBUG - Services list from nova: [