2025-01-08 22:11:19,743 - INFO - Domain Default found not creating
2025-01-08 22:11:19,901 - INFO - Project ctest-TestBasicPolicy-93782663 not found, creating it
2025-01-08 22:11:20,400 - INFO - Created Project:ctest-TestBasicPolicy-93782663, ID : 1984219c-6c08-4be4-836b-b968c46da433
2025-01-08 22:11:21,845 - INFO - ================================================================================
2025-01-08 22:11:21,845 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 22:11:21,845 - 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-08 22:11:22,099 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.22': '0'}} with
2025-01-08 22:11:22,099 - INFO - Initial checks done. Running the testcase now
2025-01-08 22:11:22,099 - INFO -
2025-01-08 22:11:22,658 - DEBUG - Response for create_network : {'network': {'id': 'b9f9c94f-7aa5-459b-af98-5e3dae620ab1', 'name': 'ctest-vn-10446090', 'tenant_id': '1984219c6c084be4836bb968c46da433', 'project_id': '1984219c6c084be4836bb968c46da433', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93782663', 'ctest-vn-10446090'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 22:11:22,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '8dca28c3-e927-4c87-94a6-97200ed4972d', 'name': '', 'tenant_id': '1984219c6c084be4836bb968c46da433', 'network_id': 'b9f9c94f-7aa5-459b-af98-5e3dae620ab1', 'ip_version': 4, 'cidr': '112.62.64.128/26', 'allocation_pools': [{'start': '112.62.64.130', 'end': '112.62.64.190'}], 'gateway_ip': '112.62.64.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.62.64.130', 'tags': [], 'project_id': '1984219c6c084be4836bb968c46da433'}}
2025-01-08 22:11:22,863 - INFO - Created VN ctest-vn-10446090
2025-01-08 22:11:22,916 - DEBUG - VN ctest-vn-10446090 UUID is b9f9c94f-7aa5-459b-af98-5e3dae620ab1
2025-01-08 22:11:23,225 - DEBUG - Response for create_network : {'network': {'id': '6d357b64-0794-4aa5-8584-b780e8e28454', 'name': 'ctest-vn-35828845', 'tenant_id': '1984219c6c084be4836bb968c46da433', 'project_id': '1984219c6c084be4836bb968c46da433', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93782663', 'ctest-vn-35828845'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 22:11:23,429 - DEBUG - Response for create_subnet : {'subnet': {'id': '56dc3729-89f9-422e-858f-4c5c7de6310a', 'name': '', 'tenant_id': '1984219c6c084be4836bb968c46da433', 'network_id': '6d357b64-0794-4aa5-8584-b780e8e28454', 'ip_version': 4, 'cidr': '160.226.196.64/26', 'allocation_pools': [{'start': '160.226.196.66', 'end': '160.226.196.126'}], 'gateway_ip': '160.226.196.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.226.196.66', 'tags': [], 'project_id': '1984219c6c084be4836bb968c46da433'}}
2025-01-08 22:11:23,449 - INFO - Created VN ctest-vn-35828845
2025-01-08 22:11:23,504 - DEBUG - VN ctest-vn-35828845 UUID is 6d357b64-0794-4aa5-8584-b780e8e28454
2025-01-08 22:11:23,633 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-10446090, 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-93782663:ctest-vn-35828845, 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-08 22:11:23,939 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9f9c94f-7aa5-459b-af98-5e3dae620ab1', 'name': 'ctest-vn-10446090', 'tenant_id': '1984219c6c084be4836bb968c46da433', 'project_id': '1984219c6c084be4836bb968c46da433', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8dca28c3-e927-4c87-94a6-97200ed4972d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93782663', 'ctest-vn-10446090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93782663', 'ctest-policy-allow-all-49043705']], 'subnet_ipam': [{'subnet_cidr': '112.62.64.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 22:11:24,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d357b64-0794-4aa5-8584-b780e8e28454', 'name': 'ctest-vn-35828845', 'tenant_id': '1984219c6c084be4836bb968c46da433', 'project_id': '1984219c6c084be4836bb968c46da433', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56dc3729-89f9-422e-858f-4c5c7de6310a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93782663', 'ctest-vn-35828845'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93782663', 'ctest-policy-allow-all-49043705']], 'subnet_ipam': [{'subnet_cidr': '160.226.196.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 22:11:24,340 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 22:11:24,633 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 22:11:24,661 - DEBUG - Requesting: http://10.0.0.41:8082/domain/da76ebc5-fa76-4a9f-b6c1-7d12e152ace9
2025-01-08 22:11:24,675 - DEBUG - Requesting: http://10.0.0.41:8082/project/1984219c-6c08-4be4-836b-b968c46da433
2025-01-08 22:11:24,751 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b9f9c94f-7aa5-459b-af98-5e3dae620ab1
2025-01-08 22:11:24,765 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b9f9c94f-7aa5-459b-af98-5e3dae620ab1
2025-01-08 22:11:24,775 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05390723-aa97-4833-ab3d-7fb517abde50
2025-01-08 22:11:24,784 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05390723-aa97-4833-ab3d-7fb517abde50
2025-01-08 22:11:24,793 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/b6e6dc56-e838-4499-9f23-65ea258fe899
2025-01-08 22:11:24,801 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 22:11:24,801 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b9f9c94f-7aa5-459b-af98-5e3dae620ab1
2025-01-08 22:11:24,811 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05390723-aa97-4833-ab3d-7fb517abde50
2025-01-08 22:11:24,827 - INFO - Verified VN network id 7 for VN b9f9c94f-7aa5-459b-af98-5e3dae620ab1
2025-01-08 22:11:24,827 - INFO - Verifications in API Server for VN ctest-vn-10446090 passed
2025-01-08 22:11:24,827 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b9f9c94f-7aa5-459b-af98-5e3dae620ab1
2025-01-08 22:11:24,838 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05390723-aa97-4833-ab3d-7fb517abde50
2025-01-08 22:11:24,846 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05390723-aa97-4833-ab3d-7fb517abde50
2025-01-08 22:11:24,854 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/b6e6dc56-e838-4499-9f23-65ea258fe899
2025-01-08 22:11:24,867 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-10446090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93782663', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13400963509414872475', 'uuid-lslong': '12652966772109085361'}, 'enable': 'true', 'created': '2025-01-08T22:11:22', 'last-modified': '2025-01-08T22:11:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.959574'}
2025-01-08 22:11:24,873 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 22:11:24,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10446090 passed
2025-01-08 22:11:24,874 - DEBUG - ====Verifying policy data for ctest-vn-10446090 in API_Server ======
2025-01-08 22:11:24,874 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 22:11:24,880 - DEBUG - Requesting: http://10.0.0.41:8082/domain/da76ebc5-fa76-4a9f-b6c1-7d12e152ace9
2025-01-08 22:11:24,892 - DEBUG - Requesting: http://10.0.0.41:8082/project/1984219c-6c08-4be4-836b-b968c46da433
2025-01-08 22:11:24,965 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b9f9c94f-7aa5-459b-af98-5e3dae620ab1
2025-01-08 22:11:24,975 - DEBUG - ==>Verifying data for policy with id: be4193ba-20a8-47a7-a5c9-bfd28f1a8446, fqn: ['default-domain', 'ctest-TestBasicPolicy-93782663', 'ctest-policy-allow-all-49043705']
2025-01-08 22:11:24,976 - INFO - VN ctest-vn-10446090 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 22:11:24,976 - DEBUG - Verifying the vn in opserver
2025-01-08 22:11:24,976 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-10446090 virtual network link through opserver 10.0.0.41
2025-01-08 22:11:24,976 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-08 22:11:25,269 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-08 22:11:25,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-10446090', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-10446090?flat'}
2025-01-08 22:11:25,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-10446090 is found in opserver
2025-01-08 22:11:25,339 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 22:11:25,344 - DEBUG - VRF ids for VN ctest-vn-10446090: {}
2025-01-08 22:11:25,344 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 22:11:25,350 - DEBUG - Requesting: http://10.0.0.41:8082/domain/da76ebc5-fa76-4a9f-b6c1-7d12e152ace9
2025-01-08 22:11:25,361 - DEBUG - Requesting: http://10.0.0.41:8082/project/1984219c-6c08-4be4-836b-b968c46da433
2025-01-08 22:11:25,438 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6d357b64-0794-4aa5-8584-b780e8e28454
2025-01-08 22:11:25,450 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6d357b64-0794-4aa5-8584-b780e8e28454
2025-01-08 22:11:25,460 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b0395076-c519-4609-867b-8bc51e190e3f
2025-01-08 22:11:25,468 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b0395076-c519-4609-867b-8bc51e190e3f
2025-01-08 22:11:25,475 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/68f3c812-b523-4134-b348-37e6f8779c07
2025-01-08 22:11:25,483 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 22:11:25,483 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6d357b64-0794-4aa5-8584-b780e8e28454
2025-01-08 22:11:25,494 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b0395076-c519-4609-867b-8bc51e190e3f
2025-01-08 22:11:25,509 - INFO - Verified VN network id 8 for VN 6d357b64-0794-4aa5-8584-b780e8e28454
2025-01-08 22:11:25,509 - INFO - Verifications in API Server for VN ctest-vn-35828845 passed
2025-01-08 22:11:25,509 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6d357b64-0794-4aa5-8584-b780e8e28454
2025-01-08 22:11:25,519 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b0395076-c519-4609-867b-8bc51e190e3f
2025-01-08 22:11:25,528 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b0395076-c519-4609-867b-8bc51e190e3f
2025-01-08 22:11:25,538 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/68f3c812-b523-4134-b348-37e6f8779c07
2025-01-08 22:11:25,550 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-35828845', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93782663', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7869331593453914789', 'uuid-lslong': '9621016468261078100'}, 'enable': 'true', 'created': '2025-01-08T22:11:23', 'last-modified': '2025-01-08T22:11:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.403830'}
2025-01-08 22:11:25,557 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 22:11:25,557 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35828845 passed
2025-01-08 22:11:25,557 - DEBUG - ====Verifying policy data for ctest-vn-35828845 in API_Server ======
2025-01-08 22:11:25,557 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 22:11:25,565 - DEBUG - Requesting: http://10.0.0.41:8082/domain/da76ebc5-fa76-4a9f-b6c1-7d12e152ace9
2025-01-08 22:11:25,581 - DEBUG - Requesting: http://10.0.0.41:8082/project/1984219c-6c08-4be4-836b-b968c46da433
2025-01-08 22:11:25,649 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6d357b64-0794-4aa5-8584-b780e8e28454
2025-01-08 22:11:25,659 - DEBUG - ==>Verifying data for policy with id: be4193ba-20a8-47a7-a5c9-bfd28f1a8446, fqn: ['default-domain', 'ctest-TestBasicPolicy-93782663', 'ctest-policy-allow-all-49043705']
2025-01-08 22:11:25,659 - INFO - VN ctest-vn-35828845 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 22:11:25,660 - DEBUG - Verifying the vn in opserver
2025-01-08 22:11:25,660 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-35828845 virtual network link through opserver 10.0.0.41
2025-01-08 22:11:25,660 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-08 22:11:25,671 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-35828845', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-35828845?flat'}
2025-01-08 22:11:25,671 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93782663:ctest-vn-35828845 is found in opserver
2025-01-08 22:11:25,682 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 22:11:25,688 - DEBUG - VRF ids for VN ctest-vn-35828845: {}
2025-01-08 22:11:25,752 - DEBUG - Services list from nova: [