2025-01-27 02:38:11,371 - INFO - Domain Default found not creating
2025-01-27 02:38:11,545 - INFO - Project ctest-TestBasicPolicy-91061772 not found, creating it
2025-01-27 02:38:12,025 - INFO - Created Project:ctest-TestBasicPolicy-91061772, ID : f5b948a1-10c4-4537-89f3-bd55b6e3ee53
2025-01-27 02:38:13,579 - INFO - ================================================================================
2025-01-27 02:38:13,579 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-27 02:38:13,579 - 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-27 02:38:13,835 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.27': '0'}} with
2025-01-27 02:38:13,835 - INFO - Initial checks done. Running the testcase now
2025-01-27 02:38:13,835 - INFO -
2025-01-27 02:38:14,435 - DEBUG - Response for create_network : {'network': {'id': '8657b82c-7790-4d30-83af-7dc72ea5d357', 'name': 'ctest-vn-58496245', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-vn-58496245'], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:38:14,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e37fd85-16a5-462d-be09-fedfbbf4be43', 'name': '', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'network_id': '8657b82c-7790-4d30-83af-7dc72ea5d357', 'ip_version': 4, 'cidr': '117.255.49.128/26', 'allocation_pools': [{'start': '117.255.49.130', 'end': '117.255.49.190'}], 'gateway_ip': '117.255.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.255.49.130', 'tags': [], 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53'}}
2025-01-27 02:38:14,710 - INFO - Created VN ctest-vn-58496245
2025-01-27 02:38:14,760 - DEBUG - VN ctest-vn-58496245 UUID is 8657b82c-7790-4d30-83af-7dc72ea5d357
2025-01-27 02:38:15,057 - DEBUG - Response for create_network : {'network': {'id': 'd6824c3b-5395-49fc-b06c-d32cfb6eca52', 'name': 'ctest-vn-70296818', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-vn-70296818'], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:38:15,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3b6c98e-728f-4ea3-9539-49fc14e0c5f8', 'name': '', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'network_id': 'd6824c3b-5395-49fc-b06c-d32cfb6eca52', 'ip_version': 4, 'cidr': '124.82.164.64/26', 'allocation_pools': [{'start': '124.82.164.66', 'end': '124.82.164.126'}], 'gateway_ip': '124.82.164.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.82.164.66', 'tags': [], 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53'}}
2025-01-27 02:38:15,295 - INFO - Created VN ctest-vn-70296818
2025-01-27 02:38:15,344 - DEBUG - VN ctest-vn-70296818 UUID is d6824c3b-5395-49fc-b06c-d32cfb6eca52
2025-01-27 02:38:15,459 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245, 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-91061772:ctest-vn-70296818, 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-27 02:38:15,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8657b82c-7790-4d30-83af-7dc72ea5d357', 'name': 'ctest-vn-58496245', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e37fd85-16a5-462d-be09-fedfbbf4be43'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-vn-58496245'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-policy-allow-all-31549253']], 'subnet_ipam': [{'subnet_cidr': '117.255.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:38:16,054 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6824c3b-5395-49fc-b06c-d32cfb6eca52', 'name': 'ctest-vn-70296818', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3b6c98e-728f-4ea3-9539-49fc14e0c5f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-vn-70296818'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-policy-allow-all-31549253']], 'subnet_ipam': [{'subnet_cidr': '124.82.164.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:38:16,196 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-27 02:38:16,497 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-27 02:38:16,530 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09
2025-01-27 02:38:16,543 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53
2025-01-27 02:38:16,615 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357
2025-01-27 02:38:16,626 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357
2025-01-27 02:38:16,636 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d
2025-01-27 02:38:16,645 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d
2025-01-27 02:38:16,654 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a43e2a8a-d800-47fd-b13c-87f8ce47912c
2025-01-27 02:38:16,663 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-27 02:38:16,663 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357
2025-01-27 02:38:16,673 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d
2025-01-27 02:38:16,687 - INFO - Verified VN network id 8 for VN 8657b82c-7790-4d30-83af-7dc72ea5d357
2025-01-27 02:38:16,687 - INFO - Verifications in API Server for VN ctest-vn-58496245 passed
2025-01-27 02:38:16,687 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357
2025-01-27 02:38:16,697 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d
2025-01-27 02:38:16,703 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d
2025-01-27 02:38:16,710 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a43e2a8a-d800-47fd-b13c-87f8ce47912c
2025-01-27 02:38:16,726 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91061772', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9680408425180187952', 'uuid-lslong': '9488941234327507799'}, 'enable': 'true', 'created': '2025-01-27T02:38:14', 'last-modified': '2025-01-27T02:38:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987481'}
2025-01-27 02:38:16,733 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-27 02:38:16,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58496245 passed
2025-01-27 02:38:16,733 - DEBUG - ====Verifying policy data for ctest-vn-58496245 in API_Server ======
2025-01-27 02:38:16,733 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-27 02:38:16,740 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09
2025-01-27 02:38:16,752 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53
2025-01-27 02:38:16,821 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357
2025-01-27 02:38:16,831 - DEBUG - ==>Verifying data for policy with id: be84caea-fbbc-4648-8611-86efb13ac7c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-policy-allow-all-31549253']
2025-01-27 02:38:16,831 - INFO - VN ctest-vn-58496245 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-27 02:38:16,831 - DEBUG - Verifying the vn in opserver
2025-01-27 02:38:16,831 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245 virtual network link through opserver 10.0.0.42
2025-01-27 02:38:16,831 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-01-27 02:38:17,134 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-01-27 02:38:17,217 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245?flat'}
2025-01-27 02:38:17,217 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245 is found in opserver
2025-01-27 02:38:17,229 - DEBUG - Do not have enough data to verify VN in agent
2025-01-27 02:38:17,236 - DEBUG - VRF ids for VN ctest-vn-58496245: {}
2025-01-27 02:38:17,236 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-27 02:38:17,243 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09
2025-01-27 02:38:17,256 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53
2025-01-27 02:38:17,323 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52
2025-01-27 02:38:17,333 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52
2025-01-27 02:38:17,341 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca
2025-01-27 02:38:17,349 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca
2025-01-27 02:38:17,356 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a3c0c2b8-f9b7-4fb0-b148-77f33543a2c8
2025-01-27 02:38:17,363 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-27 02:38:17,363 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52
2025-01-27 02:38:17,371 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca
2025-01-27 02:38:17,384 - INFO - Verified VN network id 9 for VN d6824c3b-5395-49fc-b06c-d32cfb6eca52
2025-01-27 02:38:17,384 - INFO - Verifications in API Server for VN ctest-vn-70296818 passed
2025-01-27 02:38:17,384 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52
2025-01-27 02:38:17,394 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca
2025-01-27 02:38:17,401 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca
2025-01-27 02:38:17,409 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a3c0c2b8-f9b7-4fb0-b148-77f33543a2c8
2025-01-27 02:38:17,425 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91061772', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15457000688778037756', 'uuid-lslong': '12712768038310431314'}, 'enable': 'true', 'created': '2025-01-27T02:38:15', 'last-modified': '2025-01-27T02:38:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.455291'}
2025-01-27 02:38:17,432 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-27 02:38:17,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70296818 passed
2025-01-27 02:38:17,433 - DEBUG - ====Verifying policy data for ctest-vn-70296818 in API_Server ======
2025-01-27 02:38:17,433 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-27 02:38:17,440 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09
2025-01-27 02:38:17,453 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53
2025-01-27 02:38:17,522 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52
2025-01-27 02:38:17,531 - DEBUG - ==>Verifying data for policy with id: be84caea-fbbc-4648-8611-86efb13ac7c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-policy-allow-all-31549253']
2025-01-27 02:38:17,531 - INFO - VN ctest-vn-70296818 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-27 02:38:17,531 - DEBUG - Verifying the vn in opserver
2025-01-27 02:38:17,531 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818 virtual network link through opserver 10.0.0.42
2025-01-27 02:38:17,531 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-01-27 02:38:17,542 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818?flat'}
2025-01-27 02:38:17,542 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818 is found in opserver
2025-01-27 02:38:17,555 - DEBUG - Do not have enough data to verify VN in agent
2025-01-27 02:38:17,561 - DEBUG - VRF ids for VN ctest-vn-70296818: {}
2025-01-27 02:38:17,627 - DEBUG - Services list from nova: [