2025-01-02 22:57:17,267 - INFO - Domain Default found not creating
2025-01-02 22:57:17,431 - INFO - Project ctest-TestBasicPolicy-34608474 not found, creating it
2025-01-02 22:57:17,891 - INFO - Created Project:ctest-TestBasicPolicy-34608474, ID : 8b25f756-3b20-4d75-866b-fd2394af80bf
2025-01-02 22:57:20,029 - INFO - ================================================================================
2025-01-02 22:57:20,030 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-02 22:57:20,030 - 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-02 22:57:20,286 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.7': '0'}} with
2025-01-02 22:57:20,286 - INFO - Initial checks done. Running the testcase now
2025-01-02 22:57:20,287 - INFO -
2025-01-02 22:57:20,812 - DEBUG - Response for create_network : {'network': {'id': 'e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd', 'name': 'ctest-vn-03166854', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'project_id': '8b25f7563b204d75866bfd2394af80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-vn-03166854'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 22:57:21,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '83eebb4e-be2f-41c6-8d45-8b073f98928b', 'name': '', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'network_id': 'e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd', 'ip_version': 4, 'cidr': '71.173.221.192/26', 'allocation_pools': [{'start': '71.173.221.194', 'end': '71.173.221.254'}], 'gateway_ip': '71.173.221.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.173.221.194', 'tags': [], 'project_id': '8b25f7563b204d75866bfd2394af80bf'}}
2025-01-02 22:57:21,026 - INFO - Created VN ctest-vn-03166854
2025-01-02 22:57:21,080 - DEBUG - VN ctest-vn-03166854 UUID is e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd
2025-01-02 22:57:21,371 - DEBUG - Response for create_network : {'network': {'id': 'af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be', 'name': 'ctest-vn-70900731', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'project_id': '8b25f7563b204d75866bfd2394af80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-vn-70900731'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 22:57:21,593 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ada4cac-5241-42f0-8134-f8e930247e7b', 'name': '', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'network_id': 'af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be', 'ip_version': 4, 'cidr': '144.234.30.192/26', 'allocation_pools': [{'start': '144.234.30.194', 'end': '144.234.30.254'}], 'gateway_ip': '144.234.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.234.30.194', 'tags': [], 'project_id': '8b25f7563b204d75866bfd2394af80bf'}}
2025-01-02 22:57:21,612 - INFO - Created VN ctest-vn-70900731
2025-01-02 22:57:21,668 - DEBUG - VN ctest-vn-70900731 UUID is af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be
2025-01-02 22:57:21,780 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854, 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-34608474:ctest-vn-70900731, 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-02 22:57:22,076 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd', 'name': 'ctest-vn-03166854', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'project_id': '8b25f7563b204d75866bfd2394af80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['83eebb4e-be2f-41c6-8d45-8b073f98928b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-vn-03166854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-policy-allow-all-89450845']], 'subnet_ipam': [{'subnet_cidr': '71.173.221.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 22:57:22,328 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be', 'name': 'ctest-vn-70900731', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'project_id': '8b25f7563b204d75866bfd2394af80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ada4cac-5241-42f0-8134-f8e930247e7b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-vn-70900731'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-policy-allow-all-89450845']], 'subnet_ipam': [{'subnet_cidr': '144.234.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 22:57:22,476 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-02 22:57:22,774 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-02 22:57:22,803 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971
2025-01-02 22:57:22,816 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf
2025-01-02 22:57:22,887 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd
2025-01-02 22:57:22,899 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd
2025-01-02 22:57:22,911 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5
2025-01-02 22:57:22,921 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5
2025-01-02 22:57:22,928 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/54e1b0ed-8148-467d-8627-76aefe5b9b65
2025-01-02 22:57:22,935 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 22:57:22,935 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd
2025-01-02 22:57:22,945 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5
2025-01-02 22:57:22,961 - INFO - Verified VN network id 8 for VN e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd
2025-01-02 22:57:22,961 - INFO - Verifications in API Server for VN ctest-vn-03166854 passed
2025-01-02 22:57:22,961 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd
2025-01-02 22:57:22,972 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5
2025-01-02 22:57:22,980 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5
2025-01-02 22:57:22,987 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/54e1b0ed-8148-467d-8627-76aefe5b9b65
2025-01-02 22:57:23,001 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34608474', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16144524642473430586', 'uuid-lslong': '13112280594110299085'}, 'enable': 'true', 'created': '2025-01-02T22:57:20', 'last-modified': '2025-01-02T22:57:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944161'}
2025-01-02 22:57:23,009 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 22:57:23,009 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03166854 passed
2025-01-02 22:57:23,009 - DEBUG - ====Verifying policy data for ctest-vn-03166854 in API_Server ======
2025-01-02 22:57:23,009 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-02 22:57:23,017 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971
2025-01-02 22:57:23,032 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf
2025-01-02 22:57:23,108 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd
2025-01-02 22:57:23,118 - DEBUG - ==>Verifying data for policy with id: 8fc7055b-815b-4f9d-9b69-c69e3dd9450f, fqn: ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-policy-allow-all-89450845']
2025-01-02 22:57:23,118 - INFO - VN ctest-vn-03166854 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 22:57:23,118 - DEBUG - Verifying the vn in opserver
2025-01-02 22:57:23,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854 virtual network link through opserver 10.0.0.31
2025-01-02 22:57:23,118 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-02 22:57:23,424 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-02 22:57:23,484 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854?flat'}
2025-01-02 22:57:23,484 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854 is found in opserver
2025-01-02 22:57:23,496 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 22:57:23,503 - DEBUG - VRF ids for VN ctest-vn-03166854: {}
2025-01-02 22:57:23,503 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-02 22:57:23,510 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971
2025-01-02 22:57:23,525 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf
2025-01-02 22:57:23,600 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be
2025-01-02 22:57:23,612 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be
2025-01-02 22:57:23,622 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09
2025-01-02 22:57:23,630 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09
2025-01-02 22:57:23,637 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/c595f8e2-8e24-49f5-b493-543fd638b637
2025-01-02 22:57:23,643 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 22:57:23,643 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be
2025-01-02 22:57:23,653 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09
2025-01-02 22:57:23,668 - INFO - Verified VN network id 9 for VN af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be
2025-01-02 22:57:23,668 - INFO - Verifications in API Server for VN ctest-vn-70900731 passed
2025-01-02 22:57:23,668 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be
2025-01-02 22:57:23,678 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09
2025-01-02 22:57:23,686 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09
2025-01-02 22:57:23,693 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/c595f8e2-8e24-49f5-b493-543fd638b637
2025-01-02 22:57:23,704 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34608474', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12615895258558582710', 'uuid-lslong': '13441747498225748414'}, 'enable': 'true', 'created': '2025-01-02T22:57:21', 'last-modified': '2025-01-02T22:57:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.410227'}
2025-01-02 22:57:23,712 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 22:57:23,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70900731 passed
2025-01-02 22:57:23,713 - DEBUG - ====Verifying policy data for ctest-vn-70900731 in API_Server ======
2025-01-02 22:57:23,713 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-02 22:57:23,718 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971
2025-01-02 22:57:23,729 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf
2025-01-02 22:57:23,800 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be
2025-01-02 22:57:23,810 - DEBUG - ==>Verifying data for policy with id: 8fc7055b-815b-4f9d-9b69-c69e3dd9450f, fqn: ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-policy-allow-all-89450845']
2025-01-02 22:57:23,810 - INFO - VN ctest-vn-70900731 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 22:57:23,810 - DEBUG - Verifying the vn in opserver
2025-01-02 22:57:23,810 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731 virtual network link through opserver 10.0.0.31
2025-01-02 22:57:23,810 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-02 22:57:23,821 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731?flat'}
2025-01-02 22:57:23,821 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731 is found in opserver
2025-01-02 22:57:23,832 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 22:57:23,838 - DEBUG - VRF ids for VN ctest-vn-70900731: {}
2025-01-02 22:57:23,899 - DEBUG - Services list from nova: [